OLD | NEW |
(Empty) | |
| 1 # Copyright (c) 2010 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. |
| 4 |
| 5 { |
| 6 'variables': { |
| 7 'chromium_code': 1, |
| 8 'out_dir': '<(SHARED_INTERMEDIATE_DIR)/protoc_out/remoting/base/protocol', |
| 9 }, |
| 10 'targets': [ |
| 11 { |
| 12 # Protobuf compiler / generate rule for chromoting.proto. |
| 13 'target_name': 'chromotocol_proto', |
| 14 'type': 'none', |
| 15 'sources': [ |
| 16 'chromotocol.proto', |
| 17 ], |
| 18 'rules': [ |
| 19 { |
| 20 'rule_name': 'genproto', |
| 21 'extension': 'proto', |
| 22 'inputs': [ |
| 23 '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)protoc<(EXECUTABLE_SUFFIX)', |
| 24 ], |
| 25 'outputs': [ |
| 26 '<(PRODUCT_DIR)/pyproto/chromotocol_pb/<(RULE_INPUT_ROOT)_pb2.py', |
| 27 '<(out_dir)/<(RULE_INPUT_ROOT).pb.cc', |
| 28 '<(out_dir)/<(RULE_INPUT_ROOT).pb.h', |
| 29 ], |
| 30 'action': [ |
| 31 '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)protoc<(EXECUTABLE_SUFFIX)', |
| 32 '--proto_path=.', |
| 33 './<(RULE_INPUT_ROOT)<(RULE_INPUT_EXT)', |
| 34 '--cpp_out=<(out_dir)', |
| 35 '--python_out=<(PRODUCT_DIR)/pyproto/chromotocol_pb', |
| 36 ], |
| 37 'message': 'Generating C++ and Python code from <(RULE_INPUT_PATH)', |
| 38 }, |
| 39 ], |
| 40 'dependencies': [ |
| 41 '../../../third_party/protobuf2/protobuf.gyp:protoc#host', |
| 42 ], |
| 43 # This target exports a hard dependency because it generates header |
| 44 # files. |
| 45 'hard_dependency': 1, |
| 46 }, |
| 47 |
| 48 { |
| 49 'target_name': 'chromotocol_proto_lib', |
| 50 'type': '<(library)', |
| 51 'export_dependent_settings': [ |
| 52 '../../../third_party/protobuf2/protobuf.gyp:protobuf_lite', |
| 53 'chromotocol_proto', |
| 54 ], |
| 55 'dependencies': [ |
| 56 '../../../third_party/protobuf2/protobuf.gyp:protobuf_lite', |
| 57 'chromotocol_proto', |
| 58 ], |
| 59 # This target exports a hard dependency because depedents require |
| 60 # chromotocol_proto to compile. |
| 61 'hard_dependency': 1, |
| 62 'direct_dependent_settings': { |
| 63 'include_dirs': [ |
| 64 '<(SHARED_INTERMEDIATE_DIR)/protoc_out', |
| 65 ], |
| 66 }, |
| 67 'sources': [ |
| 68 '<(out_dir)/chromotocol.pb.cc', |
| 69 '<(out_dir)/chromotocol.pb.h', |
| 70 ], |
| 71 }, |
| 72 ], |
| 73 } |
| 74 |
| 75 # Local Variables: |
| 76 # tab-width:2 |
| 77 # indent-tabs-mode:nil |
| 78 # End: |
| 79 # vim: set expandtab tabstop=2 shiftwidth=2: |
OLD | NEW |