Update optimize_png_files.sh to work on msysgit bash.
[chromium-blink-merge.git] / content / BUILD.gn
blob5768bafeb4bd6383a4cd1959d08c86754717f016
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 # TODO(brettw) remove this and add a proper dependency on blink once that
6 # target has been converted to GN. This config sets up the include directories
7 # so content can compile in the meantime.
9 # This corresponds to third_party/WebKit/public/blink_headers.gyp:blink_headers
10 config("blink_headers_stub_config") {
11   include_dirs = [ "//third_party/WebKit" ]
14 # TODO(brettw) remove this and add a proper dependency on libjingle once that
15 # target has been converted to GN. This config sets up the include directories
16 # so content can compile in the meantime.
17 config("libjingle_stub_config") {
18   include_dirs = [
19     "//third_party/libjingle/overrides",
20     "//third_party/libjingle/source",
21     "//third_party",
22     "//third_party/libyuv/include",
23     "//third_party/usrsctp",
24     "//third_party/webrtc",
25   ]
27   defines = [
28     "FEATURE_ENABLE_SSL",
29     "FEATURE_ENABLE_VOICEMAIL",
30     "EXPAT_RELATIVE_PATH",
31     "GTEST_RELATIVE_PATH",
32     "NO_MAIN_THREAD_WRAPPING",
33     "NO_SOUND_SYSTEM",
34   ]
36   if (is_mac) {
37     defines += [ "OSX" ]
38   } else if (is_linux) {
39     defines += [ "LINUX" ]
40   } else if (is_android) {
41     defines += [ "ANDROID" ]
42   } else if (is_win) {
43     libs = [ "secur32.lib", "crypt32.lib", "iphlpapi.lib" ]
44   }
46   if (is_posix) {
47     defines += [ "POSIX" ]
48   }
49   if (is_chromeos) {
50     defines += [ "CHROMEOS" ]
51   }