| OLD | NEW |
| 1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. | 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 | 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("//build/config/allocator.gni") | 5 import("//build/config/allocator.gni") |
| 6 import("//build/config/chrome_build.gni") | 6 import("//build/config/chrome_build.gni") |
| 7 import("//build/config/chromecast_build.gni") | 7 import("//build/config/chromecast_build.gni") |
| 8 import("//build/config/crypto.gni") | 8 import("//build/config/crypto.gni") |
| 9 import("//build/config/dcheck_always_on.gni") | 9 import("//build/config/dcheck_always_on.gni") |
| 10 import("//build/config/features.gni") | 10 import("//build/config/features.gni") |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 # | 51 # |
| 52 # See //build/buildflag_header.gni for inntructions on generating headers. | 52 # See //build/buildflag_header.gni for inntructions on generating headers. |
| 53 # | 53 # |
| 54 # This will also allow you to scope your build flag to a BUILD.gn file (or a | 54 # This will also allow you to scope your build flag to a BUILD.gn file (or a |
| 55 # .gni file if you need it from more than one place) rather than making global | 55 # .gni file if you need it from more than one place) rather than making global |
| 56 # flags. See //build/config/BUILDCONFIG.gn for advice on where to define | 56 # flags. See //build/config/BUILDCONFIG.gn for advice on where to define |
| 57 # build flags. | 57 # build flags. |
| 58 config("feature_flags") { | 58 config("feature_flags") { |
| 59 # Don't use deprecated V8 APIs anywhere. | 59 # Don't use deprecated V8 APIs anywhere. |
| 60 defines = [ "V8_DEPRECATION_WARNINGS" ] | 60 defines = [ "V8_DEPRECATION_WARNINGS" ] |
| 61 if (enable_notifications) { | |
| 62 defines += [ "ENABLE_NOTIFICATIONS" ] | |
| 63 } | |
| 64 if (enable_pdf) { | 61 if (enable_pdf) { |
| 65 defines += [ "ENABLE_PDF=1" ] | 62 defines += [ "ENABLE_PDF=1" ] |
| 66 } | 63 } |
| 67 if (dcheck_always_on) { | 64 if (dcheck_always_on) { |
| 68 defines += [ "DCHECK_ALWAYS_ON=1" ] | 65 defines += [ "DCHECK_ALWAYS_ON=1" ] |
| 69 } | 66 } |
| 70 if (use_udev) { | 67 if (use_udev) { |
| 71 # TODO(brettw) should probably be "=1". | 68 # TODO(brettw) should probably be "=1". |
| 72 defines += [ "USE_UDEV" ] | 69 defines += [ "USE_UDEV" ] |
| 73 } | 70 } |
| (...skipping 334 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 408 # | 405 # |
| 409 # TODO(sof): determine VS2015 status and retire the setting from all | 406 # TODO(sof): determine VS2015 status and retire the setting from all |
| 410 # precompiled configurations. | 407 # precompiled configurations. |
| 411 cflags_c = [ "/wd4206" ] | 408 cflags_c = [ "/wd4206" ] |
| 412 } else if (is_mac) { | 409 } else if (is_mac) { |
| 413 precompiled_header = "build/precompile.h" | 410 precompiled_header = "build/precompile.h" |
| 414 precompiled_source = "//build/precompile.h" | 411 precompiled_source = "//build/precompile.h" |
| 415 } | 412 } |
| 416 } | 413 } |
| 417 } | 414 } |
| OLD | NEW |