Peter Qiu | c0beca5 | 2015-09-03 11:25:46 -0700 | [diff] [blame] | 1 | # |
| 2 | # Copyright (C) 2015 The Android Open Source Project |
| 3 | # |
| 4 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | # you may not use this file except in compliance with the License. |
| 6 | # You may obtain a copy of the License at |
| 7 | # |
| 8 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | # |
| 10 | # Unless required by applicable law or agreed to in writing, software |
| 11 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | # See the License for the specific language governing permissions and |
| 14 | # limitations under the License. |
| 15 | # |
| 16 | |
Liam McLoughlin | ef342b4 | 2013-09-13 21:05:36 +0100 | [diff] [blame] | 17 | { |
| 18 | 'target_defaults': { |
Liam McLoughlin | ef342b4 | 2013-09-13 21:05:36 +0100 | [diff] [blame] | 19 | 'variables': { |
| 20 | 'deps': [ |
Peter Qiu | bd33511 | 2015-09-12 22:35:05 -0700 | [diff] [blame] | 21 | 'dbus-1', |
Liam McLoughlin | ef342b4 | 2013-09-13 21:05:36 +0100 | [diff] [blame] | 22 | 'libchrome-<(libbase_ver)', |
Bertrand SIMONNET | 44ce011 | 2014-06-04 12:08:34 -0700 | [diff] [blame] | 23 | 'libchromeos-<(libbase_ver)', |
Liam McLoughlin | ef342b4 | 2013-09-13 21:05:36 +0100 | [diff] [blame] | 24 | ], |
Alex Deymo | 6efec62 | 2014-06-23 11:10:18 -0700 | [diff] [blame] | 25 | # shill uses try/catch to interact with dbus-c++. |
| 26 | 'enable_exceptions': 1, |
Liam McLoughlin | ef342b4 | 2013-09-13 21:05:36 +0100 | [diff] [blame] | 27 | }, |
| 28 | 'cflags': [ |
mukesh agrawal | bd46136 | 2013-11-08 17:34:22 -0800 | [diff] [blame] | 29 | '-Wextra', |
| 30 | '-Werror', |
| 31 | '-Wno-unused-parameter', # for pppd_plugin.c, base/tuple.h |
Liam McLoughlin | ef342b4 | 2013-09-13 21:05:36 +0100 | [diff] [blame] | 32 | ], |
| 33 | 'cflags_cc': [ |
| 34 | '-fno-strict-aliasing', |
Liam McLoughlin | ef342b4 | 2013-09-13 21:05:36 +0100 | [diff] [blame] | 35 | '-Woverloaded-virtual', |
mukesh agrawal | bd46136 | 2013-11-08 17:34:22 -0800 | [diff] [blame] | 36 | '-Wno-missing-field-initializers', # for LAZY_INSTANCE_INITIALIZER |
Liam McLoughlin | ef342b4 | 2013-09-13 21:05:36 +0100 | [diff] [blame] | 37 | ], |
| 38 | 'defines': [ |
Peter Qiu | bd33511 | 2015-09-12 22:35:05 -0700 | [diff] [blame] | 39 | 'ENABLE_CHROMEOS_DBUS', |
Liam McLoughlin | ef342b4 | 2013-09-13 21:05:36 +0100 | [diff] [blame] | 40 | 'RUNDIR="/var/run/shill"', |
Paul Stewart | c466475 | 2013-10-25 17:00:09 -0700 | [diff] [blame] | 41 | 'SHIMDIR="<(libdir)/shill/shims"', |
Liam McLoughlin | ef342b4 | 2013-09-13 21:05:36 +0100 | [diff] [blame] | 42 | ], |
| 43 | 'conditions': [ |
| 44 | ['USE_cellular == 0', { |
| 45 | 'defines': [ |
| 46 | 'DISABLE_CELLULAR', |
| 47 | ], |
| 48 | }], |
mukesh agrawal | e0442f2 | 2015-08-17 12:57:17 -0700 | [diff] [blame] | 49 | ['USE_dhcpv6 == 0', { |
| 50 | 'defines': [ |
| 51 | 'DISABLE_DHCPV6', |
| 52 | ], |
| 53 | }], |
mukesh agrawal | 0414747 | 2015-08-18 13:25:28 -0700 | [diff] [blame] | 54 | ['USE_json_store == 1', { |
| 55 | 'defines': [ |
| 56 | 'ENABLE_JSON_STORE', |
| 57 | ], |
| 58 | }], |
Garret Kelly | 65a5672 | 2015-02-03 14:48:25 -0500 | [diff] [blame] | 59 | ['USE_pppoe == 0', { |
| 60 | 'defines': [ |
| 61 | 'DISABLE_PPPOE', |
| 62 | ], |
| 63 | }], |
Liam McLoughlin | ef342b4 | 2013-09-13 21:05:36 +0100 | [diff] [blame] | 64 | ['USE_vpn == 0', { |
| 65 | 'defines': [ |
| 66 | 'DISABLE_VPN', |
| 67 | ], |
| 68 | }], |
Samuel Tan | fb02175 | 2014-10-21 19:56:56 -0700 | [diff] [blame] | 69 | ['USE_wake_on_wifi == 0', { |
| 70 | 'defines': [ |
| 71 | 'DISABLE_WAKE_ON_WIFI', |
| 72 | ], |
| 73 | }], |
Peter Qiu | 1a72f54 | 2015-04-14 16:31:36 -0700 | [diff] [blame] | 74 | ['USE_wifi == 0', { |
| 75 | 'defines': [ |
| 76 | 'DISABLE_WIFI', |
| 77 | ], |
| 78 | }], |
Ben Chan | 520eb17 | 2013-10-30 20:51:04 -0700 | [diff] [blame] | 79 | ['USE_wimax == 0', { |
| 80 | 'defines': [ |
| 81 | 'DISABLE_WIMAX', |
| 82 | ], |
| 83 | }], |
Peter Qiu | 1a72f54 | 2015-04-14 16:31:36 -0700 | [diff] [blame] | 84 | ['USE_wired_8021x == 0', { |
| 85 | 'defines': [ |
| 86 | 'DISABLE_WIRED_8021X', |
| 87 | ], |
| 88 | }], |
Liam McLoughlin | ef342b4 | 2013-09-13 21:05:36 +0100 | [diff] [blame] | 89 | ], |
Peter Qiu | d913551 | 2015-09-11 14:35:02 -0700 | [diff] [blame] | 90 | 'include_dirs': [ |
| 91 | # We need this include dir because we include all the local code as |
| 92 | # # "shill/...". |
| 93 | '<(platform2_root)/../aosp/system/connectivity', |
| 94 | ], |
Liam McLoughlin | ef342b4 | 2013-09-13 21:05:36 +0100 | [diff] [blame] | 95 | }, |
Bertrand SIMONNET | 24e1f1c | 2014-10-16 16:21:26 -0700 | [diff] [blame] | 96 | 'includes': [ |
| 97 | 'shill.gypi', |
| 98 | ], |
Liam McLoughlin | ef342b4 | 2013-09-13 21:05:36 +0100 | [diff] [blame] | 99 | 'targets': [ |
| 100 | { |
Prathmesh Prabhu | 2fa7bc4 | 2014-03-28 11:48:25 -0700 | [diff] [blame] | 101 | 'target_name': 'mobile_operator_db-protos', |
| 102 | 'type': 'static_library', |
| 103 | 'variables': { |
| 104 | 'proto_in_dir': 'mobile_operator_db', |
| 105 | 'proto_out_dir': |
Samuel Tan | 9151894 | 2015-09-15 17:31:22 -0700 | [diff] [blame] | 106 | 'include/shill/mobile_operator_db' |
Prathmesh Prabhu | 2fa7bc4 | 2014-03-28 11:48:25 -0700 | [diff] [blame] | 107 | }, |
| 108 | 'sources': [ |
| 109 | '<(proto_in_dir)/mobile_operator_db.proto' |
| 110 | ], |
Peter Qiu | d913551 | 2015-09-11 14:35:02 -0700 | [diff] [blame] | 111 | 'includes': ['../../../../platform2/common-mk/protoc.gypi'], |
Prathmesh Prabhu | 2fa7bc4 | 2014-03-28 11:48:25 -0700 | [diff] [blame] | 112 | }, |
| 113 | { |
| 114 | 'target_name': 'mobile_operator_db-db', |
| 115 | 'type': 'none', |
| 116 | 'variables' : { |
| 117 | 'protoc_proto_dir': 'mobile_operator_db', |
| 118 | 'protoc_proto_def': 'mobile_operator_db.proto', |
| 119 | 'protoc_text_dir': 'mobile_operator_db', |
| 120 | 'protoc_bin_dir': '<(PRODUCT_DIR)', |
| 121 | 'protoc_message_name': 'shill.mobile_operator_db.MobileOperatorDB', |
| 122 | }, |
| 123 | 'sources': [ |
| 124 | '<(protoc_text_dir)/serviceproviders.prototxt', |
Prathmesh Prabhu | 2fa7bc4 | 2014-03-28 11:48:25 -0700 | [diff] [blame] | 125 | ], |
Peter Qiu | d913551 | 2015-09-11 14:35:02 -0700 | [diff] [blame] | 126 | 'includes': ['../../../../platform2/common-mk/protoctxt.gypi'], |
Prathmesh Prabhu | 2fa7bc4 | 2014-03-28 11:48:25 -0700 | [diff] [blame] | 127 | }, |
| 128 | { |
| 129 | 'target_name': 'mobile_operator_db', |
| 130 | 'type': 'static_library', |
| 131 | 'dependencies': [ |
| 132 | 'mobile_operator_db-protos', |
| 133 | 'mobile_operator_db-db', |
| 134 | ], |
| 135 | }, |
| 136 | { |
Peter Qiu | 72e7e25 | 2015-06-26 16:23:46 -0700 | [diff] [blame] | 137 | 'target_name': 'shill-chromeos-dbus-adaptors', |
| 138 | 'type': 'none', |
| 139 | 'variables': { |
Samuel Tan | e4aa2cb | 2015-09-17 12:35:13 -0700 | [diff] [blame^] | 140 | 'dbus_adaptors_out_dir': 'include/dbus_bindings', |
Samuel Tan | 0886327 | 2015-09-16 15:58:22 -0700 | [diff] [blame] | 141 | 'dbus_xml_extension': 'dbus-xml', |
Peter Qiu | 72e7e25 | 2015-06-26 16:23:46 -0700 | [diff] [blame] | 142 | }, |
| 143 | 'sources': [ |
Samuel Tan | 0886327 | 2015-09-16 15:58:22 -0700 | [diff] [blame] | 144 | 'dbus_bindings/org.chromium.flimflam.Device.dbus-xml', |
| 145 | 'dbus_bindings/org.chromium.flimflam.IPConfig.dbus-xml', |
| 146 | 'dbus_bindings/org.chromium.flimflam.Manager.dbus-xml', |
| 147 | 'dbus_bindings/org.chromium.flimflam.Profile.dbus-xml', |
| 148 | 'dbus_bindings/org.chromium.flimflam.Service.dbus-xml', |
| 149 | 'dbus_bindings/org.chromium.flimflam.Task.dbus-xml', |
| 150 | 'dbus_bindings/org.chromium.flimflam.ThirdPartyVpn.dbus-xml', |
Peter Qiu | 72e7e25 | 2015-06-26 16:23:46 -0700 | [diff] [blame] | 151 | ], |
Peter Qiu | d913551 | 2015-09-11 14:35:02 -0700 | [diff] [blame] | 152 | 'includes': ['../../../../platform2/common-mk/generate-dbus-adaptors.gypi'], |
Peter Qiu | 72e7e25 | 2015-06-26 16:23:46 -0700 | [diff] [blame] | 153 | }, |
Liam McLoughlin | ef342b4 | 2013-09-13 21:05:36 +0100 | [diff] [blame] | 154 | { |
| 155 | 'target_name': 'shim-protos', |
| 156 | 'type': 'static_library', |
| 157 | 'variables': { |
| 158 | 'proto_in_dir': 'shims/protos', |
Samuel Tan | 9151894 | 2015-09-15 17:31:22 -0700 | [diff] [blame] | 159 | 'proto_out_dir': 'include/shill/shims/protos', |
Liam McLoughlin | ef342b4 | 2013-09-13 21:05:36 +0100 | [diff] [blame] | 160 | }, |
| 161 | 'sources': [ |
| 162 | '<(proto_in_dir)/crypto_util.proto', |
| 163 | ], |
Peter Qiu | d913551 | 2015-09-11 14:35:02 -0700 | [diff] [blame] | 164 | 'includes': ['../../../../platform2/common-mk/protoc.gypi'], |
Liam McLoughlin | ef342b4 | 2013-09-13 21:05:36 +0100 | [diff] [blame] | 165 | }, |
| 166 | { |
| 167 | 'target_name': 'crypto_util', |
| 168 | 'type': 'executable', |
| 169 | 'dependencies': ['shim-protos'], |
Bertrand SIMONNET | 44ce011 | 2014-06-04 12:08:34 -0700 | [diff] [blame] | 170 | 'variables': { |
| 171 | 'deps': [ |
| 172 | 'openssl', |
| 173 | 'protobuf-lite', |
| 174 | ] |
Paul Stewart | 2010bd9 | 2014-09-03 19:42:17 -0700 | [diff] [blame] | 175 | }, |
| 176 | 'sources': [ |
| 177 | 'shims/crypto_util.cc', |
| 178 | ], |
Liam McLoughlin | ef342b4 | 2013-09-13 21:05:36 +0100 | [diff] [blame] | 179 | }, |
| 180 | { |
Peter Qiu | 8d6b597 | 2014-10-28 15:33:34 -0700 | [diff] [blame] | 181 | 'target_name': 'libshill-net-<(libbase_ver)', |
| 182 | 'type': 'shared_library', |
Peter Qiu | 8d6b597 | 2014-10-28 15:33:34 -0700 | [diff] [blame] | 183 | 'sources': [ |
Peter Qiu | 02e3dc3 | 2014-10-31 10:15:00 -0700 | [diff] [blame] | 184 | 'net/attribute_list.cc', |
Peter Qiu | 8d6b597 | 2014-10-28 15:33:34 -0700 | [diff] [blame] | 185 | 'net/byte_string.cc', |
Peter Qiu | 02e3dc3 | 2014-10-31 10:15:00 -0700 | [diff] [blame] | 186 | 'net/control_netlink_attribute.cc', |
Samuel Tan | 07dfabc | 2015-01-20 15:10:39 -0800 | [diff] [blame] | 187 | 'net/event_history.cc', |
Peter Qiu | 02e3dc3 | 2014-10-31 10:15:00 -0700 | [diff] [blame] | 188 | 'net/generic_netlink_message.cc', |
Peter Qiu | 8d6b597 | 2014-10-28 15:33:34 -0700 | [diff] [blame] | 189 | 'net/io_handler_factory.cc', |
Peter Qiu | 40a0148 | 2014-10-31 11:54:23 -0700 | [diff] [blame] | 190 | 'net/io_handler_factory_container.cc', |
Peter Qiu | 8d6b597 | 2014-10-28 15:33:34 -0700 | [diff] [blame] | 191 | 'net/io_input_handler.cc', |
| 192 | 'net/io_ready_handler.cc', |
| 193 | 'net/ip_address.cc', |
Peter Qiu | 02e3dc3 | 2014-10-31 10:15:00 -0700 | [diff] [blame] | 194 | 'net/netlink_attribute.cc', |
| 195 | 'net/netlink_manager.cc', |
| 196 | 'net/netlink_message.cc', |
Paul Stewart | 6017384 | 2015-07-20 15:27:08 -0700 | [diff] [blame] | 197 | 'net/netlink_packet.cc', |
Peter Qiu | 02e3dc3 | 2014-10-31 10:15:00 -0700 | [diff] [blame] | 198 | 'net/netlink_socket.cc', |
| 199 | 'net/nl80211_attribute.cc', |
| 200 | 'net/nl80211_message.cc', |
Peter Qiu | 8d6b597 | 2014-10-28 15:33:34 -0700 | [diff] [blame] | 201 | 'net/rtnl_handler.cc', |
| 202 | 'net/rtnl_listener.cc', |
| 203 | 'net/rtnl_message.cc', |
| 204 | 'net/shill_time.cc', |
| 205 | 'net/sockets.cc', |
| 206 | ], |
Peter Qiu | d913551 | 2015-09-11 14:35:02 -0700 | [diff] [blame] | 207 | 'includes': ['../../../../platform2/common-mk/deps.gypi'], |
Peter Qiu | 8d6b597 | 2014-10-28 15:33:34 -0700 | [diff] [blame] | 208 | }, |
| 209 | { |
Liam McLoughlin | ef342b4 | 2013-09-13 21:05:36 +0100 | [diff] [blame] | 210 | 'target_name': 'libshill', |
| 211 | 'type': 'static_library', |
| 212 | 'dependencies': [ |
Prathmesh Prabhu | 2fa7bc4 | 2014-03-28 11:48:25 -0700 | [diff] [blame] | 213 | 'mobile_operator_db', |
Peter Qiu | bd33511 | 2015-09-12 22:35:05 -0700 | [diff] [blame] | 214 | 'shill-chromeos-dbus-adaptors', |
Liam McLoughlin | ef342b4 | 2013-09-13 21:05:36 +0100 | [diff] [blame] | 215 | 'shim-protos', |
Peter Qiu | 8d6b597 | 2014-10-28 15:33:34 -0700 | [diff] [blame] | 216 | 'libshill-net-<(libbase_ver)', |
Liam McLoughlin | ef342b4 | 2013-09-13 21:05:36 +0100 | [diff] [blame] | 217 | ], |
| 218 | 'variables': { |
| 219 | 'exported_deps': [ |
Liam McLoughlin | ef342b4 | 2013-09-13 21:05:36 +0100 | [diff] [blame] | 220 | 'gio-2.0', |
| 221 | 'glib-2.0', |
| 222 | 'libcares', |
Bertrand SIMONNET | f62f508 | 2014-06-20 15:34:36 -0700 | [diff] [blame] | 223 | 'libmetrics-<(libbase_ver)', |
Peter Qiu | bd33511 | 2015-09-12 22:35:05 -0700 | [diff] [blame] | 224 | 'libpermission_broker-client', |
| 225 | 'libpower_manager-client', |
Liam McLoughlin | ef342b4 | 2013-09-13 21:05:36 +0100 | [diff] [blame] | 226 | 'protobuf-lite', |
| 227 | ], |
Peter Qiu | 00b1868 | 2015-09-09 16:40:07 -0700 | [diff] [blame] | 228 | 'deps': [ |
| 229 | '<@(exported_deps)', |
| 230 | 'libshill-client', |
| 231 | ], |
Liam McLoughlin | ef342b4 | 2013-09-13 21:05:36 +0100 | [diff] [blame] | 232 | }, |
| 233 | 'all_dependent_settings': { |
| 234 | 'variables': { |
| 235 | 'deps': [ |
| 236 | '<@(exported_deps)', |
| 237 | ], |
| 238 | }, |
| 239 | }, |
| 240 | 'link_settings': { |
| 241 | 'variables': { |
| 242 | 'deps': [ |
Liam McLoughlin | ef342b4 | 2013-09-13 21:05:36 +0100 | [diff] [blame] | 243 | 'gio-2.0', |
| 244 | 'glib-2.0', |
| 245 | 'libcares', |
Bertrand SIMONNET | 2d27ffd | 2014-06-18 10:49:57 -0700 | [diff] [blame] | 246 | # system_api depends on protobuf (or protobuf-lite). It must appear |
| 247 | # before protobuf here or the linker flags won't be in the right |
| 248 | # order. |
| 249 | 'system_api', |
Liam McLoughlin | ef342b4 | 2013-09-13 21:05:36 +0100 | [diff] [blame] | 250 | 'protobuf-lite', |
| 251 | ], |
| 252 | }, |
| 253 | 'libraries': [ |
Bertrand SIMONNET | 51aa28f | 2015-07-27 15:47:35 -0700 | [diff] [blame] | 254 | '-lbootstat', |
Gaurav Shah | 5981ecf | 2014-04-18 15:22:55 -0700 | [diff] [blame] | 255 | '-lrootdev', |
Liam McLoughlin | ef342b4 | 2013-09-13 21:05:36 +0100 | [diff] [blame] | 256 | '-lrt' |
| 257 | ], |
| 258 | }, |
| 259 | 'conditions': [ |
| 260 | ['USE_cellular == 1', { |
Chris Masone | 3d6b238 | 2013-11-11 14:05:28 -0800 | [diff] [blame] | 261 | 'dependencies': [ |
Peter Qiu | d913551 | 2015-09-11 14:35:02 -0700 | [diff] [blame] | 262 | '../../../../platform2/common-mk/external_dependencies.gyp:modemmanager-dbus-proxies', |
Chris Masone | 3d6b238 | 2013-11-11 14:05:28 -0800 | [diff] [blame] | 263 | ], |
Liam McLoughlin | 52139ca | 2013-10-31 14:37:38 +0000 | [diff] [blame] | 264 | 'variables': { |
| 265 | 'deps': [ |
| 266 | 'ModemManager', |
Liam McLoughlin | ef342b4 | 2013-09-13 21:05:36 +0100 | [diff] [blame] | 267 | ], |
| 268 | }, |
Liam McLoughlin | 52139ca | 2013-10-31 14:37:38 +0000 | [diff] [blame] | 269 | 'sources': [ |
Ben Chan | c54afe5 | 2014-11-05 10:28:08 -0800 | [diff] [blame] | 270 | 'cellular/active_passive_out_of_credits_detector.cc', |
| 271 | 'cellular/cellular.cc', |
| 272 | 'cellular/cellular_bearer.cc', |
| 273 | 'cellular/cellular_capability.cc', |
| 274 | 'cellular/cellular_capability_cdma.cc', |
| 275 | 'cellular/cellular_capability_classic.cc', |
| 276 | 'cellular/cellular_capability_gsm.cc', |
| 277 | 'cellular/cellular_capability_universal.cc', |
| 278 | 'cellular/cellular_capability_universal_cdma.cc', |
| 279 | 'cellular/cellular_error.cc', |
| 280 | 'cellular/cellular_error_mm1.cc', |
| 281 | 'cellular/cellular_service.cc', |
Ben Chan | c54afe5 | 2014-11-05 10:28:08 -0800 | [diff] [blame] | 282 | 'cellular/mobile_operator_info.cc', |
| 283 | 'cellular/mobile_operator_info_impl.cc', |
| 284 | 'cellular/modem.cc', |
| 285 | 'cellular/modem_1.cc', |
Ben Chan | c54afe5 | 2014-11-05 10:28:08 -0800 | [diff] [blame] | 286 | 'cellular/modem_classic.cc', |
Ben Chan | c54afe5 | 2014-11-05 10:28:08 -0800 | [diff] [blame] | 287 | 'cellular/modem_info.cc', |
| 288 | 'cellular/modem_manager.cc', |
| 289 | 'cellular/modem_manager_1.cc', |
Ben Chan | c54afe5 | 2014-11-05 10:28:08 -0800 | [diff] [blame] | 290 | 'cellular/out_of_credits_detector.cc', |
| 291 | 'cellular/subscription_state_out_of_credits_detector.cc', |
Peter Qiu | bd33511 | 2015-09-12 22:35:05 -0700 | [diff] [blame] | 292 | 'dbus/chromeos_dbus_objectmanager_proxy.cc', |
| 293 | 'dbus/chromeos_dbus_properties_proxy.cc', |
| 294 | 'dbus/chromeos_mm1_modem_modem3gpp_proxy.cc', |
| 295 | 'dbus/chromeos_mm1_modem_modemcdma_proxy.cc', |
| 296 | 'dbus/chromeos_mm1_modem_proxy.cc', |
| 297 | 'dbus/chromeos_mm1_modem_simple_proxy.cc', |
| 298 | 'dbus/chromeos_mm1_sim_proxy.cc', |
| 299 | 'dbus/chromeos_modem_cdma_proxy.cc', |
| 300 | 'dbus/chromeos_modem_gobi_proxy.cc', |
| 301 | 'dbus/chromeos_modem_gsm_card_proxy.cc', |
| 302 | 'dbus/chromeos_modem_gsm_network_proxy.cc', |
| 303 | 'dbus/chromeos_modem_manager_proxy.cc', |
| 304 | 'dbus/chromeos_modem_proxy.cc', |
| 305 | 'dbus/chromeos_modem_simple_proxy.cc', |
Prathmesh Prabhu | 28b4a3b | 2014-03-28 11:52:09 -0700 | [diff] [blame] | 306 | 'protobuf_lite_streams.cc', |
Liam McLoughlin | 52139ca | 2013-10-31 14:37:38 +0000 | [diff] [blame] | 307 | ], |
Peter Qiu | 71c9c65 | 2015-07-21 09:44:41 -0700 | [diff] [blame] | 308 | 'actions': [ |
| 309 | { |
Peter Qiu | bd33511 | 2015-09-12 22:35:05 -0700 | [diff] [blame] | 310 | 'action_name': 'generate-cellular-proxies', |
Peter Qiu | 65a049b | 2015-07-24 11:29:01 -0700 | [diff] [blame] | 311 | 'variables': { |
Peter Qiu | bd33511 | 2015-09-12 22:35:05 -0700 | [diff] [blame] | 312 | 'proxy_output_file': 'include/cellular/dbus-proxies.h', |
| 313 | 'modemmanager_in_dir': '<(sysroot)/usr/share/dbus-1/interfaces/', |
Peter Qiu | 65a049b | 2015-07-24 11:29:01 -0700 | [diff] [blame] | 314 | }, |
| 315 | 'sources': [ |
Samuel Tan | 0886327 | 2015-09-16 15:58:22 -0700 | [diff] [blame] | 316 | 'dbus_bindings/dbus-objectmanager.dbus-xml', |
| 317 | 'dbus_bindings/dbus-properties.dbus-xml', |
| 318 | 'dbus_bindings/modem-gobi.dbus-xml', |
Peter Qiu | bd33511 | 2015-09-12 22:35:05 -0700 | [diff] [blame] | 319 | '<(modemmanager_in_dir)/org.freedesktop.ModemManager.Modem.Cdma.xml', |
| 320 | '<(modemmanager_in_dir)/org.freedesktop.ModemManager.Modem.Gsm.Card.xml', |
| 321 | '<(modemmanager_in_dir)/org.freedesktop.ModemManager.Modem.Gsm.Network.xml', |
| 322 | '<(modemmanager_in_dir)/org.freedesktop.ModemManager.Modem.Simple.xml', |
| 323 | '<(modemmanager_in_dir)/org.freedesktop.ModemManager.Modem.xml', |
| 324 | '<(modemmanager_in_dir)/org.freedesktop.ModemManager.xml', |
| 325 | '<(modemmanager_in_dir)/org.freedesktop.ModemManager1.Modem.Modem3gpp.xml', |
| 326 | '<(modemmanager_in_dir)/org.freedesktop.ModemManager1.Modem.ModemCdma.xml', |
| 327 | '<(modemmanager_in_dir)/org.freedesktop.ModemManager1.Modem.Simple.xml', |
| 328 | '<(modemmanager_in_dir)/org.freedesktop.ModemManager1.Modem.xml', |
| 329 | '<(modemmanager_in_dir)/org.freedesktop.ModemManager1.Sim.xml', |
Peter Qiu | 71c9c65 | 2015-07-21 09:44:41 -0700 | [diff] [blame] | 330 | ], |
Peter Qiu | d913551 | 2015-09-11 14:35:02 -0700 | [diff] [blame] | 331 | 'includes': ['../../../../platform2/common-mk/generate-dbus-proxies.gypi'], |
Peter Qiu | 71c9c65 | 2015-07-21 09:44:41 -0700 | [diff] [blame] | 332 | }, |
Peter Qiu | 72e7e25 | 2015-06-26 16:23:46 -0700 | [diff] [blame] | 333 | ], |
| 334 | }], |
mukesh agrawal | bb813e8 | 2015-08-17 17:13:36 -0700 | [diff] [blame] | 335 | ['USE_json_store == 0', { |
| 336 | 'sources': [ |
| 337 | 'key_file_store.cc', |
| 338 | ], |
| 339 | }], |
| 340 | ['USE_json_store == 1', { |
| 341 | 'sources': [ |
| 342 | 'json_store.cc', |
| 343 | ], |
| 344 | }], |
Liam McLoughlin | ef342b4 | 2013-09-13 21:05:36 +0100 | [diff] [blame] | 345 | ['USE_vpn == 1', { |
Liam McLoughlin | 52139ca | 2013-10-31 14:37:38 +0000 | [diff] [blame] | 346 | 'sources': [ |
Ben Chan | 2240e8c | 2014-11-06 13:37:18 -0800 | [diff] [blame] | 347 | 'vpn/l2tp_ipsec_driver.cc', |
| 348 | 'vpn/openvpn_driver.cc', |
| 349 | 'vpn/openvpn_management_server.cc', |
Ben Chan | 2240e8c | 2014-11-06 13:37:18 -0800 | [diff] [blame] | 350 | 'vpn/third_party_vpn_driver.cc', |
Liam McLoughlin | 52139ca | 2013-10-31 14:37:38 +0000 | [diff] [blame] | 351 | ], |
Liam McLoughlin | ef342b4 | 2013-09-13 21:05:36 +0100 | [diff] [blame] | 352 | }], |
Peter Qiu | 1a72f54 | 2015-04-14 16:31:36 -0700 | [diff] [blame] | 353 | ['USE_wifi == 1', { |
| 354 | 'sources': [ |
Peter Qiu | 1a72f54 | 2015-04-14 16:31:36 -0700 | [diff] [blame] | 355 | 'wifi/callback80211_metrics.cc', |
| 356 | 'wifi/mac80211_monitor.cc', |
| 357 | 'wifi/scan_session.cc', |
Peter Qiu | 618d9d7 | 2015-05-04 13:29:19 -0700 | [diff] [blame] | 358 | 'wifi/tdls_manager.cc', |
Peter Qiu | 1a72f54 | 2015-04-14 16:31:36 -0700 | [diff] [blame] | 359 | 'wifi/wake_on_wifi.cc', |
| 360 | 'wifi/wifi.cc', |
| 361 | 'wifi/wifi_endpoint.cc', |
| 362 | 'wifi/wifi_provider.cc', |
| 363 | 'wifi/wifi_service.cc', |
| 364 | ], |
| 365 | }], |
| 366 | ['USE_wifi == 1 or USE_wired_8021x == 1', { |
| 367 | 'sources': [ |
Peter Qiu | bd33511 | 2015-09-12 22:35:05 -0700 | [diff] [blame] | 368 | 'dbus/chromeos_supplicant_bss_proxy.cc', |
| 369 | 'dbus/chromeos_supplicant_interface_proxy.cc', |
| 370 | 'dbus/chromeos_supplicant_network_proxy.cc', |
| 371 | 'dbus/chromeos_supplicant_process_proxy.cc', |
Peter Qiu | 1a72f54 | 2015-04-14 16:31:36 -0700 | [diff] [blame] | 372 | 'eap_credentials.cc', |
| 373 | 'eap_listener.cc', |
| 374 | 'supplicant/supplicant_eap_state_handler.cc', |
Peter Qiu | 1a72f54 | 2015-04-14 16:31:36 -0700 | [diff] [blame] | 375 | 'supplicant/wpa_supplicant.cc', |
| 376 | ], |
Peter Qiu | bd33511 | 2015-09-12 22:35:05 -0700 | [diff] [blame] | 377 | 'actions': [ |
| 378 | { |
| 379 | 'action_name': 'generate-supplicant-proxies', |
| 380 | 'variables': { |
| 381 | 'proxy_output_file': 'include/supplicant/dbus-proxies.h', |
| 382 | }, |
Peter Qiu | 3cf54dd | 2015-07-17 14:13:23 -0700 | [diff] [blame] | 383 | 'sources': [ |
Samuel Tan | 0886327 | 2015-09-16 15:58:22 -0700 | [diff] [blame] | 384 | 'dbus_bindings/supplicant-bss.dbus-xml', |
| 385 | 'dbus_bindings/supplicant-interface.dbus-xml', |
| 386 | 'dbus_bindings/supplicant-network.dbus-xml', |
| 387 | 'dbus_bindings/supplicant-process.dbus-xml', |
Peter Qiu | 3cf54dd | 2015-07-17 14:13:23 -0700 | [diff] [blame] | 388 | ], |
Peter Qiu | bd33511 | 2015-09-12 22:35:05 -0700 | [diff] [blame] | 389 | 'includes': ['../../../../platform2/common-mk/generate-dbus-proxies.gypi'], |
| 390 | }, |
Peter Qiu | 3cf54dd | 2015-07-17 14:13:23 -0700 | [diff] [blame] | 391 | ], |
Peter Qiu | 1a72f54 | 2015-04-14 16:31:36 -0700 | [diff] [blame] | 392 | }], |
Ben Chan | 520eb17 | 2013-10-30 20:51:04 -0700 | [diff] [blame] | 393 | ['USE_wimax == 1', { |
Peter Qiu | d156962 | 2015-09-11 22:09:05 -0700 | [diff] [blame] | 394 | 'variables': { |
| 395 | 'exported_deps': [ |
| 396 | 'libwimax_manager-client', |
| 397 | ], |
| 398 | 'deps': ['<@(exported_deps)'], |
| 399 | }, |
| 400 | 'all_dependent_settings': { |
| 401 | 'variables': { |
| 402 | 'deps': [ |
| 403 | '<@(exported_deps)', |
| 404 | ], |
| 405 | }, |
| 406 | }, |
Ben Chan | 520eb17 | 2013-10-30 20:51:04 -0700 | [diff] [blame] | 407 | 'sources': [ |
Peter Qiu | bd33511 | 2015-09-12 22:35:05 -0700 | [diff] [blame] | 408 | 'dbus/chromeos_wimax_device_proxy.cc', |
| 409 | 'dbus/chromeos_wimax_manager_proxy.cc', |
| 410 | 'dbus/chromeos_wimax_network_proxy.cc', |
Ben Chan | c3d707d | 2014-10-31 08:56:05 -0700 | [diff] [blame] | 411 | 'wimax/wimax.cc', |
Ben Chan | c3d707d | 2014-10-31 08:56:05 -0700 | [diff] [blame] | 412 | 'wimax/wimax_provider.cc', |
| 413 | 'wimax/wimax_service.cc', |
Ben Chan | 520eb17 | 2013-10-30 20:51:04 -0700 | [diff] [blame] | 414 | ], |
| 415 | }], |
Peter Qiu | 1a72f54 | 2015-04-14 16:31:36 -0700 | [diff] [blame] | 416 | ['USE_wired_8021x == 1', { |
| 417 | 'sources': [ |
| 418 | 'ethernet/ethernet_eap_provider.cc', |
| 419 | 'ethernet/ethernet_eap_service.cc', |
| 420 | ], |
| 421 | }], |
Peter Qiu | b255a76 | 2015-06-10 10:09:12 -0700 | [diff] [blame] | 422 | ['USE_dhcpv6 == 1', { |
| 423 | 'sources': [ |
| 424 | 'dhcp/dhcpv6_config.cc', |
| 425 | ], |
| 426 | }], |
Liam McLoughlin | ef342b4 | 2013-09-13 21:05:36 +0100 | [diff] [blame] | 427 | ], |
| 428 | 'sources': [ |
Peter Qiu | d788102 | 2015-01-21 12:27:41 -0800 | [diff] [blame] | 429 | 'active_link_monitor.cc', |
Liam McLoughlin | ef342b4 | 2013-09-13 21:05:36 +0100 | [diff] [blame] | 430 | 'arp_client.cc', |
| 431 | 'arp_packet.cc', |
| 432 | 'async_connection.cc', |
Liam McLoughlin | ef342b4 | 2013-09-13 21:05:36 +0100 | [diff] [blame] | 433 | 'certificate_file.cc', |
Peter Qiu | dde57ef | 2015-08-14 09:58:51 -0700 | [diff] [blame] | 434 | 'chromeos_daemon.cc', |
Liam McLoughlin | ef342b4 | 2013-09-13 21:05:36 +0100 | [diff] [blame] | 435 | 'connection.cc', |
Samuel Tan | 1b9546a | 2015-06-29 18:53:41 -0700 | [diff] [blame] | 436 | 'connection_diagnostics.cc', |
Liam McLoughlin | ef342b4 | 2013-09-13 21:05:36 +0100 | [diff] [blame] | 437 | 'connection_health_checker.cc', |
| 438 | 'connection_info.cc', |
| 439 | 'connection_info_reader.cc', |
Ben Chan | 3cee3ce | 2014-10-18 10:41:23 -0700 | [diff] [blame] | 440 | 'connection_tester.cc', |
| 441 | 'connectivity_trial.cc', |
Liam McLoughlin | ef342b4 | 2013-09-13 21:05:36 +0100 | [diff] [blame] | 442 | 'crypto_des_cbc.cc', |
| 443 | 'crypto_provider.cc', |
| 444 | 'crypto_rot47.cc', |
| 445 | 'crypto_util_proxy.cc', |
Peter Qiu | bd33511 | 2015-09-12 22:35:05 -0700 | [diff] [blame] | 446 | 'dbus/chromeos_dbus_adaptor.cc', |
| 447 | 'dbus/chromeos_dbus_control.cc', |
| 448 | 'dbus/chromeos_dbus_daemon.cc', |
| 449 | 'dbus/chromeos_dbus_service_watcher.cc', |
| 450 | 'dbus/chromeos_device_dbus_adaptor.cc', |
| 451 | 'dbus/chromeos_dhcpcd_listener.cc', |
| 452 | 'dbus/chromeos_dhcpcd_proxy.cc', |
| 453 | 'dbus/chromeos_ipconfig_dbus_adaptor.cc', |
| 454 | 'dbus/chromeos_manager_dbus_adaptor.cc', |
| 455 | 'dbus/chromeos_permission_broker_proxy.cc', |
| 456 | 'dbus/chromeos_power_manager_proxy.cc', |
| 457 | 'dbus/chromeos_profile_dbus_adaptor.cc', |
| 458 | 'dbus/chromeos_rpc_task_dbus_adaptor.cc', |
| 459 | 'dbus/chromeos_service_dbus_adaptor.cc', |
| 460 | 'dbus/chromeos_third_party_vpn_dbus_adaptor.cc', |
| 461 | 'dbus/chromeos_upstart_proxy.cc', |
Liam McLoughlin | ef342b4 | 2013-09-13 21:05:36 +0100 | [diff] [blame] | 462 | 'default_profile.cc', |
| 463 | 'device.cc', |
Peter Qiu | 7e8b8ee | 2014-11-25 13:55:57 -0800 | [diff] [blame] | 464 | 'device_claimer.cc', |
Liam McLoughlin | ef342b4 | 2013-09-13 21:05:36 +0100 | [diff] [blame] | 465 | 'device_info.cc', |
Peter Qiu | 675d0b0 | 2015-06-03 13:08:09 -0700 | [diff] [blame] | 466 | 'dhcp/dhcp_config.cc', |
| 467 | 'dhcp/dhcp_provider.cc', |
Peter Qiu | 8e0151e | 2015-06-04 09:41:47 -0700 | [diff] [blame] | 468 | 'dhcp/dhcpv4_config.cc', |
Liam McLoughlin | ef342b4 | 2013-09-13 21:05:36 +0100 | [diff] [blame] | 469 | 'diagnostics_reporter.cc', |
| 470 | 'dns_client.cc', |
| 471 | 'dns_client_factory.cc', |
Peter Qiu | d670d03 | 2014-06-03 15:04:43 -0700 | [diff] [blame] | 472 | 'dns_server_tester.cc', |
Liam McLoughlin | ef342b4 | 2013-09-13 21:05:36 +0100 | [diff] [blame] | 473 | 'ephemeral_profile.cc', |
Peter Qiu | 3161caa | 2014-10-29 09:47:22 -0700 | [diff] [blame] | 474 | 'error.cc', |
Ben Chan | 8760251 | 2014-11-07 20:50:05 -0800 | [diff] [blame] | 475 | 'ethernet/ethernet.cc', |
Ben Chan | 8760251 | 2014-11-07 20:50:05 -0800 | [diff] [blame] | 476 | 'ethernet/ethernet_service.cc', |
Peter Qiu | 6fc1a8c | 2015-04-28 15:47:37 -0700 | [diff] [blame] | 477 | 'ethernet/ethernet_temporary_service.cc', |
Ben Chan | 8760251 | 2014-11-07 20:50:05 -0800 | [diff] [blame] | 478 | 'ethernet/virtio_ethernet.cc', |
Liam McLoughlin | ef342b4 | 2013-09-13 21:05:36 +0100 | [diff] [blame] | 479 | 'event_dispatcher.cc', |
| 480 | 'external_task.cc', |
| 481 | 'file_io.cc', |
| 482 | 'file_reader.cc', |
Liam McLoughlin | ef342b4 | 2013-09-13 21:05:36 +0100 | [diff] [blame] | 483 | 'geolocation_info.cc', |
| 484 | 'glib.cc', |
Liam McLoughlin | ef342b4 | 2013-09-13 21:05:36 +0100 | [diff] [blame] | 485 | 'hook_table.cc', |
| 486 | 'http_proxy.cc', |
| 487 | 'http_request.cc', |
| 488 | 'http_url.cc', |
Paul Stewart | 960d469 | 2013-12-09 07:41:59 -0800 | [diff] [blame] | 489 | 'icmp.cc', |
Samuel Tan | f66080e | 2015-06-18 15:53:00 -0700 | [diff] [blame] | 490 | 'icmp_session.cc', |
Samuel Tan | 1c0debc | 2015-07-24 13:26:21 -0700 | [diff] [blame] | 491 | 'icmp_session_factory.cc', |
Liam McLoughlin | ef342b4 | 2013-09-13 21:05:36 +0100 | [diff] [blame] | 492 | 'ip_address_store.cc', |
| 493 | 'ipconfig.cc', |
Liam McLoughlin | ef342b4 | 2013-09-13 21:05:36 +0100 | [diff] [blame] | 494 | 'key_value_store.cc', |
| 495 | 'link_monitor.cc', |
Prathmesh Prabhu | f002cdb | 2014-09-17 22:41:05 -0700 | [diff] [blame] | 496 | 'logging.cc', |
Liam McLoughlin | ef342b4 | 2013-09-13 21:05:36 +0100 | [diff] [blame] | 497 | 'manager.cc', |
Liam McLoughlin | ef342b4 | 2013-09-13 21:05:36 +0100 | [diff] [blame] | 498 | 'metrics.cc', |
Peter Qiu | fcc00ee | 2015-01-16 15:38:45 -0800 | [diff] [blame] | 499 | 'passive_link_monitor.cc', |
Liam McLoughlin | ef342b4 | 2013-09-13 21:05:36 +0100 | [diff] [blame] | 500 | 'pending_activation_store.cc', |
| 501 | 'portal_detector.cc', |
| 502 | 'power_manager.cc', |
Garret Kelly | cb832e8 | 2015-01-14 16:37:27 -0500 | [diff] [blame] | 503 | 'ppp_daemon.cc', |
Liam McLoughlin | ef342b4 | 2013-09-13 21:05:36 +0100 | [diff] [blame] | 504 | 'ppp_device.cc', |
| 505 | 'ppp_device_factory.cc', |
Garret Kelly | 2dc218e | 2015-01-30 11:16:34 -0500 | [diff] [blame] | 506 | 'pppoe/pppoe_service.cc', |
Liam McLoughlin | ef342b4 | 2013-09-13 21:05:36 +0100 | [diff] [blame] | 507 | 'process_killer.cc', |
Peter Qiu | 1774626 | 2015-08-04 22:52:47 -0700 | [diff] [blame] | 508 | 'process_manager.cc', |
Liam McLoughlin | ef342b4 | 2013-09-13 21:05:36 +0100 | [diff] [blame] | 509 | 'profile.cc', |
Liam McLoughlin | ef342b4 | 2013-09-13 21:05:36 +0100 | [diff] [blame] | 510 | 'property_store.cc', |
Liam McLoughlin | ef342b4 | 2013-09-13 21:05:36 +0100 | [diff] [blame] | 511 | 'resolver.cc', |
| 512 | 'result_aggregator.cc', |
| 513 | 'routing_table.cc', |
| 514 | 'rpc_task.cc', |
Liam McLoughlin | ef342b4 | 2013-09-13 21:05:36 +0100 | [diff] [blame] | 515 | 'scope_logger.cc', |
mukesh agrawal | 3ff527c | 2014-04-08 17:07:56 -0700 | [diff] [blame] | 516 | 'scoped_umask.cc', |
Liam McLoughlin | ef342b4 | 2013-09-13 21:05:36 +0100 | [diff] [blame] | 517 | 'service.cc', |
Paul Stewart | 0153cf0 | 2014-06-02 11:53:36 -0700 | [diff] [blame] | 518 | 'service_property_change_notifier.cc', |
Liam McLoughlin | ef342b4 | 2013-09-13 21:05:36 +0100 | [diff] [blame] | 519 | 'shill_ares.cc', |
| 520 | 'shill_config.cc', |
Liam McLoughlin | ef342b4 | 2013-09-13 21:05:36 +0100 | [diff] [blame] | 521 | 'shill_test_config.cc', |
Liam McLoughlin | ef342b4 | 2013-09-13 21:05:36 +0100 | [diff] [blame] | 522 | 'socket_info.cc', |
| 523 | 'socket_info_reader.cc', |
Liam McLoughlin | ef342b4 | 2013-09-13 21:05:36 +0100 | [diff] [blame] | 524 | 'static_ip_parameters.cc', |
mukesh agrawal | 0414747 | 2015-08-18 13:25:28 -0700 | [diff] [blame] | 525 | 'store_factory.cc', |
Liam McLoughlin | ef342b4 | 2013-09-13 21:05:36 +0100 | [diff] [blame] | 526 | 'technology.cc', |
Paul Stewart | fa11e28 | 2013-12-02 22:04:25 -0800 | [diff] [blame] | 527 | 'tethering.cc', |
Liam McLoughlin | ef342b4 | 2013-09-13 21:05:36 +0100 | [diff] [blame] | 528 | 'traffic_monitor.cc', |
Paul Stewart | 59a8cba | 2015-01-09 15:48:19 -0800 | [diff] [blame] | 529 | 'upstart/upstart.cc', |
Liam McLoughlin | ef342b4 | 2013-09-13 21:05:36 +0100 | [diff] [blame] | 530 | 'virtual_device.cc', |
Ben Chan | 2240e8c | 2014-11-06 13:37:18 -0800 | [diff] [blame] | 531 | 'vpn/vpn_driver.cc', |
| 532 | 'vpn/vpn_provider.cc', |
| 533 | 'vpn/vpn_service.cc', |
Liam McLoughlin | ef342b4 | 2013-09-13 21:05:36 +0100 | [diff] [blame] | 534 | ], |
Peter Qiu | bd33511 | 2015-09-12 22:35:05 -0700 | [diff] [blame] | 535 | 'actions': [ |
| 536 | { |
| 537 | 'action_name': 'generate-dhcpcd-proxies', |
| 538 | 'variables': { |
| 539 | 'proxy_output_file': 'include/dhcpcd/dbus-proxies.h', |
| 540 | }, |
| 541 | 'sources': [ |
Samuel Tan | 0886327 | 2015-09-16 15:58:22 -0700 | [diff] [blame] | 542 | 'dbus_bindings/dhcpcd.dbus-xml', |
Peter Qiu | bd33511 | 2015-09-12 22:35:05 -0700 | [diff] [blame] | 543 | ], |
| 544 | 'includes': ['../../../../platform2/common-mk/generate-dbus-proxies.gypi'], |
| 545 | }, |
| 546 | { |
| 547 | 'action_name': 'generate-upstart-proxies', |
| 548 | 'variables': { |
| 549 | 'proxy_output_file': 'include/upstart/dbus-proxies.h', |
| 550 | }, |
| 551 | 'sources': [ |
Samuel Tan | 0886327 | 2015-09-16 15:58:22 -0700 | [diff] [blame] | 552 | 'dbus_bindings/upstart.dbus-xml', |
Peter Qiu | bd33511 | 2015-09-12 22:35:05 -0700 | [diff] [blame] | 553 | ], |
| 554 | 'includes': ['../../../../platform2/common-mk/generate-dbus-proxies.gypi'], |
| 555 | }, |
| 556 | ], |
Liam McLoughlin | ef342b4 | 2013-09-13 21:05:36 +0100 | [diff] [blame] | 557 | }, |
| 558 | { |
| 559 | 'target_name': 'shill', |
| 560 | 'type': 'executable', |
| 561 | 'dependencies': ['libshill'], |
| 562 | 'sources': [ |
| 563 | 'shill_main.cc', |
| 564 | ] |
| 565 | }, |
| 566 | { |
Liam McLoughlin | ef342b4 | 2013-09-13 21:05:36 +0100 | [diff] [blame] | 567 | 'target_name': 'crypto-util', |
| 568 | 'type': 'executable', |
| 569 | 'dependencies': ['shim-protos'], |
| 570 | 'variables': { |
| 571 | 'deps': [ |
| 572 | 'openssl', |
| 573 | 'protobuf-lite', |
| 574 | ], |
| 575 | }, |
| 576 | 'sources': [ |
| 577 | 'shims/crypto_util.cc', |
| 578 | ] |
| 579 | }, |
| 580 | { |
| 581 | 'target_name': 'net-diags-upload', |
| 582 | 'type': 'executable', |
| 583 | 'sources': [ |
| 584 | 'shims/net_diags_upload.cc', |
| 585 | ] |
| 586 | }, |
| 587 | { |
Liam McLoughlin | ef342b4 | 2013-09-13 21:05:36 +0100 | [diff] [blame] | 588 | 'target_name': 'netfilter-queue-helper', |
| 589 | 'type': 'executable', |
| 590 | 'variables': { |
| 591 | 'deps': [ |
Liam McLoughlin | ef342b4 | 2013-09-13 21:05:36 +0100 | [diff] [blame] | 592 | 'libnetfilter_queue', |
| 593 | 'libnfnetlink', |
| 594 | ], |
| 595 | }, |
| 596 | 'sources': [ |
| 597 | 'shims/netfilter_queue_helper.cc', |
| 598 | 'shims/netfilter_queue_processor.cc', |
| 599 | ] |
| 600 | }, |
| 601 | { |
| 602 | 'target_name': 'openvpn-script', |
| 603 | 'type': 'executable', |
Liam McLoughlin | ef342b4 | 2013-09-13 21:05:36 +0100 | [diff] [blame] | 604 | 'variables': { |
| 605 | 'deps': [ |
| 606 | 'dbus-c++-1', |
Peter Qiu | 00b1868 | 2015-09-09 16:40:07 -0700 | [diff] [blame] | 607 | 'libshill-client', |
Liam McLoughlin | ef342b4 | 2013-09-13 21:05:36 +0100 | [diff] [blame] | 608 | ], |
| 609 | }, |
| 610 | 'sources': [ |
| 611 | 'shims/environment.cc', |
| 612 | 'shims/openvpn_script.cc', |
| 613 | 'shims/task_proxy.cc', |
| 614 | ] |
| 615 | }, |
| 616 | ], |
| 617 | 'conditions': [ |
| 618 | ['USE_cellular == 1', { |
| 619 | 'targets': [ |
| 620 | { |
| 621 | 'target_name': 'set-apn-helper', |
| 622 | 'type': 'executable', |
Bertrand SIMONNET | 44ce011 | 2014-06-04 12:08:34 -0700 | [diff] [blame] | 623 | 'variables': { |
| 624 | 'deps': [ |
| 625 | 'dbus-glib-1' |
| 626 | ] |
Paul Stewart | 2010bd9 | 2014-09-03 19:42:17 -0700 | [diff] [blame] | 627 | }, |
| 628 | 'sources': [ |
| 629 | 'shims/set_apn_helper.c', |
| 630 | ], |
Liam McLoughlin | ef342b4 | 2013-09-13 21:05:36 +0100 | [diff] [blame] | 631 | }, |
| 632 | ], |
| 633 | }], |
Garret Kelly | 2dc218e | 2015-01-30 11:16:34 -0500 | [diff] [blame] | 634 | ['USE_cellular == 1 or USE_vpn == 1 or USE_pppoe == 1', { |
Chris Masone | 3d6b238 | 2013-11-11 14:05:28 -0800 | [diff] [blame] | 635 | 'targets': [ |
| 636 | { |
| 637 | 'target_name': 'shill-pppd-plugin', |
| 638 | 'type': 'shared_library', |
Paul Stewart | 2010bd9 | 2014-09-03 19:42:17 -0700 | [diff] [blame] | 639 | 'variables': { |
| 640 | 'deps': [ |
| 641 | 'dbus-c++-1', |
Peter Qiu | 00b1868 | 2015-09-09 16:40:07 -0700 | [diff] [blame] | 642 | 'libshill-client', |
Paul Stewart | 2010bd9 | 2014-09-03 19:42:17 -0700 | [diff] [blame] | 643 | ], |
| 644 | }, |
Chris Masone | 3d6b238 | 2013-11-11 14:05:28 -0800 | [diff] [blame] | 645 | 'sources': [ |
| 646 | 'shims/c_ppp.cc', |
| 647 | 'shims/environment.cc', |
| 648 | 'shims/ppp.cc', |
| 649 | 'shims/pppd_plugin.c', |
| 650 | 'shims/task_proxy.cc', |
Paul Stewart | 2010bd9 | 2014-09-03 19:42:17 -0700 | [diff] [blame] | 651 | ], |
Chris Masone | 3d6b238 | 2013-11-11 14:05:28 -0800 | [diff] [blame] | 652 | }, |
| 653 | ], |
| 654 | }], |
Liam McLoughlin | ef342b4 | 2013-09-13 21:05:36 +0100 | [diff] [blame] | 655 | ['USE_test == 1', { |
| 656 | 'targets': [ |
| 657 | { |
| 658 | 'target_name': 'shill_unittest', |
| 659 | 'type': 'executable', |
Peter Qiu | 8d6b597 | 2014-10-28 15:33:34 -0700 | [diff] [blame] | 660 | 'dependencies': [ |
| 661 | 'libshill', |
Peter Qiu | 8d6b597 | 2014-10-28 15:33:34 -0700 | [diff] [blame] | 662 | ], |
Peter Qiu | d913551 | 2015-09-11 14:35:02 -0700 | [diff] [blame] | 663 | 'includes': ['../../../../platform2/common-mk/common_test.gypi'], |
Liam McLoughlin | ef342b4 | 2013-09-13 21:05:36 +0100 | [diff] [blame] | 664 | 'variables': { |
| 665 | 'deps': [ |
Alex Vakulenko | ccab3f9 | 2015-06-15 12:53:22 -0700 | [diff] [blame] | 666 | 'libchrome-test-<(libbase_ver)', |
Liam McLoughlin | ef342b4 | 2013-09-13 21:05:36 +0100 | [diff] [blame] | 667 | 'libnetfilter_queue', |
| 668 | 'libnfnetlink', |
| 669 | ], |
| 670 | }, |
| 671 | 'defines': [ |
| 672 | 'SYSROOT="<(sysroot)"', |
| 673 | ], |
| 674 | 'sources': [ |
Peter Qiu | d788102 | 2015-01-21 12:27:41 -0800 | [diff] [blame] | 675 | 'active_link_monitor_unittest.cc', |
Peter Qiu | e9b7580 | 2015-01-20 15:24:15 -0800 | [diff] [blame] | 676 | 'arp_client_test_helper.cc', |
Liam McLoughlin | ef342b4 | 2013-09-13 21:05:36 +0100 | [diff] [blame] | 677 | 'arp_client_unittest.cc', |
| 678 | 'arp_packet_unittest.cc', |
| 679 | 'async_connection_unittest.cc', |
Liam McLoughlin | ef342b4 | 2013-09-13 21:05:36 +0100 | [diff] [blame] | 680 | 'certificate_file_unittest.cc', |
Peter Qiu | bd33511 | 2015-09-12 22:35:05 -0700 | [diff] [blame] | 681 | 'chromeos_daemon_unittest.cc', |
Samuel Tan | 1b9546a | 2015-06-29 18:53:41 -0700 | [diff] [blame] | 682 | 'connection_diagnostics_unittest.cc', |
Liam McLoughlin | ef342b4 | 2013-09-13 21:05:36 +0100 | [diff] [blame] | 683 | 'connection_health_checker_unittest.cc', |
| 684 | 'connection_info_reader_unittest.cc', |
| 685 | 'connection_info_unittest.cc', |
Ben Chan | 3cee3ce | 2014-10-18 10:41:23 -0700 | [diff] [blame] | 686 | 'connection_tester_unittest.cc', |
Ben Chan | d6a8b51 | 2014-11-18 10:45:15 -0800 | [diff] [blame] | 687 | 'connection_unittest.cc', |
Ben Chan | 3cee3ce | 2014-10-18 10:41:23 -0700 | [diff] [blame] | 688 | 'connectivity_trial_unittest.cc', |
Liam McLoughlin | ef342b4 | 2013-09-13 21:05:36 +0100 | [diff] [blame] | 689 | 'crypto_des_cbc_unittest.cc', |
| 690 | 'crypto_provider_unittest.cc', |
| 691 | 'crypto_rot47_unittest.cc', |
| 692 | 'crypto_util_proxy_unittest.cc', |
Peter Qiu | bd33511 | 2015-09-12 22:35:05 -0700 | [diff] [blame] | 693 | 'dbus/chromeos_dbus_adaptor_unittest.cc', |
Liam McLoughlin | ef342b4 | 2013-09-13 21:05:36 +0100 | [diff] [blame] | 694 | 'default_profile_unittest.cc', |
Peter Qiu | 7e8b8ee | 2014-11-25 13:55:57 -0800 | [diff] [blame] | 695 | 'device_claimer_unittest.cc', |
Liam McLoughlin | ef342b4 | 2013-09-13 21:05:36 +0100 | [diff] [blame] | 696 | 'device_info_unittest.cc', |
| 697 | 'device_unittest.cc', |
Peter Qiu | 675d0b0 | 2015-06-03 13:08:09 -0700 | [diff] [blame] | 698 | 'dhcp/dhcp_config_unittest.cc', |
| 699 | 'dhcp/dhcp_provider_unittest.cc', |
Peter Qiu | 8e0151e | 2015-06-04 09:41:47 -0700 | [diff] [blame] | 700 | 'dhcp/dhcpv4_config_unittest.cc', |
Peter Qiu | 675d0b0 | 2015-06-03 13:08:09 -0700 | [diff] [blame] | 701 | 'dhcp/mock_dhcp_config.cc', |
| 702 | 'dhcp/mock_dhcp_provider.cc', |
| 703 | 'dhcp/mock_dhcp_proxy.cc', |
Liam McLoughlin | ef342b4 | 2013-09-13 21:05:36 +0100 | [diff] [blame] | 704 | 'diagnostics_reporter_unittest.cc', |
| 705 | 'dns_client_unittest.cc', |
Peter Qiu | d670d03 | 2014-06-03 15:04:43 -0700 | [diff] [blame] | 706 | 'dns_server_tester_unittest.cc', |
Liam McLoughlin | ef342b4 | 2013-09-13 21:05:36 +0100 | [diff] [blame] | 707 | 'error_unittest.cc', |
Ben Chan | 8760251 | 2014-11-07 20:50:05 -0800 | [diff] [blame] | 708 | 'ethernet/ethernet_service_unittest.cc', |
| 709 | 'ethernet/ethernet_unittest.cc', |
| 710 | 'ethernet/mock_ethernet.cc', |
Ben Chan | 8760251 | 2014-11-07 20:50:05 -0800 | [diff] [blame] | 711 | 'ethernet/mock_ethernet_service.cc', |
Liam McLoughlin | ef342b4 | 2013-09-13 21:05:36 +0100 | [diff] [blame] | 712 | 'external_task_unittest.cc', |
mukesh agrawal | fbac24b | 2015-08-24 14:11:01 -0700 | [diff] [blame] | 713 | 'fake_store.cc', |
Liam McLoughlin | ef342b4 | 2013-09-13 21:05:36 +0100 | [diff] [blame] | 714 | 'file_reader_unittest.cc', |
| 715 | 'hook_table_unittest.cc', |
| 716 | 'http_proxy_unittest.cc', |
| 717 | 'http_request_unittest.cc', |
| 718 | 'http_url_unittest.cc', |
Paul Stewart | 960d469 | 2013-12-09 07:41:59 -0800 | [diff] [blame] | 719 | 'icmp_unittest.cc', |
Samuel Tan | f66080e | 2015-06-18 15:53:00 -0700 | [diff] [blame] | 720 | 'icmp_session_unittest.cc', |
Liam McLoughlin | ef342b4 | 2013-09-13 21:05:36 +0100 | [diff] [blame] | 721 | 'ip_address_store_unittest.cc', |
Liam McLoughlin | ef342b4 | 2013-09-13 21:05:36 +0100 | [diff] [blame] | 722 | 'ipconfig_unittest.cc', |
Liam McLoughlin | ef342b4 | 2013-09-13 21:05:36 +0100 | [diff] [blame] | 723 | 'key_value_store_unittest.cc', |
| 724 | 'link_monitor_unittest.cc', |
| 725 | 'manager_unittest.cc', |
Liam McLoughlin | ef342b4 | 2013-09-13 21:05:36 +0100 | [diff] [blame] | 726 | 'metrics_unittest.cc', |
Peter Qiu | d788102 | 2015-01-21 12:27:41 -0800 | [diff] [blame] | 727 | 'mock_active_link_monitor.cc', |
Liam McLoughlin | ef342b4 | 2013-09-13 21:05:36 +0100 | [diff] [blame] | 728 | 'mock_adaptors.cc', |
| 729 | 'mock_ares.cc', |
| 730 | 'mock_arp_client.cc', |
| 731 | 'mock_async_connection.cc', |
| 732 | 'mock_certificate_file.cc', |
| 733 | 'mock_connection.cc', |
| 734 | 'mock_connection_health_checker.cc', |
| 735 | 'mock_connection_info_reader.cc', |
Prathmesh Prabhu | 3b6bffa | 2014-09-17 22:47:03 -0700 | [diff] [blame] | 736 | 'mock_connectivity_trial.cc', |
Liam McLoughlin | ef342b4 | 2013-09-13 21:05:36 +0100 | [diff] [blame] | 737 | 'mock_control.cc', |
| 738 | 'mock_crypto_util_proxy.cc', |
Liam McLoughlin | ef342b4 | 2013-09-13 21:05:36 +0100 | [diff] [blame] | 739 | 'mock_device.cc', |
Peter Qiu | 7e8b8ee | 2014-11-25 13:55:57 -0800 | [diff] [blame] | 740 | 'mock_device_claimer.cc', |
Liam McLoughlin | ef342b4 | 2013-09-13 21:05:36 +0100 | [diff] [blame] | 741 | 'mock_device_info.cc', |
Liam McLoughlin | ef342b4 | 2013-09-13 21:05:36 +0100 | [diff] [blame] | 742 | 'mock_diagnostics_reporter.cc', |
| 743 | 'mock_dns_client.cc', |
| 744 | 'mock_dns_client_factory.cc', |
Peter Qiu | d670d03 | 2014-06-03 15:04:43 -0700 | [diff] [blame] | 745 | 'mock_dns_server_tester.cc', |
Liam McLoughlin | ef342b4 | 2013-09-13 21:05:36 +0100 | [diff] [blame] | 746 | 'mock_event_dispatcher.cc', |
| 747 | 'mock_external_task.cc', |
| 748 | 'mock_glib.cc', |
| 749 | 'mock_http_request.cc', |
Samuel Tan | f66080e | 2015-06-18 15:53:00 -0700 | [diff] [blame] | 750 | 'mock_icmp.cc', |
Samuel Tan | 1c0debc | 2015-07-24 13:26:21 -0700 | [diff] [blame] | 751 | 'mock_icmp_session.cc', |
| 752 | 'mock_icmp_session_factory.cc', |
Liam McLoughlin | ef342b4 | 2013-09-13 21:05:36 +0100 | [diff] [blame] | 753 | 'mock_ip_address_store.cc', |
| 754 | 'mock_ipconfig.cc', |
| 755 | 'mock_link_monitor.cc', |
| 756 | 'mock_log.cc', |
| 757 | 'mock_log_unittest.cc', |
| 758 | 'mock_manager.cc', |
| 759 | 'mock_metrics.cc', |
Peter Qiu | fcc00ee | 2015-01-16 15:38:45 -0800 | [diff] [blame] | 760 | 'mock_passive_link_monitor.cc', |
Liam McLoughlin | ef342b4 | 2013-09-13 21:05:36 +0100 | [diff] [blame] | 761 | 'mock_pending_activation_store.cc', |
| 762 | 'mock_portal_detector.cc', |
| 763 | 'mock_power_manager.cc', |
| 764 | 'mock_power_manager_proxy.cc', |
| 765 | 'mock_ppp_device.cc', |
| 766 | 'mock_ppp_device_factory.cc', |
| 767 | 'mock_process_killer.cc', |
Peter Qiu | 1774626 | 2015-08-04 22:52:47 -0700 | [diff] [blame] | 768 | 'mock_process_manager.cc', |
Liam McLoughlin | ef342b4 | 2013-09-13 21:05:36 +0100 | [diff] [blame] | 769 | 'mock_profile.cc', |
| 770 | 'mock_property_store.cc', |
Liam McLoughlin | ef342b4 | 2013-09-13 21:05:36 +0100 | [diff] [blame] | 771 | 'mock_resolver.cc', |
| 772 | 'mock_routing_table.cc', |
Liam McLoughlin | ef342b4 | 2013-09-13 21:05:36 +0100 | [diff] [blame] | 773 | 'mock_service.cc', |
| 774 | 'mock_socket_info_reader.cc', |
Liam McLoughlin | ef342b4 | 2013-09-13 21:05:36 +0100 | [diff] [blame] | 775 | 'mock_store.cc', |
Liam McLoughlin | ef342b4 | 2013-09-13 21:05:36 +0100 | [diff] [blame] | 776 | 'mock_traffic_monitor.cc', |
| 777 | 'mock_virtual_device.cc', |
Paul Stewart | 979f851 | 2015-07-27 16:54:26 -0700 | [diff] [blame] | 778 | 'net/attribute_list_unittest.cc', |
Peter Qiu | 02e3dc3 | 2014-10-31 10:15:00 -0700 | [diff] [blame] | 779 | 'net/byte_string_unittest.cc', |
Samuel Tan | 07dfabc | 2015-01-20 15:10:39 -0800 | [diff] [blame] | 780 | 'net/event_history_unittest.cc', |
Peter Qiu | 02e3dc3 | 2014-10-31 10:15:00 -0700 | [diff] [blame] | 781 | 'net/ip_address_unittest.cc', |
Paul Stewart | 979f851 | 2015-07-27 16:54:26 -0700 | [diff] [blame] | 782 | 'net/netlink_attribute_unittest.cc', |
Peter Qiu | 02e3dc3 | 2014-10-31 10:15:00 -0700 | [diff] [blame] | 783 | 'net/rtnl_handler_unittest.cc', |
| 784 | 'net/rtnl_listener_unittest.cc', |
| 785 | 'net/rtnl_message_unittest.cc', |
| 786 | 'net/shill_time_unittest.cc', |
Liam McLoughlin | ef342b4 | 2013-09-13 21:05:36 +0100 | [diff] [blame] | 787 | 'nice_mock_control.cc', |
Peter Qiu | fcc00ee | 2015-01-16 15:38:45 -0800 | [diff] [blame] | 788 | 'passive_link_monitor_unittest.cc', |
Liam McLoughlin | ef342b4 | 2013-09-13 21:05:36 +0100 | [diff] [blame] | 789 | 'pending_activation_store_unittest.cc', |
| 790 | 'portal_detector_unittest.cc', |
| 791 | 'power_manager_unittest.cc', |
Garret Kelly | cb832e8 | 2015-01-14 16:37:27 -0500 | [diff] [blame] | 792 | 'ppp_daemon_unittest.cc', |
Garret Kelly | 2dc218e | 2015-01-30 11:16:34 -0500 | [diff] [blame] | 793 | 'ppp_device_unittest.cc', |
| 794 | 'pppoe/pppoe_service_unittest.cc', |
Liam McLoughlin | ef342b4 | 2013-09-13 21:05:36 +0100 | [diff] [blame] | 795 | 'process_killer_unittest.cc', |
Peter Qiu | 1774626 | 2015-08-04 22:52:47 -0700 | [diff] [blame] | 796 | 'process_manager_unittest.cc', |
Liam McLoughlin | ef342b4 | 2013-09-13 21:05:36 +0100 | [diff] [blame] | 797 | 'profile_unittest.cc', |
| 798 | 'property_accessor_unittest.cc', |
Paul Stewart | 0153cf0 | 2014-06-02 11:53:36 -0700 | [diff] [blame] | 799 | 'property_observer_unittest.cc', |
Liam McLoughlin | ef342b4 | 2013-09-13 21:05:36 +0100 | [diff] [blame] | 800 | 'property_store_unittest.cc', |
| 801 | 'resolver_unittest.cc', |
| 802 | 'result_aggregator_unittest.cc', |
| 803 | 'routing_table_unittest.cc', |
| 804 | 'rpc_task_unittest.cc', |
Liam McLoughlin | ef342b4 | 2013-09-13 21:05:36 +0100 | [diff] [blame] | 805 | 'scope_logger_unittest.cc', |
| 806 | 'service_property_change_test.cc', |
| 807 | 'service_under_test.cc', |
| 808 | 'service_unittest.cc', |
Liam McLoughlin | ef342b4 | 2013-09-13 21:05:36 +0100 | [diff] [blame] | 809 | 'shims/netfilter_queue_processor.cc', |
| 810 | 'shims/netfilter_queue_processor_unittest.cc', |
| 811 | 'socket_info_reader_unittest.cc', |
| 812 | 'socket_info_unittest.cc', |
| 813 | 'static_ip_parameters_unittest.cc', |
Liam McLoughlin | ef342b4 | 2013-09-13 21:05:36 +0100 | [diff] [blame] | 814 | 'technology_unittest.cc', |
| 815 | 'testrunner.cc', |
| 816 | 'traffic_monitor_unittest.cc', |
Paul Stewart | 59a8cba | 2015-01-09 15:48:19 -0800 | [diff] [blame] | 817 | 'upstart/mock_upstart.cc', |
| 818 | 'upstart/mock_upstart_proxy.cc', |
| 819 | 'upstart/upstart_unittest.cc', |
Liam McLoughlin | ef342b4 | 2013-09-13 21:05:36 +0100 | [diff] [blame] | 820 | 'virtual_device_unittest.cc', |
Ben Chan | 2240e8c | 2014-11-06 13:37:18 -0800 | [diff] [blame] | 821 | 'vpn/mock_vpn_provider.cc', |
Liam McLoughlin | ef342b4 | 2013-09-13 21:05:36 +0100 | [diff] [blame] | 822 | ], |
| 823 | 'conditions': [ |
| 824 | ['USE_cellular == 1', { |
Paul Stewart | 2010bd9 | 2014-09-03 19:42:17 -0700 | [diff] [blame] | 825 | 'variables': { |
| 826 | 'deps': [ |
| 827 | 'ModemManager', |
| 828 | ], |
| 829 | }, |
Liam McLoughlin | 52139ca | 2013-10-31 14:37:38 +0000 | [diff] [blame] | 830 | 'sources': [ |
Ben Chan | c54afe5 | 2014-11-05 10:28:08 -0800 | [diff] [blame] | 831 | 'cellular/active_passive_out_of_credits_detector_unittest.cc', |
| 832 | 'cellular/cellular_bearer_unittest.cc', |
| 833 | 'cellular/cellular_capability_cdma_unittest.cc', |
| 834 | 'cellular/cellular_capability_classic_unittest.cc', |
| 835 | 'cellular/cellular_capability_gsm_unittest.cc', |
| 836 | 'cellular/cellular_capability_universal_cdma_unittest.cc', |
| 837 | 'cellular/cellular_capability_universal_unittest.cc', |
| 838 | 'cellular/cellular_error_unittest.cc', |
| 839 | 'cellular/cellular_service_unittest.cc', |
| 840 | 'cellular/cellular_unittest.cc', |
| 841 | 'cellular/mobile_operator_info_unittest.cc', |
| 842 | 'cellular/mock_cellular.cc', |
| 843 | 'cellular/mock_cellular_service.cc', |
| 844 | 'cellular/mock_dbus_objectmanager_proxy.cc', |
Ben Chan | c54afe5 | 2014-11-05 10:28:08 -0800 | [diff] [blame] | 845 | 'cellular/mock_mm1_modem_modem3gpp_proxy.cc', |
| 846 | 'cellular/mock_mm1_modem_modemcdma_proxy.cc', |
| 847 | 'cellular/mock_mm1_modem_proxy.cc', |
| 848 | 'cellular/mock_mm1_modem_simple_proxy.cc', |
Ben Chan | c54afe5 | 2014-11-05 10:28:08 -0800 | [diff] [blame] | 849 | 'cellular/mock_mm1_sim_proxy.cc', |
| 850 | 'cellular/mock_mobile_operator_info.cc', |
| 851 | 'cellular/mock_modem.cc', |
| 852 | 'cellular/mock_modem_cdma_proxy.cc', |
| 853 | 'cellular/mock_modem_gobi_proxy.cc', |
| 854 | 'cellular/mock_modem_gsm_card_proxy.cc', |
| 855 | 'cellular/mock_modem_gsm_network_proxy.cc', |
| 856 | 'cellular/mock_modem_info.cc', |
| 857 | 'cellular/mock_modem_manager_proxy.cc', |
| 858 | 'cellular/mock_modem_proxy.cc', |
| 859 | 'cellular/mock_modem_simple_proxy.cc', |
| 860 | 'cellular/mock_out_of_credits_detector.cc', |
| 861 | 'cellular/modem_1_unittest.cc', |
| 862 | 'cellular/modem_info_unittest.cc', |
| 863 | 'cellular/modem_manager_unittest.cc', |
| 864 | 'cellular/modem_unittest.cc', |
| 865 | 'cellular/subscription_state_out_of_credits_detector_unittest.cc', |
Peter Qiu | 05d87e3 | 2015-08-14 23:46:21 -0700 | [diff] [blame] | 866 | 'mock_dbus_properties_proxy.cc', |
Liam McLoughlin | 52139ca | 2013-10-31 14:37:38 +0000 | [diff] [blame] | 867 | ], |
Liam McLoughlin | ef342b4 | 2013-09-13 21:05:36 +0100 | [diff] [blame] | 868 | }], |
Peter Qiu | b255a76 | 2015-06-10 10:09:12 -0700 | [diff] [blame] | 869 | ['USE_dhcpv6 == 1', { |
| 870 | 'sources': [ |
| 871 | 'dhcp/dhcpv6_config_unittest.cc', |
| 872 | ], |
| 873 | }], |
mukesh agrawal | bb813e8 | 2015-08-17 17:13:36 -0700 | [diff] [blame] | 874 | ['USE_json_store == 0', { |
| 875 | 'sources': [ |
| 876 | 'key_file_store_unittest.cc', |
| 877 | ], |
| 878 | }], |
| 879 | ['USE_json_store == 1', { |
| 880 | 'sources': [ |
| 881 | 'json_store_unittest.cc', |
| 882 | ], |
| 883 | }], |
Liam McLoughlin | ef342b4 | 2013-09-13 21:05:36 +0100 | [diff] [blame] | 884 | ['USE_vpn == 1', { |
| 885 | 'sources': [ |
Liam McLoughlin | ef342b4 | 2013-09-13 21:05:36 +0100 | [diff] [blame] | 886 | 'shims/environment.cc', |
| 887 | 'shims/environment_unittest.cc', |
Ben Chan | 2240e8c | 2014-11-06 13:37:18 -0800 | [diff] [blame] | 888 | 'vpn/l2tp_ipsec_driver_unittest.cc', |
| 889 | 'vpn/mock_openvpn_driver.cc', |
| 890 | 'vpn/mock_openvpn_management_server.cc', |
| 891 | 'vpn/mock_vpn_driver.cc', |
| 892 | 'vpn/mock_vpn_service.cc', |
| 893 | 'vpn/openvpn_driver_unittest.cc', |
| 894 | 'vpn/openvpn_management_server_unittest.cc', |
| 895 | 'vpn/third_party_vpn_driver_unittest.cc', |
| 896 | 'vpn/vpn_driver_unittest.cc', |
| 897 | 'vpn/vpn_provider_unittest.cc', |
| 898 | 'vpn/vpn_service_unittest.cc', |
Liam McLoughlin | ef342b4 | 2013-09-13 21:05:36 +0100 | [diff] [blame] | 899 | ], |
| 900 | }], |
Peter Qiu | 1a72f54 | 2015-04-14 16:31:36 -0700 | [diff] [blame] | 901 | ['USE_wifi == 1', { |
| 902 | 'sources': [ |
| 903 | 'net/netlink_manager_unittest.cc', |
| 904 | 'net/netlink_message_unittest.cc', |
Paul Stewart | 6017384 | 2015-07-20 15:27:08 -0700 | [diff] [blame] | 905 | 'net/netlink_packet_unittest.cc', |
Peter Qiu | 1a72f54 | 2015-04-14 16:31:36 -0700 | [diff] [blame] | 906 | 'net/netlink_socket_unittest.cc', |
| 907 | 'supplicant/mock_supplicant_bss_proxy.cc', |
| 908 | 'wifi/callback80211_metrics_unittest.cc', |
| 909 | 'wifi/mac80211_monitor_unittest.cc', |
| 910 | 'wifi/mock_mac80211_monitor.cc', |
| 911 | 'wifi/mock_scan_session.cc', |
Peter Qiu | 618d9d7 | 2015-05-04 13:29:19 -0700 | [diff] [blame] | 912 | 'wifi/mock_tdls_manager.cc', |
Peter Qiu | 1a72f54 | 2015-04-14 16:31:36 -0700 | [diff] [blame] | 913 | 'wifi/mock_wake_on_wifi.cc', |
| 914 | 'wifi/mock_wifi.cc', |
| 915 | 'wifi/mock_wifi_provider.cc', |
| 916 | 'wifi/mock_wifi_service.cc', |
| 917 | 'wifi/scan_session_unittest.cc', |
Peter Qiu | 618d9d7 | 2015-05-04 13:29:19 -0700 | [diff] [blame] | 918 | 'wifi/tdls_manager_unittest.cc', |
Peter Qiu | 1a72f54 | 2015-04-14 16:31:36 -0700 | [diff] [blame] | 919 | 'wifi/wake_on_wifi_unittest.cc', |
| 920 | 'wifi/wifi_endpoint_unittest.cc', |
| 921 | 'wifi/wifi_provider_unittest.cc', |
| 922 | 'wifi/wifi_service_unittest.cc', |
| 923 | 'wifi/wifi_unittest.cc', |
| 924 | ], |
| 925 | }], |
| 926 | ['USE_wifi == 1 or USE_wired_8021x == 1', { |
| 927 | 'sources': [ |
| 928 | 'eap_credentials_unittest.cc', |
| 929 | 'eap_listener_unittest.cc', |
| 930 | 'mock_eap_credentials.cc', |
| 931 | 'mock_eap_listener.cc', |
| 932 | 'supplicant/mock_supplicant_eap_state_handler.cc', |
| 933 | 'supplicant/mock_supplicant_interface_proxy.cc', |
| 934 | 'supplicant/mock_supplicant_network_proxy.cc', |
| 935 | 'supplicant/mock_supplicant_process_proxy.cc', |
| 936 | 'supplicant/supplicant_eap_state_handler_unittest.cc', |
| 937 | 'supplicant/wpa_supplicant_unittest.cc', |
| 938 | ], |
| 939 | }], |
Ben Chan | 520eb17 | 2013-10-30 20:51:04 -0700 | [diff] [blame] | 940 | ['USE_wimax == 1', { |
| 941 | 'sources': [ |
Ben Chan | c3d707d | 2014-10-31 08:56:05 -0700 | [diff] [blame] | 942 | 'wimax/mock_wimax.cc', |
| 943 | 'wimax/mock_wimax_device_proxy.cc', |
| 944 | 'wimax/mock_wimax_manager_proxy.cc', |
| 945 | 'wimax/mock_wimax_network_proxy.cc', |
| 946 | 'wimax/mock_wimax_provider.cc', |
| 947 | 'wimax/mock_wimax_service.cc', |
| 948 | 'wimax/wimax_provider_unittest.cc', |
| 949 | 'wimax/wimax_service_unittest.cc', |
| 950 | 'wimax/wimax_unittest.cc', |
Ben Chan | 520eb17 | 2013-10-30 20:51:04 -0700 | [diff] [blame] | 951 | ], |
| 952 | }], |
Peter Qiu | 1a72f54 | 2015-04-14 16:31:36 -0700 | [diff] [blame] | 953 | ['USE_wired_8021x == 1', { |
| 954 | 'sources': [ |
| 955 | 'ethernet/ethernet_eap_provider_unittest.cc', |
| 956 | 'ethernet/ethernet_eap_service_unittest.cc', |
| 957 | 'ethernet/mock_ethernet_eap_provider.cc', |
| 958 | ], |
| 959 | }], |
Liam McLoughlin | ef342b4 | 2013-09-13 21:05:36 +0100 | [diff] [blame] | 960 | ], |
| 961 | }, |
Paul Stewart | 523f403 | 2015-01-16 16:07:34 -0800 | [diff] [blame] | 962 | { |
| 963 | 'target_name': 'shill_setup_wifi', |
| 964 | 'type': 'executable', |
Alex Deymo | 433f245 | 2015-09-03 17:48:03 -0700 | [diff] [blame] | 965 | 'variables': { |
| 966 | 'deps': [ |
| 967 | 'libshill-client', |
| 968 | ], |
| 969 | }, |
Paul Stewart | 523f403 | 2015-01-16 16:07:34 -0800 | [diff] [blame] | 970 | 'sources': [ |
| 971 | 'setup_wifi/main.cc' |
| 972 | ], |
Paul Stewart | 523f403 | 2015-01-16 16:07:34 -0800 | [diff] [blame] | 973 | }, |
Liam McLoughlin | ef342b4 | 2013-09-13 21:05:36 +0100 | [diff] [blame] | 974 | ], |
| 975 | }], |
| 976 | ], |
| 977 | } |