OLD | NEW |
1 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 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 { | 5 { |
6 'targets': [ | 6 'targets': [ |
7 { | 7 { |
8 # GN version: //components/flags_ui | 8 # GN version: //components/flags_ui |
9 'target_name': 'flags_ui', | 9 'target_name': 'flags_ui', |
10 'type': 'static_library', | 10 'type': 'static_library', |
11 'include_dirs': [ | 11 'include_dirs': [ |
12 '..', | 12 '..', |
13 ], | 13 ], |
14 'dependencies': [ | 14 'dependencies': [ |
15 '../base/base.gyp:base', | 15 '../base/base.gyp:base', |
16 '../base/base.gyp:base_prefs', | 16 '../base/base.gyp:base_prefs', |
17 '../components/components_strings.gyp:components_strings', | 17 '../components/components_strings.gyp:components_strings', |
18 '../ui/base/ui_base.gyp:ui_base', | 18 '../ui/base/ui_base.gyp:ui_base', |
| 19 'flags_ui_switches', |
19 ], | 20 ], |
20 'sources': [ | 21 'sources': [ |
21 # Note: sources list duplicated in GN build. | 22 # Note: sources list duplicated in GN build. |
22 'flags_ui/feature_entry.cc', | 23 'flags_ui/feature_entry.cc', |
23 'flags_ui/feature_entry.h', | 24 'flags_ui/feature_entry.h', |
24 'flags_ui/feature_entry_macros.h', | 25 'flags_ui/feature_entry_macros.h', |
| 26 'flags_ui/flags_state.cc', |
| 27 'flags_ui/flags_state.h', |
| 28 'flags_ui/flags_storage.h', |
25 'flags_ui/flags_ui_constants.cc', | 29 'flags_ui/flags_ui_constants.cc', |
26 'flags_ui/flags_ui_constants.h', | 30 'flags_ui/flags_ui_constants.h', |
27 'flags_ui/flags_ui_pref_names.cc', | 31 'flags_ui/flags_ui_pref_names.cc', |
28 'flags_ui/flags_ui_pref_names.h', | 32 'flags_ui/flags_ui_pref_names.h', |
29 'flags_ui/flags_storage.h', | |
30 'flags_ui/pref_service_flags_storage.cc', | 33 'flags_ui/pref_service_flags_storage.cc', |
31 'flags_ui/pref_service_flags_storage.h', | 34 'flags_ui/pref_service_flags_storage.h', |
32 ], | 35 ], |
33 }, | 36 }, |
| 37 { |
| 38 # GN version: //components/flags_ui:switches |
| 39 # This is a separate target so that the dependencies of |
| 40 # //chrome/common can be kept minimal. |
| 41 'target_name': 'flags_ui_switches', |
| 42 'type': 'static_library', |
| 43 'include_dirs': [ |
| 44 '..', |
| 45 ], |
| 46 'sources': [ |
| 47 # Note: sources list duplicated in GN build. |
| 48 'flags_ui/flags_ui_switches.cc', |
| 49 'flags_ui/flags_ui_switches.h', |
| 50 ], |
| 51 }, |
| 52 ], |
| 53 'conditions': [ |
| 54 ['OS=="win" and target_arch=="ia32"', { |
| 55 'targets': [ |
| 56 { |
| 57 # The flags_ui_switches_win64 target here allows us to use base for |
| 58 # Win64 targets (the normal build is 32 bits). |
| 59 'target_name': 'flags_ui_switches_win64', |
| 60 'type': 'static_library', |
| 61 'include_dirs': [ |
| 62 '..', |
| 63 ], |
| 64 'sources': [ |
| 65 # Note: sources list duplicated in GN build. |
| 66 'flags_ui/flags_ui_switches.cc', |
| 67 'flags_ui/flags_ui_switches.h', |
| 68 ], |
| 69 'configurations': { |
| 70 'Common_Base': { |
| 71 'msvs_target_platform': 'x64', |
| 72 }, |
| 73 }, |
| 74 }, |
| 75 ], |
| 76 }], |
34 ], | 77 ], |
35 } | 78 } |
OLD | NEW |