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

Unified Diff: content/BUILD.gn

Issue 335693004: Hook up content/browser compile in GN build. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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
« no previous file with comments | « build/common.gypi ('k') | content/browser/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/BUILD.gn
diff --git a/content/BUILD.gn b/content/BUILD.gn
index 3be554292435ee05e0a8a99a300df5d7c3cceb06..e3f779bea8b74b4c1688c1eed1134c0d56201663 100644
--- a/content/BUILD.gn
+++ b/content/BUILD.gn
@@ -58,15 +58,37 @@ config("libjingle_stub_config") {
}
}
-# This config is a placeholder to set up the V8 include path while Blink is
-# being worked on. Some targets include blink headers which include "v8.h",
-# expecting //v8/include to be on the include search path. We need to track
-# this down and set the include paths properly.
-config("v8_stub_config") {
- include_dirs = [ "//v8/include" ]
-}
-
config("widevine_stub_config") {
# The real implementation does a copy rule to copy the header to the gen dir.
include_dirs = [ "//third_party/widevine/cdm" ]
}
+
+# Sets up include dirs while webrtc is being converted to GN.
+# TODO(GYP) remove when webrtc is ready.
+config("webrtc_stub_config") {
+ defines = [ "WEBRTC_CHROMIUM_BUILD" ]
+ include_dirs = [
+ "//third_party/webrtc/overrides", # Must be first.
+ "//third_party",
+ ]
+
+ if (is_mac) {
+ defines += [ "WEBRTC_MAC" ]
+ } else if (is_win) {
+ defines += [ "WEBRTC_WIN" ]
+ } else if (is_linux) {
+ defines += [ "WEBRTC_LINUX" ]
+ } else if (is_ios) {
+ defines += [ "WEBRTC_MAC", "WEBRTC_IOS" ]
+ } else if (is_android) {
+ defines += [ "WEBRTC_LINUX", "WEBRTC_ANDROID" ]
+ import("//build/config/crypto.gni")
+ if (use_openssl) {
+ defines += [ "WEBRTC_ANDROID_OPENSLEQS" ]
+ }
+ }
+
+ if (is_posix) {
+ defines += [ "WEBRTC_POSIX" ]
+ }
+}
« no previous file with comments | « build/common.gypi ('k') | content/browser/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698