Added unit test for DevTools' ephemeral port support.
[chromium-blink-merge.git] / content / BUILD.gn
blob3be554292435ee05e0a8a99a300df5d7c3cceb06
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" ]
12 grit("resources") {
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") {
22   include_dirs = [
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",
31     "//third_party",
32   ]
34   defines = [
35     "FEATURE_ENABLE_SSL",
36     "FEATURE_ENABLE_VOICEMAIL",
37     "EXPAT_RELATIVE_PATH",
38     "GTEST_RELATIVE_PATH",
39     "NO_MAIN_THREAD_WRAPPING",
40     "NO_SOUND_SYSTEM",
41   ]
43   if (is_mac) {
44     defines += [ "OSX" ]
45   } else if (is_linux) {
46     defines += [ "LINUX" ]
47   } else if (is_android) {
48     defines += [ "ANDROID" ]
49   } else if (is_win) {
50     libs = [ "secur32.lib", "crypt32.lib", "iphlpapi.lib" ]
51   }
53   if (is_posix) {
54     defines += [ "POSIX" ]
55   }
56   if (is_chromeos) {
57     defines += [ "CHROMEOS" ]
58   }
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" ]