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

Side by Side Diff: chromecast/build/build_env_clang_chromecast.sh

Issue 223143003: Initial checkin of chromecast content embedder (cast_shell) and related build scripts. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add an additional function in gl_surface_cast.cc Created 6 years, 8 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 unified diff | Download patch
OLDNEW
(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_clang_chromecast() {
6 setup_chromium_env_common clang_chromecast $@
7
8 unset CC
9 unset CXX
10
11 unset CC_host
12 unset CXX_host
13
14 # undo setup_build_toolchain()
15 unset AR_target
16 unset CC_target
17 unset CXX_target
18 unset LD_target
19 unset OBJCOPY_target
20 unset STRIP_target
21
22 # leaving the target arch empty for the system to decide which one to use
23 # (32 bit or 64 bit).
24
25 setup_chromium_env_common_chromecast
26
27 # use_system_libjpeg=1: use native libjpeg for x86 builds
28 local defines="
29 clang=1
30 use_system_libjpeg=1
31 "
32 export GYP_DEFINES="${GYP_DEFINES} ${defines}"
33
34 ${CHROME_SRCROOT}/tools/clang/scripts/update.sh
35 if [ ! -d ${CHROME_SRCROOT}/third_party/llvm-build ]; then
36 echo "Unable to find clang"
37 exit -1
38 fi
39 }
40
41 function setup_chromium_env_clang_chromecast() {
42 setup_common_env_clang_chromecast $@
43
44 local defines="
45 chromecast_branding=Chromium
46 "
47
48 export GYP_DEFINES="${GYP_DEFINES} ${defines}"
49 }
50
51 function setup_chrome_env_clang_chromecast() {
52 setup_common_env_clang_chromecast $@
53
54 local defines="
55 chromecast_branding=Chrome
56 "
57
58 export GYP_DEFINES="${GYP_DEFINES} ${defines}"
59 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698