-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'task/#21337-add-cmake-options-to-enable-or-disable-sepa…
…rate-parts' into 'integration' Task #21337 - Add cmake options to enable/disable separate parts See merge request elektrobit/base-os/safu!19
- Loading branch information
Showing
6 changed files
with
52 additions
and
27 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,25 @@ | ||
#!/bin/sh -eu | ||
set -e -u | ||
|
||
CMD_PATH="$(realpath "$(dirname "$0")")" | ||
BASE_DIR="$(realpath "$CMD_PATH/..")" | ||
|
||
OPTION_DEPS=1 | ||
for element in "$@"; do | ||
case $element in | ||
--no-deps) OPTION_DEPS=0 ;; | ||
*) echo "error: unknown option: $1"; exit 1 ;; | ||
esac | ||
done | ||
|
||
echo "remove build directories" | ||
rm -rf \ | ||
"$BASE_DIR/build" \ | ||
"$BASE_DIR/doc/source/generated" | ||
if [ $OPTION_DEPS -eq 1 ]; then | ||
rm -rf "$BASE_DIR/build" | ||
else | ||
rm -rf \ | ||
"$BASE_DIR/build/Debug" \ | ||
"$BASE_DIR/build/Release" \ | ||
"$BASE_DIR/build/doc" | ||
fi | ||
|
||
rm -rf "$BASE_DIR/doc/source/generated" |
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 |
---|---|---|
@@ -1,8 +1,6 @@ | ||
CMake options | ||
============= | ||
|
||
ENABLE_ASAN=[on|off] | ||
-------------------- | ||
default: on | ||
.. program-output:: cmake -LH 2>/dev/null | sed '0,/^-- Cache values$/d' | ||
:shell: | ||
|
||
Control if safu should be build with address sanitizer |
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 |
---|---|---|
@@ -1,5 +1,8 @@ | ||
# SPDX-License-Identifier: MIT | ||
include(unit_test.cmake) | ||
|
||
add_subdirectory(mocks) | ||
add_subdirectory(safu) | ||
if (UNIT_TESTS) | ||
include(unit_test.cmake) | ||
add_subdirectory(safu) | ||
endif (UNIT_TESTS) | ||
if (SAFU_MOCK_LIBRARY OR UNIT_TESTS) | ||
add_subdirectory(mocks) | ||
endif (SAFU_MOCK_LIBRARY OR UNIT_TESTS) |
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