|
|
@ -61,6 +61,7 @@ package("libsdl") |
|
|
|
add_configs("use_sdlmain", {description = "Use SDL_main entry point", default = true, type = "boolean"}) |
|
|
|
add_configs("use_sdlmain", {description = "Use SDL_main entry point", default = true, type = "boolean"}) |
|
|
|
if is_plat("linux") then |
|
|
|
if is_plat("linux") then |
|
|
|
add_configs("with_x", {description = "Enables X support (requires it on the system)", default = true, type = "boolean"}) |
|
|
|
add_configs("with_x", {description = "Enables X support (requires it on the system)", default = true, type = "boolean"}) |
|
|
|
|
|
|
|
add_configs("with_wayland", {description = "Enables Wayland support (requires it on the system)", default = true, type = "boolean"}) |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
if is_plat("wasm") then |
|
|
|
if is_plat("wasm") then |
|
|
@ -75,6 +76,9 @@ package("libsdl") |
|
|
|
if package:is_plat("linux") and package:config("with_x") then |
|
|
|
if package:is_plat("linux") and package:config("with_x") then |
|
|
|
package:add("deps", "libxext", {private = true}) |
|
|
|
package:add("deps", "libxext", {private = true}) |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
if package:is_plat("linux") and package:config("with_wayland") then |
|
|
|
|
|
|
|
package:add("deps", "wayland", {private = true}) |
|
|
|
|
|
|
|
end |
|
|
|
end) |
|
|
|
end) |
|
|
|
|
|
|
|
|
|
|
|
on_component("main", function (package, component) |
|
|
|
on_component("main", function (package, component) |
|
|
|