diff options
author | V1K1NGbg <victor@ilchev.com> | 2024-08-22 17:49:09 -0300 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2024-10-21 13:30:51 -0300 |
commit | 1fe02563c6bda4ea00bd3fff191d6ab6bbf5978e (patch) | |
tree | 8319031878b0f3d87afbe248cf8f647f46e4751f | |
parent | 06c47f38b00613a5c9d7b105565c2713a010b4b9 (diff) | |
download | luarocks-1fe02563c6bda4ea00bd3fff191d6ab6bbf5978e.tar.gz luarocks-1fe02563c6bda4ea00bd3fff191d6ab6bbf5978e.tar.bz2 luarocks-1fe02563c6bda4ea00bd3fff191d6ab6bbf5978e.zip |
Teal: add type definition module luarocks.core.types.build
-rw-r--r-- | src/luarocks/core/types/build.d.tl | 36 |
1 files changed, 36 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..35b42005 --- /dev/null +++ b/src/luarocks/core/types/build.d.tl | |||
@@ -0,0 +1,36 @@ | |||
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 | end | ||
35 | |||
36 | return build \ No newline at end of file | ||