1{
2  'targets': [
3    {
4      'target_name': 'system_api-protos-gen',
5      'type': 'none',
6      'variables': {
7        'proto_in_dir': 'dbus',
8        'proto_out_dir': 'include/system_api/proto_bindings',
9      },
10      'sources': [
11        '<(proto_in_dir)/mtp_storage_info.proto',
12        '<(proto_in_dir)/mtp_file_entry.proto',
13        '<(proto_in_dir)/field_trial_list.proto',
14      ],
15      'includes': ['../../platform2/common-mk/protoc.gypi'],
16    },
17    {
18      'target_name': 'system_api-protos',
19      'type': 'static_library',
20      'standalone_static_library': 1,
21      'dependencies': [
22        'system_api-protos-gen',
23      ],
24      'sources': [
25        '<(SHARED_INTERMEDIATE_DIR)/include/system_api/proto_bindings/mtp_storage_info.pb.cc',
26        '<(SHARED_INTERMEDIATE_DIR)/include/system_api/proto_bindings/mtp_file_entry.pb.cc',
27        '<(SHARED_INTERMEDIATE_DIR)/include/system_api/proto_bindings/field_trial_list.pb.cc',
28      ]
29    },
30    {
31      'target_name': 'system_api-power_manager-protos-gen',
32      'type': 'none',
33      'variables': {
34        'proto_in_dir': 'dbus/power_manager',
35        'proto_out_dir': 'include/power_manager/proto_bindings',
36      },
37      'sources': [
38        '<(proto_in_dir)/idle.proto',
39        '<(proto_in_dir)/input_event.proto',
40        '<(proto_in_dir)/peripheral_battery_status.proto',
41        '<(proto_in_dir)/policy.proto',
42        '<(proto_in_dir)/power_supply_properties.proto',
43        '<(proto_in_dir)/suspend.proto',
44        '<(proto_in_dir)/switch_states.proto',
45      ],
46      'includes': ['../../platform2/common-mk/protoc.gypi'],
47    },
48    {
49      'target_name': 'system_api-power_manager-protos',
50      'type': 'static_library',
51      'standalone_static_library': 1,
52      'dependencies': [
53        'system_api-power_manager-protos-gen',
54      ],
55      'sources': [
56        '<(SHARED_INTERMEDIATE_DIR)/include/power_manager/proto_bindings/idle.pb.cc',
57        '<(SHARED_INTERMEDIATE_DIR)/include/power_manager/proto_bindings/input_event.pb.cc',
58        '<(SHARED_INTERMEDIATE_DIR)/include/power_manager/proto_bindings/peripheral_battery_status.pb.cc',
59        '<(SHARED_INTERMEDIATE_DIR)/include/power_manager/proto_bindings/policy.pb.cc',
60        '<(SHARED_INTERMEDIATE_DIR)/include/power_manager/proto_bindings/power_supply_properties.pb.cc',
61        '<(SHARED_INTERMEDIATE_DIR)/include/power_manager/proto_bindings/suspend.pb.cc',
62        '<(SHARED_INTERMEDIATE_DIR)/include/power_manager/proto_bindings/switch_states.pb.cc',
63      ]
64    },
65    {
66      'target_name': 'system_api-cryptohome-protos-gen',
67      'type': 'none',
68      'variables': {
69        'proto_in_dir': 'dbus/cryptohome',
70        'proto_out_dir': 'include/cryptohome/proto_bindings',
71      },
72      'sources': [
73        '<(proto_in_dir)/key.proto',
74        '<(proto_in_dir)/rpc.proto',
75        '<(proto_in_dir)/signed_secret.proto',
76      ],
77      'includes': ['../../platform2/common-mk/protoc.gypi'],
78    },
79    {
80      'target_name': 'system_api-cryptohome-protos',
81      'type': 'static_library',
82      'standalone_static_library': 1,
83      'dependencies': [
84        'system_api-cryptohome-protos-gen',
85      ],
86      'sources': [
87        '<(SHARED_INTERMEDIATE_DIR)/include/cryptohome/proto_bindings/key.pb.cc',
88        '<(SHARED_INTERMEDIATE_DIR)/include/cryptohome/proto_bindings/rpc.pb.cc',
89        '<(SHARED_INTERMEDIATE_DIR)/include/cryptohome/proto_bindings/signed_secret.pb.cc',
90      ]
91    },
92    {
93      'target_name': 'system_api-authpolicy-protos-gen',
94      'type': 'none',
95      'variables': {
96        'proto_in_dir': 'dbus/authpolicy',
97        'proto_out_dir': 'include/authpolicy/proto_bindings',
98      },
99      'sources': [
100        '<(proto_in_dir)/active_directory_info.proto',
101      ],
102      'includes': ['../../platform2/common-mk/protoc.gypi'],
103    },
104    {
105      'target_name': 'system_api-authpolicy-protos',
106      'type': 'static_library',
107      'standalone_static_library': 1,
108      'dependencies': [
109        'system_api-authpolicy-protos-gen',
110      ],
111      'sources': [
112        '<(SHARED_INTERMEDIATE_DIR)/include/authpolicy/proto_bindings/active_directory_info.pb.cc',
113      ]
114    },
115    {
116      'target_name': 'system_api-biod-protos-gen',
117      'type': 'none',
118      'variables': {
119        'proto_in_dir': 'dbus/biod',
120        'proto_out_dir': 'include/biod/proto_bindings',
121      },
122      'sources': [
123        '<(proto_in_dir)/constants.proto',
124        '<(proto_in_dir)/messages.proto',
125      ],
126      'includes': ['../../platform2/common-mk/protoc.gypi'],
127    },
128    {
129      'target_name': 'system_api-biod-protos',
130      'type': 'static_library',
131      'standalone_static_library': 1,
132      'dependencies': [
133        'system_api-biod-protos-gen',
134      ],
135      'sources': [
136        '<(SHARED_INTERMEDIATE_DIR)/include/biod/proto_bindings/constants.pb.cc',
137        '<(SHARED_INTERMEDIATE_DIR)/include/biod/proto_bindings/messages.pb.cc',
138      ]
139    },
140    {
141      'target_name': 'system_api-login_manager-protos-gen',
142      'type': 'none',
143      'variables': {
144        'proto_in_dir': 'dbus/login_manager',
145        'proto_out_dir': 'include/login_manager/proto_bindings',
146      },
147      'sources': [
148        '<(proto_in_dir)/arc.proto',
149        '<(proto_in_dir)/policy_descriptor.proto',
150      ],
151      'includes': ['../../platform2/common-mk/protoc.gypi'],
152    },
153    {
154      'target_name': 'system_api-login_manager-protos',
155      'type': 'static_library',
156      'standalone_static_library': 1,
157      'dependencies': [
158        'system_api-login_manager-protos-gen',
159      ],
160      'sources': [
161        '<(SHARED_INTERMEDIATE_DIR)/include/login_manager/proto_bindings/arc.pb.cc',
162        '<(SHARED_INTERMEDIATE_DIR)/include/login_manager/proto_bindings/policy_descriptor.pb.cc',
163      ]
164    },
165    {
166      'target_name': 'system_api-chaps-protos-gen',
167      'type': 'none',
168      'variables': {
169        'proto_in_dir': 'dbus/chaps',
170        'proto_out_dir': 'include/chaps/proto_bindings',
171      },
172      'sources': [
173        '<(proto_in_dir)/ck_structs.proto',
174      ],
175      'includes': ['../../platform2/common-mk/protoc.gypi'],
176    },
177    {
178      'target_name': 'system_api-chaps-protos',
179      'type': 'static_library',
180      # system_api-chaps-protos' is used by a shared_library
181      # object, so we need to build it with '-fPIC' instead of '-fPIE'.
182      'cflags!': ['-fPIE'],
183      'cflags': ['-fPIC'],
184      'standalone_static_library': 1,
185      'dependencies': [
186        'system_api-chaps-protos-gen',
187      ],
188      'sources': [
189        '<(SHARED_INTERMEDIATE_DIR)/include/chaps/proto_bindings/ck_structs.pb.cc',
190      ]
191    },
192    {
193      'target_name': 'system_api-smbprovider-protos-gen',
194      'type': 'none',
195      'variables': {
196        'proto_in_dir': 'dbus/smbprovider',
197        'proto_out_dir': 'include/smbprovider/proto_bindings',
198      },
199      'sources': [
200        '<(proto_in_dir)/directory_entry.proto',
201      ],
202      'includes': ['../../platform2/common-mk/protoc.gypi'],
203    },
204    {
205      'target_name': 'system_api-smbprovider-protos',
206      'type': 'static_library',
207      'standalone_static_library': 1,
208      'dependencies': [
209        'system_api-smbprovider-protos-gen',
210      ],
211      'sources': [
212        '<(SHARED_INTERMEDIATE_DIR)/include/smbprovider/proto_bindings/directory_entry.pb.cc',
213      ]
214    },
215    {
216      'target_name': 'system_api-vm_concierge-protos-gen',
217      'type': 'none',
218      'variables': {
219        'proto_in_dir': 'dbus/vm_concierge',
220        'proto_out_dir': 'include/vm_concierge/proto_bindings',
221      },
222      'sources': [
223        '<(proto_in_dir)/service.proto',
224      ],
225      'includes': ['../../platform2/common-mk/protoc.gypi'],
226    },
227    {
228      'target_name': 'system_api-vm_concierge-protos',
229      'type': 'static_library',
230      'standalone_static_library': 1,
231      'dependencies': [
232        'system_api-vm_concierge-protos-gen',
233      ],
234      'sources': [
235        '<(SHARED_INTERMEDIATE_DIR)/include/vm_concierge/proto_bindings/service.pb.cc',
236      ]
237    },
238  ]
239}
240