Fix import error in mac_platform_backend.py
[chromium-blink-merge.git] / build / config / BUILD.gn
blob7dabf019f59df5fb2285a82c2e4b2c17d1154808
1 # Copyright (c) 2013 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 declare_args() {
6   # When set, turns off the (normally-on) iterator debugging and related stuff
7   # that is normall turned on for Debug builds. These are generally useful for
8   # catching bugs but in some cases may cause conflicts or excessive slowness.
9   disable_iterator_debugging = false
12 config("my_msvs") {
13   defines = [
14       "CHROMIUM_BUILD",
15       "TOOLKIT_VIEWS=1",
16       "USE_LIBJPEG_TURBO=1",
17       "ENABLE_ONE_CLICK_SIGNIN",
18       "ENABLE_REMOTING=1",
19       "ENABLE_WEBRTC=1",
20       "ENABLE_CONFIGURATION_POLICY",
21       "ENABLE_INPUT_SPEECH",
22       "ENABLE_NOTIFICATIONS",
23       "ENABLE_EGLIMAGE=1",
24       "ENABLE_TASK_MANAGER=1",
25       "ENABLE_EXTENSIONS=1",
26       "ENABLE_PLUGIN_INSTALLATION=1",
27       "ENABLE_PLUGINS=1",
28       "ENABLE_SESSION_SERVICE=1",
29       "ENABLE_THEMES=1",
30       "ENABLE_AUTOFILL_DIALOG=1",
31       "ENABLE_BACKGROUND=1",
32       "ENABLE_AUTOMATION=1",
33       "ENABLE_GOOGLE_NOW=1",
34       "ENABLE_PRINTING=1",
35       "ENABLE_CAPTIVE_PORTAL_DETECTION=1",
36       "ENABLE_APP_LIST=1",
37       "ENABLE_MESSAGE_CENTER=1",
38       "ENABLE_SETTINGS_APP=1",
39       "ENABLE_MANAGED_USERS=1",
40   ]
42   if (use_aura) {
43     defines += [ "USE_AURA=1" ]
44   }
47 config("feature_flags") {
50 config("debug") {
51   defines = [
52     "_DEBUG",
53     "DYNAMIC_ANNOTATIONS_ENABLED=1",
54     "WTF_USE_DYNAMIC_ANNOTATIONS=1",
55   ]
57   if (is_win) {
58     if (disable_iterator_debugging) {
59       # Iterator debugging is enabled by the compiler on debug builds, and we
60       # have to tell it to turn it off.
61       defines += [ "_HAS_ITERATOR_DEBUGGING=0" ]
62     }
63   } else if (is_linux && !is_android && cpu_arch == "x64" &&
64              !disable_iterator_debugging) {
65     # Enable libstdc++ debugging facilities to help catch problems early, see
66     # http://crbug.com/65151 .
67     # TODO(phajdan.jr): Should we enable this for all of POSIX?
68     defines += [ "_GLIBCXX_DEBUG=1" ]
69   }
72 config("release") {