diff options
| author | Bryan Galdrikian <[email protected]> | 2017-02-24 12:00:12 -0800 |
|---|---|---|
| committer | Bryan Galdrikian <[email protected]> | 2017-02-24 12:00:12 -0800 |
| commit | 29db152546cfad9e27d4bd0eb18bda456fab1647 (patch) | |
| tree | a931e92121f295c186a31649a8ba70919a18bdae /test | |
| parent | Updating README.md to reflect linux addition (diff) | |
| parent | adding linux support (diff) | |
| download | blast-29db152546cfad9e27d4bd0eb18bda456fab1647.tar.xz blast-29db152546cfad9e27d4bd0eb18bda456fab1647.zip | |
Merge branch 'master' of https://github.com/NVIDIAGameWorks/Blast
Diffstat (limited to 'test')
| -rw-r--r-- | test/compiler/cmake/linux/BlastPerfTests.cmake | 24 | ||||
| -rw-r--r-- | test/compiler/cmake/linux/BlastUnitTests.cmake | 24 | ||||
| -rw-r--r-- | test/compiler/cmake/linux/CMakeLists.txt | 25 | ||||
| -rw-r--r-- | test/data/linux64/PerfTest_linux64.cal | 0 |
4 files changed, 73 insertions, 0 deletions
diff --git a/test/compiler/cmake/linux/BlastPerfTests.cmake b/test/compiler/cmake/linux/BlastPerfTests.cmake new file mode 100644 index 0000000..1ef9eb8 --- /dev/null +++ b/test/compiler/cmake/linux/BlastPerfTests.cmake @@ -0,0 +1,24 @@ +# +# Build BlastPerfTests PS4 +# + +SET(BLASTPERFTESTS_PLATFORM_COMMON_FILES +) + +SET(BLASTPERFTESTS_PLATFORM_INCLUDES +) + +SET(BLASTPERFTESTS_COMPILE_DEFS + # Common to all configurations + ${BLASTTESTS_SLN_COMPILE_DEFS} + + $<$<CONFIG:debug>:${BLASTTESTS_SLN_DEBUG_COMPILE_DEFS}> + $<$<CONFIG:checked>:${BLASTTESTS_SLN_CHECKED_COMPILE_DEFS}> + $<$<CONFIG:profile>:${BLASTTESTS_SLN_PROFILE_COMPILE_DEFS}> + $<$<CONFIG:release>:${BLASTTESTS_SLN_RELEASE_COMPILE_DEFS}> +) + +SET(BLASTPERFTESTS_PLATFORM_LINKED_LIBS + -lpthread + -lm +) diff --git a/test/compiler/cmake/linux/BlastUnitTests.cmake b/test/compiler/cmake/linux/BlastUnitTests.cmake new file mode 100644 index 0000000..e8a333a --- /dev/null +++ b/test/compiler/cmake/linux/BlastUnitTests.cmake @@ -0,0 +1,24 @@ +# +# Build BlastUnitTests PS4 +# + +SET(BLASTUNITTESTS_PLATFORM_COMMON_FILES +) + +SET(BLASTUNITTESTS_PLATFORM_INCLUDES +) + +SET(BLASTUNITTESTS_COMPILE_DEFS + # Common to all configurations + ${BLASTTESTS_SLN_COMPILE_DEFS} + + $<$<CONFIG:debug>:${BLASTTESTS_SLN_DEBUG_COMPILE_DEFS}> + $<$<CONFIG:checked>:${BLASTTESTS_SLN_CHECKED_COMPILE_DEFS}> + $<$<CONFIG:profile>:${BLASTTESTS_SLN_PROFILE_COMPILE_DEFS}> + $<$<CONFIG:release>:${BLASTTESTS_SLN_RELEASE_COMPILE_DEFS}> +) + +SET(BLASTUNITTESTS_PLATFORM_LINKED_LIBS + -lpthread + -lm +) diff --git a/test/compiler/cmake/linux/CMakeLists.txt b/test/compiler/cmake/linux/CMakeLists.txt new file mode 100644 index 0000000..be49d07 --- /dev/null +++ b/test/compiler/cmake/linux/CMakeLists.txt @@ -0,0 +1,25 @@ +#Platform specific compile flags and project includes + +SET(CMAKE_CXX_FLAGS "-Wextra -fdiagnostics-show-option -fno-rtti -fno-exceptions -m64 -msse2 -mfpmath=sse -fpic -ffast-math -fno-exceptions -fno-rtti -Wno-invalid-offsetof -Wno-unknown-pragmas -Wno-multichar -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(BLASTTESTS_SLN_COMPILE_DEFS) +#NvBlastExt doesn't have the _CONSOLE flag + +SET(BLASTTESTS_SLN_DEBUG_COMPILE_DEFS _DEBUG;NV_DEBUG=1;) +SET(BLASTTESTS_SLN_CHECKED_COMPILE_DEFS NDEBUG;NV_CHECKED=1;) +SET(BLASTTESTS_SLN_PROFILE_COMPILE_DEFS NDEBUG;NV_PROFILE=1;) +SET(BLASTTESTS_SLN_RELEASE_COMPILE_DEFS NDEBUG;) + +SET(CMAKE_EXECUTABLE_SUFFIX ".elf") + + +# Include all of the projects +INCLUDE(${PROJECT_CMAKE_FILES_DIR}/BlastUnitTests.cmake) +INCLUDE(${PROJECT_CMAKE_FILES_DIR}/BlastPerfTests.cmake) + + diff --git a/test/data/linux64/PerfTest_linux64.cal b/test/data/linux64/PerfTest_linux64.cal new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/test/data/linux64/PerfTest_linux64.cal |