CROSSTOOLS support
This commit is contained in:
@@ -51,11 +51,19 @@ if(CMAKE_CROSSCOMPILING)
|
||||
set(INSTALL_PREFIX "${CMAKE_STAGING_PREFIX}")
|
||||
endif()
|
||||
endif()
|
||||
option(CROSSTOOLS "Crosstools minimal build" 0)
|
||||
option(LIB "System install" 1)
|
||||
option(QGLVIEW "Build QGLview library and utils" 0)
|
||||
option(QGLENGINE "Build QGLENGINE library and utils" 0)
|
||||
option(UTILS "Build various utils" ${_plugins_default_})
|
||||
option(DESIGNER_PLUGINS "Build qt designer plugins" ${_plugins_default_})
|
||||
if (CROSSTOOLS)
|
||||
set(LIB 1)
|
||||
set(QGLVIEW 0)
|
||||
set(QGLENGINE 0)
|
||||
set(UTILS 0)
|
||||
set(DESIGNER_PLUGINS 0)
|
||||
endif()
|
||||
if (CMAKE_BUILD_TYPE MATCHES Debug)
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g3 -Wall")
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -g3 -Wall")
|
||||
@@ -97,9 +105,11 @@ endforeach(F)
|
||||
if(CMAKE_CROSSCOMPILING OR (DEFINED ANDROID_PLATFORM))
|
||||
set(PIP_CMG "pip_cmg")
|
||||
set(PIP_RC "pip_rc")
|
||||
set(PIP_DEPLOY_TOOL "deploy_tool")
|
||||
else()
|
||||
set(PIP_CMG "${CMAKE_CURRENT_BINARY_DIR}/pip/utils/code_model_generator/pip_cmg")
|
||||
set(PIP_RC "${CMAKE_CURRENT_BINARY_DIR}/pip/utils/resources_compiler/pip_rc")
|
||||
set(PIP_DEPLOY_TOOL "${CMAKE_CURRENT_BINARY_DIR}/pip/utils/deploy_tool/deploy_tool")
|
||||
endif()
|
||||
if(WIN32)
|
||||
set(PIP_DLL_DIR "${CMAKE_CURRENT_BINARY_DIR}/pip")
|
||||
@@ -107,6 +117,14 @@ endif()
|
||||
|
||||
set(QAD_DIR ${CMAKE_CURRENT_SOURCE_DIR}/qad)
|
||||
|
||||
if (CROSSTOOLS)
|
||||
|
||||
add_subdirectory(pip)
|
||||
file(GLOB CMAKES "qad/cmake/*.cmake" "qad/cmake/*.in")
|
||||
install(FILES ${CMAKES} DESTINATION ${CMAKE_ROOT}/Modules)
|
||||
|
||||
else()
|
||||
|
||||
include(QtWraps)
|
||||
find_qt(Core QUIET)
|
||||
set(QtVersions)
|
||||
@@ -155,6 +173,8 @@ foreach(_D ${_DIRS})
|
||||
add_subdirectory(${_D})
|
||||
endforeach(_D)
|
||||
|
||||
endif()
|
||||
|
||||
if(WIN32)
|
||||
foreach(PIP_LT ${PIP_LIBS_TARGETS})
|
||||
if (SomeQtFound)
|
||||
|
||||
2
pip
2
pip
Submodule pip updated: 0302048afa...3386c7702c
Reference in New Issue
Block a user