-
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.
1) Added another file in SDK to allow automatic discovery of build mode.
2) Extended flutter code to track build mode of SDK
- Loading branch information
Showing
3 changed files
with
35 additions
and
8 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
16 changes: 14 additions & 2 deletions
16
sources/sub-projects/ayfstarter/post_install/CMakeLists.txt
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,7 +1,19 @@ | ||
project (ayfstarter) | ||
|
||
set(PROJECT_PREFIX starter_app) | ||
install(CODE "execute_process(COMMAND ${mysh} -c | ||
\"${CMAKE_CURRENT_SOURCE_DIR}/install_flutter_app.sh ${CMAKE_CURRENT_SOURCE_DIR} ${JVX_OS} ${PROJECT_PREFIX} ${CMAKE_INSTALL_PREFIX}/${INSTALL_PATH_BIN} example; exit\")") | ||
set(SDK_FOLDER $ENV{AYF_SDK_PATH}) | ||
|
||
if(EXISTS ${SDK_FOLDER}/.bv) | ||
file(READ ${SDK_FOLDER}/.bv contentFile) | ||
if(${contentFile} MATCHES "DEBUG") | ||
set(tokenBuild "--debug") | ||
else() | ||
set(tokenBuild "--release") | ||
endif() | ||
message("Runing flutter build command with option <${tokenBuild}>") | ||
install(CODE "execute_process(COMMAND ${mysh} -c | ||
\"${CMAKE_CURRENT_SOURCE_DIR}/install_flutter_app.sh ${CMAKE_CURRENT_SOURCE_DIR} ${JVX_OS} ${PROJECT_PREFIX} ${CMAKE_INSTALL_PREFIX}/${INSTALL_PATH_BIN} example ${tokenBuild}; exit\")") | ||
endif() | ||
|
||
## install(CODE "execute_process(COMMAND install_flutter_app.sh)") | ||
|
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