diff options
author | Mike Schuchardt <mikes@lunarg.com> | 2018-03-26 13:14:25 -0600 |
---|---|---|
committer | Mike Schuchardt <mikes@lunarg.com> | 2018-03-27 14:11:45 -0600 |
commit | ed2a0356ecdc93015ddb360d869eb6ed2311525e (patch) | |
tree | d5876e5e6d4da8be9c979d069f398b852c836d28 /icd | |
parent | a32e5c917714ff604a8cd78dce414140b1409247 (diff) | |
download | vulkan-tools-ed2a0356ecdc93015ddb360d869eb6ed2311525e.tar.gz |
icd: Add json file for running on macOS
Diffstat (limited to 'icd')
-rw-r--r-- | icd/CMakeLists.txt | 10 | ||||
-rw-r--r-- | icd/macos/VkICD_mock_icd.json | 8 |
2 files changed, 18 insertions, 0 deletions
diff --git a/icd/CMakeLists.txt b/icd/CMakeLists.txt index ff8a479e..3fe467d5 100644 --- a/icd/CMakeLists.txt +++ b/icd/CMakeLists.txt @@ -52,6 +52,16 @@ if (WIN32) endforeach(config_file) endif() endif() +elseif(APPLE) + # extra setup for out-of-tree builds + if (NOT (CMAKE_CURRENT_SOURCE_DIR STREQUAL CMAKE_CURRENT_BINARY_DIR)) + foreach (config_file ${ICD_JSON_FILES}) + add_custom_target(${config_file}-json ALL + COMMAND ln -sf ${CMAKE_CURRENT_SOURCE_DIR}/macos/${config_file}.json + VERBATIM + ) + endforeach(config_file) + endif() else() # extra setup for out-of-tree builds if (NOT (CMAKE_CURRENT_SOURCE_DIR STREQUAL CMAKE_CURRENT_BINARY_DIR)) diff --git a/icd/macos/VkICD_mock_icd.json b/icd/macos/VkICD_mock_icd.json new file mode 100644 index 00000000..96b7eba8 --- /dev/null +++ b/icd/macos/VkICD_mock_icd.json @@ -0,0 +1,8 @@ +{ + "file_format_version" : "1.0.1", + "ICD": { + "library_path": "./libVkICD_mock_icd.dylib", + "api_version": "1.1.71" + } +} + |