mirror of
https://github.com/status-im/status-react.git
synced 2025-02-26 01:25:33 +00:00
Add doc for ENVTYPE setting
Signed-off-by: Vitaliy Vlasov <siphiuel@gmail.com>
This commit is contained in:
parent
9fc2105cb8
commit
3147296209
@ -16,6 +16,14 @@ set(CMAKE_OSX_DEPLOYMENT_TARGET "10.9")
|
||||
message(STATUS "EXTERNAL_MODULES_DIR: ${EXTERNAL_MODULES_DIR}")
|
||||
|
||||
string(REGEX MATCH "BUILD_FOR_BUNDLE" BUILD_FOR_BUNDLE "${CMAKE_CXX_FLAGS}")
|
||||
|
||||
# It is important to distinguish between directory hierarchies
|
||||
# in release and dev builds. Release contains .env
|
||||
# in the root dir of the build, while dev build's current dir
|
||||
# is status-react/desktop/bin, hence the need
|
||||
# to jump two levels up.
|
||||
# This is required by react-native-config library which references ENVFILE
|
||||
# from its own CMakeLists.txt file, so it will read the value set here
|
||||
if(${BUILD_FOR_BUNDLE} MATCHES "BUILD_FOR_BUNDLE")
|
||||
set(ENVFILE "/.env")
|
||||
else()
|
||||
|
Loading…
x
Reference in New Issue
Block a user