update workdflow.

This commit is contained in:
ArthurSonzogni 2025-04-26 00:16:41 +02:00
parent 632f8032bc
commit 3184033f4d
No known key found for this signature in database
GPG Key ID: 41D98248C074CD6C
2 changed files with 9 additions and 4 deletions

View File

@ -42,7 +42,7 @@ A simple cross-platform C++ library for terminal based user interfaces!
* No dependencies * No dependencies
* **Cross platform**: Linux/MacOS (main target), WebAssembly, Windows (Thanks to contributors!). * **Cross platform**: Linux/MacOS (main target), WebAssembly, Windows (Thanks to contributors!).
* Learn by [examples](#documentation), and [tutorials](#documentation) * Learn by [examples](#documentation), and [tutorials](#documentation)
* Multiple packages: CMake [FetchContent]([https://bewagner.net/programming/2020/05/02/cmake-fetchcontent/](https://cmake.org/cmake/help/latest/module/FetchContent.html)) (preferred), vcpkg, pkgbuild, conan. * Multiple packages: CMake [FetchContent]([https://bewagner.net/programming/2020/05/02/cmake-fetchcontent/](https://cmake.org/cmake/help/latest/module/FetchContent.html)) (preferred),Bazel, vcpkg, pkgbuild, conan.
* Good practices: documentation, tests, fuzzers, performance tests, automated CI, automated packaging, etc... * Good practices: documentation, tests, fuzzers, performance tests, automated CI, automated packaging, etc...
## Documentation ## Documentation
@ -383,6 +383,7 @@ endif()
``` ```
If you don't, FTXUI may be used from the following packages: If you don't, FTXUI may be used from the following packages:
- [bazel](...)
- [vcpkg](https://vcpkgx.com/details.html?package=ftxui) - [vcpkg](https://vcpkgx.com/details.html?package=ftxui)
- [Arch Linux PKGBUILD](https://aur.archlinux.org/packages/ftxui-git/). - [Arch Linux PKGBUILD](https://aur.archlinux.org/packages/ftxui-git/).
- [conan.io](https://conan.io/center/ftxui) - [conan.io](https://conan.io/center/ftxui)
@ -395,8 +396,6 @@ If you choose to build and link FTXUI yourself, `ftxui-component` must be first
g++ . . . -lftxui-component -lftxui-dom -lftxui-screen . . . g++ . . . -lftxui-component -lftxui-dom -lftxui-screen . . .
``` ```
## Contributors ## Contributors
<a href="https://github.com/ArthurSonzogni/FTXUI/graphs/contributors"> <a href="https://github.com/ArthurSonzogni/FTXUI/graphs/contributors">

View File

@ -8,6 +8,12 @@ def ftxui_cc_library(
hdrs, hdrs,
linkopts = [], linkopts = [],
deps = []): deps = []):
cpp20 = select({
"@bazel_tools//tools/cpp:msvc": ["/std:c++20"],
"//conditions:default": ["-std=c++20"],
})
cc_library( cc_library(
name = name, name = name,
srcs = srcs, srcs = srcs,
@ -20,7 +26,7 @@ def ftxui_cc_library(
"include", "include",
"src", "src",
], ],
copts = ["-std=c++20"], copts = cpp20,
visibility = ["//visibility:public"], visibility = ["//visibility:public"],
) )