25 |
25 |
26 #libraries are built shared unless explicitly added as a static |
26 #libraries are built shared unless explicitly added as a static |
27 option(BUILD_SHARED_LIBS "Build libraries as shared modules (on)" ON) |
27 option(BUILD_SHARED_LIBS "Build libraries as shared modules (on)" ON) |
28 |
28 |
29 if(WIN32 OR APPLE) |
29 if(WIN32 OR APPLE) |
30 option(LUA_SYSTEM "Use system lua (off)" OFF) |
30 option(LUA_SYSTEM "Use system Lua (off)" OFF) |
31 else() |
31 else() |
32 option(LUA_SYSTEM "Use system lua (on)" ON) |
32 option(LUA_SYSTEM "Use system Lua (on)" ON) |
33 endif() |
33 endif() |
34 |
34 |
35 option(BUILD_ENGINE_LIBRARY "Enable hwengine library (off)" OFF) |
35 option(BUILD_ENGINE_LIBRARY "Enable hwengine library (off)" OFF) |
36 option(ANDROID "Enable Android build (off)" OFF) |
36 option(ANDROID "Enable Android build (off)" OFF) |
37 |
37 |
38 option(MINIMAL_FLAGS "Respect system flags as much as possible (off)" OFF) |
38 option(MINIMAL_FLAGS "Respect system flags as much as possible (off)" OFF) |
39 option(NOAUTOUPDATE "Disable OS X Sparkle update checking (off)" OFF) |
39 option(NOAUTOUPDATE "Disable OS X Sparkle update checking (off)" OFF) |
40 option(SKIPBUNDLE "Do not create relocate bundle (off)" OFF) |
40 option(SKIPBUNDLE "Do not create relocate bundle (off)" OFF) |
41 |
41 |
42 option(BUILD_ENGINE_C "Compile hwengine as native C (off)" OFF) |
42 option(BUILD_ENGINE_C "Compile hwengine as native C (off)" OFF) |
43 option(BUILD_ENGINE_JS "Compile hwengine as javascript (off)" OFF) |
43 option(BUILD_ENGINE_JS "Compile hwengine as JavaScript (off)" OFF) |
44 option(GL2 "Enable OpenGL 2 rendering !!!EXPERIMENTAL - DO NOT USE!!! [default: off)" OFF) |
44 option(GL2 "Enable OpenGL 2 rendering, only use if you know what you're doing (off)" OFF) |
45 |
45 |
46 set(GHFLAGS "" CACHE STRING "Additional Haskell flags") |
46 set(GHFLAGS "" CACHE STRING "Additional Haskell flags") |
47 if(UNIX AND NOT APPLE) |
47 if(UNIX AND NOT APPLE) |
48 set(DATA_INSTALL_DIR "share/hedgewars" CACHE STRING "Resource folder path") |
48 set(DATA_INSTALL_DIR "share/hedgewars" CACHE STRING "Resource folder path") |
49 endif() |
49 endif() |