summaryrefslogtreecommitdiffstatshomepage
path: root/scripts/genie.lua
diff options
context:
space:
mode:
author Miodrag Milanovic <mmicko@gmail.com>2016-02-27 16:53:15 +0100
committer Miodrag Milanovic <mmicko@gmail.com>2016-02-27 16:53:49 +0100
commitea6b85484430067af34bef8227d7c2ad2da03306 (patch)
tree5051eeeb3aefc0d0cc922cb863433f1bbd2a11da /scripts/genie.lua
parentcf6dc7d370407914020f3e623719f09c8668c692 (diff)
Made Visual Studio use by default bundled SDL2 (nw)
Diffstat (limited to 'scripts/genie.lua')
-rw-r--r--scripts/genie.lua13
1 files changed, 13 insertions, 0 deletions
diff --git a/scripts/genie.lua b/scripts/genie.lua
index 5dfe485cf54..a6e1c59f752 100644
--- a/scripts/genie.lua
+++ b/scripts/genie.lua
@@ -158,6 +158,11 @@ newoption {
}
newoption {
+ trigger = 'with-bundled-sdl2',
+ description = 'Build bundled SDL2 library',
+}
+
+newoption {
trigger = "distro",
description = "Choose distribution",
allowed = {
@@ -450,6 +455,7 @@ else
end
end
+
configurations {
"Debug",
"Release",
@@ -497,6 +503,13 @@ configuration { "Release", "vs*" }
"Optimize",
}
+-- Force VS2013/15 targets to use bundled SDL2
+if string.sub(_ACTION,1,4) == "vs20" and _OPTIONS["osd"]=="sdl" then
+ if _OPTIONS["with-bundled-sdl2"]==nil then
+ _OPTIONS["with-bundled-sdl2"] = "1"
+ end
+end
+
configuration {}
msgcompile ("Compiling $(subst ../,,$<)...")