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

Side by Side Diff: src/scripts/build_platform_packages.sh

Issue 436035: Add change to enable getting safe build of chrome (Closed) Base URL: svn://chrome-svn/chromeos/trunk/
Patch Set: '' Created 11 years, 1 month 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/platform/chrome/copy_chrome_zip.sh ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/bin/bash 1 #!/bin/bash
2 2
3 # Copyright (c) 2009 The Chromium OS Authors. All rights reserved. 3 # Copyright (c) 2009 The Chromium OS Authors. All rights reserved.
4 # Use of this source code is governed by a BSD-style license that can be 4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file. 5 # found in the LICENSE file.
6 6
7 # Load common constants. This should be the first executable line. 7 # Load common constants. This should be the first executable line.
8 # The path to common.sh should be relative to your script's location. 8 # The path to common.sh should be relative to your script's location.
9 . "$(dirname "$0")/common.sh" 9 . "$(dirname "$0")/common.sh"
10 10
11 # Script must be run inside the chroot 11 # Script must be run inside the chroot
12 assert_inside_chroot 12 assert_inside_chroot
13 13
14 # Flags 14 # Flags
15 DEFINE_boolean stable $FLAGS_FALSE "Build with stable version of browser."
15 16
16 # Parse command line 17 # Parse command line
17 FLAGS "$@" || exit 1 18 FLAGS "$@" || exit 1
18 eval set -- "${FLAGS_ARGV}" 19 eval set -- "${FLAGS_ARGV}"
19 20
20 # Die on error 21 # Die on error
21 set -e 22 set -e
22 23
23 # Number of jobs for scons calls. 24 # Number of jobs for scons calls.
24 NUM_JOBS=`cat /proc/cpuinfo | grep processor | awk '{a++} END {print a}'` 25 NUM_JOBS=`cat /proc/cpuinfo | grep processor | awk '{a++} END {print a}'`
25 26
26 PLATFORM_DIR="$SRC_ROOT/platform" 27 PLATFORM_DIR="$SRC_ROOT/platform"
27 28
28 PLATFORM_DIRS="acpi assets fake_hal init installer login_manager \ 29 PLATFORM_DIRS="acpi assets fake_hal init installer login_manager \
29 memento_softwareupdate pam_google window_manager \ 30 memento_softwareupdate pam_google window_manager \
30 cros chrome screenlocker cryptohome \ 31 cros chrome screenlocker cryptohome \
31 monitor_reconfig" 32 monitor_reconfig"
32 33
33 THIRD_PARTY_DIR="$SRC_ROOT/third_party" 34 THIRD_PARTY_DIR="$SRC_ROOT/third_party"
34 THIRD_PARTY_PACKAGES="connman e2fsprogs/files gflags gtest \ 35 THIRD_PARTY_PACKAGES="connman e2fsprogs/files gflags gtest \
35 ply-image slim/src synaptics \ 36 ply-image slim/src synaptics \
36 wpa_supplicant xscreensaver/xscreensaver-5.08 \ 37 wpa_supplicant xscreensaver/xscreensaver-5.08 \
37 xserver-xorg-core xserver-xorg-video-intel" 38 xserver-xorg-core xserver-xorg-video-intel"
38 39
40 if [ $FLAGS_stable -eq $FLAGS_TRUE ]
41 then
42 # Passed to copy_chrome_zip.sh to get stable version of the browser
43 export GET_STABLE_CHROME=1
44 fi
45
39 # Build third_party packages first, since packages and libs depend on them. 46 # Build third_party packages first, since packages and libs depend on them.
40 for i in $THIRD_PARTY_PACKAGES 47 for i in $THIRD_PARTY_PACKAGES
41 do 48 do
42 echo "Building package ${i}..." 49 echo "Building package ${i}..."
43 cd "$THIRD_PARTY_DIR/$i" 50 cd "$THIRD_PARTY_DIR/$i"
44 ./make_pkg.sh 51 ./make_pkg.sh
45 cd - 52 cd -
46 done 53 done
47 54
48 # Build base lib next, since packages depend on it. 55 # Build base lib next, since packages depend on it.
(...skipping 11 matching lines...) Expand all
60 # Build platform packages 67 # Build platform packages
61 for i in $PLATFORM_DIRS 68 for i in $PLATFORM_DIRS
62 do 69 do
63 echo "Building package ${i}..." 70 echo "Building package ${i}..."
64 cd "$PLATFORM_DIR/$i" 71 cd "$PLATFORM_DIR/$i"
65 ./make_pkg.sh 72 ./make_pkg.sh
66 cd - 73 cd -
67 done 74 done
68 75
69 echo "All packages built." 76 echo "All packages built."
OLDNEW
« no previous file with comments | « src/platform/chrome/copy_chrome_zip.sh ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698