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

Side by Side Diff: content/BUILD.gn

Issue 304603005: Add content renderer to the GN build (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « build/config/features.gni ('k') | content/common/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")
6
7 # Applied by targets internal to content.
8 config("content_implementation") {
9 defines = [ "CONTENT_IMPLEMENTATION" ]
10 }
11
12 grit("resources") {
13 source = "content_resources.grd"
14 }
15
16 # Stubs ------------------------------------------------------------------------
17
5 # TODO(brettw) remove this and add a proper dependency on blink once that 18 # TODO(brettw) remove this and add a proper dependency on blink once that
6 # target has been converted to GN. This config sets up the include directories 19 # target has been converted to GN. This config sets up the include directories
7 # so content can compile in the meantime. 20 # so content can compile in the meantime.
8 # 21 #
9 # This corresponds to third_party/WebKit/public/blink_headers.gyp:blink_headers 22 # This corresponds to third_party/WebKit/public/blink_headers.gyp:blink_headers
10 config("blink_headers_stub_config") { 23 config("blink_headers_stub_config") {
11 include_dirs = [ "//third_party/WebKit" ] 24 include_dirs = [ "//third_party/WebKit" ]
12 } 25 }
13 26
14 # TODO(brettw) remove this and add a proper dependency on libjingle once that 27 # TODO(brettw) remove this and add a proper dependency on libjingle once that
15 # target has been converted to GN. This config sets up the include directories 28 # target has been converted to GN. This config sets up the include directories
16 # so content can compile in the meantime. 29 # so content can compile in the meantime.
17 config("libjingle_stub_config") { 30 config("libjingle_stub_config") {
18 include_dirs = [ 31 include_dirs = [
19 "//third_party/libjingle/overrides", 32 "//third_party/libjingle/overrides",
20 "//third_party/libjingle/source", 33 "//third_party/libjingle/source",
21 "//third_party",
22 "//third_party/libyuv/include", 34 "//third_party/libyuv/include",
23 "//third_party/usrsctp", 35 "//third_party/usrsctp",
36
37
38 "//third_party/webrtc/overrides", # Must be before webrtc abd third_party.
24 "//third_party/webrtc", 39 "//third_party/webrtc",
40 "//third_party",
25 ] 41 ]
26 42
27 defines = [ 43 defines = [
28 "FEATURE_ENABLE_SSL", 44 "FEATURE_ENABLE_SSL",
29 "FEATURE_ENABLE_VOICEMAIL", 45 "FEATURE_ENABLE_VOICEMAIL",
30 "EXPAT_RELATIVE_PATH", 46 "EXPAT_RELATIVE_PATH",
31 "GTEST_RELATIVE_PATH", 47 "GTEST_RELATIVE_PATH",
32 "NO_MAIN_THREAD_WRAPPING", 48 "NO_MAIN_THREAD_WRAPPING",
33 "NO_SOUND_SYSTEM", 49 "NO_SOUND_SYSTEM",
34 ] 50 ]
35 51
36 if (is_mac) { 52 if (is_mac) {
37 defines += [ "OSX" ] 53 defines += [ "OSX" ]
38 } else if (is_linux) { 54 } else if (is_linux) {
39 defines += [ "LINUX" ] 55 defines += [ "LINUX" ]
40 } else if (is_android) { 56 } else if (is_android) {
41 defines += [ "ANDROID" ] 57 defines += [ "ANDROID" ]
42 } else if (is_win) { 58 } else if (is_win) {
43 libs = [ "secur32.lib", "crypt32.lib", "iphlpapi.lib" ] 59 libs = [ "secur32.lib", "crypt32.lib", "iphlpapi.lib" ]
44 } 60 }
45 61
46 if (is_posix) { 62 if (is_posix) {
47 defines += [ "POSIX" ] 63 defines += [ "POSIX" ]
48 } 64 }
49 if (is_chromeos) { 65 if (is_chromeos) {
50 defines += [ "CHROMEOS" ] 66 defines += [ "CHROMEOS" ]
51 } 67 }
52 } 68 }
53 69
70 # This config is a placeholder to set up the V8 include path while the V8 GN
71 # build is being worked on.
72 config("v8_stub_config") {
73 include_dirs = [ "//v8/include" ]
74 }
75
76 config("widevine_stub_config") {
77 # The real implementation does a copy rule to copy the header to the gen dir.
78 include_dirs = [ "//third_party/widevine/cdm" ]
79 }
OLDNEW
« no previous file with comments | « build/config/features.gni ('k') | content/common/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698