OLD | NEW |
1 # Copyright (c) 2011 The Chromium OS Authors. All rights reserved. | 1 # Copyright (c) 2011 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, LOCAL_BINARY}, | 5 # If CHROME_ORIGIN is set to one of {SERVER_SOURCE, LOCAL_SOURCE, LOCAL_BINARY}, |
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 template file that is in the files | 8 # If you are using SERVER_SOURCE, a gclient template 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 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
191 | 191 |
192 IUSE="${IUSE} +autotest" | 192 IUSE="${IUSE} +autotest" |
193 | 193 |
194 export CHROMIUM_HOME=/usr/$(get_libdir)/chromium-browser | 194 export CHROMIUM_HOME=/usr/$(get_libdir)/chromium-browser |
195 | 195 |
196 QA_TEXTRELS="*" | 196 QA_TEXTRELS="*" |
197 QA_EXECSTACK="*" | 197 QA_EXECSTACK="*" |
198 QA_PRESTRIPPED="*" | 198 QA_PRESTRIPPED="*" |
199 | 199 |
200 use_nacl() { | 200 use_nacl() { |
201 » (use amd64 || use x86) && ! use asan && ! use component_build && ! use d
rm | 201 » (use amd64 || use x86 || use arm) && ! use asan && ! use component_build
&& ! use drm |
202 } | 202 } |
203 | 203 |
204 set_build_defines() { | 204 set_build_defines() { |
205 # Set proper BUILD_DEFINES for the arch | 205 # Set proper BUILD_DEFINES for the arch |
206 if [ "$ARCH" = "x86" ]; then | 206 if [ "$ARCH" = "x86" ]; then |
207 BUILD_DEFINES="target_arch=ia32 enable_smooth_scrolling=1 $BUILD
_DEFINES"; | 207 BUILD_DEFINES="target_arch=ia32 enable_smooth_scrolling=1 $BUILD
_DEFINES"; |
208 elif [ "$ARCH" = "arm" ]; then | 208 elif [ "$ARCH" = "arm" ]; then |
209 BUILD_DEFINES="target_arch=arm $BUILD_DEFINES armv7=1 v8_can_use
_unaligned_accesses=true"; | 209 BUILD_DEFINES="target_arch=arm $BUILD_DEFINES armv7=1 v8_can_use
_unaligned_accesses=true"; |
210 if [ "$(expr match "$ARM_FPU" "vfpv3")" -ne 0 ]; then | 210 if [ "$(expr match "$ARM_FPU" "vfpv3")" -ne 0 ]; then |
211 BUILD_DEFINES="$BUILD_DEFINES v8_can_use_vfp_instruction
s=true"; | 211 BUILD_DEFINES="$BUILD_DEFINES v8_can_use_vfp_instruction
s=true"; |
(...skipping 492 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
704 TEST_TARGETS="${TEST_FILES} | 704 TEST_TARGETS="${TEST_FILES} |
705 performance_ui_tests | 705 performance_ui_tests |
706 ui_tests | 706 ui_tests |
707 pyautolib | 707 pyautolib |
708 chromedriver | 708 chromedriver |
709 browser_tests | 709 browser_tests |
710 sync_integration_tests" | 710 sync_integration_tests" |
711 echo Building test targets: ${TEST_TARGETS} | 711 echo Building test targets: ${TEST_TARGETS} |
712 fi | 712 fi |
713 | 713 |
| 714 if use_nacl; then |
| 715 NACL_TARGETS="nacl_helper_bootstrap nacl_helper" |
| 716 fi |
| 717 |
714 if use drm; then | 718 if use drm; then |
715 time emake -r $(use verbose && echo V=1) \ | 719 time emake -r $(use verbose && echo V=1) \ |
716 BUILDTYPE="${BUILDTYPE}" \ | 720 BUILDTYPE="${BUILDTYPE}" \ |
717 aura_demo ash_shell \ | 721 aura_demo ash_shell \ |
718 chrome chrome_sandbox default_extensions \ | 722 chrome chrome_sandbox default_extensions \ |
719 || die "compilation failed" | 723 || die "compilation failed" |
720 else | 724 else |
721 time emake -r $(use verbose && echo V=1) \ | 725 time emake -r $(use verbose && echo V=1) \ |
722 BUILDTYPE="${BUILDTYPE}" \ | 726 BUILDTYPE="${BUILDTYPE}" \ |
723 chrome chrome_sandbox libosmesa.so default_extensions \ | 727 chrome chrome_sandbox libosmesa.so default_extensions \ |
| 728 ${NACL_TARGETS} \ |
724 ${TEST_TARGETS} \ | 729 ${TEST_TARGETS} \ |
725 || die "compilation failed" | 730 || die "compilation failed" |
726 fi | 731 fi |
727 | 732 |
728 if use build_tests; then | 733 if use build_tests; then |
729 install_chrome_test_resources "${WORKDIR}/test_src" | 734 install_chrome_test_resources "${WORKDIR}/test_src" |
730 install_pyauto_dep_resources "${WORKDIR}/pyauto_src" | 735 install_pyauto_dep_resources "${WORKDIR}/pyauto_src" |
731 | 736 |
732 # NOTE: Since chrome is built inside distfiles, we have to get | 737 # NOTE: Since chrome is built inside distfiles, we have to get |
733 # rid of the previous instance first. | 738 # rid of the previous instance first. |
(...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1002 else | 1007 else |
1003 die No internal Flash plugin. | 1008 die No internal Flash plugin. |
1004 fi | 1009 fi |
1005 else | 1010 else |
1006 # Use Flash from www-plugins/adobe-flash package. | 1011 # Use Flash from www-plugins/adobe-flash package. |
1007 dosym /opt/netscape/plugins/libflashplayer.so \ | 1012 dosym /opt/netscape/plugins/libflashplayer.so \ |
1008 "${CHROME_DIR}"/plugins/libflashplayer.so | 1013 "${CHROME_DIR}"/plugins/libflashplayer.so |
1009 fi | 1014 fi |
1010 fi | 1015 fi |
1011 } | 1016 } |
OLD | NEW |