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

Side by Side Diff: third_party/protobuf/BUILD.gn

Issue 979643002: Fix the following browser_tests in the Linux GN build. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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
« chrome/test/BUILD.gn ('K') | « ppapi/BUILD.gn ('k') | no next file » | 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 if (is_win) { 5 if (is_win) {
6 config_h_dir = "vsprojects" 6 config_h_dir = "vsprojects"
7 } else { 7 } else {
8 config_h_dir = "." 8 config_h_dir = "."
9 } 9 }
10 10
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after
256 configs -= [ "//build/config/win:lean_and_mean" ] 256 configs -= [ "//build/config/win:lean_and_mean" ]
257 } 257 }
258 258
259 cflags = protobuf_lite_cflags 259 cflags = protobuf_lite_cflags
260 260
261 deps = [ 261 deps = [
262 ":protobuf_full", 262 ":protobuf_full",
263 ] 263 ]
264 deps += [ "//build/config/sanitizers:deps" ] 264 deps += [ "//build/config/sanitizers:deps" ]
265 } 265 }
266
267 copy("copy_google") {
268 sources = [
269 "__init__.py",
270 ]
271 outputs = [
272 "$root_gen_dir/google/{{source_file_part}}",
273 ]
274 }
275
276 copy("copy_google_protobuf") {
277 sources = [
278 "python/google/protobuf/__init__.py",
279 "python/google/protobuf/descriptor.py",
280 "python/google/protobuf/descriptor_database.py",
281 "python/google/protobuf/descriptor_pool.py",
282 "python/google/protobuf/message.py",
283 "python/google/protobuf/message_factory.py",
284 "python/google/protobuf/reflection.py",
285 "python/google/protobuf/service.py",
286 "python/google/protobuf/service_reflection.py",
287 "python/google/protobuf/text_format.py",
288
289 # TODO(ncarter): protoc"s python generator treats
290 # descriptor.proto specially, but it's not possible to trigger
291 # the special treatment unless you run protoc from ./src/src
292 # (the treatment is based on the path to the .proto file
293 # matching a constant exactly). I'm not sure how to convince
294 # gyp to execute a rule from a different directory. Until this
295 # is resolved, use a copy of descriptor_pb2.py that I manually
296 # generated.
297 "descriptor_pb2.py",
298 ]
299 outputs = [
300 "$root_gen_dir/google/protobuf/{{source_file_part}}",
301 ]
302 }
303
304 copy("copy_google_protobuf_internal") {
305 sources = [
306 "python/google/protobuf/internal/__init__.py",
307 "python/google/protobuf/internal/api_implementation.py",
308 "python/google/protobuf/internal/containers.py",
309 "python/google/protobuf/internal/cpp_message.py",
310 "python/google/protobuf/internal/decoder.py",
311 "python/google/protobuf/internal/encoder.py",
312 "python/google/protobuf/internal/enum_type_wrapper.py",
313 "python/google/protobuf/internal/generator_test.py",
314 "python/google/protobuf/internal/message_listener.py",
315 "python/google/protobuf/internal/python_message.py",
316 "python/google/protobuf/internal/type_checkers.py",
317 "python/google/protobuf/internal/wire_format.py",
318 ]
319 outputs = [
320 "$root_gen_dir/google/protobuf/internal/{{source_file_part}}",
321 ]
322 }
323
324 group("py_proto") {
325 public_deps = [
326 ":copy_google",
327 ":copy_google_protobuf",
328 ":copy_google_protobuf_internal",
329 ]
330 }
266 } 331 }
OLDNEW
« chrome/test/BUILD.gn ('K') | « ppapi/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698