Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/KhronosGroup/SPIRV-Tools.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Turner <52076061+digit-google@users.noreply.github.com>2019-11-27 00:22:59 +0300
committerDavid Neto <dneto@google.com>2019-11-27 00:22:59 +0300
commit03957e8a9f2453058adf9f98d2a1cae2339554a3 (patch)
tree279ae79e66c8c9ac793c8d53e1c3b33afebb9300 /CMakeLists.txt
parenta62012cede51422b1c0d6784f52fffefed929370 (diff)
build: cmake: Add support for Fuchsia. (#3062)
This small patch adds support for the Fuchsia operating system to the CMakeLists.txt file and source/print.cpp, the only source file that contains platform-specific code. This should not change the build for other platforms. To use it, one needs a Fuchsia-specific CMake toolchain file, as in: mkdir build-fuchsia && cd build-fuchsia cmake .. -DCMAKE_TOOLCHAIN_FILE=/path/to/fuchsia-toolchain.cmake make -j8
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt2
1 files changed, 2 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 946fc1d78..6ed56a815 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -53,6 +53,8 @@ elseif("${CMAKE_SYSTEM_NAME}" STREQUAL "Android")
set(SPIRV_TIMER_ENABLED ${SPIRV_ALLOW_TIMERS})
elseif("${CMAKE_SYSTEM_NAME}" STREQUAL "FreeBSD")
add_definitions(-DSPIRV_FREEBSD)
+elseif("${CMAKE_SYSTEM_NAME}" STREQUAL "Fuchsia")
+ add_definitions(-DSPIRV_FUCHSIA)
else()
message(FATAL_ERROR "Your platform '${CMAKE_SYSTEM_NAME}' is not supported!")
endif()