Norod: Do not attempt to look for Qt5Widgets when building for iOS
Norod: Toolchain files get their SDKVER, DEVROOT and SDKROOT values from build.sh Norod: Removed deprecated CMAKE_FORCE_ Norod: Build shared libs is now set-able from a flag, so to be more extendable later Norod: .gitignore updatedpull/2045/head
parent
3ca6b10810
commit
14a1b9980e
|
@ -84,3 +84,9 @@ lib64/assimp-vc120-mt.exp
|
|||
xcuserdata
|
||||
|
||||
cmake-build-debug
|
||||
install_manifest.txt
|
||||
tools/assimp_qt_viewer/moc_glview.cpp
|
||||
tools/assimp_qt_viewer/moc_glview.cpp_parameters
|
||||
tools/assimp_qt_viewer/moc_mainwindow.cpp
|
||||
tools/assimp_qt_viewer/moc_mainwindow.cpp_parameters
|
||||
tools/assimp_qt_viewer/ui_mainwindow.h
|
||||
|
|
|
@ -425,9 +425,11 @@ IF ( ASSIMP_BUILD_ASSIMP_TOOLS )
|
|||
# Why here? Maybe user do not want Qt viewer and have no Qt.
|
||||
# Why assimp_qt_viewer/CMakeLists.txt still contain similar check?
|
||||
# Because viewer can be build independently of Assimp.
|
||||
FIND_PACKAGE(Qt5Widgets QUIET)
|
||||
FIND_PACKAGE(DevIL QUIET)
|
||||
FIND_PACKAGE(OpenGL QUIET)
|
||||
IF (NOT IOS)
|
||||
FIND_PACKAGE(Qt5Widgets QUIET)
|
||||
ENDIF (NOT IOS)
|
||||
FIND_PACKAGE(DevIL QUIET)
|
||||
IF ( Qt5Widgets_FOUND AND IL_FOUND AND OPENGL_FOUND)
|
||||
ADD_SUBDIRECTORY( tools/assimp_qt_viewer/ )
|
||||
ELSE()
|
||||
|
|
|
@ -3,15 +3,7 @@ INCLUDE(CMakeForceCompiler)
|
|||
SET (CMAKE_CROSSCOMPILING TRUE)
|
||||
SET (CMAKE_SYSTEM_NAME "Darwin")
|
||||
SET (CMAKE_SYSTEM_PROCESSOR "arm64")
|
||||
|
||||
SET (SDKVER "7.1")
|
||||
SET (DEVROOT "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain")
|
||||
SET (SDKROOT "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS${SDKVER}.sdk")
|
||||
SET (CC "${DEVROOT}/usr/bin/clang")
|
||||
SET (CXX "${DEVROOT}/usr/bin/clang++")
|
||||
|
||||
CMAKE_FORCE_C_COMPILER (${CC} LLVM)
|
||||
CMAKE_FORCE_CXX_COMPILER (${CXX} LLVM)
|
||||
SET (IOS TRUE)
|
||||
|
||||
SET (CMAKE_FIND_ROOT_PATH "${SDKROOT}" "${DEVROOT}")
|
||||
SET (CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
|
||||
|
|
|
@ -3,15 +3,7 @@ INCLUDE(CMakeForceCompiler)
|
|||
SET (CMAKE_CROSSCOMPILING TRUE)
|
||||
SET (CMAKE_SYSTEM_NAME "Darwin")
|
||||
SET (CMAKE_SYSTEM_PROCESSOR "armv6")
|
||||
|
||||
SET (SDKVER "7.1")
|
||||
SET (DEVROOT "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain")
|
||||
SET (SDKROOT "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS${SDKVER}.sdk")
|
||||
SET (CC "${DEVROOT}/usr/bin/clang")
|
||||
SET (CXX "${DEVROOT}/usr/bin/clang++")
|
||||
|
||||
CMAKE_FORCE_C_COMPILER (${CC} LLVM)
|
||||
CMAKE_FORCE_CXX_COMPILER (${CXX} LLVM)
|
||||
SET (IOS TRUE)
|
||||
|
||||
SET (CMAKE_FIND_ROOT_PATH "${SDKROOT}" "${DEVROOT}")
|
||||
SET (CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
|
||||
|
|
|
@ -3,15 +3,7 @@ INCLUDE(CMakeForceCompiler)
|
|||
SET (CMAKE_CROSSCOMPILING TRUE)
|
||||
SET (CMAKE_SYSTEM_NAME "Darwin")
|
||||
SET (CMAKE_SYSTEM_PROCESSOR "armv7s")
|
||||
|
||||
SET (SDKVER "7.1")
|
||||
SET (DEVROOT "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain")
|
||||
SET (SDKROOT "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS${SDKVER}.sdk")
|
||||
SET (CC "${DEVROOT}/usr/bin/clang")
|
||||
SET (CXX "${DEVROOT}/usr/bin/clang++")
|
||||
|
||||
CMAKE_FORCE_C_COMPILER (${CC} LLVM)
|
||||
CMAKE_FORCE_CXX_COMPILER (${CXX} LLVM)
|
||||
SET (IOS TRUE)
|
||||
|
||||
SET (CMAKE_FIND_ROOT_PATH "${SDKROOT}" "${DEVROOT}")
|
||||
SET (CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
|
||||
|
|
|
@ -3,15 +3,7 @@ INCLUDE(CMakeForceCompiler)
|
|||
SET (CMAKE_CROSSCOMPILING TRUE)
|
||||
SET (CMAKE_SYSTEM_NAME "Darwin")
|
||||
SET (CMAKE_SYSTEM_PROCESSOR "armv7")
|
||||
|
||||
SET (SDKVER "7.1")
|
||||
SET (DEVROOT "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain")
|
||||
SET (SDKROOT "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS${SDKVER}.sdk")
|
||||
SET (CC "${DEVROOT}/usr/bin/clang")
|
||||
SET (CXX "${DEVROOT}/usr/bin/clang++")
|
||||
|
||||
CMAKE_FORCE_C_COMPILER (${CC} LLVM)
|
||||
CMAKE_FORCE_CXX_COMPILER (${CXX} LLVM)
|
||||
SET (IOS TRUE)
|
||||
|
||||
SET (CMAKE_FIND_ROOT_PATH "${SDKROOT}" "${DEVROOT}")
|
||||
SET (CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
|
||||
|
|
|
@ -3,16 +3,7 @@ INCLUDE(CMakeForceCompiler)
|
|||
SET (CMAKE_CROSSCOMPILING TRUE)
|
||||
SET (CMAKE_SYSTEM_NAME "Darwin")
|
||||
SET (CMAKE_SYSTEM_PROCESSOR "i386")
|
||||
|
||||
SET (SDKVER "7.1")
|
||||
|
||||
SET (DEVROOT "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain")
|
||||
SET (SDKROOT "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator${SDKVER}.sdk")
|
||||
SET (CC "${DEVROOT}/usr/bin/clang")
|
||||
SET (CXX "${DEVROOT}/usr/bin/clang++")
|
||||
|
||||
CMAKE_FORCE_C_COMPILER (${CC} LLVM)
|
||||
CMAKE_FORCE_CXX_COMPILER (${CXX} LLVM)
|
||||
SET (IOS TRUE)
|
||||
|
||||
SET (CMAKE_FIND_ROOT_PATH "${SDKROOT}" "${DEVROOT}")
|
||||
SET (CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
|
||||
|
|
|
@ -3,16 +3,7 @@ INCLUDE(CMakeForceCompiler)
|
|||
SET (CMAKE_CROSSCOMPILING TRUE)
|
||||
SET (CMAKE_SYSTEM_NAME "Darwin")
|
||||
SET (CMAKE_SYSTEM_PROCESSOR "x86_64")
|
||||
|
||||
SET (SDKVER "7.1")
|
||||
|
||||
SET (DEVROOT "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain")
|
||||
SET (SDKROOT "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator${SDKVER}.sdk")
|
||||
SET (CC "${DEVROOT}/usr/bin/clang")
|
||||
SET (CXX "${DEVROOT}/usr/bin/clang++")
|
||||
|
||||
CMAKE_FORCE_C_COMPILER (${CC} LLVM)
|
||||
CMAKE_FORCE_CXX_COMPILER (${CXX} LLVM)
|
||||
SET (IOS TRUE)
|
||||
|
||||
SET (CMAKE_FIND_ROOT_PATH "${SDKROOT}" "${DEVROOT}")
|
||||
SET (CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
|
||||
|
|
|
@ -12,6 +12,8 @@ BUILD_DIR="./lib/iOS"
|
|||
IOS_SDK_VERSION=$(xcodebuild -version -sdk iphoneos | grep SDKVersion | cut -f2 -d ':' | tr -d '[[:space:]]')
|
||||
###################################
|
||||
|
||||
BUILD_SHARED_LIBS="OFF"
|
||||
|
||||
################################################
|
||||
# Minimum iOS deployment target version
|
||||
################################################
|
||||
|
@ -59,7 +61,7 @@ build_arch()
|
|||
|
||||
rm CMakeCache.txt
|
||||
|
||||
cmake -G 'Unix Makefiles' -DCMAKE_TOOLCHAIN_FILE=./port/iOS/IPHONEOS_$(echo $1 | tr '[:lower:]' '[:upper:]')_TOOLCHAIN.cmake -DENABLE_BOOST_WORKAROUND=ON -DBUILD_SHARED_LIBS=OFF
|
||||
cmake -G 'Unix Makefiles' -DCMAKE_TOOLCHAIN_FILE=./port/iOS/IPHONEOS_$(echo $1 | tr '[:lower:]' '[:upper:]')_TOOLCHAIN.cmake -DENABLE_BOOST_WORKAROUND=ON -DBUILD_SHARED_LIBS=$BUILD_SHARED_LIBS
|
||||
|
||||
echo "[!] Building $1 library"
|
||||
|
||||
|
|
Loading…
Reference in New Issue