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

Unified 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, 9 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 side-by-side diff with in-line comments
Download patch
Index: chromecast/build/build_env_clang_chromecast.sh
diff --git a/chromecast/build/build_env_clang_chromecast.sh b/chromecast/build/build_env_clang_chromecast.sh
new file mode 100644
index 0000000000000000000000000000000000000000..a9ad196fd75f015270e7c10b8a5c42c395617bed
--- /dev/null
+++ b/chromecast/build/build_env_clang_chromecast.sh
@@ -0,0 +1,59 @@
+# Copyright (c) 2014 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+function setup_common_env_clang_chromecast() {
+ setup_chromium_env_common clang_chromecast $@
+
+ unset CC
+ unset CXX
+
+ unset CC_host
+ unset CXX_host
+
+# undo setup_build_toolchain()
+ unset AR_target
+ unset CC_target
+ unset CXX_target
+ unset LD_target
+ unset OBJCOPY_target
+ unset STRIP_target
+
+ # leaving the target arch empty for the system to decide which one to use
+ # (32 bit or 64 bit).
+
+ setup_chromium_env_common_chromecast
+
+ # use_system_libjpeg=1: use native libjpeg for x86 builds
+ local defines="
+ clang=1
+ use_system_libjpeg=1
+ "
+ export GYP_DEFINES="${GYP_DEFINES} ${defines}"
+
+ ${CHROME_SRCROOT}/tools/clang/scripts/update.sh
+ if [ ! -d ${CHROME_SRCROOT}/third_party/llvm-build ]; then
+ echo "Unable to find clang"
+ exit -1
+ fi
+}
+
+function setup_chromium_env_clang_chromecast() {
+ setup_common_env_clang_chromecast $@
+
+ local defines="
+ chromecast_branding=Chromium
+ "
+
+ export GYP_DEFINES="${GYP_DEFINES} ${defines}"
+}
+
+function setup_chrome_env_clang_chromecast() {
+ setup_common_env_clang_chromecast $@
+
+ local defines="
+ chromecast_branding=Chrome
+ "
+
+ export GYP_DEFINES="${GYP_DEFINES} ${defines}"
+}

Powered by Google App Engine
This is Rietveld 408576698