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

Side by Side Diff: build/protoc.gypi

Issue 11418310: Linux: update protoc wrapper to allow building with system protobuf. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix Created 8 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | tools/protoc_wrapper/protoc_wrapper.py » ('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) 2012 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2012 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 a 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. For Java-targets, see 6 # to invoke protoc in a consistent manner. For Java-targets, see
7 # protoc_java.gypi. 7 # protoc_java.gypi.
8 # 8 #
9 # To use this, create a gyp target with the following form: 9 # To use this, create a gyp target with the following form:
10 # { 10 # {
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 '<(cc_dir)/<(RULE_INPUT_ROOT).pb.cc', 75 '<(cc_dir)/<(RULE_INPUT_ROOT).pb.cc',
76 '<(cc_dir)/<(RULE_INPUT_ROOT).pb.h', 76 '<(cc_dir)/<(RULE_INPUT_ROOT).pb.h',
77 ], 77 ],
78 'action': [ 78 'action': [
79 'python', 79 'python',
80 '<(protoc_wrapper)', 80 '<(protoc_wrapper)',
81 '--include', 81 '--include',
82 '<(cc_include)', 82 '<(cc_include)',
83 '--protobuf', 83 '--protobuf',
84 '<(cc_dir)/<(RULE_INPUT_ROOT).pb.h', 84 '<(cc_dir)/<(RULE_INPUT_ROOT).pb.h',
85 # Using the --arg val form (instead of --arg=val) allows gyp's msvs rule
86 # generation to correct 'val' which is a path.
87 '--proto-in-dir','<(proto_in_dir)',
88 # Naively you'd use <(RULE_INPUT_PATH) here, but protoc requires
89 # --proto_path is a strict prefix of the path given as an argument.
90 '--proto-in-file','<(RULE_INPUT_ROOT)<(RULE_INPUT_EXT)',
91 '--use-system-protobuf=<(use_system_protobuf)',
85 '--', 92 '--',
86 '<(protoc)', 93 '<(protoc)',
87 # Using the --arg val form (instead of --arg=val) allows gyp's msvs rule
88 # generation to correct 'val' which is a path.
89 '--proto_path','<(proto_in_dir)',
90 # Naively you'd use <(RULE_INPUT_PATH) here, but protoc requires
91 # --proto_path is a strict prefix of the path given as an argument.
92 '<(proto_in_dir)/<(RULE_INPUT_ROOT)<(RULE_INPUT_EXT)',
93 '--cpp_out', '<(cc_generator_options)<(cc_dir)', 94 '--cpp_out', '<(cc_generator_options)<(cc_dir)',
94 '--python_out', '<(py_dir)', 95 '--python_out', '<(py_dir)',
95 ], 96 ],
96 'msvs_cygwin_shell': 0, 97 'msvs_cygwin_shell': 0,
97 'message': 'Generating C++ and Python code from <(RULE_INPUT_PATH)', 98 'message': 'Generating C++ and Python code from <(RULE_INPUT_PATH)',
98 'process_outputs_as_sources': 1, 99 'process_outputs_as_sources': 1,
99 }, 100 },
100 ], 101 ],
101 'dependencies': [ 102 'dependencies': [
102 '<(DEPTH)/third_party/protobuf/protobuf.gyp:protoc#host', 103 '<(DEPTH)/third_party/protobuf/protobuf.gyp:protoc#host',
(...skipping 11 matching lines...) Expand all
114 }, 115 },
115 'export_dependent_settings': [ 116 'export_dependent_settings': [
116 # The generated headers reference headers within protobuf_lite, 117 # The generated headers reference headers within protobuf_lite,
117 # so dependencies must be able to find those headers too. 118 # so dependencies must be able to find those headers too.
118 '<(DEPTH)/third_party/protobuf/protobuf.gyp:protobuf_lite', 119 '<(DEPTH)/third_party/protobuf/protobuf.gyp:protobuf_lite',
119 ], 120 ],
120 # This target exports a hard dependency because it generates header 121 # This target exports a hard dependency because it generates header
121 # files. 122 # files.
122 'hard_dependency': 1, 123 'hard_dependency': 1,
123 } 124 }
OLDNEW
« no previous file with comments | « no previous file | tools/protoc_wrapper/protoc_wrapper.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698