diff --git a/ohos_build/build.sh b/ohos_build/build.sh index fd26f1d6c4d54bcab62bb4abb0497bb922a34216..cc214ef4ec501cb35d0659721065c8cf21ca36b1 100755 --- a/ohos_build/build.sh +++ b/ohos_build/build.sh @@ -71,6 +71,10 @@ build_sysroot="use_ohos_sdk_sysroot=false" build_asan=0 use_thin_lto=0 +if [ -d "${ROOT_DIR}/ohos_nweb_ex" ]; then + with_nweb_ex=1 +fi + usage() { echo -ne "USAGE: $0 [OPTIONS] [PRODUCT] @@ -150,6 +154,9 @@ while [ "$1" != "" ]; do "-ex") with_nweb_ex=1 ;; + "-without-nweb-ex") + with_nweb_ex=0 + ;; "-h") usage exit 0