Chromium Code Reviews| 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") | |
| 6 import("//components/reading_list/core/reading_list.gni") | |
| 7 | |
| 8 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.
| |
| 9 header = "reading_list_enable_flags.h" | |
| 10 _enabled = is_ios && enable_reading_list | |
| 11 flags = [ "ENABLE_READING_LIST=$_enabled" ] | |
| 12 } | |
| 13 | |
| 5 source_set("core") { | 14 source_set("core") { |
| 6 sources = [ | 15 sources = [ |
| 7 "reading_list_switches.cc", | 16 "reading_list_switches.cc", |
| 8 "reading_list_switches.h", | 17 "reading_list_switches.h", |
| 9 ] | 18 ] |
| 10 deps = [ | 19 deps = [ |
| 20 ":enable_flags", | |
| 11 "//base", | 21 "//base", |
| 12 ] | 22 ] |
| 13 } | 23 } |
| OLD | NEW |