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

Side by Side Diff: content/BUILD.gn

Issue 533743004: Fix Chrome linker errors in GN build. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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
« no previous file with comments | « components/gcm_driver/BUILD.gn ('k') | content/browser/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import("//tools/grit/grit_rule.gni") 5 import("//tools/grit/grit_rule.gni")
6 6
7 # Applied by targets internal to content. 7 # Applied by targets internal to content.
8 config("content_implementation") { 8 config("content_implementation") {
9 defines = [ "CONTENT_IMPLEMENTATION" ] 9 defines = [ "CONTENT_IMPLEMENTATION" ]
10 } 10 }
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 } 47 }
48 48
49 # This target exists to "hold" the content_export header so we can do proper 49 # This target exists to "hold" the content_export header so we can do proper
50 # inclusion testing of it. 50 # inclusion testing of it.
51 source_set("export") { 51 source_set("export") {
52 visibility = "//content/*" 52 visibility = "//content/*"
53 sources = [ 53 sources = [
54 "content/common/content_export.h" 54 "content/common/content_export.h"
55 ] 55 ]
56 } 56 }
57
58 # Stubs ------------------------------------------------------------------------
59
60 # TODO(brettw) remove this and add a proper dependency on libjingle once that
61 # target has been converted to GN. This config sets up the include directories
62 # so content can compile in the meantime.
63 config("libjingle_stub_config") {
64 include_dirs = [
65 "//third_party/libjingle/overrides",
66 "//third_party/libjingle/source",
67 "//third_party/libyuv/include",
68 "//third_party/usrsctp",
69
70
71 "//third_party/webrtc/overrides", # Must be before webrtc abd third_party.
72 "//third_party/webrtc",
73 "//third_party",
74 ]
75
76 defines = [
77 "FEATURE_ENABLE_SSL",
78 "FEATURE_ENABLE_VOICEMAIL",
79 "EXPAT_RELATIVE_PATH",
80 "GTEST_RELATIVE_PATH",
81 "NO_MAIN_THREAD_WRAPPING",
82 "NO_SOUND_SYSTEM",
83 ]
84
85 if (is_mac) {
86 defines += [ "OSX", "WEBRTC_MAC" ]
87 } else if (is_linux) {
88 defines += [ "LINUX", "WEBRTC_LINUX" ]
89 } else if (is_android) {
90 defines += [ "ANDROID", "WEBRTC_LINUX", "WEBRTC_ANDROID" ]
91 } else if (is_win) {
92 libs = [ "secur32.lib", "crypt32.lib", "iphlpapi.lib" ]
93 defines += [ "WEBRTC_WIN" ]
94 }
95
96 if (is_posix) {
97 defines += [ "POSIX", "WEBRTC_POSIX" ]
98 }
99 if (is_chromeos) {
100 defines += [ "CHROMEOS" ]
101 }
102 }
103
104 # Sets up include dirs while webrtc is being converted to GN.
105 # TODO(GYP) remove when webrtc is ready.
106 config("webrtc_stub_config") {
107 defines = [ "WEBRTC_CHROMIUM_BUILD" ]
108 include_dirs = [
109 "//third_party/webrtc/overrides", # Must be first.
110 "//third_party",
111 ]
112
113 if (is_mac) {
114 defines += [ "WEBRTC_MAC" ]
115 } else if (is_win) {
116 defines += [ "WEBRTC_WIN" ]
117 } else if (is_linux) {
118 defines += [ "WEBRTC_LINUX" ]
119 } else if (is_ios) {
120 defines += [ "WEBRTC_MAC", "WEBRTC_IOS" ]
121 } else if (is_android) {
122 defines += [ "WEBRTC_LINUX", "WEBRTC_ANDROID" ]
123 import("//build/config/crypto.gni")
124 if (use_openssl) {
125 defines += [ "WEBRTC_ANDROID_OPENSLEQS" ]
126 }
127 }
128
129 if (is_posix) {
130 defines += [ "WEBRTC_POSIX" ]
131 }
132 }
OLDNEW
« no previous file with comments | « components/gcm_driver/BUILD.gn ('k') | content/browser/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698