OLD | NEW |
---|---|
1 # Copyright (c) 2009 The Chromium OS Authors. All rights reserved. | 1 # Copyright (c) 2009 The Chromium OS Authors. All rights reserved. |
2 # Distributed under the terms of the GNU General Public License v2 | 2 # Distributed under the terms of the GNU General Public License v2 |
3 | 3 |
4 # Usage: by default, downloads chromium browser from the build server. | 4 # Usage: by default, downloads chromium browser from the build server. |
5 # If CHROME_ORIGIN is set to one of {SERVER_SOURCE, LOCAL_SOURCE}, | 5 # If CHROME_ORIGIN is set to one of {SERVER_SOURCE, LOCAL_SOURCE}, |
6 # The build comes from the chromimum source repository (gclient sync), \ | 6 # The build comes from the chromimum source repository (gclient sync), \ |
7 # build server, locally provided source, or locally provided binary | 7 # build server, locally provided source, or locally provided binary |
8 # If you are using SERVER_SOURCE, a gclient tempalte file that is in the files | 8 # If you are using SERVER_SOURCE, a gclient tempalte file that is in the files |
9 # directory, which will be copied automatically during the build and used as | 9 # directory, which will be copied automatically during the build and used as |
10 # the .gclient for 'gclient sync' | 10 # the .gclient for 'gclient sync' |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
83 D_CHROME_DIR="${D}/${CHROME_DIR}" | 83 D_CHROME_DIR="${D}/${CHROME_DIR}" |
84 | 84 |
85 # By default, pull from server | 85 # By default, pull from server |
86 CHROME_ORIGIN="${CHROME_ORIGIN:-SERVER_SOURCE}" | 86 CHROME_ORIGIN="${CHROME_ORIGIN:-SERVER_SOURCE}" |
87 | 87 |
88 # For compilation/local chrome | 88 # For compilation/local chrome |
89 BUILD_TOOL=make | 89 BUILD_TOOL=make |
90 BUILD_DEFINES="sysroot=$ROOT python_ver=2.6 swig_defines=-DOS_CHROMEOS linux_use _tcmalloc=0 chromeos=1 linux_sandbox_path=${CHROME_DIR}/chrome-sandbox ${EXTRA_B UILD_ARGS}" | 90 BUILD_DEFINES="sysroot=$ROOT python_ver=2.6 swig_defines=-DOS_CHROMEOS linux_use _tcmalloc=0 chromeos=1 linux_sandbox_path=${CHROME_DIR}/chrome-sandbox ${EXTRA_B UILD_ARGS}" |
91 BUILDTYPE="${BUILDTYPE:-Release}" | 91 BUILDTYPE="${BUILDTYPE:-Release}" |
92 BOARD="${BOARD:-${SYSROOT##/build/}}" | 92 BOARD="${BOARD:-${SYSROOT##/build/}}" |
93 BUILD_OUT="${BUILD_OUT:-${BOARD}_out}" | 93 BUILD_OUT="${BUILD_OUT:-out_${BOARD}}" |
94 # WARNING: We are using a symlink now for the build directory to work around | 94 # WARNING: We are using a symlink now for the build directory to work around |
95 # command line length limits. This will cause problems if you are doing | 95 # command line length limits. This will cause problems if you are doing |
96 # parallel builds of different boards/variants. | 96 # parallel builds of different boards/variants. |
97 # Unsetting BUILD_OUT_SYM will revert this behavior | 97 # Unsetting BUILD_OUT_SYM will revert this behavior |
98 BUILD_OUT_SYM="c" | 98 BUILD_OUT_SYM="c" |
99 | 99 |
100 # For pulling from build bot | 100 # For pulling from build bot |
101 if [ "$ARCH" = "x86" ]; then | 101 if [ "$ARCH" = "x86" ]; then |
102 DEFAULT_CHROME_DIR=chromium-rel-linux-chromiumos | 102 DEFAULT_CHROME_DIR=chromium-rel-linux-chromiumos |
103 elif [ "$ARCH" = "arm" ]; then | 103 elif [ "$ARCH" = "arm" ]; then |
104 DEFAULT_CHROME_DIR=chromium-rel-arm | 104 DEFAULT_CHROME_DIR=chromium-rel-arm |
105 fi | 105 fi |
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
366 } | 366 } |
367 | 367 |
368 src_prepare() { | 368 src_prepare() { |
369 if [[ "$CHROME_ORIGIN" != "LOCAL_SOURCE" ]] && [[ "$CHROME_ORIGIN" != "S ERVER_SOURCE" ]]; then | 369 if [[ "$CHROME_ORIGIN" != "LOCAL_SOURCE" ]] && [[ "$CHROME_ORIGIN" != "S ERVER_SOURCE" ]]; then |
370 return | 370 return |
371 fi | 371 fi |
372 | 372 |
373 elog "${CHROME_ROOT} should be set here properly" | 373 elog "${CHROME_ROOT} should be set here properly" |
374 cd "${CHROME_ROOT}/src" || die "Cannot chdir to ${CHROME_ROOT}" | 374 cd "${CHROME_ROOT}/src" || die "Cannot chdir to ${CHROME_ROOT}" |
375 | 375 |
376 # If there's already a build directory in the old location, rename it to the | |
kliegs
2010/12/03 19:44:19
Keep comments <80 chars please
Daniel Erat
2010/12/03 19:50:35
They are (well, one line is exactly 80 columns).
| |
377 # new location. | |
378 # TODO(derat): Remove this in January 2011. | |
kliegs
2010/12/03 19:44:19
I'd rather see this as a specific week or date. r
Daniel Erat
2010/12/03 19:50:35
I didn't add a date since it doesn't really matter
| |
379 OLD_BUILD_OUT="${BOARD}_out" | |
380 if [[ -d "${OLD_BUILD_OUT}" && ! -e "${BUILD_OUT}" ]]; then | |
381 elog "Renaming output directory ${OLD_BUILD_OUT} to ${BUILD_OUT} " | |
382 mv "${OLD_BUILD_OUT}" "${BUILD_OUT}" | |
383 fi | |
384 | |
376 # We do symlink creation here if appropriate | 385 # We do symlink creation here if appropriate |
377 if [ ! -z "${BUILD_OUT_SYM}" ]; then | 386 if [ ! -z "${BUILD_OUT_SYM}" ]; then |
378 if [ -h "${BUILD_OUT_SYM}" ]; then # remove if an existing syml ink | 387 if [ -h "${BUILD_OUT_SYM}" ]; then # remove if an existing syml ink |
379 rm "${BUILD_OUT_SYM}" | 388 rm "${BUILD_OUT_SYM}" |
380 fi | 389 fi |
381 if [ ! -e "${BUILD_OUT_SYM}" ]; then | 390 if [ ! -e "${BUILD_OUT_SYM}" ]; then |
382 if [ ! -d "${BUILD_OUT}" ]; then # Make sure the directo ry exists | 391 if [ ! -d "${BUILD_OUT}" ]; then # Make sure the directo ry exists |
383 mkdir "${BUILD_OUT}" | 392 mkdir "${BUILD_OUT}" |
384 fi | 393 fi |
385 ln -s "${BUILD_OUT}" "${BUILD_OUT_SYM}" | 394 ln -s "${BUILD_OUT}" "${BUILD_OUT_SYM}" |
(...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
662 doexe ${CHROME_ROOT}/src/third_party/adobe/flash /binaries/chromeos/libgcflashplayer.so | 671 doexe ${CHROME_ROOT}/src/third_party/adobe/flash /binaries/chromeos/libgcflashplayer.so |
663 doexe ${CHROME_ROOT}/src/third_party/adobe/flash /binaries/chromeos/plugin.vch | 672 doexe ${CHROME_ROOT}/src/third_party/adobe/flash /binaries/chromeos/plugin.vch |
664 else | 673 else |
665 # Use Flash from www-plugins/adobe-flash package . | 674 # Use Flash from www-plugins/adobe-flash package . |
666 dosym /opt/netscape/plugins/libflashplayer.so \ | 675 dosym /opt/netscape/plugins/libflashplayer.so \ |
667 "${CHROME_DIR}"/plugins/libflashplayer.s o | 676 "${CHROME_DIR}"/plugins/libflashplayer.s o |
668 fi | 677 fi |
669 fi | 678 fi |
670 fi | 679 fi |
671 } | 680 } |
OLD | NEW |