VirtualBox

source: vbox/trunk/src/libs/dxvk-2.3.1/include/vulkan/BUILD.md

最後變更 在這個檔案是 105107,由 vboxsync 提交於 9 月 前

libs/dxvk-2.3.1: Make it build, bugref:10716

  • 屬性 svn:eol-style 設為 native
  • 屬性 svn:keywords 設為 Author Date Id Revision
檔案大小: 1.2 KB
 
1<!--
2Copyright 2018-2023 The Khronos Group Inc.
3
4SPDX-License-Identifier: Apache-2.0
5-->
6
7# Build Instructions
8
9Instructions for building this repository.
10
11```bash
12git clone https://github.com/KhronosGroup/Vulkan-Headers.git
13
14cd Vulkan-Headers/
15
16# Configure the project
17cmake -S . -B build/
18
19# Because Vulkan-Headers is header only we don't need to build anything.
20# Users can install it where they need to.
21cmake --install build --prefix build/install
22```
23
24See the official [CMake documentation](https://cmake.org/cmake/help/latest/index.html) for more information.
25
26## Installed Files
27
28The `install` target installs the following files under the directory
29indicated by *install_dir*:
30
31- *install_dir*`/include/vulkan` : The header files found in the
32 `include/vulkan` directory of this repository
33- *install_dir*`/share/cmake/VulkanHeaders`: The CMake config files needed
34 for find_package support
35- *install_dir*`/share/vulkan/registry` : The registry files found in the
36 `registry` directory of this repository
37
38## Usage in CMake
39
40```cmake
41find_package(VulkanHeaders REQUIRED CONFIG)
42
43target_link_libraries(foobar PRIVATE Vulkan::Headers)
44
45message(STATUS "Vulkan Headers Version: ${VulkanHeaders_VERSION}")
46```
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette