Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2527)

Unified Diff: build/install-build-deps-mac.sh

Issue 1841863002: Update monet. (Closed) Base URL: https://github.com/domokit/monet.git@master
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « build/install-build-deps-android.sh ('k') | build/install-chroot.sh » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/install-build-deps-mac.sh
diff --git a/build/install-build-deps-mac.sh b/build/install-build-deps-mac.sh
new file mode 100755
index 0000000000000000000000000000000000000000..625ddf4a648236d690891a908522f542b58fda3e
--- /dev/null
+++ b/build/install-build-deps-mac.sh
@@ -0,0 +1,64 @@
+#!/bin/bash -e
+
+# Copyright (c) 2015 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+#
+# Script to install dependencies for developing Mojo on Mac OS X.
+
+XCODE_APP="/Applications/Xcode.app"
+JDK_VERSION="1.7.0"
+
+echo
+
+INSTRUCTIONS=""
+
+if [ ! -d $XCODE_APP ]; then
+ INSTRUCTIONS="${INSTRUCTIONS}\n** Install the latest version of Xcode from the Mac App Store."
+fi
+
+if [ -z $(which java) ] || ! java -version 2>&1 | grep -q ${JDK_VERSION}; then
+ temp=$(
+ echo "** Download the Java JDK (Java SE Development Kit) 7:"
+ echo " http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html"
+ )
+
+ INSTRUCTIONS="${INSTRUCTIONS}\n$temp"
+fi
+
+
+if [ -z $(which gclient) ] && [ ! -d $HOME/depot_tools ]; then
+ echo "*** Installing depot_tools in $HOME"
+ echo
+ cd $HOME
+ git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
+
+ temp=$(
+ echo "** Add this to your .bash_profile or similar:"
+ echo " export PATH=\"\${HOME}/depot_tools:\${PATH}\""
+ )
+
+ INSTRUCTIONS="${INSTRUCTIONS}\n$temp"
+fi
+
+if [ ! -z $(which brew) ]; then
+ brew install ant
+elif [ ! -z $(which port) ]; then
+ sudo `which port` install apache-ant
+else
+ INSTRUCTIONS="${INSTRUCTIONS}\n** Install homebrew (brew.sh) or macports (macports.org) and re-run this script."
+fi
+
+sudo easy_install pip
+sudo pip install requests
+
+
+echo
+echo "All done!"
+
+if [ ! -z "$INSTRUCTIONS" ]; then
+ echo
+ echo
+ echo "**** Follow these final instructions to get going."
+ echo $INSTRUCTIONS
+fi
« no previous file with comments | « build/install-build-deps-android.sh ('k') | build/install-chroot.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698