mirror of
https://github.com/eosswedenorg/antelope-keygen
synced 2026-07-03 11:53:41 +02:00
CMake: rename BUILD_COMPONENT_* options to COMPONENT_*
This commit is contained in:
parent
56c1886880
commit
2d1c0d0785
4 changed files with 20 additions and 20 deletions
12
.github/workflows/ci.yml
vendored
12
.github/workflows/ci.yml
vendored
|
|
@ -15,17 +15,17 @@ jobs:
|
||||||
build: [ cli, cli-mt, cli-ansi, cli-ansi-mt, gui, gui-mt ]
|
build: [ cli, cli-mt, cli-ansi, cli-ansi-mt, gui, gui-mt ]
|
||||||
include:
|
include:
|
||||||
- build: cli
|
- build: cli
|
||||||
cmake-opts: -DBUILD_COMPONENT_CLI=ON -DBUILD_COMPONENT_GUI=OFF -DFORCE_ANSI=OFF -DUSE_THREADS=OFF
|
cmake-opts: -DCOMPONENT_CLI=ON -DCOMPONENT_GUI=OFF -DFORCE_ANSI=OFF -DUSE_THREADS=OFF
|
||||||
- build: cli-mt
|
- build: cli-mt
|
||||||
cmake-opts: -DBUILD_COMPONENT_CLI=ON -DBUILD_COMPONENT_GUI=OFF -DFORCE_ANSI=OFF -DUSE_THREADS=ON
|
cmake-opts: -DCOMPONENT_CLI=ON -DCOMPONENT_GUI=OFF -DFORCE_ANSI=OFF -DUSE_THREADS=ON
|
||||||
- build: cli-ansi
|
- build: cli-ansi
|
||||||
cmake-opts: -DBUILD_COMPONENT_CLI=ON -DBUILD_COMPONENT_GUI=OFF -DFORCE_ANSI=ON -DUSE_THREADS=OFF
|
cmake-opts: -DCOMPONENT_CLI=ON -DCOMPONENT_GUI=OFF -DFORCE_ANSI=ON -DUSE_THREADS=OFF
|
||||||
- build: cli-ansi-mt
|
- build: cli-ansi-mt
|
||||||
cmake-opts: -DBUILD_COMPONENT_CLI=ON -DBUILD_COMPONENT_GUI=OFF -DFORCE_ANSI=ON -DUSE_THREADS=ON
|
cmake-opts: -DCOMPONENT_CLI=ON -DCOMPONENT_GUI=OFF -DFORCE_ANSI=ON -DUSE_THREADS=ON
|
||||||
- build: gui
|
- build: gui
|
||||||
cmake-opts: -DBUILD_COMPONENT_CLI=OFF -DBUILD_COMPONENT_GUI=ON -DUSE_THREADS=OFF
|
cmake-opts: -DCOMPONENT_CLI=OFF -DCOMPONENT_GUI=ON -DUSE_THREADS=OFF
|
||||||
- build: gui-mt
|
- build: gui-mt
|
||||||
cmake-opts: -DBUILD_COMPONENT_CLI=OFF -DBUILD_COMPONENT_GUI=ON -DUSE_THREADS=ON
|
cmake-opts: -DCOMPONENT_CLI=OFF -DCOMPONENT_GUI=ON -DUSE_THREADS=ON
|
||||||
|
|
||||||
name: ${{matrix.os}} (${{matrix.build}})
|
name: ${{matrix.os}} (${{matrix.build}})
|
||||||
runs-on: ${{matrix.os}}
|
runs-on: ${{matrix.os}}
|
||||||
|
|
|
||||||
|
|
@ -16,10 +16,10 @@ set( PROJECT_LICENSE_FILE ${CMAKE_CURRENT_LIST_DIR}/LICENSE )
|
||||||
# Options
|
# Options
|
||||||
# --------------------------------
|
# --------------------------------
|
||||||
|
|
||||||
option(BUILD_COMPONENT_CLI "Build CLI Component" ON)
|
option(COMPONENT_CLI "Build CLI Component" ON)
|
||||||
option(BUILD_COMPONENT_GUI "Build GUI Component (Qt5)" OFF)
|
option(COMPONENT_GUI "Build GUI Component (Qt5)" OFF)
|
||||||
|
|
||||||
if (NOT BUILD_COMPONENT_CLI AND NOT BUILD_COMPONENT_GUI)
|
if (NOT COMPONENT_CLI AND NOT COMPONENT_GUI)
|
||||||
message(FATAL_ERROR "Atleast one of BUILD_COMPONENT_GUI,BUILD_COMPONENT_CLI must be set to ON")
|
message(FATAL_ERROR "Atleast one of BUILD_COMPONENT_GUI,BUILD_COMPONENT_CLI must be set to ON")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
@ -111,11 +111,11 @@ configure_file(cmake/CPackProperties.cmake.in ${CPACK_PROPERTIES_FILE} @ONLY)
|
||||||
|
|
||||||
add_subdirectory( common )
|
add_subdirectory( common )
|
||||||
|
|
||||||
if (BUILD_COMPONENT_CLI)
|
if (COMPONENT_CLI)
|
||||||
add_subdirectory( cli )
|
add_subdirectory( cli )
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if (BUILD_COMPONENT_GUI)
|
if (COMPONENT_GUI)
|
||||||
add_subdirectory( gui )
|
add_subdirectory( gui )
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
|
||||||
14
README.md
14
README.md
|
|
@ -102,13 +102,13 @@ C:\repo\build> cmake --build . --config Release
|
||||||
|
|
||||||
These compile options are available:
|
These compile options are available:
|
||||||
|
|
||||||
| Cmake | build.sh | Description |
|
| Cmake | build.sh | Description |
|
||||||
|---------------------------- | ----------------- | ----------------------------------------- |
|
|--------------------------- | ----------------- | ----------------------------------------- |
|
||||||
| -DBUILD_COMPONENT_CLI=`OFF` | --no-cli | Do not build cli program |
|
| -DCOMPONENT_CLI=`OFF` | --no-cli | Do not build cli program |
|
||||||
| -DBUILD_COMPONENT_GUI=`ON` | --gui | Build gui program (Qt5) |
|
| -DCOMPONENT_GUI=`ON` | --gui | Build gui program (Qt5) |
|
||||||
| -DUSE_THREADS=`OFF` | --disable-threads | Disable thread support |
|
| -DUSE_THREADS=`OFF` | --disable-threads | Disable thread support |
|
||||||
| -DCMAKE_BUILD_TYPE=`value` | -t `value` | Type of build |
|
| -DCMAKE_BUILD_TYPE=`value` | -t `value` | Type of build |
|
||||||
| -DFORCE_ANSI=`ON` | --force-ansi | Force ANSI console colors even on windows |
|
| -DFORCE_ANSI=`ON` | --force-ansi | Force ANSI console colors even on windows |
|
||||||
|
|
||||||
For more details about options run `./build.sh -l` or `mkdir build && cmake build -LA`
|
For more details about options run `./build.sh -l` or `mkdir build && cmake build -LA`
|
||||||
|
|
||||||
|
|
|
||||||
4
build.sh
4
build.sh
|
|
@ -34,9 +34,9 @@ while true; do
|
||||||
ARGS="${ARGS} -DCPACK_GENERATOR=${1^^}"
|
ARGS="${ARGS} -DCPACK_GENERATOR=${1^^}"
|
||||||
;;
|
;;
|
||||||
--no-cli)
|
--no-cli)
|
||||||
ARGS="${ARGS} -DBUILD_COMPONENT_CLI=OFF" ;;
|
ARGS="${ARGS} -DCOMPONENT_CLI=OFF" ;;
|
||||||
--gui)
|
--gui)
|
||||||
ARGS="${ARGS} -DBUILD_COMPONENT_GUI=ON" ;;
|
ARGS="${ARGS} -DCOMPONENT_GUI=ON" ;;
|
||||||
--disable-threads)
|
--disable-threads)
|
||||||
ARGS="${ARGS} -DUSE_THREADS=OFF" ;;
|
ARGS="${ARGS} -DUSE_THREADS=OFF" ;;
|
||||||
--force-ansi)
|
--force-ansi)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue