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

Side by Side Diff: rlz/BUILD.gn

Issue 929793006: Update existing uses of /wd4267 to use the GN config (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@x64
Patch Set: Created 5 years, 10 months 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
« no previous file with comments | « pdf/BUILD.gn ('k') | sql/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 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 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 # Note that this build file assumes rlz_use_chrome_net which is a condition in 5 # Note that this build file assumes rlz_use_chrome_net which is a condition in
6 # the GYP file, but is always true for Chrome builds. 6 # the GYP file, but is always true for Chrome builds.
7 7
8 import("//testing/test.gni") 8 import("//testing/test.gni")
9 9
10 config("rlz_config") { 10 config("rlz_config") {
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 "win/lib/machine_id_win.cc", 48 "win/lib/machine_id_win.cc",
49 "win/lib/process_info.cc", 49 "win/lib/process_info.cc",
50 "win/lib/process_info.h", 50 "win/lib/process_info.h",
51 "win/lib/registry_util.cc", 51 "win/lib/registry_util.cc",
52 "win/lib/registry_util.h", 52 "win/lib/registry_util.h",
53 "win/lib/rlz_lib_win.cc", 53 "win/lib/rlz_lib_win.cc",
54 "win/lib/rlz_value_store_registry.cc", 54 "win/lib/rlz_value_store_registry.cc",
55 "win/lib/rlz_value_store_registry.h", 55 "win/lib/rlz_value_store_registry.h",
56 ] 56 ]
57 57
58 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
59 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
60
58 public_configs = [ ":rlz_config" ] 61 public_configs = [ ":rlz_config" ]
59 62
60 deps = [ 63 deps = [
61 "//base", 64 "//base",
62 "//base/third_party/dynamic_annotations", 65 "//base/third_party/dynamic_annotations",
63 "//net", 66 "//net",
64 "//third_party/zlib", 67 "//third_party/zlib",
65 "//url", 68 "//url",
66 ] 69 ]
67 70
68 if (is_ios) { 71 if (is_ios) {
69 # These _mac files are also used on iOS. 72 # These _mac files are also used on iOS.
70 set_sources_assignment_filter([]) 73 set_sources_assignment_filter([])
71 sources += [ 74 sources += [
72 "mac/lib/rlz_value_store_mac.mm", 75 "mac/lib/rlz_value_store_mac.mm",
73 "mac/lib/rlz_value_store_mac.h", 76 "mac/lib/rlz_value_store_mac.h",
74 ] 77 ]
75 set_sources_assignment_filter(sources_assignment_filter) 78 set_sources_assignment_filter(sources_assignment_filter)
76 } else if (is_win) {
77 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
78 cflags = [ "/wd4267" ]
79 } 79 }
80 } 80 }
81 81
82 source_set("test_support") { 82 source_set("test_support") {
83 testonly = true 83 testonly = true
84 sources = [ 84 sources = [
85 "test/rlz_test_helpers.cc", 85 "test/rlz_test_helpers.cc",
86 "test/rlz_test_helpers.h", 86 "test/rlz_test_helpers.h",
87 ] 87 ]
88 deps = [ 88 deps = [
(...skipping 10 matching lines...) Expand all
99 "lib/crc8_unittest.cc", 99 "lib/crc8_unittest.cc",
100 "lib/financial_ping_test.cc", 100 "lib/financial_ping_test.cc",
101 "lib/lib_values_unittest.cc", 101 "lib/lib_values_unittest.cc",
102 "lib/machine_id_unittest.cc", 102 "lib/machine_id_unittest.cc",
103 "lib/rlz_lib_test.cc", 103 "lib/rlz_lib_test.cc",
104 "lib/string_utils_unittest.cc", 104 "lib/string_utils_unittest.cc",
105 "test/rlz_unittest_main.cc", 105 "test/rlz_unittest_main.cc",
106 "win/lib/machine_deal_test.cc", 106 "win/lib/machine_deal_test.cc",
107 ] 107 ]
108 108
109 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
110 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
111
109 deps = [ 112 deps = [
110 ":rlz_lib", 113 ":rlz_lib",
111 ":test_support", 114 ":test_support",
112 "//base", 115 "//base",
113 "//base:prefs", 116 "//base:prefs",
114 "//net:test_support", 117 "//net:test_support",
115 "//testing/gmock", 118 "//testing/gmock",
116 "//testing/gtest", 119 "//testing/gtest",
117 "//third_party/zlib", 120 "//third_party/zlib",
118 ] 121 ]
119
120 if (is_win) {
121 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
122 cflags = [ "/wd4267" ]
123 }
124 } 122 }
125 123
126 executable("rlz_id") { 124 executable("rlz_id") {
127 sources = [ 125 sources = [
128 "examples/rlz_id.cc", 126 "examples/rlz_id.cc",
129 ] 127 ]
130 deps = [ 128 deps = [
131 ":rlz_lib", 129 ":rlz_lib",
132 ] 130 ]
133 } 131 }
134 132
135 if (is_win) { 133 if (is_win) {
136 shared_library("rlz") { 134 shared_library("rlz") {
137 sources = [ 135 sources = [
138 "win/dll/dll_main.cc", 136 "win/dll/dll_main.cc",
139 "win/dll/exports.cc", 137 "win/dll/exports.cc",
140 ] 138 ]
141 deps = [ 139 deps = [
142 ":rlz_lib", 140 ":rlz_lib",
143 "//third_party/zlib", 141 "//third_party/zlib",
144 ] 142 ]
145 } 143 }
146 } 144 }
OLDNEW
« no previous file with comments | « pdf/BUILD.gn ('k') | sql/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698