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..375898a626b2fafb86a2e669a83fda79ecabd67f 100644 |
| --- a/components/reading_list/core/BUILD.gn |
| +++ b/components/reading_list/core/BUILD.gn |
| @@ -2,12 +2,23 @@ |
| # 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") { |
| + header = "reading_list_enable_flags.h" |
| + header_dir = "components/reading_list/core" |
| + enabled = is_ios && enable_reading_list |
|
sdefresne
2016/12/09 15:10:59
nit: please name this "_enabled" (variable startin
Olivier
2016/12/09 15:27:38
Done.
|
| + flags = [ "ENABLE_READING_LIST=$enabled" ] |
| +} |
| + |
| source_set("core") { |
| sources = [ |
| "reading_list_switches.cc", |
| "reading_list_switches.h", |
| ] |
| deps = [ |
| + ":enable_flags", |
| "//base", |
| ] |
| } |