diff options
Diffstat (limited to 'PxShared/src/compiler/cmake/Android')
| -rw-r--r-- | PxShared/src/compiler/cmake/Android/CMakeLists.txt | 46 | ||||
| -rw-r--r-- | PxShared/src/compiler/cmake/Android/PsFastXml.cmake | 24 | ||||
| -rw-r--r-- | PxShared/src/compiler/cmake/Android/PxFoundation.cmake | 46 | ||||
| -rw-r--r-- | PxShared/src/compiler/cmake/Android/PxPvdSDK.cmake | 29 | ||||
| -rw-r--r-- | PxShared/src/compiler/cmake/Android/PxTask.cmake | 24 |
5 files changed, 0 insertions, 169 deletions
diff --git a/PxShared/src/compiler/cmake/Android/CMakeLists.txt b/PxShared/src/compiler/cmake/Android/CMakeLists.txt deleted file mode 100644 index 08757c1..0000000 --- a/PxShared/src/compiler/cmake/Android/CMakeLists.txt +++ /dev/null @@ -1,46 +0,0 @@ -cmake_minimum_required(VERSION 3.3) -PROJECT(PxShared ) -include(../common/CMakeLists.txt) - -STRING(TOLOWER "${CMAKE_BUILD_TYPE}" CMAKE_BUILD_TYPE_LOWERCASE) - -IF(NOT DEFINED TARGET_BUILD_PLATFORM) # Not defined, default to android - SET(TARGET_BUILD_PLATFORM "android") -ENDIF() - -SET(PLATFORM_LIST android) - -IF (NOT ${TARGET_BUILD_PLATFORM} IN_LIST PLATFORM_LIST) - MESSAGE(FATAL_ERROR "Invalid platform:" ${TARGET_BUILD_PLATFORM}) -ENDIF() - -if(${ANDROID_ABI} STREQUAL "armeabi-v7a") - SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -fno-rtti -fno-exceptions -ffunction-sections -fdata-sections -funwind-tables -fomit-frame-pointer -funswitch-loops -finline-limit=300 -fno-strict-aliasing -fstack-protector -Wno-invalid-offsetof ") -elseif(${ANDROID_ABI} STREQUAL "armeabi-v7a with NEON") - SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -fno-rtti -ffast-math -fno-exceptions -ffunction-sections -funwind-tables -fomit-frame-pointer -funswitch-loops -finline-limit=300 -fno-strict-aliasing -fstack-protector -Wno-invalid-offsetof ") -elseif(${ANDROID_ABI} STREQUAL "arm64-v8a") - SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -fno-rtti -fno-exceptions -ffunction-sections -fdata-sections -Wno-invalid-offsetof ") -elseif(${ANDROID_ABI} STREQUAL "x86") - SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -fno-rtti -fno-exceptions -ffunction-sections -fdata-sections -Wno-invalid-offsetof -fpack-struct=8 -malign-double ") -elseif(${ANDROID_ABI} STREQUAL "x86_64") - SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -fno-rtti -fno-exceptions -ffunction-sections -fdata-sections -Wno-invalid-offsetof -mstackrealign -msse3 ") -endif() - -SET(CMAKE_CXX_FLAGS_DEBUG "-O0 -g") -SET(CMAKE_CXX_FLAGS_CHECKED "-O3") -SET(CMAKE_CXX_FLAGS_PROFILE "-O3") -SET(CMAKE_CXX_FLAGS_RELEASE "-O3") - -SET(PXSHARED_ANDROID_COMPILE_DEFS ANDROID;_LIB;__STDC_LIMIT_MACROS;) -SET(PXSHARED_ANDROID_DEBUG_COMPILE_DEFS _DEBUG;PX_DEBUG=1;PX_CHECKED=1) -SET(PXSHARED_ANDROID_CHECKED_COMPILE_DEFS NDEBUG;PX_CHECKED=1) -SET(PXSHARED_ANDROID_PROFILE_COMPILE_DEFS NDEBUG;PX_PROFILE=1) -SET(PXSHARED_ANDROID_RELEASE_COMPILE_DEFS NDEBUG) - -# NOTE: PxCudaContextManager excluded on this platform - -# Include project cmake files here -INCLUDE(PxFoundation.cmake) -INCLUDE(PsFastXml.cmake) -INCLUDE(PxPvdSDK.cmake) -INCLUDE(PxTask.cmake) diff --git a/PxShared/src/compiler/cmake/Android/PsFastXml.cmake b/PxShared/src/compiler/cmake/Android/PsFastXml.cmake deleted file mode 100644 index f5dce60..0000000 --- a/PxShared/src/compiler/cmake/Android/PsFastXml.cmake +++ /dev/null @@ -1,24 +0,0 @@ -# -# Build PsFastXml -# - -SET(PXSHARED_SOURCE_DIR ${PROJECT_SOURCE_DIR}/../../../../src) - -SET(LL_SOURCE_DIR ${PXSHARED_SOURCE_DIR}/fastxml) - -# Use generator expressions to set config specific preprocessor definitions -SET(PSFASTXML_COMPILE_DEFS - # Common to all configurations - ${PXSHARED_ANDROID_COMPILE_DEFS};PX_FOUNDATION_DLL=0;PxShared_STATIC_LIB; - - $<$<CONFIG:debug>:${PXSHARED_ANDROID_DEBUG_COMPILE_DEFS};> - $<$<CONFIG:checked>:${PXSHARED_ANDROID_CHECKED_COMPILE_DEFS};> - $<$<CONFIG:profile>:${PXSHARED_ANDROID_PROFILE_COMPILE_DEFS};> - $<$<CONFIG:release>:${PXSHARED_ANDROID_RELEASE_COMPILE_DEFS};> -) - -# include PsFastXml common -INCLUDE(../common/PsFastXml.cmake) - -# enable -fPIC so we can link static libs with the editor -SET_TARGET_PROPERTIES(PsFastXml PROPERTIES POSITION_INDEPENDENT_CODE TRUE) diff --git a/PxShared/src/compiler/cmake/Android/PxFoundation.cmake b/PxShared/src/compiler/cmake/Android/PxFoundation.cmake deleted file mode 100644 index d069e41..0000000 --- a/PxShared/src/compiler/cmake/Android/PxFoundation.cmake +++ /dev/null @@ -1,46 +0,0 @@ -# -# Build PxFoundation -# - -SET(PXSHARED_SOURCE_DIR ${PROJECT_SOURCE_DIR}/../../../../src) - -SET(LL_SOURCE_DIR ${PXSHARED_SOURCE_DIR}/foundation) - -SET(PXFOUNDATION_LIBTYPE STATIC) - -SET(PXFOUNDATION_PLATFORM_FILES - ${LL_SOURCE_DIR}/src/unix/PsUnixAtomic.cpp - ${LL_SOURCE_DIR}/src/unix/PsUnixCpu.cpp - ${LL_SOURCE_DIR}/src/unix/PsUnixFPU.cpp - ${LL_SOURCE_DIR}/src/unix/PsUnixMutex.cpp - ${LL_SOURCE_DIR}/src/unix/PsUnixPrintString.cpp - ${LL_SOURCE_DIR}/src/unix/PsUnixSList.cpp - ${LL_SOURCE_DIR}/src/unix/PsUnixSocket.cpp - ${LL_SOURCE_DIR}/src/unix/PsUnixSync.cpp - ${LL_SOURCE_DIR}/src/unix/PsUnixThread.cpp - ${LL_SOURCE_DIR}/src/unix/PsUnixTime.cpp - ${ANDROID_NDK}/sources/android/cpufeatures/cpu-features.c -) - -SET(PXFOUNDATION_PLATFORM_INCLUDES - ${LL_SOURCE_DIR}/include/linux - ${ANDROID_NDK}/sources/android/cpufeatures -) - -SET(PXFOUNDATION_COMPILE_DEFS - # Common to all configurations - ${PXSHARED_ANDROID_COMPILE_DEFS};PxShared_STATIC_LIB; - - $<$<CONFIG:debug>:${PXSHARED_ANDROID_DEBUG_COMPILE_DEFS};> - $<$<CONFIG:checked>:${PXSHARED_ANDROID_CHECKED_COMPILE_DEFS};> - $<$<CONFIG:profile>:${PXSHARED_ANDROID_PROFILE_COMPILE_DEFS};> - $<$<CONFIG:release>:${PXSHARED_ANDROID_RELEASE_COMPILE_DEFS};> -) - -# include PxFoundation common -INCLUDE(../common/PxFoundation.cmake) - -TARGET_LINK_LIBRARIES(PxFoundation PUBLIC log) - -# enable -fPIC so we can link static libs with the editor -SET_TARGET_PROPERTIES(PxFoundation PROPERTIES POSITION_INDEPENDENT_CODE TRUE) diff --git a/PxShared/src/compiler/cmake/Android/PxPvdSDK.cmake b/PxShared/src/compiler/cmake/Android/PxPvdSDK.cmake deleted file mode 100644 index ea39cdb..0000000 --- a/PxShared/src/compiler/cmake/Android/PxPvdSDK.cmake +++ /dev/null @@ -1,29 +0,0 @@ -# -# Build PxPvdSDK -# - -SET(PXSHARED_SOURCE_DIR ${PROJECT_SOURCE_DIR}/../../../../src) - -SET(LL_SOURCE_DIR ${PXSHARED_SOURCE_DIR}/pvd) - -SET(PXPVDSDK_LIBTYPE STATIC) - -# Use generator expressions to set config specific preprocessor definitions -SET(PXPVDSDK_COMPILE_DEFS - # Common to all configurations - ${PXSHARED_ANDROID_COMPILE_DEFS};PxShared_STATIC_LIB; - - $<$<CONFIG:debug>:${PXSHARED_ANDROID_DEBUG_COMPILE_DEFS};> - $<$<CONFIG:checked>:${PXSHARED_ANDROID_CHECKED_COMPILE_DEFS};> - $<$<CONFIG:profile>:${PXSHARED_ANDROID_PROFILE_COMPILE_DEFS};> - $<$<CONFIG:release>:${PXSHARED_ANDROID_RELEASE_COMPILE_DEFS};> -) - -# include PxPvdSDK common -INCLUDE(../common/PxPvdSDK.cmake) - -# Add linked libraries -TARGET_LINK_LIBRARIES(PxPvdSDK PRIVATE PxFoundation) - -# enable -fPIC so we can link static libs with the editor -SET_TARGET_PROPERTIES(PxPvdSDK PROPERTIES POSITION_INDEPENDENT_CODE TRUE) diff --git a/PxShared/src/compiler/cmake/Android/PxTask.cmake b/PxShared/src/compiler/cmake/Android/PxTask.cmake deleted file mode 100644 index eabe075..0000000 --- a/PxShared/src/compiler/cmake/Android/PxTask.cmake +++ /dev/null @@ -1,24 +0,0 @@ -# -# Build PxTask -# - -SET(PXSHARED_SOURCE_DIR ${PROJECT_SOURCE_DIR}/../../../../src) - -SET(LL_SOURCE_DIR ${PXSHARED_SOURCE_DIR}/task) - -SET(PXTASK_COMPILE_DEFS - ${PXSHARED_ANDROID_COMPILE_DEFS};PxShared_STATIC_LIB; - - $<$<CONFIG:debug>:${PXSHARED_ANDROID_DEBUG_COMPILE_DEFS};> - $<$<CONFIG:checked>:${PXSHARED_ANDROID_CHECKED_COMPILE_DEFS};> - $<$<CONFIG:profile>:${PXSHARED_ANDROID_PROFILE_COMPILE_DEFS};> - $<$<CONFIG:release>:${PXSHARED_ANDROID_RELEASE_COMPILE_DEFS};> -) - -SET(PXTASK_LIBTYPE OBJECT) - -# include PxTask common -INCLUDE(../common/PxTask.cmake) - -# enable -fPIC so we can link static libs with the editor -SET_TARGET_PROPERTIES(PxTask PROPERTIES POSITION_INDEPENDENT_CODE TRUE) |