diff options
Diffstat (limited to 'PxShared/src/compiler/cmake/html5/PxFoundation.cmake')
| -rw-r--r-- | PxShared/src/compiler/cmake/html5/PxFoundation.cmake | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/PxShared/src/compiler/cmake/html5/PxFoundation.cmake b/PxShared/src/compiler/cmake/html5/PxFoundation.cmake new file mode 100644 index 0000000..a78e4e6 --- /dev/null +++ b/PxShared/src/compiler/cmake/html5/PxFoundation.cmake @@ -0,0 +1,41 @@ +# +# 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 +) + +SET(PXFOUNDATION_PLATFORM_INCLUDES + $ENV{EMSCRIPTEN}/system/include + ${LL_SOURCE_DIR}/include/unix +) + +SET(PXFOUNDATION_COMPILE_DEFS + + # Common to all configurations + ${PXSHARED_HTML5_COMPILE_DEFS} + + $<$<CONFIG:debug>:${PXSHARED_HTML5_DEBUG_COMPILE_DEFS}> + $<$<CONFIG:checked>:${PXSHARED_HTML5_CHECKED_COMPILE_DEFS}> + $<$<CONFIG:profile>:${PXSHARED_HTML5_PROFILE_COMPILE_DEFS}> + $<$<CONFIG:release>:${PXSHARED_HTML5_RELEASE_COMPILE_DEFS}> +) + +# include PxFoundation common +INCLUDE(../common/PxFoundation.cmake)
\ No newline at end of file |