1// Copyright (C) 2023 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// 15 16package { 17 default_applicable_licenses: ["Android-Apache-2.0"], 18} 19 20cc_defaults { 21 name: "berberis_hello_world_defaults", 22 srcs: ["main.cc"], 23 native_bridge_supported: true, 24 enabled: false, 25 target: { 26 native_bridge: { 27 enabled: true, 28 }, 29 }, 30} 31 32cc_test { 33 name: "berberis_hello_world", 34 defaults: ["berberis_hello_world_defaults"], 35} 36 37cc_test { 38 name: "berberis_hello_world_static", 39 defaults: ["berberis_hello_world_defaults"], 40 static_executable: true, 41} 42 43cc_defaults { 44 name: "berberis_hello_world_arm64_nocrt_defaults", 45 native_bridge_supported: true, 46 enabled: false, 47 arch: { 48 arm64: { 49 enabled: true, 50 srcs: ["main_arm64.S"], 51 }, 52 }, 53 nocrt: true, 54} 55 56cc_test { 57 name: "berberis_hello_world_arm64_nocrt", 58 defaults: ["berberis_hello_world_arm64_nocrt_defaults"], 59} 60 61cc_test { 62 name: "berberis_hello_world_arm64_nocrt_static", 63 defaults: ["berberis_hello_world_arm64_nocrt_defaults"], 64 static_executable: true, 65} 66 67cc_defaults { 68 name: "berberis_hello_world_riscv64_nocrt_defaults", 69 native_bridge_supported: true, 70 enabled: false, 71 arch: { 72 riscv64: { 73 enabled: true, 74 srcs: ["main_riscv64.S"], 75 }, 76 }, 77 nocrt: true, 78} 79 80cc_test { 81 name: "berberis_hello_world_riscv64_nocrt", 82 defaults: ["berberis_hello_world_riscv64_nocrt_defaults"], 83} 84 85cc_test { 86 name: "berberis_hello_world_riscv64_nocrt_static", 87 defaults: ["berberis_hello_world_riscv64_nocrt_defaults"], 88 static_executable: true, 89} 90