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") | 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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 } | 51 } |
52 | 52 |
53 if (is_posix) { | 53 if (is_posix) { |
54 defines += [ "POSIX" ] | 54 defines += [ "POSIX" ] |
55 } | 55 } |
56 if (is_chromeos) { | 56 if (is_chromeos) { |
57 defines += [ "CHROMEOS" ] | 57 defines += [ "CHROMEOS" ] |
58 } | 58 } |
59 } | 59 } |
60 | 60 |
61 # This config is a placeholder to set up the V8 include path while Blink is | |
62 # being worked on. Some targets include blink headers which include "v8.h", | |
63 # expecting //v8/include to be on the include search path. We need to track | |
64 # this down and set the include paths properly. | |
65 config("v8_stub_config") { | |
66 include_dirs = [ "//v8/include" ] | |
67 } | |
68 | |
69 config("widevine_stub_config") { | 61 config("widevine_stub_config") { |
70 # The real implementation does a copy rule to copy the header to the gen dir. | 62 # The real implementation does a copy rule to copy the header to the gen dir. |
71 include_dirs = [ "//third_party/widevine/cdm" ] | 63 include_dirs = [ "//third_party/widevine/cdm" ] |
72 } | 64 } |
| 65 |
| 66 # Sets up include dirs while webrtc is being converted to GN. |
| 67 # TODO(GYP) remove when webrtc is ready. |
| 68 config("webrtc_stub_config") { |
| 69 defines = [ "WEBRTC_CHROMIUM_BUILD" ] |
| 70 include_dirs = [ |
| 71 "//third_party/webrtc/overrides", # Must be first. |
| 72 "//third_party", |
| 73 ] |
| 74 |
| 75 if (is_mac) { |
| 76 defines += [ "WEBRTC_MAC" ] |
| 77 } else if (is_win) { |
| 78 defines += [ "WEBRTC_WIN" ] |
| 79 } else if (is_linux) { |
| 80 defines += [ "WEBRTC_LINUX" ] |
| 81 } else if (is_ios) { |
| 82 defines += [ "WEBRTC_MAC", "WEBRTC_IOS" ] |
| 83 } else if (is_android) { |
| 84 defines += [ "WEBRTC_LINUX", "WEBRTC_ANDROID" ] |
| 85 import("//build/config/crypto.gni") |
| 86 if (use_openssl) { |
| 87 defines += [ "WEBRTC_ANDROID_OPENSLEQS" ] |
| 88 } |
| 89 } |
| 90 |
| 91 if (is_posix) { |
| 92 defines += [ "WEBRTC_POSIX" ] |
| 93 } |
| 94 } |
OLD | NEW |