We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ad73e1b commit a5b235aCopy full SHA for a5b235a
1 file changed
docker/build.sh
@@ -77,14 +77,27 @@ GetNrfSdk() {
77
}
78
79
CmakeGenerate() {
80
+ CMAKE_ARGS=''
81
+
82
+ if [ -n "$ENABLE_USERAPPS" ]
83
+ then
84
+ CMAKE_ARGS=-DENABLE_USERAPPS=$ENABLE_USERAPPS
85
+ fi
86
87
+ if [ -n "$ENABLE_WATCHFACES" ]
88
89
+ CMAKE_ARGS=${CMAKE_ARGS} -DENABLE_WATCHFACES=$ENABLE_WATCHFACES
90
91
92
cmake -G "Unix Makefiles" \
93
-S "$SOURCES_DIR" \
94
-B "$BUILD_DIR" \
95
-DCMAKE_BUILD_TYPE=$BUILD_TYPE \
96
-DARM_NONE_EABI_TOOLCHAIN_PATH="$TOOLS_DIR/$GCC_ARM_PATH" \
97
-DNRF5_SDK_PATH="$TOOLS_DIR/$NRF_SDK_VER" \
98
-DBUILD_DFU=1 \
- -DBUILD_RESOURCES=1
99
+ -DBUILD_RESOURCES=1 \
100
+ $CMAKE_ARGS
101
102
103
CmakeBuild() {
0 commit comments