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

Unified Diff: content/BUILD.gn

Issue 293963007: Make content/common compile on Linux GN build. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add stub header dirs Created 6 years, 7 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.gn ('k') | content/common/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
new file mode 100644
index 0000000000000000000000000000000000000000..5768bafeb4bd6383a4cd1959d08c86754717f016
--- /dev/null
+++ b/content/BUILD.gn
@@ -0,0 +1,53 @@
+# Copyright 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.
+
+# TODO(brettw) remove this and add a proper dependency on blink once that
+# target has been converted to GN. This config sets up the include directories
+# so content can compile in the meantime.
+#
+# This corresponds to third_party/WebKit/public/blink_headers.gyp:blink_headers
+config("blink_headers_stub_config") {
+ include_dirs = [ "//third_party/WebKit" ]
+}
+
+# TODO(brettw) remove this and add a proper dependency on libjingle once that
+# target has been converted to GN. This config sets up the include directories
+# so content can compile in the meantime.
+config("libjingle_stub_config") {
+ include_dirs = [
+ "//third_party/libjingle/overrides",
+ "//third_party/libjingle/source",
+ "//third_party",
+ "//third_party/libyuv/include",
+ "//third_party/usrsctp",
+ "//third_party/webrtc",
+ ]
+
+ defines = [
+ "FEATURE_ENABLE_SSL",
+ "FEATURE_ENABLE_VOICEMAIL",
+ "EXPAT_RELATIVE_PATH",
+ "GTEST_RELATIVE_PATH",
+ "NO_MAIN_THREAD_WRAPPING",
+ "NO_SOUND_SYSTEM",
+ ]
+
+ if (is_mac) {
+ defines += [ "OSX" ]
+ } else if (is_linux) {
+ defines += [ "LINUX" ]
+ } else if (is_android) {
+ defines += [ "ANDROID" ]
+ } else if (is_win) {
+ libs = [ "secur32.lib", "crypt32.lib", "iphlpapi.lib" ]
+ }
+
+ if (is_posix) {
+ defines += [ "POSIX" ]
+ }
+ if (is_chromeos) {
+ defines += [ "CHROMEOS" ]
+ }
+}
+
« no previous file with comments | « BUILD.gn ('k') | content/common/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698