| 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 { | 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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 'direct_dependent_settings': { | 53 'direct_dependent_settings': { |
| 54 'include_dirs': [ | 54 'include_dirs': [ |
| 55 '<(policy_out_dir)', | 55 '<(policy_out_dir)', |
| 56 '<(protoc_out_dir)', | 56 '<(protoc_out_dir)', |
| 57 ], | 57 ], |
| 58 }, | 58 }, |
| 59 }, | 59 }, |
| 60 { | 60 { |
| 61 'target_name': 'cloud_policy_proto_compile', | 61 'target_name': 'cloud_policy_proto_compile', |
| 62 'type': 'none', | 62 'type': 'none', |
| 63 'actions': [ | 63 'sources': [ |
| 64 { | 64 '<(policy_out_dir)/policy/cloud_policy.proto', |
| 65 'action_name': 'compile_generated_proto', | |
| 66 'inputs': [ | |
| 67 '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)protoc<(EXECUTABLE_SUFFIX)', | |
| 68 '<(policy_out_dir)/policy/cloud_policy.proto', | |
| 69 ], | |
| 70 'outputs': [ | |
| 71 '<(PRODUCT_DIR)/pyproto/device_management_pb/cloud_policy_pb2.py', | |
| 72 '<(protoc_out_dir)/<(proto_path_substr)/cloud_policy.pb.h', | |
| 73 '<(protoc_out_dir)/<(proto_path_substr)/cloud_policy.pb.cc', | |
| 74 ], | |
| 75 'action': [ | |
| 76 '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)protoc<(EXECUTABLE_SUFFIX)', | |
| 77 '--proto_path=<(policy_out_dir)/policy', | |
| 78 '<(policy_out_dir)/policy/cloud_policy.proto', | |
| 79 '--cpp_out=<(protoc_out_dir)/<(proto_path_substr)', | |
| 80 '--python_out=<(PRODUCT_DIR)/pyproto/device_management_pb', | |
| 81 ], | |
| 82 'message': 'Compiling generated cloud policy protobuf', | |
| 83 }, | |
| 84 ], | 65 ], |
| 66 'variables': { |
| 67 'proto_in_dir': '<(policy_out_dir)/policy', |
| 68 'proto_out_dir': '<(proto_path_substr)', |
| 69 }, |
| 85 'dependencies': [ | 70 'dependencies': [ |
| 86 '<(DEPTH)/third_party/protobuf/protobuf.gyp:protoc#host', | |
| 87 'cloud_policy_code_generate', | 71 'cloud_policy_code_generate', |
| 88 ], | 72 ], |
| 89 'direct_dependent_settings': { | 73 'includes': [ '../../../build/protoc.gypi' ], |
| 90 'include_dirs': [ | |
| 91 '<(protoc_out_dir)', | |
| 92 ] | |
| 93 }, | |
| 94 }, | 74 }, |
| 95 { | 75 { |
| 96 'target_name': 'cloud_policy_backend_header_compile', | 76 'target_name': 'cloud_policy_backend_header_compile', |
| 97 'type': 'none', | 77 'type': 'none', |
| 98 'sources': [ | 78 'sources': [ |
| 99 '<(proto_rel_path)/chrome_device_policy.proto', | 79 '<(proto_rel_path)/chrome_device_policy.proto', |
| 100 '<(proto_rel_path)/device_management_backend.proto', | 80 '<(proto_rel_path)/device_management_backend.proto', |
| 101 '<(proto_rel_path)/device_management_local.proto', | 81 '<(proto_rel_path)/device_management_local.proto', |
| 102 '<(proto_rel_path)/old_generic_format.proto', | 82 '<(proto_rel_path)/old_generic_format.proto', |
| 103 ], | 83 ], |
| 104 'rules': [ | 84 'variables': { |
| 105 { | 85 'proto_in_dir': '<(proto_rel_path)', |
| 106 'rule_name': 'gen_proto', | 86 'proto_out_dir': '<(proto_path_substr)', |
| 107 'extension': 'proto', | 87 }, |
| 108 'inputs': [ | 88 'dependencies': [ |
| 109 '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)protoc<(EXECUTABLE_SUFFIX)', | 89 'cloud_policy_code_generate', |
| 110 ], | |
| 111 'outputs': [ | |
| 112 '<(PRODUCT_DIR)/pyproto/device_management_pb/<(RULE_INPUT_ROOT)_pb2.
py', | |
| 113 '<(protoc_out_dir)/<(proto_path_substr)/<(RULE_INPUT_ROOT).pb.h', | |
| 114 '<(protoc_out_dir)/<(proto_path_substr)/<(RULE_INPUT_ROOT).pb.cc', | |
| 115 ], | |
| 116 'action': [ | |
| 117 '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)protoc<(EXECUTABLE_SUFFIX)', | |
| 118 '--proto_path=<(proto_rel_path)', | |
| 119 '<(proto_rel_path)/<(RULE_INPUT_NAME)', | |
| 120 '--cpp_out=<(protoc_out_dir)/<(proto_path_substr)', | |
| 121 '--python_out=<(PRODUCT_DIR)/pyproto/device_management_pb', | |
| 122 ], | |
| 123 'message': 'Generating C++ and Python code from <(RULE_INPUT_PATH)', | |
| 124 }, | |
| 125 ], | 90 ], |
| 126 'dependencies': [ | 91 'includes': [ '../../../build/protoc.gypi' ], |
| 127 '<(DEPTH)/third_party/protobuf/protobuf.gyp:protoc#host', | |
| 128 ], | |
| 129 'direct_dependent_settings': { | |
| 130 'include_dirs': [ | |
| 131 '<(protoc_out_dir)', | |
| 132 ] | |
| 133 }, | |
| 134 }, | 92 }, |
| 135 { | 93 { |
| 136 'target_name': 'policy', | 94 'target_name': 'policy', |
| 137 'type': 'static_library', | 95 'type': 'static_library', |
| 138 'hard_dependency': 1, | 96 'hard_dependency': 1, |
| 139 'direct_dependent_settings': { | 97 'direct_dependent_settings': { |
| 140 'include_dirs': [ | 98 'include_dirs': [ |
| 141 '<(policy_out_dir)', | 99 '<(policy_out_dir)', |
| 142 '<(protoc_out_dir)', | 100 '<(protoc_out_dir)', |
| 143 ], | 101 ], |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 190 'configurations': { | 148 'configurations': { |
| 191 'Common_Base': { | 149 'Common_Base': { |
| 192 'msvs_target_platform': 'x64', | 150 'msvs_target_platform': 'x64', |
| 193 }, | 151 }, |
| 194 }, | 152 }, |
| 195 }, | 153 }, |
| 196 ], | 154 ], |
| 197 }], | 155 }], |
| 198 ], # 'conditions' | 156 ], # 'conditions' |
| 199 } | 157 } |
| OLD | NEW |