| OLD | NEW |
| 1 # Copyright 2016 The Chromium Authors. All rights reserved. | 1 # Copyright 2016 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/buildflag_header.gni") | 5 import("//build/buildflag_header.gni") |
| 6 import("//extensions/features/features.gni") | 6 import("//extensions/features/features.gni") |
| 7 | 7 |
| 8 # TODO(crbug.com/731689): Assert that extensions are enabled. |
| 9 |
| 8 # This file is in a separate directory so all targets in the build can refer to | 10 # This file is in a separate directory so all targets in the build can refer to |
| 9 # the buildflag header to get the necessary preprocessor defines without | 11 # the buildflag header to get the necessary preprocessor defines without |
| 10 # bringing in all of extensions. Other targets can depend on this target | 12 # bringing in all of extensions. Other targets can depend on this target |
| 11 # regardless of whether extensions are enabled. | 13 # regardless of whether extensions are enabled. |
| 12 | 14 |
| 13 buildflag_header("features") { | 15 buildflag_header("features") { |
| 14 header = "features.h" | 16 header = "features.h" |
| 15 flags = [ | 17 flags = [ |
| 16 "ENABLE_EXTENSIONS=$enable_extensions", | 18 "ENABLE_EXTENSIONS=$enable_extensions", |
| 17 "ENABLE_WIFI_DISPLAY=$enable_wifi_display", | 19 "ENABLE_WIFI_DISPLAY=$enable_wifi_display", |
| 18 ] | 20 ] |
| 19 } | 21 } |
| OLD | NEW |