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
3 # found in the LICENSE file.
5 import("//tools/grit/grit_rule.gni")
7 # Applied by targets internal to content.
8 config("content_implementation") {
9 defines = [ "CONTENT_IMPLEMENTATION" ]
13 source = "content_resources.grd"
16 # Stubs ------------------------------------------------------------------------
18 # TODO(brettw) remove this and add a proper dependency on libjingle once that
19 # target has been converted to GN. This config sets up the include directories
20 # so content can compile in the meantime.
21 config("libjingle_stub_config") {
23 "//third_party/libjingle/overrides",
24 "//third_party/libjingle/source",
25 "//third_party/libyuv/include",
26 "//third_party/usrsctp",
29 "//third_party/webrtc/overrides", # Must be before webrtc abd third_party.
30 "//third_party/webrtc",
36 "FEATURE_ENABLE_VOICEMAIL",
37 "EXPAT_RELATIVE_PATH",
38 "GTEST_RELATIVE_PATH",
39 "NO_MAIN_THREAD_WRAPPING",
45 } else if (is_linux) {
46 defines += [ "LINUX" ]
47 } else if (is_android) {
48 defines += [ "ANDROID" ]
50 libs = [ "secur32.lib", "crypt32.lib", "iphlpapi.lib" ]
54 defines += [ "POSIX" ]
57 defines += [ "CHROMEOS" ]
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" ]
69 config("widevine_stub_config") {
70 # The real implementation does a copy rule to copy the header to the gen dir.
71 include_dirs = [ "//third_party/widevine/cdm" ]