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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 # | 55 # |
56 # See //build/buildflag_header.gni for inntructions on generating headers. | 56 # See //build/buildflag_header.gni for inntructions on generating headers. |
57 # | 57 # |
58 # This will also allow you to scope your build flag to a BUILD.gn file (or a | 58 # This will also allow you to scope your build flag to a BUILD.gn file (or a |
59 # .gni file if you need it from more than one place) rather than making global | 59 # .gni file if you need it from more than one place) rather than making global |
60 # flags. See //build/config/BUILDCONFIG.gn for advice on where to define | 60 # flags. See //build/config/BUILDCONFIG.gn for advice on where to define |
61 # build flags. | 61 # build flags. |
62 config("feature_flags") { | 62 config("feature_flags") { |
63 # Don't use deprecated V8 APIs anywhere. | 63 # Don't use deprecated V8 APIs anywhere. |
64 defines = [ "V8_DEPRECATION_WARNINGS" ] | 64 defines = [ "V8_DEPRECATION_WARNINGS" ] |
65 if (enable_mdns) { | |
66 defines += [ "ENABLE_MDNS=1" ] | |
67 } | |
68 if (enable_notifications) { | 65 if (enable_notifications) { |
69 defines += [ "ENABLE_NOTIFICATIONS" ] | 66 defines += [ "ENABLE_NOTIFICATIONS" ] |
70 } | 67 } |
71 if (enable_plugins) { | 68 if (enable_plugins) { |
72 defines += [ "ENABLE_PLUGINS=1" ] | 69 defines += [ "ENABLE_PLUGINS=1" ] |
73 } | 70 } |
74 if (enable_pdf) { | 71 if (enable_pdf) { |
75 defines += [ "ENABLE_PDF=1" ] | 72 defines += [ "ENABLE_PDF=1" ] |
76 } | 73 } |
77 if (enable_basic_printing || enable_print_preview) { | 74 if (enable_basic_printing || enable_print_preview) { |
(...skipping 386 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
464 # file doesn't exist, no error will be generated (probably MS tested this | 461 # file doesn't exist, no error will be generated (probably MS tested this |
465 # case but forgot the other one?). To reproduce this error, do a build, | 462 # case but forgot the other one?). To reproduce this error, do a build, |
466 # then delete the precompile.c.obj file, then build again. | 463 # then delete the precompile.c.obj file, then build again. |
467 cflags_c = [ "/wd4206" ] | 464 cflags_c = [ "/wd4206" ] |
468 } else if (is_mac) { | 465 } else if (is_mac) { |
469 precompiled_header = "build/precompile.h" | 466 precompiled_header = "build/precompile.h" |
470 precompiled_source = "//build/precompile.h" | 467 precompiled_source = "//build/precompile.h" |
471 } | 468 } |
472 } | 469 } |
473 } | 470 } |
OLD | NEW |