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

Side by Side Diff: build/protoc.gypi

Issue 10796051: Change protoc build rule to not use cygwin bash. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix the additional paths Created 8 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « DEPS ('k') | sync/notifier/chrome_invalidation_client.cc » ('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 (c) 2011 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2011 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 # This file is meant to be included into an target to provide a rule 5 # This file is meant to be included into a target to provide a rule
6 # to invoke protoc in a consistent manner. 6 # to invoke protoc in a consistent manner.
7 # 7 #
8 # To use this, create a gyp target with the following form: 8 # To use this, create a gyp target with the following form:
9 # { 9 # {
10 # 'target_name': 'my_proto_lib', 10 # 'target_name': 'my_proto_lib',
11 # 'type': 'static_library', 11 # 'type': 'static_library',
12 # 'sources': [ 12 # 'sources': [
13 # 'foo.proto', 13 # 'foo.proto',
14 # 'bar.proto', 14 # 'bar.proto',
15 # ], 15 # ],
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 'inputs': [ 51 'inputs': [
52 '<(protoc)', 52 '<(protoc)',
53 ], 53 ],
54 'outputs': [ 54 'outputs': [
55 '<(py_dir)/<(RULE_INPUT_ROOT)_pb2.py', 55 '<(py_dir)/<(RULE_INPUT_ROOT)_pb2.py',
56 '<(cc_dir)/<(RULE_INPUT_ROOT).pb.cc', 56 '<(cc_dir)/<(RULE_INPUT_ROOT).pb.cc',
57 '<(cc_dir)/<(RULE_INPUT_ROOT).pb.h', 57 '<(cc_dir)/<(RULE_INPUT_ROOT).pb.h',
58 ], 58 ],
59 'action': [ 59 'action': [
60 '<(protoc)', 60 '<(protoc)',
61 '--proto_path=<(proto_in_dir)', 61 # Using the --arg val form (instead of --arg=val) allows gyp's msvs rule
62 # generation to correct 'val' which is a path.
63 '--proto_path','<(proto_in_dir)',
62 # Naively you'd use <(RULE_INPUT_PATH) here, but protoc requires 64 # Naively you'd use <(RULE_INPUT_PATH) here, but protoc requires
63 # --proto_path is a strict prefix of the path given as an argument. 65 # --proto_path is a strict prefix of the path given as an argument.
64 '<(proto_in_dir)/<(RULE_INPUT_ROOT)<(RULE_INPUT_EXT)', 66 '<(proto_in_dir)/<(RULE_INPUT_ROOT)<(RULE_INPUT_EXT)',
65 '--cpp_out=<(cc_dir)', 67 '--cpp_out','<(cc_dir)',
66 '--python_out=<(py_dir)', 68 '--python_out','<(py_dir)',
67 ], 69 ],
70 'msvs_cygwin_shell': 0,
68 'message': 'Generating C++ and Python code from <(RULE_INPUT_PATH)', 71 'message': 'Generating C++ and Python code from <(RULE_INPUT_PATH)',
69 'process_outputs_as_sources': 1, 72 'process_outputs_as_sources': 1,
70 }, 73 },
71 ], 74 ],
72 'dependencies': [ 75 'dependencies': [
73 '<(DEPTH)/third_party/protobuf/protobuf.gyp:protoc#host', 76 '<(DEPTH)/third_party/protobuf/protobuf.gyp:protoc#host',
74 '<(DEPTH)/third_party/protobuf/protobuf.gyp:protobuf_lite', 77 '<(DEPTH)/third_party/protobuf/protobuf.gyp:protobuf_lite',
75 ], 78 ],
76 'include_dirs': [ 79 'include_dirs': [
77 '<(SHARED_INTERMEDIATE_DIR)/protoc_out', 80 '<(SHARED_INTERMEDIATE_DIR)/protoc_out',
78 ], 81 ],
79 'direct_dependent_settings': { 82 'direct_dependent_settings': {
80 'include_dirs': [ 83 'include_dirs': [
81 '<(SHARED_INTERMEDIATE_DIR)/protoc_out', 84 '<(SHARED_INTERMEDIATE_DIR)/protoc_out',
82 ] 85 ]
83 }, 86 },
84 'export_dependent_settings': [ 87 'export_dependent_settings': [
85 # The generated headers reference headers within protobuf_lite, 88 # The generated headers reference headers within protobuf_lite,
86 # so dependencies must be able to find those headers too. 89 # so dependencies must be able to find those headers too.
87 '<(DEPTH)/third_party/protobuf/protobuf.gyp:protobuf_lite', 90 '<(DEPTH)/third_party/protobuf/protobuf.gyp:protobuf_lite',
88 ], 91 ],
89 # This target exports a hard dependency because it generates header 92 # This target exports a hard dependency because it generates header
90 # files. 93 # files.
91 'hard_dependency': 1, 94 'hard_dependency': 1,
92 } 95 }
OLDNEW
« no previous file with comments | « DEPS ('k') | sync/notifier/chrome_invalidation_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698