-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensure all header files shipped have the vk_ prefix
CI will fail now if we ship a .h / .hpp file that doesn't use the correct prefix. I also documented the precedent for this prefix and the existing integration testing.
- Loading branch information
1 parent
a3235b3
commit 6710b67
Showing
16 changed files
with
121 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
<!-- | ||
Copyright 2023 The Khronos Group Inc. | ||
Copyright 2023 Valve Corporation | ||
Copyright 2023 LunarG, Inc. | ||
SPDX-License-Identifier: Apache-2.0 | ||
--> | ||
|
||
# Library integration testing | ||
|
||
In order to avoid disruption of downstream users. It's important to test how this | ||
repository is consumed. | ||
|
||
1. Self contained headers | ||
|
||
It's easy to write header files that aren't self contained. By compiling | ||
a single source file that includes a single header we ensure a smooth experience for | ||
downstream users. | ||
|
||
2. Ensure C compatibility of C header files | ||
|
||
It's VERY easy to write invalid C code. Especially for experience C++ programmers. | ||
|
||
## tests/find_package | ||
|
||
Test find_package support. The intent is to ensure we properly install files. | ||
|
||
Used by system/language package managers and the Vulkan SDK packaging. | ||
|
||
## tests/add_subdirectory | ||
|
||
1. Test add_subdirectory support | ||
|
||
While we don't have to support add_subdirectory it is a common feature request for CMake projects. | ||
|
||
2. Ensure file name consistency of header files we install | ||
|
||
All header files we ship will have the `vk_` prefix | ||
|
||
This convention was originally established in VulkanHeaders for files created by LunarG. | ||
- EX: `vk_icd.h`, `vk_layer.h`, `vk_platform.h` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Copyright 2023 The Khronos Group Inc. | ||
# Copyright 2023 Valve Corporation | ||
# Copyright 2023 LunarG, Inc. | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
set(CMAKE_FOLDER "${CMAKE_FOLDER}/VulkanUtilityHeaders/tests") | ||
|
||
find_package(GTest REQUIRED CONFIG) | ||
|
||
include(GoogleTest) | ||
|
||
add_executable(test_vk_dispatch_table test_interface.cpp) | ||
|
||
lunarg_target_compiler_configurations(test_vk_dispatch_table VUL_WERROR) | ||
|
||
target_link_libraries(test_vk_dispatch_table PRIVATE | ||
GTest::gtest | ||
GTest::gtest_main | ||
Vulkan::UtilityHeaders | ||
) | ||
|
||
target_include_directories(test_vk_dispatch_table PRIVATE $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>) | ||
|
||
gtest_discover_tests(test_vk_dispatch_table) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.