OLD | NEW |
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. This is only to be included | 6 # to invoke protoc in a consistent manner. This is only to be included |
7 # for Java targets. When including this file, a .jar-file will be generated. | 7 # for Java targets. When including this file, a .jar-file will be generated. |
8 # For other targets, see protoc.gypi. | 8 # For other targets, see protoc.gypi. |
9 # | 9 # |
10 # To use this, create a gyp target with the following form: | 10 # To use this, create a gyp target with the following form: |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 '<(script)', | 58 '<(script)', |
59 '<(protoc)', | 59 '<(protoc)', |
60 '<@(_sources)', | 60 '<@(_sources)', |
61 ], | 61 ], |
62 # We do not know the names of the generated files, so we use a stamp. | 62 # We do not know the names of the generated files, so we use a stamp. |
63 'outputs': [ | 63 'outputs': [ |
64 '<(stamp_file)', | 64 '<(stamp_file)', |
65 ], | 65 ], |
66 'action': [ | 66 'action': [ |
67 '<(script)', | 67 '<(script)', |
68 '<(protoc)', | 68 '--protoc=<(protoc)', |
69 '<(proto_in_dir)', | 69 '--proto-path=<(proto_in_dir)', |
70 '<(java_out_dir)', | 70 '--java-out-dir=<(java_out_dir)', |
71 '<(stamp_file)', | 71 '--stamp=<(stamp_file)', |
72 '<@(_sources)', | 72 '<@(_sources)', |
73 ], | 73 ], |
74 'message': 'Generating Java code from protobuf files in <(proto_in_dir)', | 74 'message': 'Generating Java code from protobuf files in <(proto_in_dir)', |
75 }, | 75 }, |
76 ], | 76 ], |
77 'dependencies': [ | 77 'dependencies': [ |
78 '<(DEPTH)/third_party/android_protobuf/android_protobuf.gyp:android_protoc#h
ost', | 78 '<(DEPTH)/third_party/android_protobuf/android_protobuf.gyp:android_protoc#h
ost', |
79 '<(DEPTH)/third_party/android_protobuf/android_protobuf.gyp:protobuf_nano_ja
valib', | 79 '<(DEPTH)/third_party/android_protobuf/android_protobuf.gyp:protobuf_nano_ja
valib', |
80 ], | 80 ], |
81 'includes': [ 'java.gypi' ], | 81 'includes': [ 'java.gypi' ], |
82 } | 82 } |
OLD | NEW |