Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(479)

Side by Side Diff: chrome/install_static/BUILD.gn

Issue 2422643002: Windows install_static refactor. (Closed)
Patch Set: sync to position 427054 Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 # Copyright 2016 The Chromium Authors. All rights reserved. 1 # Copyright 2016 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("//build/config/chrome_build.gni") 5 import("//build/config/chrome_build.gni")
6 import("//testing/test.gni") 6 import("//testing/test.gni")
7 7
8 assert(is_win) 8 assert(is_win)
9 9
10 # This file only contains utility functions which must only depend on kernel32. 10 # This file only contains utility functions which must only depend on kernel32.
11 # Please don't add dependencies on other system libraries. 11 # Please don't add dependencies on other system libraries.
12 static_library("install_static_util") { 12 static_library("install_static_util") {
13 public_deps = [ 13 public_deps = [
14 "//chrome_elf:nt_registry", 14 "//chrome_elf:nt_registry",
15 ] 15 ]
16 16
17 sources = [ 17 sources = [
18 "install_constants.h",
19 "install_details.cc",
20 "install_details.h",
21 "install_modes.cc",
22 "install_modes.h",
18 "install_util.cc", 23 "install_util.cc",
19 "install_util.h", 24 "install_util.h",
25 "product_install_details.cc",
26 "product_install_details.h",
20 ] 27 ]
21 28
29 if (is_chrome_branded) {
30 sources += [
31 "google_chrome_install_modes.cc",
32 "google_chrome_install_modes.h",
33 ]
34 } else {
35 sources += [
36 "chromium_install_modes.cc",
37 "chromium_install_modes.h",
38 ]
39 }
40
22 libs = [ "kernel32.lib" ] 41 libs = [ "kernel32.lib" ]
23 42
24 configs += [ 43 configs += [
25 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. 44 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
26 "//build/config/compiler:no_size_t_to_int_warning", 45 "//build/config/compiler:no_size_t_to_int_warning",
27 ] 46 ]
28 } 47 }
29 48
30 test("install_static_unittests") { 49 test("install_static_unittests") {
31 output_name = "install_static_unittests" 50 output_name = "install_static_unittests"
32 sources = [ 51 sources = [
52 "install_details_unittest.cc",
53 "install_modes_unittest.cc",
33 "install_util_unittest.cc", 54 "install_util_unittest.cc",
55 "product_install_details_unittest.cc",
34 ] 56 ]
35 include_dirs = [ "$target_gen_dir" ] 57 include_dirs = [ "$target_gen_dir" ]
36 deps = [ 58 deps = [
37 "//base", 59 "//base",
38 "//base/test:run_all_unittests", 60 "//base/test:run_all_unittests",
39 "//base/test:test_support", 61 "//base/test:test_support",
40 "//chrome/install_static:install_static_util", 62 "//chrome/install_static:install_static_util",
41 "//testing/gmock", 63 "//testing/gmock",
42 "//testing/gtest", 64 "//testing/gtest",
43 ] 65 ]
44 } 66 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698