CROSSTOOLS support
This commit is contained in:
@@ -51,11 +51,19 @@ if(CMAKE_CROSSCOMPILING)
|
|||||||
set(INSTALL_PREFIX "${CMAKE_STAGING_PREFIX}")
|
set(INSTALL_PREFIX "${CMAKE_STAGING_PREFIX}")
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
option(CROSSTOOLS "Crosstools minimal build" 0)
|
||||||
option(LIB "System install" 1)
|
option(LIB "System install" 1)
|
||||||
option(QGLVIEW "Build QGLview library and utils" 0)
|
option(QGLVIEW "Build QGLview library and utils" 0)
|
||||||
option(QGLENGINE "Build QGLENGINE library and utils" 0)
|
option(QGLENGINE "Build QGLENGINE library and utils" 0)
|
||||||
option(UTILS "Build various utils" ${_plugins_default_})
|
option(UTILS "Build various utils" ${_plugins_default_})
|
||||||
option(DESIGNER_PLUGINS "Build qt designer plugins" ${_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)
|
if (CMAKE_BUILD_TYPE MATCHES Debug)
|
||||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g3 -Wall")
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g3 -Wall")
|
||||||
set(CMAKE_C_FLAGS "${CMAKE_C_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))
|
if(CMAKE_CROSSCOMPILING OR (DEFINED ANDROID_PLATFORM))
|
||||||
set(PIP_CMG "pip_cmg")
|
set(PIP_CMG "pip_cmg")
|
||||||
set(PIP_RC "pip_rc")
|
set(PIP_RC "pip_rc")
|
||||||
|
set(PIP_DEPLOY_TOOL "deploy_tool")
|
||||||
else()
|
else()
|
||||||
set(PIP_CMG "${CMAKE_CURRENT_BINARY_DIR}/pip/utils/code_model_generator/pip_cmg")
|
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_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()
|
endif()
|
||||||
if(WIN32)
|
if(WIN32)
|
||||||
set(PIP_DLL_DIR "${CMAKE_CURRENT_BINARY_DIR}/pip")
|
set(PIP_DLL_DIR "${CMAKE_CURRENT_BINARY_DIR}/pip")
|
||||||
@@ -107,53 +117,63 @@ endif()
|
|||||||
|
|
||||||
set(QAD_DIR ${CMAKE_CURRENT_SOURCE_DIR}/qad)
|
set(QAD_DIR ${CMAKE_CURRENT_SOURCE_DIR}/qad)
|
||||||
|
|
||||||
include(QtWraps)
|
if (CROSSTOOLS)
|
||||||
find_qt(Core QUIET)
|
|
||||||
set(QtVersions)
|
add_subdirectory(pip)
|
||||||
set(SomeQtFound 0)
|
file(GLOB CMAKES "qad/cmake/*.cmake" "qad/cmake/*.in")
|
||||||
foreach(_v ${_QT_VERSIONS_})
|
install(FILES ${CMAKES} DESTINATION ${CMAKE_ROOT}/Modules)
|
||||||
option(Qt${_v} "Build for Qt${_v}" 1)
|
|
||||||
if (Qt${_v})
|
|
||||||
#message("Qt${_v} -> ${LOCAL_FOUND${_v}}")
|
|
||||||
if (LOCAL_FOUND${_v})
|
|
||||||
list(APPEND QtVersions Qt${_v})
|
|
||||||
set(SomeQtFound 1)
|
|
||||||
endif()
|
|
||||||
endif()
|
|
||||||
endforeach()
|
|
||||||
|
|
||||||
if(UTILS)
|
|
||||||
message(STATUS "Building with utils")
|
|
||||||
else()
|
else()
|
||||||
message(STATUS "Building only libraries")
|
|
||||||
endif()
|
|
||||||
|
|
||||||
add_subdirectory(pip)
|
include(QtWraps)
|
||||||
set(_DIRS)
|
find_qt(Core QUIET)
|
||||||
if (SomeQtFound)
|
set(QtVersions)
|
||||||
message(STATUS "Building Qt-derived targets for ${QtVersions}")
|
set(SomeQtFound 0)
|
||||||
add_subdirectory(qad)
|
foreach(_v ${_QT_VERSIONS_})
|
||||||
set(_DIRS piqt piqt_utils qcd_utils)
|
option(Qt${_v} "Build for Qt${_v}" 1)
|
||||||
if (Qt5)
|
if (Qt${_v})
|
||||||
if (QGLVIEW)
|
#message("Qt${_v} -> ${LOCAL_FOUND${_v}}")
|
||||||
list(APPEND _DIRS qglview)
|
if (LOCAL_FOUND${_v})
|
||||||
endif()
|
list(APPEND QtVersions Qt${_v})
|
||||||
if (QGLENGINE)
|
set(SomeQtFound 1)
|
||||||
list(APPEND _DIRS qglengine)
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
endforeach()
|
||||||
|
|
||||||
|
if(UTILS)
|
||||||
|
message(STATUS "Building with utils")
|
||||||
|
else()
|
||||||
|
message(STATUS "Building only libraries")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
add_subdirectory(pip)
|
||||||
|
set(_DIRS)
|
||||||
|
if (SomeQtFound)
|
||||||
|
message(STATUS "Building Qt-derived targets for ${QtVersions}")
|
||||||
|
add_subdirectory(qad)
|
||||||
|
set(_DIRS piqt piqt_utils qcd_utils)
|
||||||
|
if (Qt5)
|
||||||
|
if (QGLVIEW)
|
||||||
|
list(APPEND _DIRS qglview)
|
||||||
|
endif()
|
||||||
|
if (QGLENGINE)
|
||||||
|
list(APPEND _DIRS qglengine)
|
||||||
|
endif()
|
||||||
|
endif()
|
||||||
|
foreach(_D ${_DIRS})
|
||||||
|
list(APPEND QT_MULTILIB_LIST ${_D})
|
||||||
|
endforeach(_D)
|
||||||
|
include_directories(piqt)
|
||||||
|
else()
|
||||||
|
message(STATUS "None of Qt found, skip Qt-derived targets")
|
||||||
|
endif()
|
||||||
|
include_directories(cd_utils)
|
||||||
|
list(INSERT _DIRS 0 cd_utils)
|
||||||
foreach(_D ${_DIRS})
|
foreach(_D ${_DIRS})
|
||||||
list(APPEND QT_MULTILIB_LIST ${_D})
|
add_subdirectory(${_D})
|
||||||
endforeach(_D)
|
endforeach(_D)
|
||||||
include_directories(piqt)
|
|
||||||
else()
|
|
||||||
message(STATUS "None of Qt found, skip Qt-derived targets")
|
|
||||||
endif()
|
endif()
|
||||||
include_directories(cd_utils)
|
|
||||||
list(INSERT _DIRS 0 cd_utils)
|
|
||||||
foreach(_D ${_DIRS})
|
|
||||||
add_subdirectory(${_D})
|
|
||||||
endforeach(_D)
|
|
||||||
|
|
||||||
if(WIN32)
|
if(WIN32)
|
||||||
foreach(PIP_LT ${PIP_LIBS_TARGETS})
|
foreach(PIP_LT ${PIP_LIBS_TARGETS})
|
||||||
|
|||||||
2
pip
2
pip
Submodule pip updated: 0302048afa...3386c7702c
Reference in New Issue
Block a user