diff --git a/build/build.sh b/build/build.sh index 3b5a983691c395a31219d53e00930a8d2a189c46..f5ad608b1d406fe382c1591b33ef996b8d514031 100755 --- a/build/build.sh +++ b/build/build.sh @@ -37,14 +37,27 @@ if [[ "${PROJECT_DIR}x" == "x" ]]; then fi # builder third_party -cd ${PROJECT_DIR}/third_party/ft_flutter -./build.sh $* +if [ -d ${PROJECT_DIR}/third_party/ft_flutter ]; then + cd ${PROJECT_DIR}/third_party/ft_flutter + ./build.sh $* +else + echo -e "\033[31m[!] The third_party/ft_flutter directory does not exist. Ensure that relevant dynamic libraries are available. Otherwise, run \"./build/prebuild.sh\" in the project root directory first.\033[0m" +fi -cd ${PROJECT_DIR}/third_party/ft_multimedia -./build.sh $* +if [ -d ${PROJECT_DIR}/third_party/ft_multimedia ]; then + cd ${PROJECT_DIR}/third_party/ft_multimedia + ./build.sh $* +else + echo -e "\033[31m[!] The third_party/ft_multimedia directory does not exist. Ensure that relevant dynamic libraries are available. Otherwise, run \"./build/prebuild.sh\" in the project root directory first.\033[0m" +fi + +if [ -d ${PROJECT_DIR}/third_party/ft_mmi ]; then + cd ${PROJECT_DIR}/third_party/ft_mmi + ./build.sh $* +else + echo -e "\033[31m[!] The third_party/ft_mmi directory does not exist. Ensure that relevant dynamic libraries are available. Otherwise, run \"./build/prebuild.sh\" in the project root directory first.\033[0m" +fi -cd ${PROJECT_DIR}/third_party/ft_mmi -./build.sh $* cd ${PROJECT_DIR} diff --git a/build/prebuild.sh b/build/prebuild.sh index 69352e2e383f3b667879938849c6832472aa5951..33442d364d1ba7776c23fa41148285c8dfd0cf44 100755 --- a/build/prebuild.sh +++ b/build/prebuild.sh @@ -120,24 +120,24 @@ sudo cp ${PROJECT_DIR}/window_manager/resources/config/other/window_manager_conf if [ ! -d ${PROJECT_DIR}/third_party/ft_flutter ]; then git clone https://gitee.com/openeuler/ft_flutter.git ${PROJECT_DIR}/third_party/ft_flutter +fi cd ${PROJECT_DIR}/third_party/ft_flutter ./project_build/prebuild.sh ./build.sh $* -fi if [ ! -d ${PROJECT_DIR}/third_party/ft_multimedia ]; then git clone https://gitee.com/openeuler/ft_multimedia.git ${PROJECT_DIR}/third_party/ft_multimedia +fi cd ${PROJECT_DIR}/third_party/ft_multimedia ./build/prebuild.sh $* ./build.sh $* -fi if [ ! -d ${PROJECT_DIR}/third_party/ft_mmi ]; then git clone https://gitee.com/openeuler/ft_mmi.git ${PROJECT_DIR}/third_party/ft_mmi +fi cd ${PROJECT_DIR}/third_party/ft_mmi ./build/prebuild.sh ./build.sh $* -fi cd ${PROJECT_DIR} echo -e "\033[32m[*] Pre-build Done. You need exec 'build.sh'.\033[0m"