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
3 # found in the LICENSE file.
8 'policy_out_dir': '<(SHARED_INTERMEDIATE_DIR)/policy',
9 'protoc_out_dir': '<(SHARED_INTERMEDIATE_DIR)/protoc_out',
10 'generate_policy_source_script_path':
11 '<(DEPTH)/chrome/tools/build/generate_policy_source.py',
12 'policy_constant_header_path':
13 '<(policy_out_dir)/policy/policy_constants.h',
14 'policy_constant_source_path':
15 '<(policy_out_dir)/policy/policy_constants.cc',
16 'protobuf_decoder_path':
17 '<(policy_out_dir)/policy/cloud_policy_generated.cc',
18 # This is the "full" protobuf, which defines one protobuf message per
19 # policy. It is also the format currently used by the server.
20 'chrome_settings_proto_path':
21 '<(policy_out_dir)/policy/chrome_settings.proto',
22 # This protobuf is equivalent to chrome_settings.proto but shares messages
23 # for policies of the same type, so that less classes have to be generated
25 'cloud_policy_proto_path': '<(policy_out_dir)/policy/cloud_policy.proto',
29 'target_name': 'cloud_policy_code_generate',
34 'policy_templates.json',
35 '<(generate_policy_source_script_path)',
38 '<(policy_constant_header_path)',
39 '<(policy_constant_source_path)',
40 '<(protobuf_decoder_path)',
41 '<(chrome_settings_proto_path)',
42 '<(cloud_policy_proto_path)',
44 'action_name': 'generate_policy_source',
47 '<@(generate_policy_source_script_path)',
48 '--policy-constants-header=<(policy_constant_header_path)',
49 '--policy-constants-source=<(policy_constant_source_path)',
50 '--chrome-settings-protobuf=<(chrome_settings_proto_path)',
51 '--cloud-policy-protobuf=<(cloud_policy_proto_path)',
52 '--cloud-policy-decoder=<(protobuf_decoder_path)',
55 'policy_templates.json',
57 'message': 'Generating policy source',
60 'direct_dependent_settings': {
68 'target_name': 'cloud_policy_proto_generated_compile',
69 'type': 'static_library',
71 '<(cloud_policy_proto_path)',
74 'proto_in_dir': '<(policy_out_dir)/policy',
75 'proto_out_dir': 'policy/proto',
78 'cloud_policy_code_generate',
80 'includes': [ '../../../build/protoc.gypi' ],
81 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
82 'msvs_disabled_warnings': [4267, ],
85 # This target builds the "full" protobuf, used for tests only.
86 'target_name': 'chrome_settings_proto_generated_compile',
87 'type': 'static_library',
89 '<(chrome_settings_proto_path)',
92 'proto_in_dir': '<(policy_out_dir)/policy',
93 'proto_out_dir': 'policy/proto',
96 'cloud_policy_code_generate',
97 'cloud_policy_proto_generated_compile',
99 'includes': [ '../../../build/protoc.gypi' ],
102 'target_name': 'policy',
103 'type': 'static_library',
104 'hard_dependency': 1,
105 'direct_dependent_settings': {
112 '<(policy_constant_header_path)',
113 '<(policy_constant_source_path)',
114 '<(protobuf_decoder_path)',
120 'cloud_policy_code_generate',
121 'cloud_policy_proto_generated_compile',
122 '<(DEPTH)/base/base.gyp:base',
123 '<(DEPTH)/third_party/protobuf/protobuf.gyp:protobuf_lite',
127 'target_name': 'policy_test_support',
129 'hard_dependency': 1,
130 'direct_dependent_settings': {
138 'chrome_settings_proto_generated_compile',
143 ['OS=="win" and target_arch=="ia32"', {
146 'target_name': 'policy_win64',
147 'type': 'static_library',
148 'hard_dependency': 1,
150 '<(policy_constant_header_path)',
151 '<(policy_constant_source_path)',
156 'direct_dependent_settings': {
162 'cloud_policy_code_generate',
166 'msvs_target_platform': 'x64',