blob: b0bbe11ab8858e9e26d2988b7d8f3104ae0c7543 [file] [log] [blame]
Liam McLoughlinef342b42013-09-13 21:05:36 +01001{
2 'target_defaults': {
Liam McLoughlinef342b42013-09-13 21:05:36 +01003 'variables': {
4 'deps': [
5 'libchrome-<(libbase_ver)',
Bertrand SIMONNET44ce0112014-06-04 12:08:34 -07006 'libchromeos-<(libbase_ver)',
Liam McLoughlinef342b42013-09-13 21:05:36 +01007 ],
Alex Deymo6efec622014-06-23 11:10:18 -07008 # shill uses try/catch to interact with dbus-c++.
9 'enable_exceptions': 1,
Liam McLoughlinef342b42013-09-13 21:05:36 +010010 },
11 'cflags': [
mukesh agrawalbd461362013-11-08 17:34:22 -080012 '-Wextra',
13 '-Werror',
14 '-Wno-unused-parameter', # for pppd_plugin.c, base/tuple.h
Liam McLoughlinef342b42013-09-13 21:05:36 +010015 ],
16 'cflags_cc': [
17 '-fno-strict-aliasing',
Liam McLoughlinef342b42013-09-13 21:05:36 +010018 '-Woverloaded-virtual',
mukesh agrawalbd461362013-11-08 17:34:22 -080019 '-Wno-missing-field-initializers', # for LAZY_INSTANCE_INITIALIZER
Liam McLoughlinef342b42013-09-13 21:05:36 +010020 ],
21 'defines': [
22 '__STDC_FORMAT_MACROS',
23 '__STDC_LIMIT_MACROS',
24 'RUNDIR="/var/run/shill"',
Paul Stewartc4664752013-10-25 17:00:09 -070025 'SHIMDIR="<(libdir)/shill/shims"',
Liam McLoughlinef342b42013-09-13 21:05:36 +010026 ],
27 'conditions': [
28 ['USE_cellular == 0', {
29 'defines': [
30 'DISABLE_CELLULAR',
31 ],
32 }],
33 ['USE_vpn == 0', {
34 'defines': [
35 'DISABLE_VPN',
36 ],
37 }],
Ben Chan520eb172013-10-30 20:51:04 -070038 ['USE_wimax == 0', {
39 'defines': [
40 'DISABLE_WIMAX',
41 ],
42 }],
Liam McLoughlinef342b42013-09-13 21:05:36 +010043 ],
44 },
45 'targets': [
46 {
Prathmesh Prabhu2fa7bc42014-03-28 11:48:25 -070047 'target_name': 'mobile_operator_db-protos',
48 'type': 'static_library',
49 'variables': {
50 'proto_in_dir': 'mobile_operator_db',
51 'proto_out_dir':
52 'include/shill/proto_bindings/mobile_operator_db'
53 },
54 'sources': [
55 '<(proto_in_dir)/mobile_operator_db.proto'
56 ],
Bertrand SIMONNET19d89842014-05-28 16:22:43 -070057 'includes': ['../../platform2/common-mk/protoc.gypi'],
Prathmesh Prabhu2fa7bc42014-03-28 11:48:25 -070058 },
59 {
60 'target_name': 'mobile_operator_db-db',
61 'type': 'none',
62 'variables' : {
63 'protoc_proto_dir': 'mobile_operator_db',
64 'protoc_proto_def': 'mobile_operator_db.proto',
65 'protoc_text_dir': 'mobile_operator_db',
66 'protoc_bin_dir': '<(PRODUCT_DIR)',
67 'protoc_message_name': 'shill.mobile_operator_db.MobileOperatorDB',
68 },
69 'sources': [
70 '<(protoc_text_dir)/serviceproviders.prototxt',
Prathmesh Prabhu2fa7bc42014-03-28 11:48:25 -070071 ],
Bertrand SIMONNET19d89842014-05-28 16:22:43 -070072 'includes': ['../../platform2/common-mk/protoctxt.gypi'],
Prathmesh Prabhu2fa7bc42014-03-28 11:48:25 -070073 },
74 {
75 'target_name': 'mobile_operator_db',
76 'type': 'static_library',
77 'dependencies': [
78 'mobile_operator_db-protos',
79 'mobile_operator_db-db',
80 ],
81 },
82 {
Liam McLoughlinef342b42013-09-13 21:05:36 +010083 'target_name': 'shill-proxies',
84 'type': 'none',
85 'variables': {
86 'xml2cpp_type': 'proxy',
87 'xml2cpp_in_dir': 'dbus_bindings',
88 'xml2cpp_out_dir': 'include/shill/dbus_proxies',
89 },
90 'sources': [
91 '<(xml2cpp_in_dir)/dbus-properties.xml',
92 '<(xml2cpp_in_dir)/dbus-service.xml',
93 '<(xml2cpp_in_dir)/dhcpcd.xml',
94 '<(xml2cpp_in_dir)/power_manager.xml',
95 '<(xml2cpp_in_dir)/supplicant-bss.xml',
96 '<(xml2cpp_in_dir)/supplicant-interface.xml',
97 '<(xml2cpp_in_dir)/supplicant-network.xml',
98 '<(xml2cpp_in_dir)/supplicant-process.xml',
99 '<(xml2cpp_in_dir)/org.chromium.flimflam.Device.xml',
100 '<(xml2cpp_in_dir)/org.chromium.flimflam.IPConfig.xml',
101 '<(xml2cpp_in_dir)/org.chromium.flimflam.Manager.xml',
102 '<(xml2cpp_in_dir)/org.chromium.flimflam.Profile.xml',
103 '<(xml2cpp_in_dir)/org.chromium.flimflam.Service.xml',
104 '<(xml2cpp_in_dir)/org.chromium.flimflam.Task.xml',
105 ],
106 'conditions': [
107 ['USE_cellular == 1', {
108 'sources': [
109 '<(xml2cpp_in_dir)/dbus-objectmanager.xml',
110 '<(xml2cpp_in_dir)/modem-gobi.xml',
111 ],
112 }],
113 ],
Bertrand SIMONNET19d89842014-05-28 16:22:43 -0700114 'includes': ['../../platform2/common-mk/xml2cpp.gypi'],
Liam McLoughlinef342b42013-09-13 21:05:36 +0100115 },
116 {
117 'target_name': 'shill-adaptors',
118 'type': 'none',
119 'variables': {
120 'xml2cpp_type': 'adaptor',
121 'xml2cpp_in_dir': 'dbus_bindings',
122 'xml2cpp_out_dir': 'include/shill/dbus_adaptors',
123 },
124 'sources': [
125 '<(xml2cpp_in_dir)/org.chromium.flimflam.Device.xml',
126 '<(xml2cpp_in_dir)/org.chromium.flimflam.IPConfig.xml',
127 '<(xml2cpp_in_dir)/org.chromium.flimflam.Manager.xml',
128 '<(xml2cpp_in_dir)/org.chromium.flimflam.Profile.xml',
129 '<(xml2cpp_in_dir)/org.chromium.flimflam.Service.xml',
130 '<(xml2cpp_in_dir)/org.chromium.flimflam.Task.xml',
131 ],
Bertrand SIMONNET19d89842014-05-28 16:22:43 -0700132 'includes': ['../../platform2/common-mk/xml2cpp.gypi'],
Liam McLoughlinef342b42013-09-13 21:05:36 +0100133 },
134 {
135 'target_name': 'shim-protos',
136 'type': 'static_library',
137 'variables': {
138 'proto_in_dir': 'shims/protos',
139 'proto_out_dir': 'include/shill/proto_bindings/shims/protos',
140 },
141 'sources': [
142 '<(proto_in_dir)/crypto_util.proto',
143 ],
Bertrand SIMONNET19d89842014-05-28 16:22:43 -0700144 'includes': ['../../platform2/common-mk/protoc.gypi'],
Liam McLoughlinef342b42013-09-13 21:05:36 +0100145 },
146 {
147 'target_name': 'crypto_util',
148 'type': 'executable',
149 'dependencies': ['shim-protos'],
150 'sources': [
151 'shims/crypto_util.cc',
Bertrand SIMONNET44ce0112014-06-04 12:08:34 -0700152 ],
153 'variables': {
154 'deps': [
155 'openssl',
156 'protobuf-lite',
157 ]
158 }
Liam McLoughlinef342b42013-09-13 21:05:36 +0100159 },
160 {
161 'target_name': 'libshill',
162 'type': 'static_library',
163 'dependencies': [
Prathmesh Prabhu2fa7bc42014-03-28 11:48:25 -0700164 'mobile_operator_db',
Liam McLoughlinef342b42013-09-13 21:05:36 +0100165 'shill-adaptors',
166 'shill-proxies',
167 'shim-protos',
168 ],
169 'variables': {
170 'exported_deps': [
171 'dbus-c++-1',
172 'gio-2.0',
173 'glib-2.0',
174 'libcares',
Bertrand SIMONNETf62f5082014-06-20 15:34:36 -0700175 'libmetrics-<(libbase_ver)',
Liam McLoughlinef342b42013-09-13 21:05:36 +0100176 'libnl-3.0',
177 'libnl-genl-3.0',
178 'protobuf-lite',
179 ],
180 'deps': ['<@(exported_deps)'],
181 },
182 'all_dependent_settings': {
183 'variables': {
184 'deps': [
185 '<@(exported_deps)',
186 ],
187 },
188 },
189 'link_settings': {
190 'variables': {
191 'deps': [
192 'dbus-c++-1',
193 'gio-2.0',
194 'glib-2.0',
195 'libcares',
196 'libnl-3.0',
197 'libnl-genl-3.0',
Bertrand SIMONNET2d27ffd2014-06-18 10:49:57 -0700198 # system_api depends on protobuf (or protobuf-lite). It must appear
199 # before protobuf here or the linker flags won't be in the right
200 # order.
201 'system_api',
Liam McLoughlinef342b42013-09-13 21:05:36 +0100202 'protobuf-lite',
203 ],
204 },
205 'libraries': [
Gaurav Shah5981ecf2014-04-18 15:22:55 -0700206 '-lrootdev',
Liam McLoughlinef342b42013-09-13 21:05:36 +0100207 '-lrt'
208 ],
209 },
210 'conditions': [
211 ['USE_cellular == 1', {
Chris Masone3d6b2382013-11-11 14:05:28 -0800212 'dependencies': [
Bertrand SIMONNET19d89842014-05-28 16:22:43 -0700213 '../../platform2/common-mk/external_dependencies.gyp:modemmanager-dbus-proxies',
Chris Masone3d6b2382013-11-11 14:05:28 -0800214 ],
Liam McLoughlin52139ca2013-10-31 14:37:38 +0000215 'variables': {
216 'deps': [
217 'ModemManager',
Liam McLoughlinef342b42013-09-13 21:05:36 +0100218 ],
219 },
Liam McLoughlin52139ca2013-10-31 14:37:38 +0000220 'sources': [
Thieu Le43ce4d42013-10-04 16:08:55 -0700221 'active_passive_out_of_credits_detector.cc',
Liam McLoughlin52139ca2013-10-31 14:37:38 +0000222 'cellular.cc',
Ben Chan26692bd2014-02-03 16:34:55 -0800223 'cellular_bearer.cc',
Liam McLoughlin52139ca2013-10-31 14:37:38 +0000224 'cellular_capability.cc',
225 'cellular_capability_cdma.cc',
226 'cellular_capability_classic.cc',
227 'cellular_capability_gsm.cc',
228 'cellular_capability_universal.cc',
229 'cellular_capability_universal_cdma.cc',
230 'cellular_error.cc',
231 'cellular_error_mm1.cc',
Liam McLoughlin52139ca2013-10-31 14:37:38 +0000232 'cellular_service.cc',
233 'dbus_objectmanager_proxy.cc',
234 'mm1_bearer_proxy.cc',
235 'mm1_modem_location_proxy.cc',
236 'mm1_modem_modem3gpp_proxy.cc',
237 'mm1_modem_modemcdma_proxy.cc',
238 'mm1_modem_proxy.cc',
239 'mm1_modem_simple_proxy.cc',
240 'mm1_modem_time_proxy.cc',
241 'mm1_sim_proxy.cc',
Prathmesh Prabhu28b4a3b2014-03-28 11:52:09 -0700242 'mobile_operator_info.cc',
243 'mobile_operator_info_impl.cc',
Liam McLoughlin52139ca2013-10-31 14:37:38 +0000244 'modem.cc',
245 'modem_1.cc',
246 'modem_cdma_proxy.cc',
247 'modem_classic.cc',
248 'modem_gobi_proxy.cc',
249 'modem_gsm_card_proxy.cc',
250 'modem_gsm_network_proxy.cc',
Ben Chan5742b242013-12-18 16:25:43 -0800251 'modem_info.cc',
Liam McLoughlin52139ca2013-10-31 14:37:38 +0000252 'modem_manager.cc',
253 'modem_manager_1.cc',
254 'modem_manager_proxy.cc',
255 'modem_proxy.cc',
256 'modem_simple_proxy.cc',
Thieu Le43ce4d42013-10-04 16:08:55 -0700257 'out_of_credits_detector.cc',
Prathmesh Prabhu28b4a3b2014-03-28 11:52:09 -0700258 'protobuf_lite_streams.cc',
Thieu Le43ce4d42013-10-04 16:08:55 -0700259 'subscription_state_out_of_credits_detector.cc',
Liam McLoughlin52139ca2013-10-31 14:37:38 +0000260 ],
Liam McLoughlinef342b42013-09-13 21:05:36 +0100261 }],
262 ['USE_vpn == 1', {
Liam McLoughlin52139ca2013-10-31 14:37:38 +0000263 'sources': [
264 'l2tp_ipsec_driver.cc',
265 'openvpn_driver.cc',
266 'openvpn_management_server.cc',
267 ],
Liam McLoughlinef342b42013-09-13 21:05:36 +0100268 }],
Ben Chan520eb172013-10-30 20:51:04 -0700269 ['USE_wimax == 1', {
Ben Chan520eb172013-10-30 20:51:04 -0700270 'sources': [
271 'wimax.cc',
272 'wimax_device_proxy.cc',
273 'wimax_manager_proxy.cc',
274 'wimax_network_proxy.cc',
275 'wimax_provider.cc',
276 'wimax_service.cc',
277 ],
278 }],
Liam McLoughlinef342b42013-09-13 21:05:36 +0100279 ],
280 'sources': [
281 'arp_client.cc',
282 'arp_packet.cc',
283 'async_connection.cc',
284 'attribute_list.cc',
285 'byte_string.cc',
286 'callback80211_metrics.cc',
287 'certificate_file.cc',
288 'connection.cc',
289 'connection_health_checker.cc',
290 'connection_info.cc',
291 'connection_info_reader.cc',
292 'control_netlink_attribute.cc',
293 'crypto_des_cbc.cc',
294 'crypto_provider.cc',
295 'crypto_rot47.cc',
296 'crypto_util_proxy.cc',
297 'dbus_adaptor.cc',
298 'dbus_control.cc',
299 'dbus_manager.cc',
Ben Chan084faca2013-07-02 14:25:12 -0700300 'dbus_name_watcher.cc',
Liam McLoughlinef342b42013-09-13 21:05:36 +0100301 'dbus_properties.cc',
302 'dbus_properties_proxy.cc',
303 'dbus_service_proxy.cc',
304 'default_profile.cc',
305 'device.cc',
306 'device_dbus_adaptor.cc',
307 'device_info.cc',
308 'dhcp_config.cc',
309 'dhcp_provider.cc',
310 'dhcpcd_proxy.cc',
311 'diagnostics_reporter.cc',
312 'dns_client.cc',
313 'dns_client_factory.cc',
Peter Qiud670d032014-06-03 15:04:43 -0700314 'dns_server_tester.cc',
Liam McLoughlinef342b42013-09-13 21:05:36 +0100315 'eap_credentials.cc',
316 'eap_listener.cc',
317 'endpoint.cc',
318 'ephemeral_profile.cc',
319 'error.cc',
320 'ethernet.cc',
321 'ethernet_eap_provider.cc',
322 'ethernet_eap_service.cc',
323 'ethernet_service.cc',
324 'event_dispatcher.cc',
325 'external_task.cc',
326 'file_io.cc',
327 'file_reader.cc',
328 'generic_netlink_message.cc',
329 'geolocation_info.cc',
330 'glib.cc',
331 'glib_io_input_handler.cc',
332 'glib_io_ready_handler.cc',
333 'hook_table.cc',
334 'http_proxy.cc',
335 'http_request.cc',
336 'http_url.cc',
Paul Stewart960d4692013-12-09 07:41:59 -0800337 'icmp.cc',
Liam McLoughlinef342b42013-09-13 21:05:36 +0100338 'ip_address.cc',
339 'ip_address_store.cc',
340 'ipconfig.cc',
341 'ipconfig_dbus_adaptor.cc',
342 'key_file_store.cc',
343 'key_value_store.cc',
344 'link_monitor.cc',
mukesh agrawal3d487e62014-08-08 11:34:56 -0700345 'mac80211_monitor.cc',
Liam McLoughlinef342b42013-09-13 21:05:36 +0100346 'manager.cc',
347 'manager_dbus_adaptor.cc',
Liam McLoughlinef342b42013-09-13 21:05:36 +0100348 'metrics.cc',
Liam McLoughlinef342b42013-09-13 21:05:36 +0100349 'netlink_attribute.cc',
350 'netlink_manager.cc',
351 'netlink_message.cc',
352 'netlink_socket.cc',
353 'nl80211_attribute.cc',
354 'nl80211_message.cc',
Liam McLoughlinef342b42013-09-13 21:05:36 +0100355 'pending_activation_store.cc',
356 'portal_detector.cc',
357 'power_manager.cc',
358 'power_manager_proxy.cc',
359 'ppp_device.cc',
360 'ppp_device_factory.cc',
361 'process_killer.cc',
362 'profile.cc',
363 'profile_dbus_adaptor.cc',
364 'profile_dbus_property_exporter.cc',
365 'property_store.cc',
366 'proxy_factory.cc',
367 'resolver.cc',
368 'result_aggregator.cc',
369 'routing_table.cc',
370 'rpc_task.cc',
371 'rpc_task_dbus_adaptor.cc',
372 'rtnl_handler.cc',
373 'rtnl_listener.cc',
374 'rtnl_message.cc',
375 'scan_session.cc',
376 'scope_logger.cc',
mukesh agrawal3ff527c2014-04-08 17:07:56 -0700377 'scoped_umask.cc',
Liam McLoughlinef342b42013-09-13 21:05:36 +0100378 'service.cc',
379 'service_dbus_adaptor.cc',
Paul Stewart0153cf02014-06-02 11:53:36 -0700380 'service_property_change_notifier.cc',
Liam McLoughlinef342b42013-09-13 21:05:36 +0100381 'shill_ares.cc',
382 'shill_config.cc',
383 'shill_daemon.cc',
384 'shill_test_config.cc',
385 'shill_time.cc',
386 'socket_info.cc',
387 'socket_info_reader.cc',
388 'sockets.cc',
389 'static_ip_parameters.cc',
390 'supplicant_bss_proxy.cc',
391 'supplicant_eap_state_handler.cc',
392 'supplicant_interface_proxy.cc',
393 'supplicant_network_proxy.cc',
394 'supplicant_process_proxy.cc',
395 'technology.cc',
Paul Stewartfa11e282013-12-02 22:04:25 -0800396 'tethering.cc',
Liam McLoughlinef342b42013-09-13 21:05:36 +0100397 'traffic_monitor.cc',
398 'virtio_ethernet.cc',
399 'virtual_device.cc',
400 'vpn_driver.cc',
401 'vpn_provider.cc',
402 'vpn_service.cc',
Samuel Tand03b95d2014-08-14 11:16:57 -0700403 'wake_on_wifi.cc',
Liam McLoughlinef342b42013-09-13 21:05:36 +0100404 'wifi.cc',
405 'wifi_endpoint.cc',
406 'wifi_provider.cc',
407 'wifi_service.cc',
Samuel Tand03b95d2014-08-14 11:16:57 -0700408 'wake_on_wifi.cc',
Liam McLoughlinef342b42013-09-13 21:05:36 +0100409 'wpa_supplicant.cc',
410 ],
411 },
412 {
413 'target_name': 'shill',
414 'type': 'executable',
415 'dependencies': ['libshill'],
416 'sources': [
417 'shill_main.cc',
418 ]
419 },
420 {
Liam McLoughlinef342b42013-09-13 21:05:36 +0100421 'target_name': 'crypto-util',
422 'type': 'executable',
423 'dependencies': ['shim-protos'],
424 'variables': {
425 'deps': [
426 'openssl',
427 'protobuf-lite',
428 ],
429 },
430 'sources': [
431 'shims/crypto_util.cc',
432 ]
433 },
434 {
435 'target_name': 'net-diags-upload',
436 'type': 'executable',
437 'sources': [
438 'shims/net_diags_upload.cc',
439 ]
440 },
441 {
Liam McLoughlinef342b42013-09-13 21:05:36 +0100442 'target_name': 'netfilter-queue-helper',
443 'type': 'executable',
444 'variables': {
445 'deps': [
Liam McLoughlinef342b42013-09-13 21:05:36 +0100446 'libnetfilter_queue',
447 'libnfnetlink',
448 ],
449 },
450 'sources': [
451 'shims/netfilter_queue_helper.cc',
452 'shims/netfilter_queue_processor.cc',
453 ]
454 },
455 {
456 'target_name': 'openvpn-script',
457 'type': 'executable',
458 'dependencies': ['shill-proxies'],
459 'variables': {
460 'deps': [
461 'dbus-c++-1',
462 ],
463 },
464 'sources': [
465 'shims/environment.cc',
466 'shims/openvpn_script.cc',
467 'shims/task_proxy.cc',
468 ]
469 },
470 ],
471 'conditions': [
472 ['USE_cellular == 1', {
473 'targets': [
474 {
475 'target_name': 'set-apn-helper',
476 'type': 'executable',
477 'sources': [
478 'shims/set_apn_helper.c',
Bertrand SIMONNET44ce0112014-06-04 12:08:34 -0700479 ],
480 'variables': {
481 'deps': [
482 'dbus-glib-1'
483 ]
484 }
Liam McLoughlinef342b42013-09-13 21:05:36 +0100485 },
486 ],
487 }],
Chris Masone3d6b2382013-11-11 14:05:28 -0800488 ['USE_cellular == 1 or USE_vpn == 1', {
489 'targets': [
490 {
491 'target_name': 'shill-pppd-plugin',
492 'type': 'shared_library',
493 'dependencies': ['shill-proxies'],
494 'sources': [
495 'shims/c_ppp.cc',
496 'shims/environment.cc',
497 'shims/ppp.cc',
498 'shims/pppd_plugin.c',
499 'shims/task_proxy.cc',
500 ]
501 },
502 ],
503 }],
Liam McLoughlinef342b42013-09-13 21:05:36 +0100504 ['USE_test == 1', {
505 'targets': [
506 {
507 'target_name': 'shill_unittest',
508 'type': 'executable',
509 'dependencies': ['libshill'],
Bertrand SIMONNET19d89842014-05-28 16:22:43 -0700510 'includes': ['../../platform2/common-mk/common_test.gypi'],
Liam McLoughlinef342b42013-09-13 21:05:36 +0100511 'variables': {
512 'deps': [
Liam McLoughlinef342b42013-09-13 21:05:36 +0100513 'libnetfilter_queue',
514 'libnfnetlink',
515 ],
516 },
517 'defines': [
518 'SYSROOT="<(sysroot)"',
519 ],
520 'sources': [
521 'arp_client_unittest.cc',
522 'arp_packet_unittest.cc',
523 'async_connection_unittest.cc',
524 'byte_string_unittest.cc',
Wade Guthriec2728962013-07-10 09:32:16 -0700525 'callback80211_metrics_unittest.cc',
Liam McLoughlinef342b42013-09-13 21:05:36 +0100526 'certificate_file_unittest.cc',
527 'connection_health_checker_unittest.cc',
528 'connection_info_reader_unittest.cc',
529 'connection_info_unittest.cc',
530 'connection_unittest.cc',
531 'crypto_des_cbc_unittest.cc',
532 'crypto_provider_unittest.cc',
533 'crypto_rot47_unittest.cc',
534 'crypto_util_proxy_unittest.cc',
535 'dbus_adaptor_unittest.cc',
536 'dbus_manager_unittest.cc',
Ben Chan084faca2013-07-02 14:25:12 -0700537 'dbus_name_watcher_unittest.cc',
Liam McLoughlinef342b42013-09-13 21:05:36 +0100538 'dbus_properties_unittest.cc',
539 'dbus_variant_gmock_printer.cc',
540 'default_profile_unittest.cc',
541 'device_info_unittest.cc',
542 'device_unittest.cc',
543 'dhcp_config_unittest.cc',
544 'dhcp_provider_unittest.cc',
545 'diagnostics_reporter_unittest.cc',
546 'dns_client_unittest.cc',
Peter Qiud670d032014-06-03 15:04:43 -0700547 'dns_server_tester_unittest.cc',
Liam McLoughlinef342b42013-09-13 21:05:36 +0100548 'eap_credentials_unittest.cc',
549 'eap_listener_unittest.cc',
550 'error_unittest.cc',
551 'ethernet_eap_provider_unittest.cc',
552 'ethernet_eap_service_unittest.cc',
553 'ethernet_service_unittest.cc',
554 'ethernet_unittest.cc',
555 'external_task_unittest.cc',
556 'file_reader_unittest.cc',
557 'hook_table_unittest.cc',
558 'http_proxy_unittest.cc',
559 'http_request_unittest.cc',
560 'http_url_unittest.cc',
Paul Stewart960d4692013-12-09 07:41:59 -0800561 'icmp_unittest.cc',
Liam McLoughlinef342b42013-09-13 21:05:36 +0100562 'ip_address_store_unittest.cc',
563 'ip_address_unittest.cc',
564 'ipconfig_unittest.cc',
565 'key_file_store_unittest.cc',
566 'key_value_store_unittest.cc',
567 'link_monitor_unittest.cc',
mukesh agrawal3d487e62014-08-08 11:34:56 -0700568 'mac80211_monitor_unittest.cc',
Liam McLoughlinef342b42013-09-13 21:05:36 +0100569 'manager_unittest.cc',
Liam McLoughlinef342b42013-09-13 21:05:36 +0100570 'metrics_unittest.cc',
571 'mock_adaptors.cc',
572 'mock_ares.cc',
573 'mock_arp_client.cc',
574 'mock_async_connection.cc',
575 'mock_certificate_file.cc',
576 'mock_connection.cc',
577 'mock_connection_health_checker.cc',
578 'mock_connection_info_reader.cc',
579 'mock_control.cc',
580 'mock_crypto_util_proxy.cc',
Liam McLoughlinef342b42013-09-13 21:05:36 +0100581 'mock_dbus_objectmanager_proxy.cc',
582 'mock_dbus_properties_proxy.cc',
583 'mock_dbus_service_proxy.cc',
584 'mock_device.cc',
585 'mock_device_info.cc',
586 'mock_dhcp_config.cc',
587 'mock_dhcp_provider.cc',
588 'mock_dhcp_proxy.cc',
589 'mock_diagnostics_reporter.cc',
590 'mock_dns_client.cc',
591 'mock_dns_client_factory.cc',
Peter Qiud670d032014-06-03 15:04:43 -0700592 'mock_dns_server_tester.cc',
Liam McLoughlinef342b42013-09-13 21:05:36 +0100593 'mock_eap_credentials.cc',
594 'mock_eap_listener.cc',
595 'mock_ethernet.cc',
596 'mock_ethernet_eap_provider.cc',
597 'mock_ethernet_service.cc',
598 'mock_event_dispatcher.cc',
599 'mock_external_task.cc',
600 'mock_glib.cc',
601 'mock_http_request.cc',
602 'mock_ip_address_store.cc',
603 'mock_ipconfig.cc',
604 'mock_link_monitor.cc',
605 'mock_log.cc',
606 'mock_log_unittest.cc',
mukesh agrawal241727d2014-08-08 13:55:11 -0700607 'mock_mac80211_monitor.cc',
Liam McLoughlinef342b42013-09-13 21:05:36 +0100608 'mock_manager.cc',
609 'mock_metrics.cc',
Liam McLoughlinef342b42013-09-13 21:05:36 +0100610 'mock_netlink_manager.cc',
Liam McLoughlinef342b42013-09-13 21:05:36 +0100611 'mock_pending_activation_store.cc',
612 'mock_portal_detector.cc',
613 'mock_power_manager.cc',
614 'mock_power_manager_proxy.cc',
615 'mock_ppp_device.cc',
616 'mock_ppp_device_factory.cc',
617 'mock_process_killer.cc',
618 'mock_profile.cc',
619 'mock_property_store.cc',
620 'mock_proxy_factory.cc',
621 'mock_resolver.cc',
622 'mock_routing_table.cc',
623 'mock_rtnl_handler.cc',
624 'mock_scan_session.cc',
625 'mock_service.cc',
626 'mock_socket_info_reader.cc',
627 'mock_sockets.cc',
628 'mock_store.cc',
629 'mock_supplicant_bss_proxy.cc',
630 'mock_supplicant_eap_state_handler.cc',
631 'mock_supplicant_interface_proxy.cc',
632 'mock_supplicant_network_proxy.cc',
633 'mock_supplicant_process_proxy.cc',
634 'mock_time.cc',
635 'mock_traffic_monitor.cc',
636 'mock_virtual_device.cc',
637 'mock_vpn_provider.cc',
638 'mock_wifi.cc',
639 'mock_wifi_provider.cc',
640 'mock_wifi_service.cc',
Liam McLoughlinef342b42013-09-13 21:05:36 +0100641 'netlink_manager_unittest.cc',
642 'netlink_message_unittest.cc',
643 'netlink_socket_unittest.cc',
644 'nice_mock_control.cc',
Liam McLoughlinef342b42013-09-13 21:05:36 +0100645 'pending_activation_store_unittest.cc',
646 'portal_detector_unittest.cc',
647 'power_manager_unittest.cc',
648 'ppp_device_unittest.cc',
649 'process_killer_unittest.cc',
650 'profile_dbus_property_exporter_unittest.cc',
651 'profile_unittest.cc',
652 'property_accessor_unittest.cc',
Paul Stewart0153cf02014-06-02 11:53:36 -0700653 'property_observer_unittest.cc',
Liam McLoughlinef342b42013-09-13 21:05:36 +0100654 'property_store_unittest.cc',
655 'resolver_unittest.cc',
656 'result_aggregator_unittest.cc',
657 'routing_table_unittest.cc',
658 'rpc_task_unittest.cc',
659 'rtnl_handler_unittest.cc',
660 'rtnl_listener_unittest.cc',
661 'rtnl_message_unittest.cc',
662 'scan_session_unittest.cc',
663 'scope_logger_unittest.cc',
664 'service_property_change_test.cc',
665 'service_under_test.cc',
666 'service_unittest.cc',
mukesh agrawal2e84b4a2014-04-24 15:42:47 -0700667 'shill_time_unittest.cc',
Liam McLoughlinef342b42013-09-13 21:05:36 +0100668 'shill_unittest.cc',
Liam McLoughlinef342b42013-09-13 21:05:36 +0100669 'shims/netfilter_queue_processor.cc',
670 'shims/netfilter_queue_processor_unittest.cc',
671 'socket_info_reader_unittest.cc',
672 'socket_info_unittest.cc',
673 'static_ip_parameters_unittest.cc',
674 'supplicant_eap_state_handler_unittest.cc',
675 'technology_unittest.cc',
676 'testrunner.cc',
677 'traffic_monitor_unittest.cc',
678 'virtual_device_unittest.cc',
679 'wifi_endpoint_unittest.cc',
680 'wifi_provider_unittest.cc',
681 'wifi_service_unittest.cc',
682 'wifi_unittest.cc',
Samuel Tand03b95d2014-08-14 11:16:57 -0700683 'wake_on_wifi_unittest.cc',
Liam McLoughlinef342b42013-09-13 21:05:36 +0100684 'wpa_supplicant_unittest.cc',
685 ],
686 'conditions': [
687 ['USE_cellular == 1', {
Liam McLoughlin52139ca2013-10-31 14:37:38 +0000688 'sources': [
Thieu Le43ce4d42013-10-04 16:08:55 -0700689 'active_passive_out_of_credits_detector_unittest.cc',
Ben Chan26692bd2014-02-03 16:34:55 -0800690 'cellular_bearer_unittest.cc',
Liam McLoughlin52139ca2013-10-31 14:37:38 +0000691 'cellular_capability_cdma_unittest.cc',
692 'cellular_capability_classic_unittest.cc',
693 'cellular_capability_gsm_unittest.cc',
694 'cellular_capability_universal_cdma_unittest.cc',
695 'cellular_capability_universal_unittest.cc',
696 'cellular_error_unittest.cc',
Liam McLoughlin52139ca2013-10-31 14:37:38 +0000697 'cellular_service_unittest.cc',
698 'cellular_unittest.cc',
Prathmesh Prabhu28b4a3b2014-03-28 11:52:09 -0700699 'mobile_operator_info_unittest.cc',
Liam McLoughlin52139ca2013-10-31 14:37:38 +0000700 'mock_cellular.cc',
Liam McLoughlin52139ca2013-10-31 14:37:38 +0000701 'mock_cellular_service.cc',
702 'mock_mm1_bearer_proxy.cc',
703 'mock_mm1_modem_location_proxy.cc',
704 'mock_mm1_modem_modem3gpp_proxy.cc',
705 'mock_mm1_modem_modemcdma_proxy.cc',
706 'mock_mm1_modem_proxy.cc',
707 'mock_mm1_modem_simple_proxy.cc',
708 'mock_mm1_modem_time_proxy.cc',
709 'mock_mm1_sim_proxy.cc',
Prathmesh Prabhu95afcbb2014-04-08 16:05:42 -0700710 'mock_mobile_operator_info.cc',
Liam McLoughlin52139ca2013-10-31 14:37:38 +0000711 'mock_modem.cc',
712 'mock_modem_cdma_proxy.cc',
713 'mock_modem_gobi_proxy.cc',
714 'mock_modem_gsm_card_proxy.cc',
715 'mock_modem_gsm_network_proxy.cc',
Ben Chan5742b242013-12-18 16:25:43 -0800716 'mock_modem_info.cc',
Liam McLoughlin52139ca2013-10-31 14:37:38 +0000717 'mock_modem_manager_proxy.cc',
718 'mock_modem_proxy.cc',
719 'mock_modem_simple_proxy.cc',
Ben Chan5742b242013-12-18 16:25:43 -0800720 'mock_out_of_credits_detector.cc',
Liam McLoughlin52139ca2013-10-31 14:37:38 +0000721 'modem_1_unittest.cc',
Ben Chan5742b242013-12-18 16:25:43 -0800722 'modem_info_unittest.cc',
Liam McLoughlin52139ca2013-10-31 14:37:38 +0000723 'modem_manager_unittest.cc',
724 'modem_unittest.cc',
Thieu Le43ce4d42013-10-04 16:08:55 -0700725 'subscription_state_out_of_credits_detector_unittest.cc',
Liam McLoughlin52139ca2013-10-31 14:37:38 +0000726 ],
727 'variables': {
728 'deps': [
729 'ModemManager',
Liam McLoughlinef342b42013-09-13 21:05:36 +0100730 ],
731 },
732 }],
733 ['USE_vpn == 1', {
734 'sources': [
735 'l2tp_ipsec_driver_unittest.cc',
736 'mock_openvpn_driver.cc',
737 'mock_openvpn_management_server.cc',
738 'mock_vpn_driver.cc',
739 'mock_vpn_service.cc',
740 'openvpn_driver_unittest.cc',
741 'openvpn_management_server_unittest.cc',
742 'shims/environment.cc',
743 'shims/environment_unittest.cc',
744 'shims/task_proxy.cc',
745 'vpn_driver_unittest.cc',
746 'vpn_provider_unittest.cc',
747 'vpn_service_unittest.cc',
748 ],
749 }],
Ben Chan520eb172013-10-30 20:51:04 -0700750 ['USE_wimax == 1', {
751 'sources': [
752 'mock_wimax.cc',
753 'mock_wimax_device_proxy.cc',
754 'mock_wimax_manager_proxy.cc',
755 'mock_wimax_network_proxy.cc',
756 'mock_wimax_provider.cc',
757 'mock_wimax_service.cc',
758 'wimax_provider_unittest.cc',
759 'wimax_service_unittest.cc',
760 'wimax_unittest.cc',
761 ],
762 }],
Liam McLoughlinef342b42013-09-13 21:05:36 +0100763 ],
764 },
765 ],
766 }],
767 ],
768}