Skip to content

Commit

Permalink
Api register (#2297)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
Jarod42 authored Nov 10, 2024
1 parent d74ad3b commit b5e6c10
Show file tree
Hide file tree
Showing 12 changed files with 412 additions and 516 deletions.
21 changes: 21 additions & 0 deletions modules/android/_preload.lua
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,27 @@
-- Register the Android extension
--

api.register {
name = "endian",
scope = "config",
kind = "string",
allowed = {
"Default",
"Little",
"Big",
},
}

api.register {
name = "fpu",
scope = "config",
kind = "string",
allowed = {
"Software",
"Hardware",
}
}

api.addAllowed("system", p.ANDROID)
api.addAllowed("architecture", { "armv5", "armv7", "aarch64", "mips", "mips64", "arm" })
api.addAllowed("vectorextensions", { "NEON", "MXU" })
Expand Down
40 changes: 40 additions & 0 deletions modules/codelite/_preload.lua
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,46 @@

local p = premake

p.api.register {
name = "debugconnectcommands",
scope = "config",
kind = "list:string",
tokens = true,
}

p.api.register {
name = "debugextendedprotocol",
scope = "config",
kind = "boolean",
}

p.api.register {
name = "debugport",
scope = "config",
kind = "integer",
}

p.api.register {
name = "debugremotehost",
scope = "config",
kind = "string",
tokens = true,
}

p.api.register {
name = "debugsearchpaths",
scope = "config",
kind = "list:path",
tokens = true,
}

p.api.register {
name = "debugstartupcommands",
scope = "config",
kind = "list:string",
tokens = true,
}

newaction
{
-- Metadata for the command line and help system
Expand Down
Loading

0 comments on commit b5e6c10

Please sign in to comment.