OLD | NEW |
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 | |
18 # TODO(brettw) remove this and add a proper dependency on blink once that | 5 # TODO(brettw) remove this and add a proper dependency on blink once that |
19 # target has been converted to GN. This config sets up the include directories | 6 # target has been converted to GN. This config sets up the include directories |
20 # so content can compile in the meantime. | 7 # so content can compile in the meantime. |
21 # | 8 # |
22 # This corresponds to third_party/WebKit/public/blink_headers.gyp:blink_headers | 9 # This corresponds to third_party/WebKit/public/blink_headers.gyp:blink_headers |
23 config("blink_headers_stub_config") { | 10 config("blink_headers_stub_config") { |
24 include_dirs = [ "//third_party/WebKit" ] | 11 include_dirs = [ "//third_party/WebKit" ] |
25 } | 12 } |
26 | 13 |
27 # TODO(brettw) remove this and add a proper dependency on libjingle once that | 14 # TODO(brettw) remove this and add a proper dependency on libjingle once that |
28 # target has been converted to GN. This config sets up the include directories | 15 # target has been converted to GN. This config sets up the include directories |
29 # so content can compile in the meantime. | 16 # so content can compile in the meantime. |
30 config("libjingle_stub_config") { | 17 config("libjingle_stub_config") { |
31 include_dirs = [ | 18 include_dirs = [ |
32 "//third_party/libjingle/overrides", | 19 "//third_party/libjingle/overrides", |
33 "//third_party/libjingle/source", | 20 "//third_party/libjingle/source", |
| 21 "//third_party", |
34 "//third_party/libyuv/include", | 22 "//third_party/libyuv/include", |
35 "//third_party/usrsctp", | 23 "//third_party/usrsctp", |
36 | |
37 | |
38 "//third_party/webrtc/overrides", # Must be before webrtc abd third_party. | |
39 "//third_party/webrtc", | 24 "//third_party/webrtc", |
40 "//third_party", | |
41 ] | 25 ] |
42 | 26 |
43 defines = [ | 27 defines = [ |
44 "FEATURE_ENABLE_SSL", | 28 "FEATURE_ENABLE_SSL", |
45 "FEATURE_ENABLE_VOICEMAIL", | 29 "FEATURE_ENABLE_VOICEMAIL", |
46 "EXPAT_RELATIVE_PATH", | 30 "EXPAT_RELATIVE_PATH", |
47 "GTEST_RELATIVE_PATH", | 31 "GTEST_RELATIVE_PATH", |
48 "NO_MAIN_THREAD_WRAPPING", | 32 "NO_MAIN_THREAD_WRAPPING", |
49 "NO_SOUND_SYSTEM", | 33 "NO_SOUND_SYSTEM", |
50 ] | 34 ] |
51 | 35 |
52 if (is_mac) { | 36 if (is_mac) { |
53 defines += [ "OSX" ] | 37 defines += [ "OSX" ] |
54 } else if (is_linux) { | 38 } else if (is_linux) { |
55 defines += [ "LINUX" ] | 39 defines += [ "LINUX" ] |
56 } else if (is_android) { | 40 } else if (is_android) { |
57 defines += [ "ANDROID" ] | 41 defines += [ "ANDROID" ] |
58 } else if (is_win) { | 42 } else if (is_win) { |
59 libs = [ "secur32.lib", "crypt32.lib", "iphlpapi.lib" ] | 43 libs = [ "secur32.lib", "crypt32.lib", "iphlpapi.lib" ] |
60 } | 44 } |
61 | 45 |
62 if (is_posix) { | 46 if (is_posix) { |
63 defines += [ "POSIX" ] | 47 defines += [ "POSIX" ] |
64 } | 48 } |
65 if (is_chromeos) { | 49 if (is_chromeos) { |
66 defines += [ "CHROMEOS" ] | 50 defines += [ "CHROMEOS" ] |
67 } | 51 } |
68 } | 52 } |
69 | 53 |
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 } | |
OLD | NEW |