diff options
| author | santoleri-nvidia <[email protected]> | 2017-02-24 19:48:22 +0100 |
|---|---|---|
| committer | santoleri-nvidia <[email protected]> | 2017-02-24 19:48:22 +0100 |
| commit | f930643a042334fe490e9bdc3fecd9afd1799cde (patch) | |
| tree | 6e4df6aec15a5446cc0ebd92d92071fe43f496d2 /sdk | |
| parent | Updating to [email protected] and blast_tools_and_samples... (diff) | |
| parent | adding linux source (diff) | |
| download | blast-f930643a042334fe490e9bdc3fecd9afd1799cde.tar.xz blast-f930643a042334fe490e9bdc3fecd9afd1799cde.zip | |
adding linux support
Diffstat (limited to 'sdk')
| -rw-r--r-- | sdk/compiler/cmake/linux/CMakeLists.txt | 27 | ||||
| -rw-r--r-- | sdk/compiler/cmake/linux/NvBlast.cmake | 21 | ||||
| -rw-r--r-- | sdk/compiler/cmake/linux/NvBlastExtAuthoring.cmake | 23 | ||||
| -rw-r--r-- | sdk/compiler/cmake/linux/NvBlastExtConverterLL.cmake | 23 | ||||
| -rw-r--r-- | sdk/compiler/cmake/linux/NvBlastExtImport.cmake | 23 | ||||
| -rw-r--r-- | sdk/compiler/cmake/linux/NvBlastExtPhysX.cmake | 23 | ||||
| -rw-r--r-- | sdk/compiler/cmake/linux/NvBlastExtSerialization.cmake | 21 | ||||
| -rw-r--r-- | sdk/compiler/cmake/linux/NvBlastExtSerializationLL.cmake | 21 | ||||
| -rw-r--r-- | sdk/compiler/cmake/linux/NvBlastExtShaders.cmake | 23 | ||||
| -rw-r--r-- | sdk/compiler/cmake/linux/NvBlastTk.cmake | 22 |
10 files changed, 227 insertions, 0 deletions
diff --git a/sdk/compiler/cmake/linux/CMakeLists.txt b/sdk/compiler/cmake/linux/CMakeLists.txt new file mode 100644 index 0000000..440351e --- /dev/null +++ b/sdk/compiler/cmake/linux/CMakeLists.txt @@ -0,0 +1,27 @@ +#Platform specific compile flags and project includes + +SET(CMAKE_CXX_FLAGS "-Wextra -Werror -pedantic -fdiagnostics-show-option -fno-rtti -fno-exceptions -m64 -msse2 -mfpmath=sse -fpic -ffast-math -fno-exceptions -fno-rtti -Wno-invalid-offsetof -Wno-unknown-pragmas -std=c++0x") + +SET(CMAKE_CXX_FLAGS_DEBUG "-O0 -g3 -gdwarf-2") +SET(CMAKE_CXX_FLAGS_CHECKED "-O3 -g3 -gdwarf-2 -fno-strict-aliasing") +SET(CMAKE_CXX_FLAGS_PROFILE "-O3 -fno-strict-aliasing") +SET(CMAKE_CXX_FLAGS_RELEASE "-O3 -fno-strict-aliasing") + +SET(BLAST_SLN_COMPILE_DEFS ) + +SET(BLAST_SLN_DEBUG_COMPILE_DEFS _DEBUG;NV_DEBUG=1;) +SET(BLAST_SLN_CHECKED_COMPILE_DEFS NDEBUG;NV_CHECKED=1;) +SET(BLAST_SLN_PROFILE_COMPILE_DEFS NDEBUG;NV_PROFILE=1;) +SET(BLAST_SLN_RELEASE_COMPILE_DEFS NDEBUG;) + +# Include all of the projects +INCLUDE(${PROJECT_CMAKE_FILES_DIR}/NvBlast.cmake) +INCLUDE(${PROJECT_CMAKE_FILES_DIR}/NvBlastTk.cmake) +INCLUDE(${PROJECT_CMAKE_FILES_DIR}/NvBlastExtConverterLL.cmake) +INCLUDE(${PROJECT_CMAKE_FILES_DIR}/NvBlastExtShaders.cmake) +INCLUDE(${PROJECT_CMAKE_FILES_DIR}/NvBlastExtPhysX.cmake) +INCLUDE(${PROJECT_CMAKE_FILES_DIR}/NvBlastExtAuthoring.cmake) +#INCLUDE(${PROJECT_CMAKE_FILES_DIR}/NvBlastExtImport.cmake) +#INCLUDE(${PROJECT_CMAKE_FILES_DIR}/NvBlastExtSerialization.cmake) +#INCLUDE(${PROJECT_CMAKE_FILES_DIR}/NvBlastExtSerializationLL.cmake) + diff --git a/sdk/compiler/cmake/linux/NvBlast.cmake b/sdk/compiler/cmake/linux/NvBlast.cmake new file mode 100644 index 0000000..63ebeea --- /dev/null +++ b/sdk/compiler/cmake/linux/NvBlast.cmake @@ -0,0 +1,21 @@ +# +# Build NvBlast Linux +# + +SET(BLAST_PLATFORM_COMMON_FILES +) + +SET(BLAST_PLATFORM_INCLUDES +) + +SET(BLAST_COMPILE_DEFS + # Common to all configurations + ${BLAST_SLN_COMPILE_DEFS}; + + $<$<CONFIG:debug>:${BLAST_SLN_DEBUG_COMPILE_DEFS}> + $<$<CONFIG:checked>:${BLAST_SLN_CHECKED_COMPILE_DEFS}> + $<$<CONFIG:profile>:${BLAST_SLN_PROFILE_COMPILE_DEFS}> + $<$<CONFIG:release>:${BLAST_SLN_RELEASE_COMPILE_DEFS}> +) + +SET(BLAST_LIB_TYPE STATIC) diff --git a/sdk/compiler/cmake/linux/NvBlastExtAuthoring.cmake b/sdk/compiler/cmake/linux/NvBlastExtAuthoring.cmake new file mode 100644 index 0000000..c99653b --- /dev/null +++ b/sdk/compiler/cmake/linux/NvBlastExtAuthoring.cmake @@ -0,0 +1,23 @@ +# +# Build NvBlast Linux +# + +SET(BLASTEXT_PLATFORM_COMMON_FILES +) + +SET(BLASTEXT_PLATFORM_INCLUDES +) + +SET(BLASTEXT_COMPILE_DEFS + # Common to all configurations + ${BLAST_SLN_COMPILE_DEFS}; + + $<$<CONFIG:debug>:${BLAST_SLN_DEBUG_COMPILE_DEFS}> + $<$<CONFIG:checked>:${BLAST_SLN_CHECKED_COMPILE_DEFS}> + $<$<CONFIG:profile>:${BLAST_SLN_PROFILE_COMPILE_DEFS}> + $<$<CONFIG:release>:${BLAST_SLN_RELEASE_COMPILE_DEFS}> +) + +SET(BLAST_EXT_SHARED_LIB_TYPE STATIC) + +SET(BLASTEXT_PLATFORM_COMPILE_OPTIONS "-Wno-maybe-uninitialized") diff --git a/sdk/compiler/cmake/linux/NvBlastExtConverterLL.cmake b/sdk/compiler/cmake/linux/NvBlastExtConverterLL.cmake new file mode 100644 index 0000000..d37a1dc --- /dev/null +++ b/sdk/compiler/cmake/linux/NvBlastExtConverterLL.cmake @@ -0,0 +1,23 @@ +# +# Build NvBlast Linux +# + +SET(BLASTEXT_PLATFORM_COMMON_FILES +) + +SET(BLASTEXT_PLATFORM_INCLUDES +) + +SET(BLASTEXT_COMPILE_DEFS + # Common to all configurations + ${BLAST_SLN_COMPILE_DEFS}; + + $<$<CONFIG:debug>:${BLAST_SLN_DEBUG_COMPILE_DEFS}> + $<$<CONFIG:checked>:${BLAST_SLN_CHECKED_COMPILE_DEFS}> + $<$<CONFIG:profile>:${BLAST_SLN_PROFILE_COMPILE_DEFS}> + $<$<CONFIG:release>:${BLAST_SLN_RELEASE_COMPILE_DEFS}> +) + +SET(BLAST_EXT_SHARED_LIB_TYPE STATIC) + +SET(BLASTEXT_PLATFORM_COMPILE_OPTIONS "-Wno-unknown-pragmas") diff --git a/sdk/compiler/cmake/linux/NvBlastExtImport.cmake b/sdk/compiler/cmake/linux/NvBlastExtImport.cmake new file mode 100644 index 0000000..d37a1dc --- /dev/null +++ b/sdk/compiler/cmake/linux/NvBlastExtImport.cmake @@ -0,0 +1,23 @@ +# +# Build NvBlast Linux +# + +SET(BLASTEXT_PLATFORM_COMMON_FILES +) + +SET(BLASTEXT_PLATFORM_INCLUDES +) + +SET(BLASTEXT_COMPILE_DEFS + # Common to all configurations + ${BLAST_SLN_COMPILE_DEFS}; + + $<$<CONFIG:debug>:${BLAST_SLN_DEBUG_COMPILE_DEFS}> + $<$<CONFIG:checked>:${BLAST_SLN_CHECKED_COMPILE_DEFS}> + $<$<CONFIG:profile>:${BLAST_SLN_PROFILE_COMPILE_DEFS}> + $<$<CONFIG:release>:${BLAST_SLN_RELEASE_COMPILE_DEFS}> +) + +SET(BLAST_EXT_SHARED_LIB_TYPE STATIC) + +SET(BLASTEXT_PLATFORM_COMPILE_OPTIONS "-Wno-unknown-pragmas") diff --git a/sdk/compiler/cmake/linux/NvBlastExtPhysX.cmake b/sdk/compiler/cmake/linux/NvBlastExtPhysX.cmake new file mode 100644 index 0000000..22fd8ad --- /dev/null +++ b/sdk/compiler/cmake/linux/NvBlastExtPhysX.cmake @@ -0,0 +1,23 @@ +# +# Build NvBlast Linux +# + +SET(BLASTEXT_PLATFORM_COMMON_FILES +) + +SET(BLASTEXT_PLATFORM_INCLUDES +) + +SET(BLASTEXT_COMPILE_DEFS + # Common to all configurations + ${BLAST_SLN_COMPILE_DEFS}; + + $<$<CONFIG:debug>:${BLAST_SLN_DEBUG_COMPILE_DEFS}> + $<$<CONFIG:checked>:${BLAST_SLN_CHECKED_COMPILE_DEFS}> + $<$<CONFIG:profile>:${BLAST_SLN_PROFILE_COMPILE_DEFS}> + $<$<CONFIG:release>:${BLAST_SLN_RELEASE_COMPILE_DEFS}> +) + +SET(BLASTEXT_PHYSX_LIBTYPE STATIC) + +SET(BLASTEXT_PLATFORM_COMPILE_OPTIONS "-Wno-unknown-pragmas" "-Wno-maybe-uninitialized") diff --git a/sdk/compiler/cmake/linux/NvBlastExtSerialization.cmake b/sdk/compiler/cmake/linux/NvBlastExtSerialization.cmake new file mode 100644 index 0000000..a8bc1cf --- /dev/null +++ b/sdk/compiler/cmake/linux/NvBlastExtSerialization.cmake @@ -0,0 +1,21 @@ +# +# Build NvBlastExtSerialization Linux +# + +SET(BLASTEXTSERIALIZATION_PLATFORM_COMMON_FILES +) + +SET(BLASTEXTSERIALIZATION_PLATFORM_INCLUDES +) + +SET(BLASTEXTSERIALIZATION_COMPILE_DEFS + # Common to all configurations + ${BLAST_SLN_COMPILE_DEFS}; + + $<$<CONFIG:debug>:${BLAST_SLN_DEBUG_COMPILE_DEFS}> + $<$<CONFIG:checked>:${BLAST_SLN_CHECKED_COMPILE_DEFS}> + $<$<CONFIG:profile>:${BLAST_SLN_PROFILE_COMPILE_DEFS}> + $<$<CONFIG:release>:${BLAST_SLN_RELEASE_COMPILE_DEFS}> +) + +SET(BLASTEXTSERIALIZATION_COMPILE_OPTIONS "") diff --git a/sdk/compiler/cmake/linux/NvBlastExtSerializationLL.cmake b/sdk/compiler/cmake/linux/NvBlastExtSerializationLL.cmake new file mode 100644 index 0000000..a8bc1cf --- /dev/null +++ b/sdk/compiler/cmake/linux/NvBlastExtSerializationLL.cmake @@ -0,0 +1,21 @@ +# +# Build NvBlastExtSerialization Linux +# + +SET(BLASTEXTSERIALIZATION_PLATFORM_COMMON_FILES +) + +SET(BLASTEXTSERIALIZATION_PLATFORM_INCLUDES +) + +SET(BLASTEXTSERIALIZATION_COMPILE_DEFS + # Common to all configurations + ${BLAST_SLN_COMPILE_DEFS}; + + $<$<CONFIG:debug>:${BLAST_SLN_DEBUG_COMPILE_DEFS}> + $<$<CONFIG:checked>:${BLAST_SLN_CHECKED_COMPILE_DEFS}> + $<$<CONFIG:profile>:${BLAST_SLN_PROFILE_COMPILE_DEFS}> + $<$<CONFIG:release>:${BLAST_SLN_RELEASE_COMPILE_DEFS}> +) + +SET(BLASTEXTSERIALIZATION_COMPILE_OPTIONS "") diff --git a/sdk/compiler/cmake/linux/NvBlastExtShaders.cmake b/sdk/compiler/cmake/linux/NvBlastExtShaders.cmake new file mode 100644 index 0000000..d37a1dc --- /dev/null +++ b/sdk/compiler/cmake/linux/NvBlastExtShaders.cmake @@ -0,0 +1,23 @@ +# +# Build NvBlast Linux +# + +SET(BLASTEXT_PLATFORM_COMMON_FILES +) + +SET(BLASTEXT_PLATFORM_INCLUDES +) + +SET(BLASTEXT_COMPILE_DEFS + # Common to all configurations + ${BLAST_SLN_COMPILE_DEFS}; + + $<$<CONFIG:debug>:${BLAST_SLN_DEBUG_COMPILE_DEFS}> + $<$<CONFIG:checked>:${BLAST_SLN_CHECKED_COMPILE_DEFS}> + $<$<CONFIG:profile>:${BLAST_SLN_PROFILE_COMPILE_DEFS}> + $<$<CONFIG:release>:${BLAST_SLN_RELEASE_COMPILE_DEFS}> +) + +SET(BLAST_EXT_SHARED_LIB_TYPE STATIC) + +SET(BLASTEXT_PLATFORM_COMPILE_OPTIONS "-Wno-unknown-pragmas") diff --git a/sdk/compiler/cmake/linux/NvBlastTk.cmake b/sdk/compiler/cmake/linux/NvBlastTk.cmake new file mode 100644 index 0000000..4f70825 --- /dev/null +++ b/sdk/compiler/cmake/linux/NvBlastTk.cmake @@ -0,0 +1,22 @@ +# +# Build NvBlastTk Linux +# + +SET(BLASTTK_PLATFORM_COMMON_FILES +) + +SET(BLASTTK_PLATFORM_INCLUDES +) + +SET(BLASTTK_COMPILE_DEFS + # Common to all configurations + ${BLAST_SLN_COMPILE_DEFS} + + $<$<CONFIG:debug>:${BLAST_SLN_DEBUG_COMPILE_DEFS}> + $<$<CONFIG:checked>:${BLAST_SLN_CHECKED_COMPILE_DEFS}> + $<$<CONFIG:profile>:${BLAST_SLN_PROFILE_COMPILE_DEFS}> + $<$<CONFIG:release>:${BLAST_SLN_RELEASE_COMPILE_DEFS}> +) + +SET(BLASTTK_LIBTYPE "STATIC") + |