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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 } | 87 } |
88 | 88 |
89 if (is_posix) { | 89 if (is_posix) { |
90 defines += [ "POSIX" ] | 90 defines += [ "POSIX" ] |
91 } | 91 } |
92 if (is_chromeos) { | 92 if (is_chromeos) { |
93 defines += [ "CHROMEOS" ] | 93 defines += [ "CHROMEOS" ] |
94 } | 94 } |
95 } | 95 } |
96 | 96 |
97 config("widevine_stub_config") { | |
98 # The real implementation does a copy rule to copy the header to the gen dir. | |
99 include_dirs = [ "//third_party/widevine/cdm" ] | |
100 } | |
101 | |
102 # Sets up include dirs while webrtc is being converted to GN. | 97 # Sets up include dirs while webrtc is being converted to GN. |
103 # TODO(GYP) remove when webrtc is ready. | 98 # TODO(GYP) remove when webrtc is ready. |
104 config("webrtc_stub_config") { | 99 config("webrtc_stub_config") { |
105 defines = [ "WEBRTC_CHROMIUM_BUILD" ] | 100 defines = [ "WEBRTC_CHROMIUM_BUILD" ] |
106 include_dirs = [ | 101 include_dirs = [ |
107 "//third_party/webrtc/overrides", # Must be first. | 102 "//third_party/webrtc/overrides", # Must be first. |
108 "//third_party", | 103 "//third_party", |
109 ] | 104 ] |
110 | 105 |
111 if (is_mac) { | 106 if (is_mac) { |
112 defines += [ "WEBRTC_MAC" ] | 107 defines += [ "WEBRTC_MAC" ] |
113 } else if (is_win) { | 108 } else if (is_win) { |
114 defines += [ "WEBRTC_WIN" ] | 109 defines += [ "WEBRTC_WIN" ] |
115 } else if (is_linux) { | 110 } else if (is_linux) { |
116 defines += [ "WEBRTC_LINUX" ] | 111 defines += [ "WEBRTC_LINUX" ] |
117 } else if (is_ios) { | 112 } else if (is_ios) { |
118 defines += [ "WEBRTC_MAC", "WEBRTC_IOS" ] | 113 defines += [ "WEBRTC_MAC", "WEBRTC_IOS" ] |
119 } else if (is_android) { | 114 } else if (is_android) { |
120 defines += [ "WEBRTC_LINUX", "WEBRTC_ANDROID" ] | 115 defines += [ "WEBRTC_LINUX", "WEBRTC_ANDROID" ] |
121 import("//build/config/crypto.gni") | 116 import("//build/config/crypto.gni") |
122 if (use_openssl) { | 117 if (use_openssl) { |
123 defines += [ "WEBRTC_ANDROID_OPENSLEQS" ] | 118 defines += [ "WEBRTC_ANDROID_OPENSLEQS" ] |
124 } | 119 } |
125 } | 120 } |
126 | 121 |
127 if (is_posix) { | 122 if (is_posix) { |
128 defines += [ "WEBRTC_POSIX" ] | 123 defines += [ "WEBRTC_POSIX" ] |
129 } | 124 } |
130 } | 125 } |
OLD | NEW |