| OLD | NEW |
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 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("//chrome/common/features.gni") | 5 import("//chrome/common/features.gni") |
| 6 import("//tools/grit/grit_rule.gni") | 6 import("//tools/grit/grit_rule.gni") |
| 7 | 7 |
| 8 assert(!is_ios, "Chromium/iOS shouldn't use anything in //chrome") | 8 assert(!is_ios, "Chromium/iOS shouldn't use anything in //chrome") |
| 9 | 9 |
| 10 grit("invalidations_resources") { | 10 grit("invalidations_resources") { |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 | 99 |
| 100 outputs = [ | 100 outputs = [ |
| 101 "grit/component_extension_resources.h", | 101 "grit/component_extension_resources.h", |
| 102 "grit/component_extension_resources_map.cc", | 102 "grit/component_extension_resources_map.cc", |
| 103 "grit/component_extension_resources_map.h", | 103 "grit/component_extension_resources_map.h", |
| 104 "component_extension_resources.pak", | 104 "component_extension_resources.pak", |
| 105 ] | 105 ] |
| 106 output_dir = "$root_gen_dir/chrome" | 106 output_dir = "$root_gen_dir/chrome" |
| 107 } | 107 } |
| 108 | 108 |
| 109 grit("options_resources") { | |
| 110 source = "options_resources.grd" | |
| 111 defines = chrome_grit_defines | |
| 112 outputs = [ | |
| 113 "grit/options_resources.h", | |
| 114 "options_resources.pak", | |
| 115 ] | |
| 116 output_dir = "$root_gen_dir/chrome" | |
| 117 } | |
| 118 | |
| 119 grit("settings_resources") { | 109 grit("settings_resources") { |
| 120 if (use_vulcanize) { | 110 if (use_vulcanize) { |
| 121 source = "settings/settings_resources_vulcanized.grd" | 111 source = "settings/settings_resources_vulcanized.grd" |
| 122 deps = [ | 112 deps = [ |
| 123 "//chrome/browser/resources/settings:build", | 113 "//chrome/browser/resources/settings:build", |
| 124 ] | 114 ] |
| 125 grit_flags = [ | 115 grit_flags = [ |
| 126 "-E", | 116 "-E", |
| 127 "root_gen_dir=" + rebase_path(root_gen_dir, root_build_dir), | 117 "root_gen_dir=" + rebase_path(root_gen_dir, root_build_dir), |
| 128 ] | 118 ] |
| 129 } else { | 119 } else { |
| 130 source = "settings/settings_resources.grd" | 120 source = "settings/settings_resources.grd" |
| 131 } | 121 } |
| 132 | 122 |
| 133 defines = chrome_grit_defines | 123 defines = chrome_grit_defines |
| 134 outputs = [ | 124 outputs = [ |
| 135 "grit/settings_resources.h", | 125 "grit/settings_resources.h", |
| 136 "grit/settings_resources_map.cc", | 126 "grit/settings_resources_map.cc", |
| 137 "grit/settings_resources_map.h", | 127 "grit/settings_resources_map.h", |
| 138 "settings_resources.pak", | 128 "settings_resources.pak", |
| 139 ] | 129 ] |
| 140 output_dir = "$root_gen_dir/chrome" | 130 output_dir = "$root_gen_dir/chrome" |
| 141 } | 131 } |
| 142 } | 132 } |
| 143 | 133 |
| 134 if (is_chromeos) { |
| 135 grit("options_resources") { |
| 136 source = "options_resources.grd" |
| 137 defines = chrome_grit_defines |
| 138 outputs = [ |
| 139 "grit/options_resources.h", |
| 140 "options_resources.pak", |
| 141 ] |
| 142 output_dir = "$root_gen_dir/chrome" |
| 143 } |
| 144 } |
| 145 |
| 144 if (enable_extensions) { | 146 if (enable_extensions) { |
| 145 grit("sync_file_system_internals_resources") { | 147 grit("sync_file_system_internals_resources") { |
| 146 source = "sync_file_system_internals_resources.grd" | 148 source = "sync_file_system_internals_resources.grd" |
| 147 defines = chrome_grit_defines | 149 defines = chrome_grit_defines |
| 148 outputs = [ | 150 outputs = [ |
| 149 "grit/sync_file_system_internals_resources.h", | 151 "grit/sync_file_system_internals_resources.h", |
| 150 "sync_file_system_internals_resources.pak", | 152 "sync_file_system_internals_resources.pak", |
| 151 ] | 153 ] |
| 152 output_dir = "$root_gen_dir/chrome" | 154 output_dir = "$root_gen_dir/chrome" |
| 153 } | 155 } |
| 154 } | 156 } |
| OLD | NEW |