|
@@ -25,7 +25,7 @@ opts.Add(
|
|
|
)
|
|
|
opts.Add(EnumVariable("bits", "Target platform bits", "64", ("32", "64")))
|
|
|
opts.Add(BoolVariable("use_llvm", "Use the LLVM / Clang compiler", "no"))
|
|
|
-opts.Add(PathVariable("target_path", "The path where the lib is installed.", "bin/", PathVariable.PathAccept))
|
|
|
+opts.Add(PathVariable("target_path", "The path where the lib is installed.", "demo/bin/", PathVariable.PathAccept))
|
|
|
opts.Add(PathVariable("target_name", "The library name.", "libgdexample", PathVariable.PathAccept))
|
|
|
|
|
|
# Local dependency paths, adapt them to your setup
|
|
@@ -106,14 +106,18 @@ elif env["platform"] == "windows":
|
|
|
|
|
|
env.Append(CPPDEFINES=["WIN32", "_WIN32", "_WINDOWS", "_CRT_SECURE_NO_WARNINGS"])
|
|
|
env.Append(CCFLAGS=["-W3", "-GR"])
|
|
|
+ env.Append(CXXFLAGS=["-std:c++17"])
|
|
|
if env["target"] in ("debug", "d"):
|
|
|
env.Append(CPPDEFINES=["_DEBUG"])
|
|
|
- env.Append(CCFLAGS=["-EHsc", "-MDd", "-ZI"])
|
|
|
+ env.Append(CCFLAGS=["-EHsc", "-MDd", "-ZI", "-FS"])
|
|
|
env.Append(LINKFLAGS=["-DEBUG"])
|
|
|
else:
|
|
|
env.Append(CPPDEFINES=["NDEBUG"])
|
|
|
env.Append(CCFLAGS=["-O2", "-EHsc", "-MD"])
|
|
|
|
|
|
+ if not(env["use_llvm"]):
|
|
|
+ env.Append(CPPDEFINES=["TYPED_METHOD_BIND"])
|
|
|
+
|
|
|
if env["target"] in ("debug", "d"):
|
|
|
cpp_library += ".debug"
|
|
|
else:
|