Skip to content

Commit b5e6c10

Browse files
authored
Api register (#2297)
* Move xcode api from src/_premake_init.lua into modules/xcode/_preload.lua * Move android api from src/_premake_init.lua into modules/android/_preload.lua * Move gcc api from src/_premake_init.lua into src/tools/gcc.lua * Move codelite api from src/_premake_init.lua into modules/codelite/_preload.lua * Move some visual studio/msvc api from src/_premake_init.lua into modules/vstudio/_preload.lua * Remove "empty" api. * Move dotnet api from src/_premake_init.lua into src/tools/dotnet.lua
1 parent d74ad3b commit b5e6c10

File tree

12 files changed

+412
-516
lines changed

12 files changed

+412
-516
lines changed

modules/android/_preload.lua

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,27 @@
1212
-- Register the Android extension
1313
--
1414

15+
api.register {
16+
name = "endian",
17+
scope = "config",
18+
kind = "string",
19+
allowed = {
20+
"Default",
21+
"Little",
22+
"Big",
23+
},
24+
}
25+
26+
api.register {
27+
name = "fpu",
28+
scope = "config",
29+
kind = "string",
30+
allowed = {
31+
"Software",
32+
"Hardware",
33+
}
34+
}
35+
1536
api.addAllowed("system", p.ANDROID)
1637
api.addAllowed("architecture", { "armv5", "armv7", "aarch64", "mips", "mips64", "arm" })
1738
api.addAllowed("vectorextensions", { "NEON", "MXU" })

modules/codelite/_preload.lua

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,46 @@
1111

1212
local p = premake
1313

14+
p.api.register {
15+
name = "debugconnectcommands",
16+
scope = "config",
17+
kind = "list:string",
18+
tokens = true,
19+
}
20+
21+
p.api.register {
22+
name = "debugextendedprotocol",
23+
scope = "config",
24+
kind = "boolean",
25+
}
26+
27+
p.api.register {
28+
name = "debugport",
29+
scope = "config",
30+
kind = "integer",
31+
}
32+
33+
p.api.register {
34+
name = "debugremotehost",
35+
scope = "config",
36+
kind = "string",
37+
tokens = true,
38+
}
39+
40+
p.api.register {
41+
name = "debugsearchpaths",
42+
scope = "config",
43+
kind = "list:path",
44+
tokens = true,
45+
}
46+
47+
p.api.register {
48+
name = "debugstartupcommands",
49+
scope = "config",
50+
kind = "list:string",
51+
tokens = true,
52+
}
53+
1454
newaction
1555
{
1656
-- Metadata for the command line and help system

0 commit comments

Comments
 (0)