Liam McLoughlin | 4f268f4 | 2013-03-04 18:09:53 -0500 | [diff] [blame] | 1 | { |
| 2 | 'target_defaults': { |
| 3 | 'variables': { |
| 4 | 'deps': [ |
| 5 | 'libchrome-<(libbase_ver)' |
| 6 | ], |
Liam McLoughlin | 4f268f4 | 2013-03-04 18:09:53 -0500 | [diff] [blame] | 7 | }, |
| 8 | 'include_dirs': [ |
Alex Vakulenko | fed60b0 | 2015-10-27 09:53:05 -0700 | [diff] [blame] | 9 | '../libbrillo', |
Liam McLoughlin | 4f268f4 | 2013-03-04 18:09:53 -0500 | [diff] [blame] | 10 | ], |
Alex Deymo | 94afaa4 | 2015-11-16 16:34:39 -0300 | [diff] [blame] | 11 | 'defines': [ |
| 12 | 'USE_DBUS=<(USE_dbus)', |
Alex Deymo | f68e898 | 2016-01-05 21:20:10 -0800 | [diff] [blame] | 13 | 'USE_RTTI_FOR_TYPE_TAGS', |
Alex Deymo | 94afaa4 | 2015-11-16 16:34:39 -0300 | [diff] [blame] | 14 | ], |
Liam McLoughlin | 4f268f4 | 2013-03-04 18:09:53 -0500 | [diff] [blame] | 15 | }, |
| 16 | 'targets': [ |
| 17 | { |
Alex Vakulenko | fed60b0 | 2015-10-27 09:53:05 -0700 | [diff] [blame] | 18 | 'target_name': 'libbrillo-<(libbase_ver)', |
Liam McLoughlin | 4f268f4 | 2013-03-04 18:09:53 -0500 | [diff] [blame] | 19 | 'type': 'none', |
| 20 | 'dependencies': [ |
Alex Vakulenko | fed60b0 | 2015-10-27 09:53:05 -0700 | [diff] [blame] | 21 | 'libbrillo-core-<(libbase_ver)', |
| 22 | 'libbrillo-cryptohome-<(libbase_ver)', |
| 23 | 'libbrillo-http-<(libbase_ver)', |
| 24 | 'libbrillo-minijail-<(libbase_ver)', |
| 25 | 'libbrillo-streams-<(libbase_ver)', |
Thiemo Nagel | ce533da | 2016-10-24 14:53:14 +0200 | [diff] [blame] | 26 | 'libinstallattributes-<(libbase_ver)', |
Liam McLoughlin | 4f268f4 | 2013-03-04 18:09:53 -0500 | [diff] [blame] | 27 | 'libpolicy-<(libbase_ver)', |
| 28 | ], |
| 29 | 'direct_dependent_settings': { |
| 30 | 'include_dirs': [ |
Alex Vakulenko | fed60b0 | 2015-10-27 09:53:05 -0700 | [diff] [blame] | 31 | '../libbrillo', |
Liam McLoughlin | 4f268f4 | 2013-03-04 18:09:53 -0500 | [diff] [blame] | 32 | ], |
| 33 | }, |
Bertrand SIMONNET | 883c3e7 | 2014-06-04 13:22:47 -0700 | [diff] [blame] | 34 | 'includes': ['../common-mk/deps.gypi'], |
Liam McLoughlin | 4f268f4 | 2013-03-04 18:09:53 -0500 | [diff] [blame] | 35 | }, |
| 36 | { |
Alex Vakulenko | fed60b0 | 2015-10-27 09:53:05 -0700 | [diff] [blame] | 37 | 'target_name': 'libbrillo-core-<(libbase_ver)', |
Liam McLoughlin | 4f268f4 | 2013-03-04 18:09:53 -0500 | [diff] [blame] | 38 | 'type': 'shared_library', |
| 39 | 'variables': { |
| 40 | 'exported_deps': [ |
Chirantan Ekbote | e1c1af0 | 2017-03-14 18:32:26 -0700 | [diff] [blame] | 41 | ], |
| 42 | 'conditions': [ |
| 43 | ['USE_dbus == 1', { |
| 44 | 'exported_deps': [ |
| 45 | 'dbus-1', |
| 46 | ], |
| 47 | }], |
Liam McLoughlin | 4f268f4 | 2013-03-04 18:09:53 -0500 | [diff] [blame] | 48 | ], |
| 49 | 'deps': ['<@(exported_deps)'], |
| 50 | }, |
| 51 | 'all_dependent_settings': { |
| 52 | 'variables': { |
| 53 | 'deps': [ |
| 54 | '<@(exported_deps)', |
| 55 | ], |
| 56 | }, |
| 57 | }, |
Bertrand SIMONNET | f6ec4fc | 2015-07-15 14:14:19 -0700 | [diff] [blame] | 58 | 'libraries': ['-lmodp_b64'], |
Liam McLoughlin | 4f268f4 | 2013-03-04 18:09:53 -0500 | [diff] [blame] | 59 | 'sources': [ |
Alex Vakulenko | 9ed0cab | 2015-10-12 15:21:28 -0700 | [diff] [blame] | 60 | 'brillo/asynchronous_signal_handler.cc', |
| 61 | 'brillo/backoff_entry.cc', |
Alex Vakulenko | 9ed0cab | 2015-10-12 15:21:28 -0700 | [diff] [blame] | 62 | 'brillo/daemons/daemon.cc', |
| 63 | 'brillo/data_encoding.cc', |
Alex Vakulenko | 9ed0cab | 2015-10-12 15:21:28 -0700 | [diff] [blame] | 64 | 'brillo/errors/error.cc', |
| 65 | 'brillo/errors/error_codes.cc', |
| 66 | 'brillo/file_utils.cc', |
| 67 | 'brillo/flag_helper.cc', |
Xiaochu Liu | d88bc3e | 2018-07-23 11:54:02 -0700 | [diff] [blame] | 68 | 'brillo/imageloader/manifest.cc', |
Alex Vakulenko | 9ed0cab | 2015-10-12 15:21:28 -0700 | [diff] [blame] | 69 | 'brillo/key_value_store.cc', |
| 70 | 'brillo/message_loops/base_message_loop.cc', |
| 71 | 'brillo/message_loops/message_loop.cc', |
| 72 | 'brillo/message_loops/message_loop_utils.cc', |
| 73 | 'brillo/mime_utils.cc', |
| 74 | 'brillo/osrelease_reader.cc', |
| 75 | 'brillo/process.cc', |
| 76 | 'brillo/process_reaper.cc', |
| 77 | 'brillo/process_information.cc', |
| 78 | 'brillo/secure_blob.cc', |
| 79 | 'brillo/strings/string_utils.cc', |
| 80 | 'brillo/syslog_logging.cc', |
| 81 | 'brillo/type_name_undecorate.cc', |
| 82 | 'brillo/url_utils.cc', |
| 83 | 'brillo/userdb_utils.cc', |
Alex Vakulenko | b57ecfa | 2016-01-28 14:41:20 -0800 | [diff] [blame] | 84 | 'brillo/value_conversion.cc', |
Liam McLoughlin | 4f268f4 | 2013-03-04 18:09:53 -0500 | [diff] [blame] | 85 | ], |
Chirantan Ekbote | e1c1af0 | 2017-03-14 18:32:26 -0700 | [diff] [blame] | 86 | 'conditions': [ |
| 87 | ['USE_dbus == 1', { |
| 88 | 'sources': [ |
| 89 | 'brillo/any.cc', |
| 90 | 'brillo/daemons/dbus_daemon.cc', |
| 91 | 'brillo/dbus/async_event_sequencer.cc', |
| 92 | 'brillo/dbus/data_serialization.cc', |
| 93 | 'brillo/dbus/dbus_connection.cc', |
| 94 | 'brillo/dbus/dbus_method_invoker.cc', |
| 95 | 'brillo/dbus/dbus_method_response.cc', |
| 96 | 'brillo/dbus/dbus_object.cc', |
| 97 | 'brillo/dbus/dbus_service_watcher.cc', |
| 98 | 'brillo/dbus/dbus_signal.cc', |
| 99 | 'brillo/dbus/exported_object_manager.cc', |
| 100 | 'brillo/dbus/exported_property_set.cc', |
| 101 | 'brillo/dbus/utils.cc', |
| 102 | ], |
| 103 | }], |
| 104 | ], |
Liam McLoughlin | 4f268f4 | 2013-03-04 18:09:53 -0500 | [diff] [blame] | 105 | }, |
| 106 | { |
Alex Vakulenko | fed60b0 | 2015-10-27 09:53:05 -0700 | [diff] [blame] | 107 | 'target_name': 'libbrillo-http-<(libbase_ver)', |
Alex Vakulenko | f788c95 | 2014-08-20 17:35:12 -0700 | [diff] [blame] | 108 | 'type': 'shared_library', |
Alex Vakulenko | 80663bf | 2015-03-12 17:30:11 -0700 | [diff] [blame] | 109 | 'dependencies': [ |
Alex Vakulenko | fed60b0 | 2015-10-27 09:53:05 -0700 | [diff] [blame] | 110 | 'libbrillo-core-<(libbase_ver)', |
| 111 | 'libbrillo-streams-<(libbase_ver)', |
Alex Vakulenko | 80663bf | 2015-03-12 17:30:11 -0700 | [diff] [blame] | 112 | ], |
Alex Vakulenko | f788c95 | 2014-08-20 17:35:12 -0700 | [diff] [blame] | 113 | 'variables': { |
| 114 | 'exported_deps': [ |
| 115 | 'libcurl', |
| 116 | ], |
| 117 | 'deps': ['<@(exported_deps)'], |
| 118 | }, |
| 119 | 'all_dependent_settings': { |
| 120 | 'variables': { |
| 121 | 'deps': [ |
| 122 | '<@(exported_deps)', |
| 123 | ], |
| 124 | }, |
| 125 | }, |
Alex Vakulenko | f788c95 | 2014-08-20 17:35:12 -0700 | [diff] [blame] | 126 | 'sources': [ |
Alex Vakulenko | 9ed0cab | 2015-10-12 15:21:28 -0700 | [diff] [blame] | 127 | 'brillo/http/curl_api.cc', |
| 128 | 'brillo/http/http_connection_curl.cc', |
| 129 | 'brillo/http/http_form_data.cc', |
| 130 | 'brillo/http/http_request.cc', |
| 131 | 'brillo/http/http_transport.cc', |
| 132 | 'brillo/http/http_transport_curl.cc', |
| 133 | 'brillo/http/http_utils.cc', |
Alex Vakulenko | f788c95 | 2014-08-20 17:35:12 -0700 | [diff] [blame] | 134 | ], |
Jeffrey Kardatzke | bb9dbcb | 2017-09-27 16:28:57 -0700 | [diff] [blame] | 135 | 'conditions': [ |
| 136 | ['USE_dbus == 1', { |
| 137 | 'sources': [ |
| 138 | 'brillo/http/http_proxy.cc', |
| 139 | ], |
| 140 | }], |
| 141 | ], |
Alex Vakulenko | f788c95 | 2014-08-20 17:35:12 -0700 | [diff] [blame] | 142 | }, |
| 143 | { |
Alex Vakulenko | fed60b0 | 2015-10-27 09:53:05 -0700 | [diff] [blame] | 144 | 'target_name': 'libbrillo-streams-<(libbase_ver)', |
Alex Vakulenko | 1e582b3 | 2015-02-26 15:23:23 -0800 | [diff] [blame] | 145 | 'type': 'shared_library', |
| 146 | 'dependencies': [ |
Alex Vakulenko | fed60b0 | 2015-10-27 09:53:05 -0700 | [diff] [blame] | 147 | 'libbrillo-core-<(libbase_ver)', |
Alex Vakulenko | 1e582b3 | 2015-02-26 15:23:23 -0800 | [diff] [blame] | 148 | ], |
Alex Vakulenko | 7554ede | 2015-05-06 14:52:50 -0700 | [diff] [blame] | 149 | 'variables': { |
| 150 | 'exported_deps': [ |
| 151 | 'openssl', |
| 152 | ], |
| 153 | 'deps': ['<@(exported_deps)'], |
| 154 | }, |
| 155 | 'all_dependent_settings': { |
| 156 | 'variables': { |
| 157 | 'deps': [ |
| 158 | '<@(exported_deps)', |
| 159 | ], |
| 160 | }, |
| 161 | }, |
Alex Vakulenko | 1e582b3 | 2015-02-26 15:23:23 -0800 | [diff] [blame] | 162 | 'sources': [ |
Alex Vakulenko | 9ed0cab | 2015-10-12 15:21:28 -0700 | [diff] [blame] | 163 | 'brillo/streams/file_stream.cc', |
| 164 | 'brillo/streams/input_stream_set.cc', |
| 165 | 'brillo/streams/memory_containers.cc', |
| 166 | 'brillo/streams/memory_stream.cc', |
| 167 | 'brillo/streams/openssl_stream_bio.cc', |
| 168 | 'brillo/streams/stream.cc', |
| 169 | 'brillo/streams/stream_errors.cc', |
| 170 | 'brillo/streams/stream_utils.cc', |
| 171 | 'brillo/streams/tls_stream.cc', |
Alex Vakulenko | 1e582b3 | 2015-02-26 15:23:23 -0800 | [diff] [blame] | 172 | ], |
| 173 | }, |
| 174 | { |
Alex Vakulenko | fed60b0 | 2015-10-27 09:53:05 -0700 | [diff] [blame] | 175 | 'target_name': 'libbrillo-test-<(libbase_ver)', |
Alex Vakulenko | f788c95 | 2014-08-20 17:35:12 -0700 | [diff] [blame] | 176 | 'type': 'static_library', |
| 177 | 'standalone_static_library': 1, |
| 178 | 'dependencies': [ |
Alex Vakulenko | fed60b0 | 2015-10-27 09:53:05 -0700 | [diff] [blame] | 179 | 'libbrillo-http-<(libbase_ver)', |
Alex Vakulenko | f788c95 | 2014-08-20 17:35:12 -0700 | [diff] [blame] | 180 | ], |
| 181 | 'sources': [ |
Alex Vakulenko | 9ed0cab | 2015-10-12 15:21:28 -0700 | [diff] [blame] | 182 | 'brillo/http/http_connection_fake.cc', |
| 183 | 'brillo/http/http_transport_fake.cc', |
| 184 | 'brillo/message_loops/fake_message_loop.cc', |
| 185 | 'brillo/streams/fake_stream.cc', |
Alex Deymo | 37827b6 | 2016-03-29 15:56:29 -0700 | [diff] [blame] | 186 | 'brillo/unittest_utils.cc', |
Alex Vakulenko | f788c95 | 2014-08-20 17:35:12 -0700 | [diff] [blame] | 187 | ], |
| 188 | 'includes': ['../common-mk/deps.gypi'], |
| 189 | }, |
| 190 | { |
Alex Vakulenko | fed60b0 | 2015-10-27 09:53:05 -0700 | [diff] [blame] | 191 | 'target_name': 'libbrillo-cryptohome-<(libbase_ver)', |
Liam McLoughlin | 4f268f4 | 2013-03-04 18:09:53 -0500 | [diff] [blame] | 192 | 'type': 'shared_library', |
| 193 | 'variables': { |
Daniel Erat | 1585941 | 2014-06-10 11:19:08 -0700 | [diff] [blame] | 194 | 'exported_deps': [ |
Daniel Erat | 1585941 | 2014-06-10 11:19:08 -0700 | [diff] [blame] | 195 | 'openssl', |
| 196 | ], |
Liam McLoughlin | 4f268f4 | 2013-03-04 18:09:53 -0500 | [diff] [blame] | 197 | 'deps': ['<@(exported_deps)'], |
| 198 | }, |
| 199 | 'all_dependent_settings': { |
| 200 | 'variables': { |
| 201 | 'deps': [ |
| 202 | '<@(exported_deps)', |
| 203 | ], |
| 204 | }, |
| 205 | }, |
| 206 | 'sources': [ |
Alex Vakulenko | 9ed0cab | 2015-10-12 15:21:28 -0700 | [diff] [blame] | 207 | 'brillo/cryptohome.cc', |
Liam McLoughlin | 4f268f4 | 2013-03-04 18:09:53 -0500 | [diff] [blame] | 208 | ], |
| 209 | }, |
| 210 | { |
Alex Vakulenko | fed60b0 | 2015-10-27 09:53:05 -0700 | [diff] [blame] | 211 | 'target_name': 'libbrillo-minijail-<(libbase_ver)', |
Utkarsh Sanghi | d60f9ae | 2014-07-29 16:01:43 -0700 | [diff] [blame] | 212 | 'type': 'shared_library', |
Bertrand SIMONNET | d614379 | 2015-08-13 14:27:05 -0700 | [diff] [blame] | 213 | 'variables': { |
Bertrand SIMONNET | 92d2ceb | 2015-08-14 10:19:52 -0700 | [diff] [blame] | 214 | 'exported_deps': [ |
Bertrand SIMONNET | d614379 | 2015-08-13 14:27:05 -0700 | [diff] [blame] | 215 | 'libminijail', |
| 216 | ], |
Bertrand SIMONNET | 92d2ceb | 2015-08-14 10:19:52 -0700 | [diff] [blame] | 217 | 'deps': ['<@(exported_deps)'], |
| 218 | }, |
| 219 | 'all_dependent_settings': { |
| 220 | 'variables': { |
| 221 | 'deps': [ |
| 222 | '<@(exported_deps)', |
| 223 | ], |
| 224 | }, |
Bertrand SIMONNET | d614379 | 2015-08-13 14:27:05 -0700 | [diff] [blame] | 225 | }, |
Utkarsh Sanghi | d60f9ae | 2014-07-29 16:01:43 -0700 | [diff] [blame] | 226 | 'cflags': [ |
| 227 | '-fvisibility=default', |
| 228 | ], |
| 229 | 'sources': [ |
Alex Vakulenko | 9ed0cab | 2015-10-12 15:21:28 -0700 | [diff] [blame] | 230 | 'brillo/minijail/minijail.cc', |
Utkarsh Sanghi | d60f9ae | 2014-07-29 16:01:43 -0700 | [diff] [blame] | 231 | ], |
| 232 | }, |
| 233 | { |
Thiemo Nagel | ce533da | 2016-10-24 14:53:14 +0200 | [diff] [blame] | 234 | 'target_name': 'libinstallattributes-<(libbase_ver)', |
| 235 | 'type': 'shared_library', |
| 236 | 'dependencies': [ |
| 237 | 'libinstallattributes-includes', |
| 238 | '../common-mk/external_dependencies.gyp:install_attributes-proto', |
| 239 | ], |
| 240 | 'variables': { |
| 241 | 'exported_deps': [ |
| 242 | 'protobuf-lite', |
| 243 | ], |
| 244 | 'deps': ['<@(exported_deps)'], |
| 245 | }, |
| 246 | 'all_dependent_settings': { |
| 247 | 'variables': { |
| 248 | 'deps': [ |
| 249 | '<@(exported_deps)', |
| 250 | ], |
| 251 | }, |
| 252 | }, |
| 253 | 'sources': [ |
| 254 | 'install_attributes/libinstallattributes.cc', |
| 255 | ], |
| 256 | }, |
| 257 | { |
Liam McLoughlin | 4f268f4 | 2013-03-04 18:09:53 -0500 | [diff] [blame] | 258 | 'target_name': 'libpolicy-<(libbase_ver)', |
| 259 | 'type': 'shared_library', |
Chris Masone | 242ab24 | 2013-11-13 13:26:52 -0800 | [diff] [blame] | 260 | 'dependencies': [ |
Thiemo Nagel | ce533da | 2016-10-24 14:53:14 +0200 | [diff] [blame] | 261 | 'libinstallattributes-<(libbase_ver)', |
Bertrand SIMONNET | 883c3e7 | 2014-06-04 13:22:47 -0700 | [diff] [blame] | 262 | 'libpolicy-includes', |
| 263 | '../common-mk/external_dependencies.gyp:policy-protos', |
Chris Masone | 242ab24 | 2013-11-13 13:26:52 -0800 | [diff] [blame] | 264 | ], |
Liam McLoughlin | 4f268f4 | 2013-03-04 18:09:53 -0500 | [diff] [blame] | 265 | 'variables': { |
| 266 | 'exported_deps': [ |
Liam McLoughlin | 4f268f4 | 2013-03-04 18:09:53 -0500 | [diff] [blame] | 267 | 'openssl', |
| 268 | 'protobuf-lite', |
| 269 | ], |
| 270 | 'deps': ['<@(exported_deps)'], |
| 271 | }, |
| 272 | 'all_dependent_settings': { |
| 273 | 'variables': { |
| 274 | 'deps': [ |
| 275 | '<@(exported_deps)', |
| 276 | ], |
| 277 | }, |
| 278 | }, |
Liam McLoughlin | 4f268f4 | 2013-03-04 18:09:53 -0500 | [diff] [blame] | 279 | 'ldflags': [ |
Alex Vakulenko | fed60b0 | 2015-10-27 09:53:05 -0700 | [diff] [blame] | 280 | '-Wl,--version-script,<(platform2_root)/libbrillo/libpolicy.ver', |
Liam McLoughlin | 4f268f4 | 2013-03-04 18:09:53 -0500 | [diff] [blame] | 281 | ], |
| 282 | 'sources': [ |
Alex Deymo | 3c8d4ab | 2015-09-02 17:15:00 -0700 | [diff] [blame] | 283 | 'policy/device_policy.cc', |
| 284 | 'policy/device_policy_impl.cc', |
Igor | d213a40 | 2017-09-20 15:56:08 +0200 | [diff] [blame] | 285 | 'policy/policy_util.cc', |
| 286 | 'policy/resilient_policy_util.cc', |
Alex Deymo | 3c8d4ab | 2015-09-02 17:15:00 -0700 | [diff] [blame] | 287 | 'policy/libpolicy.cc', |
Liam McLoughlin | 4f268f4 | 2013-03-04 18:09:53 -0500 | [diff] [blame] | 288 | ], |
| 289 | }, |
Bertrand SIMONNET | 211054c | 2014-06-24 16:33:32 -0700 | [diff] [blame] | 290 | { |
Alex Vakulenko | fed60b0 | 2015-10-27 09:53:05 -0700 | [diff] [blame] | 291 | 'target_name': 'libbrillo-glib-<(libbase_ver)', |
Christopher Wiley | 8065d31 | 2015-07-08 13:11:21 -0700 | [diff] [blame] | 292 | 'type': 'shared_library', |
| 293 | 'dependencies': [ |
Daniel Erat | 514938d | 2018-04-24 13:49:35 -0700 | [diff] [blame] | 294 | 'libbrillo-<(libbase_ver)', |
Christopher Wiley | 8065d31 | 2015-07-08 13:11:21 -0700 | [diff] [blame] | 295 | ], |
| 296 | 'variables': { |
| 297 | 'exported_deps': [ |
Christopher Wiley | 8065d31 | 2015-07-08 13:11:21 -0700 | [diff] [blame] | 298 | 'glib-2.0', |
| 299 | 'gobject-2.0', |
| 300 | ], |
Chirantan Ekbote | e1c1af0 | 2017-03-14 18:32:26 -0700 | [diff] [blame] | 301 | 'conditions': [ |
| 302 | ['USE_dbus == 1', { |
| 303 | 'exported_deps': [ |
| 304 | 'dbus-1', |
| 305 | 'dbus-glib-1', |
| 306 | ], |
| 307 | }], |
| 308 | ], |
Christopher Wiley | 8065d31 | 2015-07-08 13:11:21 -0700 | [diff] [blame] | 309 | 'deps': ['<@(exported_deps)'], |
| 310 | }, |
| 311 | 'cflags': [ |
| 312 | # glib uses the deprecated "register" attribute in some header files. |
| 313 | '-Wno-deprecated-register', |
| 314 | ], |
| 315 | 'all_dependent_settings': { |
| 316 | 'variables': { |
| 317 | 'deps': [ |
| 318 | '<@(exported_deps)', |
| 319 | ], |
| 320 | }, |
| 321 | }, |
Christopher Wiley | 8065d31 | 2015-07-08 13:11:21 -0700 | [diff] [blame] | 322 | 'includes': ['../common-mk/deps.gypi'], |
Chirantan Ekbote | e1c1af0 | 2017-03-14 18:32:26 -0700 | [diff] [blame] | 323 | 'conditions': [ |
| 324 | ['USE_dbus == 1', { |
| 325 | 'sources': [ |
| 326 | 'brillo/glib/abstract_dbus_service.cc', |
| 327 | 'brillo/glib/dbus.cc', |
| 328 | ], |
| 329 | }], |
| 330 | ], |
Christopher Wiley | 8065d31 | 2015-07-08 13:11:21 -0700 | [diff] [blame] | 331 | }, |
Liam McLoughlin | 4f268f4 | 2013-03-04 18:09:53 -0500 | [diff] [blame] | 332 | ], |
| 333 | 'conditions': [ |
| 334 | ['USE_test == 1', { |
| 335 | 'targets': [ |
| 336 | { |
Alex Vakulenko | fed60b0 | 2015-10-27 09:53:05 -0700 | [diff] [blame] | 337 | 'target_name': 'libbrillo-<(libbase_ver)_unittests', |
Liam McLoughlin | 4f268f4 | 2013-03-04 18:09:53 -0500 | [diff] [blame] | 338 | 'type': 'executable', |
Daniel Erat | 8a6c590 | 2014-06-04 13:50:01 -0700 | [diff] [blame] | 339 | 'dependencies': [ |
Alex Vakulenko | fed60b0 | 2015-10-27 09:53:05 -0700 | [diff] [blame] | 340 | 'libbrillo-<(libbase_ver)', |
Alex Vakulenko | fed60b0 | 2015-10-27 09:53:05 -0700 | [diff] [blame] | 341 | 'libbrillo-glib-<(libbase_ver)', |
Daniel Erat | 514938d | 2018-04-24 13:49:35 -0700 | [diff] [blame] | 342 | 'libbrillo-test-<(libbase_ver)', |
Daniel Erat | 8a6c590 | 2014-06-04 13:50:01 -0700 | [diff] [blame] | 343 | ], |
Christopher Wiley | a96e6db | 2014-08-07 15:47:24 -0700 | [diff] [blame] | 344 | 'variables': { |
| 345 | 'deps': [ |
| 346 | 'libchrome-test-<(libbase_ver)', |
| 347 | ], |
Alex Vakulenko | b213545 | 2015-10-19 11:23:51 -0700 | [diff] [blame] | 348 | 'proto_in_dir': 'brillo/dbus', |
Alex Vakulenko | 2df1163 | 2015-10-23 13:43:05 -0700 | [diff] [blame] | 349 | 'proto_out_dir': 'include/brillo/dbus', |
Christopher Wiley | a96e6db | 2014-08-07 15:47:24 -0700 | [diff] [blame] | 350 | }, |
Alex Vakulenko | d0b4d8d | 2015-03-31 19:33:31 -0700 | [diff] [blame] | 351 | 'includes': [ |
| 352 | '../common-mk/common_test.gypi', |
| 353 | '../common-mk/protoc.gypi', |
| 354 | ], |
Liam McLoughlin | 4f268f4 | 2013-03-04 18:09:53 -0500 | [diff] [blame] | 355 | 'cflags': [ |
| 356 | '-Wno-format-zero-length', |
| 357 | ], |
| 358 | 'conditions': [ |
| 359 | ['debug == 1', { |
| 360 | 'cflags': [ |
| 361 | '-fprofile-arcs', |
| 362 | '-ftest-coverage', |
| 363 | '-fno-inline', |
| 364 | ], |
| 365 | 'libraries': [ |
| 366 | '-lgcov', |
| 367 | ], |
| 368 | }], |
| 369 | ], |
| 370 | 'sources': [ |
Alex Vakulenko | 9ed0cab | 2015-10-12 15:21:28 -0700 | [diff] [blame] | 371 | 'brillo/asynchronous_signal_handler_unittest.cc', |
| 372 | 'brillo/backoff_entry_unittest.cc', |
| 373 | 'brillo/data_encoding_unittest.cc', |
Aaron Wood | bdfc828 | 2017-10-31 10:49:01 -0700 | [diff] [blame] | 374 | 'brillo/enum_flags_unittest.cc', |
Alex Vakulenko | 9ed0cab | 2015-10-12 15:21:28 -0700 | [diff] [blame] | 375 | 'brillo/errors/error_codes_unittest.cc', |
| 376 | 'brillo/errors/error_unittest.cc', |
| 377 | 'brillo/file_utils_unittest.cc', |
| 378 | 'brillo/flag_helper_unittest.cc', |
| 379 | 'brillo/glib/object_unittest.cc', |
| 380 | 'brillo/http/http_connection_curl_unittest.cc', |
| 381 | 'brillo/http/http_form_data_unittest.cc', |
| 382 | 'brillo/http/http_request_unittest.cc', |
| 383 | 'brillo/http/http_transport_curl_unittest.cc', |
| 384 | 'brillo/http/http_utils_unittest.cc', |
Xiaochu Liu | d88bc3e | 2018-07-23 11:54:02 -0700 | [diff] [blame] | 385 | 'brillo/imageloader/manifest_unittest.cc', |
Alex Vakulenko | 9ed0cab | 2015-10-12 15:21:28 -0700 | [diff] [blame] | 386 | 'brillo/key_value_store_unittest.cc', |
| 387 | 'brillo/map_utils_unittest.cc', |
Alex Deymo | d671746 | 2016-01-14 10:50:16 -0800 | [diff] [blame] | 388 | 'brillo/message_loops/base_message_loop_unittest.cc', |
Alex Vakulenko | 9ed0cab | 2015-10-12 15:21:28 -0700 | [diff] [blame] | 389 | 'brillo/message_loops/fake_message_loop_unittest.cc', |
Alex Vakulenko | 9ed0cab | 2015-10-12 15:21:28 -0700 | [diff] [blame] | 390 | 'brillo/message_loops/message_loop_unittest.cc', |
| 391 | 'brillo/mime_utils_unittest.cc', |
| 392 | 'brillo/osrelease_reader_unittest.cc', |
| 393 | 'brillo/process_reaper_unittest.cc', |
| 394 | 'brillo/process_unittest.cc', |
| 395 | 'brillo/secure_blob_unittest.cc', |
| 396 | 'brillo/streams/fake_stream_unittest.cc', |
| 397 | 'brillo/streams/file_stream_unittest.cc', |
| 398 | 'brillo/streams/input_stream_set_unittest.cc', |
| 399 | 'brillo/streams/memory_containers_unittest.cc', |
| 400 | 'brillo/streams/memory_stream_unittest.cc', |
| 401 | 'brillo/streams/openssl_stream_bio_unittests.cc', |
| 402 | 'brillo/streams/stream_unittest.cc', |
| 403 | 'brillo/streams/stream_utils_unittest.cc', |
| 404 | 'brillo/strings/string_utils_unittest.cc', |
Alex Deymo | 992e429 | 2015-12-11 19:42:09 -0800 | [diff] [blame] | 405 | 'brillo/unittest_utils.cc', |
Alex Vakulenko | 9ed0cab | 2015-10-12 15:21:28 -0700 | [diff] [blame] | 406 | 'brillo/url_utils_unittest.cc', |
Alex Vakulenko | b57ecfa | 2016-01-28 14:41:20 -0800 | [diff] [blame] | 407 | 'brillo/value_conversion_unittest.cc', |
Liam McLoughlin | 4f268f4 | 2013-03-04 18:09:53 -0500 | [diff] [blame] | 408 | 'testrunner.cc', |
Chirantan Ekbote | e1c1af0 | 2017-03-14 18:32:26 -0700 | [diff] [blame] | 409 | ], |
| 410 | 'conditions': [ |
| 411 | ['USE_dbus == 1', { |
| 412 | 'sources': [ |
| 413 | 'brillo/any_unittest.cc', |
| 414 | 'brillo/any_internal_impl_unittest.cc', |
| 415 | 'brillo/dbus/async_event_sequencer_unittest.cc', |
| 416 | 'brillo/dbus/data_serialization_unittest.cc', |
| 417 | 'brillo/dbus/dbus_method_invoker_unittest.cc', |
| 418 | 'brillo/dbus/dbus_object_unittest.cc', |
| 419 | 'brillo/dbus/dbus_param_reader_unittest.cc', |
| 420 | 'brillo/dbus/dbus_param_writer_unittest.cc', |
| 421 | 'brillo/dbus/dbus_signal_handler_unittest.cc', |
| 422 | 'brillo/dbus/exported_object_manager_unittest.cc', |
| 423 | 'brillo/dbus/exported_property_set_unittest.cc', |
Jeffrey Kardatzke | bb9dbcb | 2017-09-27 16:28:57 -0700 | [diff] [blame] | 424 | 'brillo/http/http_proxy_unittest.cc', |
Stephen Barber | c648bf0 | 2017-04-13 14:03:41 -0700 | [diff] [blame] | 425 | 'brillo/type_name_undecorate_unittest.cc', |
Chirantan Ekbote | e1c1af0 | 2017-03-14 18:32:26 -0700 | [diff] [blame] | 426 | 'brillo/variant_dictionary_unittest.cc', |
| 427 | '<(proto_in_dir)/test.proto', |
| 428 | ], |
| 429 | }], |
| 430 | ], |
Liam McLoughlin | 4f268f4 | 2013-03-04 18:09:53 -0500 | [diff] [blame] | 431 | }, |
| 432 | { |
Thiemo Nagel | ce533da | 2016-10-24 14:53:14 +0200 | [diff] [blame] | 433 | 'target_name': 'libinstallattributes-<(libbase_ver)_unittests', |
Liam McLoughlin | 4f268f4 | 2013-03-04 18:09:53 -0500 | [diff] [blame] | 434 | 'type': 'executable', |
Thiemo Nagel | ce533da | 2016-10-24 14:53:14 +0200 | [diff] [blame] | 435 | 'dependencies': [ |
| 436 | '../common-mk/external_dependencies.gyp:install_attributes-proto', |
| 437 | 'libinstallattributes-<(libbase_ver)', |
| 438 | ], |
Bertrand SIMONNET | 883c3e7 | 2014-06-04 13:22:47 -0700 | [diff] [blame] | 439 | 'includes': ['../common-mk/common_test.gypi'], |
Liam McLoughlin | 4f268f4 | 2013-03-04 18:09:53 -0500 | [diff] [blame] | 440 | 'sources': [ |
Thiemo Nagel | ce533da | 2016-10-24 14:53:14 +0200 | [diff] [blame] | 441 | 'install_attributes/tests/libinstallattributes_unittest.cc', |
| 442 | ] |
| 443 | }, |
| 444 | { |
| 445 | 'target_name': 'libpolicy-<(libbase_ver)_unittests', |
| 446 | 'type': 'executable', |
| 447 | 'dependencies': [ |
| 448 | '../common-mk/external_dependencies.gyp:install_attributes-proto', |
Thiemo Nagel | d710b3b | 2017-05-29 12:32:06 +0200 | [diff] [blame] | 449 | '../common-mk/external_dependencies.gyp:policy-protos', |
Thiemo Nagel | ce533da | 2016-10-24 14:53:14 +0200 | [diff] [blame] | 450 | 'libinstallattributes-<(libbase_ver)', |
| 451 | 'libpolicy-<(libbase_ver)', |
| 452 | ], |
| 453 | 'includes': ['../common-mk/common_test.gypi'], |
| 454 | 'sources': [ |
| 455 | 'install_attributes/mock_install_attributes_reader.cc', |
Thiemo Nagel | d710b3b | 2017-05-29 12:32:06 +0200 | [diff] [blame] | 456 | 'policy/tests/device_policy_impl_unittest.cc', |
Alex Deymo | 3c8d4ab | 2015-09-02 17:15:00 -0700 | [diff] [blame] | 457 | 'policy/tests/libpolicy_unittest.cc', |
Igor | d213a40 | 2017-09-20 15:56:08 +0200 | [diff] [blame] | 458 | 'policy/tests/policy_util_unittest.cc', |
| 459 | 'policy/tests/resilient_policy_util_unittest.cc', |
Liam McLoughlin | 4f268f4 | 2013-03-04 18:09:53 -0500 | [diff] [blame] | 460 | ] |
| 461 | }, |
Liam McLoughlin | 4f268f4 | 2013-03-04 18:09:53 -0500 | [diff] [blame] | 462 | ], |
| 463 | }], |
| 464 | ], |
| 465 | } |