From f9e033dd27790b552d9c7c46c67627cc2c940aa4 Mon Sep 17 00:00:00 2001 From: Sergio Martins Date: Sun, 22 Sep 2024 17:20:03 +0100 Subject: [PATCH] Add my personal build scripts --- build.sh | 16 ++++++++++++++++ ninja.sh | 10 ++++++++++ 2 files changed, 26 insertions(+) create mode 100644 build.sh create mode 100644 ninja.sh diff --git a/build.sh b/build.sh new file mode 100644 index 0000000000000..12f3746490c47 --- /dev/null +++ b/build.sh @@ -0,0 +1,16 @@ +SCRIPT_PATH=$(realpath "$0") +SCRIPT_DIR=$(dirname "$SCRIPT_PATH") + +if [[ "$(uname)" == "Darwin" ]]; then + ${SCRIPT_DIR}/tools/gn --unoptimized --no-goma --no-enable-unittests \ + --no-build-glfw-shell --no-stripped --build-embedder-examples \ + --mac-cpu=arm64 || { echo "gn failed"; exit 1; } + FLUTTER_BUILD_DIR=host_debug_unopt_arm64 +else + ${SCRIPT_DIR}/tools/gn --unoptimized --no-goma --no-enable-unittests \ + --no-build-glfw-shell --no-stripped || { echo "gn failed"; exit 1; } + FLUTTER_BUILD_DIR=host_debug_unopt +fi + +sh ${SCRIPT_DIR}/ninja.sh + diff --git a/ninja.sh b/ninja.sh new file mode 100644 index 0000000000000..437d739394708 --- /dev/null +++ b/ninja.sh @@ -0,0 +1,10 @@ +SCRIPT_PATH=$(realpath "$0") +SCRIPT_DIR=$(dirname "$SCRIPT_PATH") + +if [[ "$(uname)" == "Darwin" ]]; then + FLUTTER_BUILD_DIR=host_debug_unopt_arm64 +else + FLUTTER_BUILD_DIR=host_debug_unopt +fi + +ninja -C ${SCRIPT_DIR}/../out/${FLUTTER_BUILD_DIR}