OLD | NEW |
(Empty) | |
| 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. |
| 4 |
| 5 static_library("util") { |
| 6 deps = [ |
| 7 "//base", |
| 8 "//chrome:resources", |
| 9 "//chrome:strings", |
| 10 ] |
| 11 |
| 12 if (is_win) { |
| 13 # TODO(GYP) installer_util on Windows. |
| 14 # This is a bit tricky. It seems that what's currently called |
| 15 # installer_util_nacl_win64 should be a different target with a different |
| 16 # name ("installer_util_minimal"?) since it's not strictly the 64-bit build |
| 17 # of that target. |
| 18 } else { |
| 19 sources = [ |
| 20 "google_update_experiment_util.cc", |
| 21 "google_update_experiment_util.h", |
| 22 "master_preferences.cc", |
| 23 "master_preferences.h", |
| 24 "master_preferences_constants.cc", |
| 25 "master_preferences_constants.h", |
| 26 ] |
| 27 } |
| 28 } |
| 29 |
| 30 action("strings") { |
| 31 script = "prebuild/create_string_rc.py" |
| 32 |
| 33 if (is_chrome_branded) { |
| 34 grdfile = "//chrome/app/google_chrome_strings.grd" |
| 35 } else { |
| 36 grdfile = "//chrome/app/chromium_strings.grd" |
| 37 } |
| 38 |
| 39 inputs = [ grdfile ] |
| 40 |
| 41 # TODO(brettw) move to target_gen_dir |
| 42 outdir = "$root_gen_dir/installer_util_strings" |
| 43 outputs = [ |
| 44 "$outdir/installer_util_strings.h", |
| 45 "$outdir/installer_util_strings.rc", |
| 46 ] |
| 47 |
| 48 args = [ |
| 49 "-i", rebase_path(grdfile, root_build_dir) + ":resources", |
| 50 "-n", "installer_util_strings", |
| 51 "-o", rebase_path(outdir, root_build_dir), |
| 52 ] |
| 53 } |
OLD | NEW |