Skip to content

Commit

Permalink
Merge branch 'android-graphics:idea/242.21829.142' into newProject
Browse files Browse the repository at this point in the history
  • Loading branch information
sonakshisaxena1 authored Nov 7, 2024
2 parents a1fc7c2 + 3ed3b70 commit 7dbca37
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 5 deletions.
18 changes: 16 additions & 2 deletions build_sherlock_platform.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,23 @@ BUILD_PROPERTIES=(
"-Dbuild.number=${AS_BUILD_NUMBER}"
"-Dintellij.build.dev.mode=false"
"-Dcompile.parallel=true"
"-Dintellij.build.skip.build.steps=repair_utility_bundle_step,mac_dmg,mac_sign,mac_sit,windows_exe_installer,linux aarch64,windows aarch64,mac x64" # TODO
"-Dintellij.build.incremental.compilation=true" # TODO
"-Dintellij.build.skip.build.steps=repair_utility_bundle_step,mac_dmg,mac_sign,mac_sit,windows_exe_installer,linux aarch64,windows aarch64,mac x64"
"-Dintellij.build.incremental.compilation=true"
"-Dintellij.build.incremental.compilation.fallback.rebuild=false"
)

# Use --with-android to update/download android repo before building
while [[ $# -gt 0 ]]; do
case "$1" in
--with-android)
./getPlugins.sh --shallow
shift
;;
*)
echo "Unknown option: $1" >&2
exit 1
;;
esac
done

"${PROG_DIR}/platform/jps-bootstrap/jps-bootstrap.sh" "${BUILD_PROPERTIES[@]}" "${PROG_DIR}" intellij.idea.community.build SherlockPlatformBuild
10 changes: 7 additions & 3 deletions getPlugins.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,13 @@ readonly TAG="idea/${AS_BUILD_NUMBER}.${SNAPSHOT}"

echo "Cloning Jetbrains/android repository using the following tag: ${TAG}"

if [ "$1" == "--shallow" ]; then
if [ ! -d "android" ]; then
if [ "$1" == "--shallow" ]; then
git clone git://git.jetbrains.org/idea/android.git android --depth 1 --branch "${TAG}"
else
else
echo "Warning: Cloning with the entire history. Use the --shallow flag to clone faster."
git clone git://git.jetbrains.org/idea/android.git android --branch "${TAG}"
fi
fi
else
echo "Android directory already exists. Skipping clone."
fi

0 comments on commit 7dbca37

Please sign in to comment.