XMake: simplifies option syntax
This commit is contained in:
@@ -1,9 +1,4 @@
|
||||
option("assimp")
|
||||
set_default(true)
|
||||
set_showmenu(true)
|
||||
set_description("Build Assimp plugin")
|
||||
|
||||
option_end()
|
||||
option("assimp", { description = "Build Assimp plugin", default = true })
|
||||
|
||||
if has_config("assimp") then
|
||||
add_requires("assimp v5.2.3")
|
||||
|
||||
@@ -1,9 +1,4 @@
|
||||
option("ffmpeg")
|
||||
set_default(false)
|
||||
set_showmenu(true)
|
||||
set_description("Build FFmpeg plugin")
|
||||
|
||||
option_end()
|
||||
option("ffmpeg", { description = "Build FFmpeg plugin", default = false })
|
||||
|
||||
if has_config("ffmpeg") then
|
||||
add_requires("ffmpeg", { configs = { shared = true } })
|
||||
|
||||
Reference in New Issue
Block a user