Skip to content

Commit a5b235a

Browse files
committed
Improve buildscript to allow for custom selection of apps/watchfaces
1 parent ad73e1b commit a5b235a

1 file changed

Lines changed: 14 additions & 1 deletion

File tree

docker/build.sh

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,14 +77,27 @@ GetNrfSdk() {
7777
}
7878

7979
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+
then
89+
CMAKE_ARGS=${CMAKE_ARGS} -DENABLE_WATCHFACES=$ENABLE_WATCHFACES
90+
fi
91+
8092
cmake -G "Unix Makefiles" \
8193
-S "$SOURCES_DIR" \
8294
-B "$BUILD_DIR" \
8395
-DCMAKE_BUILD_TYPE=$BUILD_TYPE \
8496
-DARM_NONE_EABI_TOOLCHAIN_PATH="$TOOLS_DIR/$GCC_ARM_PATH" \
8597
-DNRF5_SDK_PATH="$TOOLS_DIR/$NRF_SDK_VER" \
8698
-DBUILD_DFU=1 \
87-
-DBUILD_RESOURCES=1
99+
-DBUILD_RESOURCES=1 \
100+
$CMAKE_ARGS
88101
}
89102

90103
CmakeBuild() {

0 commit comments

Comments
 (0)