1// Copyright (C) 2018 The Android Open Source Project 2// 3// Licensed under the Apache License, Version 2.0 (the "License"); 4// you may not use this file except in compliance with the License. 5// You may obtain a copy of the License at 6// 7// http://www.apache.org/licenses/LICENSE-2.0 8// 9// Unless required by applicable law or agreed to in writing, software 10// distributed under the License is distributed on an "AS IS" BASIS, 11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12// See the License for the specific language governing permissions and 13// limitations under the License. 14 15package { 16 default_applicable_licenses: ["external_Reactive-Extensions_RxCpp_license"], 17} 18 19// Added automatically by a large-scale-change 20// See: http://go/android-license-faq 21license { 22 name: "external_Reactive-Extensions_RxCpp_license", 23 visibility: [":__subpackages__"], 24 license_kinds: [ 25 "SPDX-license-identifier-Apache-2.0", 26 ], 27 license_text: [ 28 "license.md", 29 ], 30} 31 32cc_library_headers { 33 name: "librxcpp", 34 host_supported: true, 35 export_include_dirs: ["Rx/v2/src"] 36} 37 38cc_defaults { 39 name: "librxcpp-tests-defaults", 40 host_supported: true, 41 srcs: [ 42 "Rx/v2/test/**/*.cpp", 43 ], 44 header_libs: ["librxcpp"], 45 gtest: false, 46 shared_libs: ["liblog"], 47} 48 49cc_test { 50 // "Upstream" config. Use exceptions. 51 // Ensure that if we update from upstream later that the merged code 52 // is still working on Android. 53 name: "librxcpp-tests-upstream", 54 defaults: ["librxcpp-tests-defaults"], 55 whole_static_libs: ["libcatch2-upstream"], 56 // Allow exceptions for all the use of try/catch/throw in rxcpp. 57 cflags: ["-fexceptions"], 58} 59 60cc_test { 61 // "AOSP" config. Disable exceptions. 62 // Anything in AOSP using librxcpp will use it as this config, so 63 // that's what we really care about testing. 64 name: "librxcpp-tests", 65 defaults: ["librxcpp-tests-defaults"], 66 whole_static_libs: ["libcatch2"], 67} 68