| OLD | NEW |
| 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 { | 5 { |
| 6 'variables': { | 6 'variables': { |
| 7 'chromium_code': 1, | 7 'chromium_code': 1, |
| 8 'policy_out_dir': '<(SHARED_INTERMEDIATE_DIR)/policy', | 8 'policy_out_dir': '<(SHARED_INTERMEDIATE_DIR)/policy', |
| 9 'protoc_out_dir': '<(SHARED_INTERMEDIATE_DIR)/protoc_out', | 9 'protoc_out_dir': '<(SHARED_INTERMEDIATE_DIR)/protoc_out', |
| 10 'generate_policy_source_script_path': | 10 'generate_policy_source_script_path': |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 ] | 95 ] |
| 96 }, | 96 }, |
| 97 }, | 97 }, |
| 98 { | 98 { |
| 99 'target_name': 'cloud_policy_backend_header_compile', | 99 'target_name': 'cloud_policy_backend_header_compile', |
| 100 'type': 'none', | 100 'type': 'none', |
| 101 'sources': [ | 101 'sources': [ |
| 102 '<(proto_rel_path)/chrome_device_policy.proto', | 102 '<(proto_rel_path)/chrome_device_policy.proto', |
| 103 '<(proto_rel_path)/device_management_backend.proto', | 103 '<(proto_rel_path)/device_management_backend.proto', |
| 104 '<(proto_rel_path)/device_management_local.proto', | 104 '<(proto_rel_path)/device_management_local.proto', |
| 105 '<(proto_rel_path)/old_generic_format.proto', |
| 105 ], | 106 ], |
| 106 'rules': [ | 107 'rules': [ |
| 107 { | 108 { |
| 108 'rule_name': 'gen_proto', | 109 'rule_name': 'gen_proto', |
| 109 'extension': 'proto', | 110 'extension': 'proto', |
| 110 'inputs': [ | 111 'inputs': [ |
| 111 '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)protoc<(EXECUTABLE_SUFFIX)', | 112 '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)protoc<(EXECUTABLE_SUFFIX)', |
| 112 ], | 113 ], |
| 113 'outputs': [ | 114 'outputs': [ |
| 114 '<(PRODUCT_DIR)/pyproto/device_management_pb/<(RULE_INPUT_ROOT)_pb2.
py', | 115 '<(PRODUCT_DIR)/pyproto/device_management_pb/<(RULE_INPUT_ROOT)_pb2.
py', |
| 115 '<(protoc_out_dir)/<(proto_path_substr)/<(RULE_INPUT_ROOT).pb.h', | 116 '<(protoc_out_dir)/<(proto_path_substr)/<(RULE_INPUT_ROOT).pb.h', |
| 116 '<(protoc_out_dir)/<(proto_path_substr)/<(RULE_INPUT_ROOT).pb.cc', | 117 '<(protoc_out_dir)/<(proto_path_substr)/<(RULE_INPUT_ROOT).pb.cc', |
| 117 ], | 118 ], |
| 118 'action': [ | 119 'action': [ |
| 119 '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)protoc<(EXECUTABLE_SUFFIX)', | 120 '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)protoc<(EXECUTABLE_SUFFIX)', |
| 120 '--proto_path=<(policy_out_dir)/policy', | |
| 121 '--proto_path=<(proto_rel_path)', | 121 '--proto_path=<(proto_rel_path)', |
| 122 '<(proto_rel_path)/<(RULE_INPUT_NAME)', | 122 '<(proto_rel_path)/<(RULE_INPUT_NAME)', |
| 123 '--cpp_out=<(protoc_out_dir)/<(proto_path_substr)', | 123 '--cpp_out=<(protoc_out_dir)/<(proto_path_substr)', |
| 124 '--python_out=<(PRODUCT_DIR)/pyproto/device_management_pb', | 124 '--python_out=<(PRODUCT_DIR)/pyproto/device_management_pb', |
| 125 ], | 125 ], |
| 126 'message': 'Generating C++ and Python code from <(RULE_INPUT_PATH)', | 126 'message': 'Generating C++ and Python code from <(RULE_INPUT_PATH)', |
| 127 } | 127 }, |
| 128 ], | 128 ], |
| 129 'dependencies': [ | 129 'dependencies': [ |
| 130 '<(DEPTH)/third_party/protobuf/protobuf.gyp:protoc#host', | 130 '<(DEPTH)/third_party/protobuf/protobuf.gyp:protoc#host', |
| 131 'cloud_policy_proto_compile', | |
| 132 ], | 131 ], |
| 133 'direct_dependent_settings': { | 132 'direct_dependent_settings': { |
| 134 'include_dirs': [ | 133 'include_dirs': [ |
| 135 '<(protoc_out_dir)', | 134 '<(protoc_out_dir)', |
| 136 ] | 135 ] |
| 137 }, | 136 }, |
| 138 }, | 137 }, |
| 139 { | 138 { |
| 140 'target_name': 'policy', | 139 'target_name': 'policy', |
| 141 'type': '<(library)', | 140 'type': '<(library)', |
| 142 'hard_dependency': 1, | 141 'hard_dependency': 1, |
| 143 'direct_dependent_settings': { | 142 'direct_dependent_settings': { |
| 144 'include_dirs': [ | 143 'include_dirs': [ |
| 145 '<(policy_out_dir)', | 144 '<(policy_out_dir)', |
| 146 '<(protoc_out_dir)', | 145 '<(protoc_out_dir)', |
| 147 ], | 146 ], |
| 148 }, | 147 }, |
| 149 'sources': [ | 148 'sources': [ |
| 150 '<(policy_constant_header_path)', | 149 '<(policy_constant_header_path)', |
| 151 '<(policy_constant_source_path)', | 150 '<(policy_constant_source_path)', |
| 152 '<(configuration_policy_type_header_path)', | 151 '<(configuration_policy_type_header_path)', |
| 153 '<(protobuf_decoder_path)', | 152 '<(protobuf_decoder_path)', |
| 154 '<(protoc_out_dir)/<(proto_path_substr)/cloud_policy.pb.h', | 153 '<(protoc_out_dir)/<(proto_path_substr)/cloud_policy.pb.h', |
| 155 '<(protoc_out_dir)/<(proto_path_substr)/cloud_policy.pb.cc', | 154 '<(protoc_out_dir)/<(proto_path_substr)/cloud_policy.pb.cc', |
| 155 '<(protoc_out_dir)/<(proto_path_substr)/old_generic_format.pb.h', |
| 156 '<(protoc_out_dir)/<(proto_path_substr)/old_generic_format.pb.cc', |
| 156 '<(DEPTH)/chrome/browser/policy/policy_map.h', | 157 '<(DEPTH)/chrome/browser/policy/policy_map.h', |
| 157 '<(DEPTH)/chrome/browser/policy/policy_map.cc', | 158 '<(DEPTH)/chrome/browser/policy/policy_map.cc', |
| 158 ], | 159 ], |
| 159 'include_dirs': [ | 160 'include_dirs': [ |
| 160 '<(DEPTH)', | 161 '<(DEPTH)', |
| 161 ], | 162 ], |
| 162 'dependencies': [ | 163 'dependencies': [ |
| 163 'cloud_policy_code_generate', | 164 'cloud_policy_code_generate', |
| 164 'cloud_policy_proto_compile', | 165 'cloud_policy_proto_compile', |
| 165 'cloud_policy_backend_header_compile', | 166 'cloud_policy_backend_header_compile', |
| (...skipping 30 matching lines...) Expand all Loading... |
| 196 ], | 197 ], |
| 197 }], | 198 }], |
| 198 ], # 'conditions' | 199 ], # 'conditions' |
| 199 } | 200 } |
| 200 | 201 |
| 201 # Local Variables: | 202 # Local Variables: |
| 202 # tab-width:2 | 203 # tab-width:2 |
| 203 # indent-tabs-mode:nil | 204 # indent-tabs-mode:nil |
| 204 # End: | 205 # End: |
| 205 # vim: set expandtab tabstop=2 shiftwidth=2: | 206 # vim: set expandtab tabstop=2 shiftwidth=2: |
| OLD | NEW |