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

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

Issue 2487783002: Make Crashpad use the user data dir, rather than always default location (Closed)
Patch Set: install_static for swarming Created 4 years 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 deps = [ 13 deps = [
14 "//components/version_info:generate_version_info", 14 "//components/version_info:generate_version_info",
15 ] 15 ]
16 16
17 public_deps = [ 17 public_deps = [
18 "//chrome_elf:nt_registry", 18 "//chrome_elf:nt_registry",
19 ] 19 ]
20 20
21 sources = [ 21 sources = [
22 "install_constants.h", 22 "install_constants.h",
23 "install_details.cc", 23 "install_details.cc",
24 "install_details.h", 24 "install_details.h",
25 "install_modes.cc", 25 "install_modes.cc",
26 "install_modes.h", 26 "install_modes.h",
27 "install_util.cc", 27 "install_util.cc",
28 "install_util.h", 28 "install_util.h",
29 "policy_path_parser.cc",
30 "policy_path_parser.h",
29 "product_install_details.cc", 31 "product_install_details.cc",
30 "product_install_details.h", 32 "product_install_details.h",
33 "user_data_dir.cc",
34 "user_data_dir.h",
31 ] 35 ]
32 36
33 if (is_chrome_branded) { 37 if (is_chrome_branded) {
34 sources += [ 38 sources += [
35 "google_chrome_install_modes.cc", 39 "google_chrome_install_modes.cc",
36 "google_chrome_install_modes.h", 40 "google_chrome_install_modes.h",
37 ] 41 ]
38 } else { 42 } else {
39 sources += [ 43 sources += [
40 "chromium_install_modes.cc", 44 "chromium_install_modes.cc",
41 "chromium_install_modes.h", 45 "chromium_install_modes.h",
42 ] 46 ]
43 } 47 }
44 48
45 libs = [ "kernel32.lib" ] 49 libs = [ "kernel32.lib" ]
46 50
47 configs += [ 51 configs += [
48 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. 52 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
49 "//build/config/compiler:no_size_t_to_int_warning", 53 "//build/config/compiler:no_size_t_to_int_warning",
50 ] 54 ]
51 } 55 }
52 56
53 test("install_static_unittests") { 57 test("install_static_unittests") {
54 output_name = "install_static_unittests" 58 output_name = "install_static_unittests"
55 sources = [ 59 sources = [
56 "install_details_unittest.cc", 60 "install_details_unittest.cc",
57 "install_modes_unittest.cc", 61 "install_modes_unittest.cc",
58 "install_util_unittest.cc", 62 "install_util_unittest.cc",
59 "product_install_details_unittest.cc", 63 "product_install_details_unittest.cc",
64 "user_data_dir_win_unittest.cc",
60 ] 65 ]
61 include_dirs = [ "$target_gen_dir" ] 66 include_dirs = [ "$target_gen_dir" ]
62 deps = [ 67 deps = [
63 "//base", 68 "//base",
64 "//base/test:run_all_unittests", 69 "//base/test:run_all_unittests",
65 "//base/test:test_support", 70 "//base/test:test_support",
66 "//chrome/install_static:install_static_util", 71 "//chrome/install_static:install_static_util",
67 "//testing/gmock", 72 "//testing/gmock",
68 "//testing/gtest", 73 "//testing/gtest",
69 ] 74 ]
70 } 75 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698