diff options
| author | Daniel Rakos <daniel.rakos@rastergrid.com> | 2023-07-18 16:18:46 +0200 |
|---|---|---|
| committer | Juan Ramos <114601453+juan-lunarg@users.noreply.github.com> | 2023-07-19 09:50:01 -0600 |
| commit | c5ac1413f0108d111160711b00eec61c81c5e293 (patch) | |
| tree | e9a8fd2f0ffa8a7eeb36b647b93739f9cfdc1579 | |
| parent | 9ded295c5b35ed21dab93b0227b1a9f49714758b (diff) | |
| download | usermoji-c5ac1413f0108d111160711b00eec61c81c5e293.tar.xz | |
build: Add API_TYPE variable
| -rw-r--r-- | CMakeLists.txt | 6 | ||||
| -rw-r--r-- | scripts/CMakeLists.txt | 2 |
2 files changed, 6 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 31edbb24..6525f513 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -19,6 +19,10 @@ cmake_minimum_required(VERSION 3.17.2) project(Vulkan-Tools) +# This variable enables downstream users to customize the target API +# variant (e.g. Vulkan SC) +set(API_TYPE "vulkan") + add_subdirectory(scripts) # User-interface declarations ---------------------------------------------------------------------------------------------------- @@ -34,8 +38,6 @@ option(BUILD_ICD "Build icd" ON) # Require the user to ask that it be installed if they really want it. option(INSTALL_ICD "Install icd" OFF) -set(API_TYPE "vulkan") - if (UNIX AND NOT APPLE) # i.e. Linux option(ENABLE_ADDRESS_SANITIZER "Use addres sanitization" OFF) endif() diff --git a/scripts/CMakeLists.txt b/scripts/CMakeLists.txt index ad467ae0..3038d6e6 100644 --- a/scripts/CMakeLists.txt +++ b/scripts/CMakeLists.txt @@ -40,6 +40,8 @@ if (UPDATE_DEPS) endif() list(APPEND update_dep_command "--config") list(APPEND update_dep_command "${_build_type}") + list(APPEND update_dep_command "--api") + list(APPEND update_dep_command "${API_TYPE}") set(UPDATE_DEPS_DIR_SUFFIX "${_build_type}") if (ANDROID) |
