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