OLD | NEW |
(Empty) | |
| 1 # Copyright (c) 2014 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. |
| 4 |
| 5 function setup_common_env_x86_chromecast() { |
| 6 setup_chromium_env_common x86_chromecast $@ |
| 7 |
| 8 unset CC |
| 9 unset CXX |
| 10 |
| 11 # undo setup_build_toolchain() |
| 12 unset AR_target |
| 13 unset CC_target |
| 14 unset CXX_target |
| 15 unset LD_target |
| 16 unset OBJCOPY_target |
| 17 unset STRIP_target |
| 18 |
| 19 setup_goma_or_ccache gcc g++ |
| 20 |
| 21 # leaving the target arch empty for the system to decide which one to use |
| 22 # (32 bit or 64 bit). |
| 23 |
| 24 setup_chromium_env_common_chromecast |
| 25 |
| 26 # use_system_libjpeg=1: use native libjpeg for x86 builds |
| 27 local defines=" |
| 28 use_system_libjpeg=1 |
| 29 " |
| 30 export GYP_DEFINES="${GYP_DEFINES} ${defines}" |
| 31 } |
| 32 |
| 33 function setup_chromium_env_x86_chromecast() { |
| 34 setup_common_env_x86_chromecast $@ |
| 35 |
| 36 local defines=" |
| 37 chromecast_branding=Chromium |
| 38 " |
| 39 |
| 40 export GYP_DEFINES="${GYP_DEFINES} ${defines}" |
| 41 } |
| 42 |
| 43 function setup_chrome_env_x86_chromecast() { |
| 44 setup_common_env_x86_chromecast $@ |
| 45 |
| 46 local defines=" |
| 47 chromecast_branding=Chrome |
| 48 " |
| 49 |
| 50 export GYP_DEFINES="${GYP_DEFINES} ${defines}" |
| 51 } |
OLD | NEW |