diff options
author | V1K1NGbg <victor@ilchev.com> | 2024-08-22 17:49:09 -0300 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2024-08-22 17:49:09 -0300 |
commit | 4ad3181f7e926c61799eb0df0cdfcf4d80d02913 (patch) | |
tree | bd05232867647f64a163fb950e801fa2fbd3d46e | |
parent | 92768bb8b9ef7a5df5dd56d7db731f9fbf99b9dc (diff) | |
download | luarocks-4ad3181f7e926c61799eb0df0cdfcf4d80d02913.tar.gz luarocks-4ad3181f7e926c61799eb0df0cdfcf4d80d02913.tar.bz2 luarocks-4ad3181f7e926c61799eb0df0cdfcf4d80d02913.zip |
Teal: add type definition module luarocks.core.types.build
-rw-r--r-- | src/luarocks/core/types/build.d.tl | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/src/luarocks/core/types/build.d.tl b/src/luarocks/core/types/build.d.tl new file mode 100644 index 00000000..b643dc92 --- /dev/null +++ b/src/luarocks/core/types/build.d.tl | |||
@@ -0,0 +1,66 @@ | |||
1 | local record build | ||
2 | |||
3 | interface Build | ||
4 | record Install | ||
5 | lua: {(string|integer): string} | ||
6 | lib: {(string|integer): string} | ||
7 | conf: {(string|integer): string} | ||
8 | bin: {(string|integer): string} | ||
9 | end | ||
10 | |||
11 | type: string | ||
12 | install: Install | ||
13 | copy_directories: {string} | ||
14 | patches: {string : string} | ||
15 | extra_files: {string : string} | ||
16 | macosx_deployment_target: string | ||
17 | end | ||
18 | |||
19 | record BuiltinBuild | ||
20 | is Build | ||
21 | where self.type == "builtin" | ||
22 | |||
23 | record Module | ||
24 | is {string} | ||
25 | sources: string | {string} | ||
26 | libraries: string | {string} | ||
27 | defines: {string} | ||
28 | incdirs: {string} | ||
29 | libdirs: {string} | ||
30 | end | ||
31 | |||
32 | modules: {string: (string | Module)} | ||
33 | end | ||
34 | |||
35 | |||
36 | record CMakeBuild | ||
37 | is Build where self.type == "cmake" | ||
38 | |||
39 | cmake: string | ||
40 | variables: {string: string} | ||
41 | build_pass: boolean | ||
42 | install_pass: boolean | ||
43 | end | ||
44 | |||
45 | record CommandBuild | ||
46 | is Build where self.type == "command" | ||
47 | |||
48 | build_command: string | ||
49 | install_command: string | ||
50 | end | ||
51 | |||
52 | record MakeBuild | ||
53 | is Build where self.type == "make" | ||
54 | |||
55 | makefile: string | ||
56 | build_target: string | ||
57 | build_pass: boolean | ||
58 | install_target: string | ||
59 | install_pass: boolean | ||
60 | build_variables: {string: string} | ||
61 | install_variables: {string: string} | ||
62 | variables: {string: string} | ||
63 | end | ||
64 | end | ||
65 | |||
66 | return build \ No newline at end of file | ||