Chromium Code Reviews| Index: components/reading_list/core/BUILD.gn |
| diff --git a/components/reading_list/core/BUILD.gn b/components/reading_list/core/BUILD.gn |
| index 52dbc37326d1c354765936715725ca02e3978b5f..5b53f92bc899e38f0ef19ba9d84944dede04f142 100644 |
| --- a/components/reading_list/core/BUILD.gn |
| +++ b/components/reading_list/core/BUILD.gn |
| @@ -2,12 +2,22 @@ |
| # Use of this source code is governed by a BSD-style license that can be |
| # found in the LICENSE file. |
| +import("//build/buildflag_header.gni") |
| +import("//components/reading_list/core/reading_list.gni") |
| + |
| +buildflag_header("enable_flags") { |
|
sdefresne
2016/12/09 17:42:10
nit: please name the target after the header file
Olivier
2016/12/11 20:34:19
Done.
|
| + header = "reading_list_enable_flags.h" |
| + _enabled = is_ios && enable_reading_list |
| + flags = [ "ENABLE_READING_LIST=$_enabled" ] |
| +} |
| + |
| source_set("core") { |
| sources = [ |
| "reading_list_switches.cc", |
| "reading_list_switches.h", |
| ] |
| deps = [ |
| + ":enable_flags", |
| "//base", |
| ] |
| } |