diff options
| author | Igor Murashkin <iam@google.com> | 2018-08-10 17:36:45 -0700 |
|---|---|---|
| committer | android-build-merger <android-build-merger@google.com> | 2018-08-10 17:36:45 -0700 |
| commit | af518306412775ff59b181263eeb509eb928269d (patch) | |
| tree | 5a861d123ffb6812514a26ee12d84b08ef992692 | |
| parent | 6131e83b0edc972298baec6083c15b9a0675ae2b (diff) | |
| parent | fb0738b3b978fabf2e24640fba9753f60665a95e (diff) | |
| download | platform_external_Reactive-Extensions_RxCpp-af518306412775ff59b181263eeb509eb928269d.tar.gz platform_external_Reactive-Extensions_RxCpp-af518306412775ff59b181263eeb509eb928269d.tar.bz2 platform_external_Reactive-Extensions_RxCpp-af518306412775ff59b181263eeb509eb928269d.zip | |
android: Add nortti/noexcept test targets am: a13888fd0e
am: fb0738b3b9
Change-Id: I090392601f7f66fd28bd14ef8ad03d012038a62b
| -rw-r--r-- | Android.bp | 27 |
1 files changed, 21 insertions, 6 deletions
@@ -18,17 +18,32 @@ cc_library_headers { export_include_dirs: ["Rx/v2/src"] } -cc_test { - name: "librxcpp-tests", +cc_defaults { + name: "librxcpp-tests-defaults", host_supported: true, srcs: [ "Rx/v2/test/**/*.cpp", ], - whole_static_libs: ["libcatch2-upstream"], header_libs: ["librxcpp"], gtest: false, - // Temporarily allow exceptions for all the use of try/catch in rxcpp. +} + +cc_test { + // "Upstream" config. Use exceptions. + // Ensure that if we update from upstream later that the merged code + // is still working on Android. + name: "librxcpp-tests-upstream", + defaults: ["librxcpp-tests-defaults"], + whole_static_libs: ["libcatch2-upstream"], + // Allow exceptions for all the use of try/catch/throw in rxcpp. cflags: ["-fexceptions"], - // Enable RTTI required to compile libcatch. - rtti: true, +} + +cc_test { + // "AOSP" config. Disable exceptions. + // Anything in AOSP using librxcpp will use it as this config, so + // that's what we really care about testing. + name: "librxcpp-tests", + defaults: ["librxcpp-tests-defaults"], + whole_static_libs: ["libcatch2"], } |
