aboutsummaryrefslogtreecommitdiff
path: root/PxShared/src/compiler/cmake/Android/PxPvdSDK.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'PxShared/src/compiler/cmake/Android/PxPvdSDK.cmake')
-rw-r--r--PxShared/src/compiler/cmake/Android/PxPvdSDK.cmake44
1 files changed, 44 insertions, 0 deletions
diff --git a/PxShared/src/compiler/cmake/Android/PxPvdSDK.cmake b/PxShared/src/compiler/cmake/Android/PxPvdSDK.cmake
new file mode 100644
index 0000000..f517efc
--- /dev/null
+++ b/PxShared/src/compiler/cmake/Android/PxPvdSDK.cmake
@@ -0,0 +1,44 @@
+#
+# 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;
+)
+
+if(${CMAKE_BUILD_TYPE_LOWERCASE} STREQUAL "debug")
+ LIST(APPEND PXPVDSDK_COMPILE_DEFS
+ ${PXSHARED_ANDROID_DEBUG_COMPILE_DEFS}
+ )
+elseif(${CMAKE_BUILD_TYPE_LOWERCASE} STREQUAL "checked")
+ LIST(APPEND PXPVDSDK_COMPILE_DEFS
+ ${PXSHARED_ANDROID_CHECKED_COMPILE_DEFS}
+ )
+elseif(${CMAKE_BUILD_TYPE_LOWERCASE} STREQUAL "profile")
+ LIST(APPEND PXPVDSDK_COMPILE_DEFS
+ ${PXSHARED_ANDROID_PROFILE_COMPILE_DEFS}
+ )
+elseif(${CMAKE_BUILD_TYPE_LOWERCASE} STREQUAL release)
+ LIST(APPEND PXPVDSDK_COMPILE_DEFS
+ ${PXSHARED_ANDROID_RELEASE_COMPILE_DEFS}
+ )
+else(${CMAKE_BUILD_TYPE_LOWERCASE} STREQUAL "debug")
+ MESSAGE(FATAL_ERROR "Unknown configuration ${CMAKE_BUILD_TYPE}")
+endif(${CMAKE_BUILD_TYPE_LOWERCASE} STREQUAL "debug")
+
+# 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)