Chromium Code Reviews| Index: chrome/install_static/BUILD.gn |
| diff --git a/chrome/install_static/BUILD.gn b/chrome/install_static/BUILD.gn |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..edb2f62cb183b6862c669a80fef5b2df05082cf5 |
| --- /dev/null |
| +++ b/chrome/install_static/BUILD.gn |
| @@ -0,0 +1,38 @@ |
| +# Copyright 2016 The Chromium Authors. All rights reserved. |
| +# Use of this source code is governed by a BSD-style license that can be |
| +# found in the LICENSE file. |
| + |
| +import("//build/config/chrome_build.gni") |
| +import("//testing/test.gni") |
| + |
| +# This file only contains utility functions which can depend on kernel32 and |
|
robertshield
2016/04/20 17:32:50
s/can depend/must only depend/
ananta
2016/04/20 20:15:36
Done.
|
| +# advapi32. |
| +static_library("install_static_util") { |
| + deps = [ |
| + "//base", |
| + ] |
| + |
| + if (is_win) { |
| + # TODO(GYP) install_static_util on Windows. |
| + # This is a bit tricky. It seems that what's currently called |
| + # install_static_nacl_win64 should be a different target with a different |
| + # name ("installer_static_minimal"?) since it's not strictly the 64-bit |
| + # build of that target. |
| + sources = [ |
| + "install_util.cc", |
| + "install_util.h", |
| + ] |
| + |
| + libs = [ |
| + "kernel32.lib", |
| + "advapi32.lib", |
| + ] |
| + |
| + configs += [ |
| + "//build/config:precompiled_headers", |
| + |
| + # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| + "//build/config/compiler:no_size_t_to_int_warning", |
| + ] |
| + } |
| +} |