1 Star 0 Fork 0

Jingchuan Luo / Vulkan-Utility-Libraries

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
BUILD.md 1.47 KB
一键复制 编辑 原始数据 按行查看 历史
Juan Ramos 提交于 2023-07-25 15:52 . Add REUSE to CI

Build Instructions

This document contains the instructions for building this repository on Linux, macOS and Windows.

  1. Requirements
  2. Building Overview
  3. CMake

Requirements

  1. CMake >= 3.17.2
  2. C++ >= c++17 compiler. See platform-specific sections below for supported compiler versions.
  3. Python >= 3.8

Building Overview

The following will be enough for most people, for more detailed instructions, see below.

cmake -S . -B build/ -D CMAKE_BUILD_TYPE=Debug -D UPDATE_DEPS=ON
cmake --build build --config Debug

Recommended setup for developers

cmake -S . -B build/ -D VUL_WERROR=ON -D BUILD_TESTS=ON  -D UPDATE_DEPS=ON -D CMAKE_BUILD_TYPE=Debug

Unit Tests

cd build/
ctest -C Debug --parallel 8 --output-on-failure

CMake

Warnings as errors off by default!

By default VUL_WERROR is OFF

The idiom for open source projects is to NOT enable warnings as errors.

System package managers, and language package managers have to build on multiple different platforms and compilers.

By defaulting to ON we cause issues for package managers since there is no standard way to disable warnings until CMake 3.24

Add -D VUL_WERROR=ON to your workflow. Or use the dev preset shown below which will also enabling warnings as errors.

马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/luo-jingchuan/Vulkan-Utility-Libraries.git
git@gitee.com:luo-jingchuan/Vulkan-Utility-Libraries.git
luo-jingchuan
Vulkan-Utility-Libraries
Vulkan-Utility-Libraries
main

搜索帮助

344bd9b3 5694891 D2dac590 5694891