Fix a leak in wm::AnimateOnChildWindowVisibilityChanged().
[chromium-blink-merge.git] / chrome / app / BUILD.gn
blob6be2ff36694d06d77d12bd1b5ffa7cbf4ac481b9
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
3 # found in the LICENSE file.
5 import("//tools/grit/grit_rule.gni")
7 # GYP version: chrome/chrome_resources.gyp:chrome_strings
8 #              (generate_generated_resources action)
9 grit("generated_resources") {
10   source = "generated_resources.grd"
13 # GYP version: chrome/chrome_resources.gyp:chrome_strings_map
14 action("make_generated_resources_map") {
15   # Targets should depend on generated_resources_map instead.
16   visibility = ":generated_resources_map"
18   script = "//chrome/browser/metrics/variations/generate_resources_map.py"
20   inputs = [ "$target_gen_dir/grit/generated_resources.h" ]
21   outputs = [ "$target_gen_dir/generated_resources_map.cc" ]
23   args = rebase_path(inputs, root_build_dir) +
24       rebase_path(outputs, root_build_dir)
26   deps = [ ":generated_resources" ]
29 # Collect the generated .cc file from make_generated_resources_map and put it
30 # in a source set so targets that depend on it will link the source rather than
31 # specifying it manually. This doesn't happen in the GYP build.
32 source_set("generated_resources_map") {
33   sources = get_target_outputs(":make_generated_resources_map")
36 # GYP version: chrome/chrome_resources.gyp:chrome_strings
37 #              (generate_google_chrome_strings action)
38 grit("google_chrome_strings") {
39   source = "google_chrome_strings.grd"
42 # GYP version: chrome/chrome_resources.gyp:chrome_strings
43 #              (generate_chromium_strings action)
44 grit("chromium_strings") {
45   source = "chromium_strings.grd"