瀏覽代碼

ignore ENABLE_LAUNCHER and ENABLE_EDITOR options on Android

Andrey Filipenkov 2 年之前
父節點
當前提交
c31a9f7f5d
共有 1 個文件被更改,包括 4 次插入4 次删除
  1. 4 4
      CMakeLists.txt

+ 4 - 4
CMakeLists.txt

@@ -41,17 +41,17 @@ if(NOT CMAKE_BUILD_TYPE)
 	set_property(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS Debug Release RelWithDebInfo)
 	set_property(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS Debug Release RelWithDebInfo)
 endif()
 endif()
 
 
-set(qtParts ON)
 set(staticAI OFF)
 set(staticAI OFF)
 if(ANDROID)
 if(ANDROID)
-	set(qtParts OFF)
 	set(staticAI ON)
 	set(staticAI ON)
 endif()
 endif()
 
 
 option(ENABLE_ERM "Enable compilation of ERM scripting module" OFF)
 option(ENABLE_ERM "Enable compilation of ERM scripting module" OFF)
 option(ENABLE_LUA "Enable compilation of LUA scripting module" OFF)
 option(ENABLE_LUA "Enable compilation of LUA scripting module" OFF)
-option(ENABLE_LAUNCHER "Enable compilation of launcher" ${qtParts})
-option(ENABLE_EDITOR "Enable compilation of map editor" ${qtParts})
+if(NOT ANDROID)
+	option(ENABLE_LAUNCHER "Enable compilation of launcher" ON)
+	option(ENABLE_EDITOR "Enable compilation of map editor" ON)
+endif()
 option(ENABLE_TRANSLATIONS "Enable generation of translations for launcher and editor" ON)
 option(ENABLE_TRANSLATIONS "Enable generation of translations for launcher and editor" ON)
 option(ENABLE_NULLKILLER_AI "Enable compilation of Nullkiller AI library" ON)
 option(ENABLE_NULLKILLER_AI "Enable compilation of Nullkiller AI library" ON)