Greg Hartman | bff7e63 | 2017-09-29 11:32:08 -0700 | [diff] [blame] | 1 | // |
| 2 | // Copyright (C) 2017 The Android Open Source Project |
| 3 | // |
| 4 | // Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | // you may not use this file except in compliance with the License. |
| 6 | // You may obtain a copy of the License at |
| 7 | // |
| 8 | // http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | // |
| 10 | // Unless required by applicable law or agreed to in writing, software |
| 11 | // distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | // See the License for the specific language governing permissions and |
| 14 | // limitations under the License. |
| 15 | |
Greg Hartman | bff7e63 | 2017-09-29 11:32:08 -0700 | [diff] [blame] | 16 | cc_library_headers { |
Greg Hartman | a4ff248 | 2017-10-03 16:35:00 -0700 | [diff] [blame] | 17 | name: "cuttlefish_common_headers", |
Justin Yun | 6ca23bd | 2020-12-11 17:16:37 +0900 | [diff] [blame] | 18 | vendor_available: true, |
| 19 | product_available: true, |
Ram Muthiah | 792e2ad | 2019-04-19 11:19:46 -0700 | [diff] [blame] | 20 | export_include_dirs: ["."], |
| 21 | host_supported: true, |
Jiyong Park | b86c2f7 | 2021-01-05 16:55:32 +0900 | [diff] [blame] | 22 | apex_available: [ |
| 23 | "//apex_available:platform", |
| 24 | "com.android.virt", |
| 25 | ], |
Ram Muthiah | 792e2ad | 2019-04-19 11:19:46 -0700 | [diff] [blame] | 26 | } |
| 27 | |
Greg Hartman | bff7e63 | 2017-09-29 11:32:08 -0700 | [diff] [blame] | 28 | cc_defaults { |
Greg Hartman | ce872ef | 2017-12-04 22:51:47 -0800 | [diff] [blame] | 29 | name: "cuttlefish_base", |
Tomasz Wiszkowski | 55d53ff | 2017-12-04 15:39:57 -0800 | [diff] [blame] | 30 | gnu_extensions: false, |
| 31 | header_libs: [ |
| 32 | "cuttlefish_common_headers", |
Tomasz Wiszkowski | 55d53ff | 2017-12-04 15:39:57 -0800 | [diff] [blame] | 33 | ], |
Tomasz Wiszkowski | 55d53ff | 2017-12-04 15:39:57 -0800 | [diff] [blame] | 34 | target: { |
Ryan Haining | 508c808 | 2018-03-13 11:26:19 -0700 | [diff] [blame] | 35 | host: { |
Tomasz Wiszkowski | 55d53ff | 2017-12-04 15:39:57 -0800 | [diff] [blame] | 36 | host_ldlibs: ["-lrt"], |
| 37 | cflags: ["-DCUTTLEFISH_HOST"], |
Ryan Haining | 508c808 | 2018-03-13 11:26:19 -0700 | [diff] [blame] | 38 | compile_multilib: "64", |
Ryan Haining | ed1fe92 | 2018-03-13 17:43:30 +0000 | [diff] [blame] | 39 | }, |
| 40 | // We don't need Darwin host-side builds |
| 41 | darwin: { |
| 42 | enabled: false, |
Greg Hartman | a4ff248 | 2017-10-03 16:35:00 -0700 | [diff] [blame] | 43 | }, |
Greg Hartman | bff7e63 | 2017-09-29 11:32:08 -0700 | [diff] [blame] | 44 | }, |
Cody Schuffelen | 88b82d5 | 2019-05-29 14:16:03 -0700 | [diff] [blame] | 45 | cflags: ["-Werror", "-Wall", "-D_FILE_OFFSET_BITS=64"], |
Jiyong Park | b86c2f7 | 2021-01-05 16:55:32 +0900 | [diff] [blame] | 46 | apex_available: [ |
| 47 | "//apex_available:platform", |
| 48 | "com.android.virt", |
| 49 | ], |
Greg Hartman | a4ff248 | 2017-10-03 16:35:00 -0700 | [diff] [blame] | 50 | } |
| 51 | |
Jiyong Park | 58c326b | 2021-01-05 16:52:58 +0900 | [diff] [blame] | 52 | // Defaults for cuttlefish modules that are available only in the guest OS (i.e. cuttlefish running |
| 53 | // in a guest VM). |
Ram Muthiah | 792e2ad | 2019-04-19 11:19:46 -0700 | [diff] [blame] | 54 | cc_defaults { |
Greg Hartman | e9adb54 | 2018-05-09 13:12:51 -0700 | [diff] [blame] | 55 | name: "cuttlefish_guest_only", |
Justin Yun | 6ca23bd | 2020-12-11 17:16:37 +0900 | [diff] [blame] | 56 | vendor: true, |
Greg Hartman | e9adb54 | 2018-05-09 13:12:51 -0700 | [diff] [blame] | 57 | defaults: ["cuttlefish_base"], |
| 58 | } |
| 59 | |
Jiyong Park | 58c326b | 2021-01-05 16:52:58 +0900 | [diff] [blame] | 60 | // Same as cuttlefish_guest_only, but modules are placed in /product partition. |
Greg Hartman | e9adb54 | 2018-05-09 13:12:51 -0700 | [diff] [blame] | 61 | cc_defaults { |
Jiyong Park | 58c326b | 2021-01-05 16:52:58 +0900 | [diff] [blame] | 62 | name: "cuttlefish_guest_product_only", |
| 63 | product_specific: true, |
Greg Hartman | ce872ef | 2017-12-04 22:51:47 -0800 | [diff] [blame] | 64 | defaults: ["cuttlefish_base"], |
| 65 | } |
| 66 | |
Jiyong Park | 58c326b | 2021-01-05 16:52:58 +0900 | [diff] [blame] | 67 | // Defaults for cuttlefish modules that are available only in the host-side OS. Here "host" includes |
| 68 | // both (1) non-Android OS like gLinux or Ubuntu, and (2) Android OS that is capable of running |
| 69 | // guest VM(s) in it. Note that, in the context of the Android build systm - Soong - (1) is called |
| 70 | // as "host" and (2) is called as "target". But here, the term "host" is in the context of VMs. If a |
| 71 | // module is for the host-side VM (either Android or non-Android), "cuttlefish_host" shall be used. |
| 72 | cc_defaults { |
| 73 | name: "cuttlefish_host", |
| 74 | host_supported: true, // this "host" means (1) |
| 75 | device_supported: true, // this is for (2) |
| 76 | vendor_available: true, |
| 77 | defaults: ["cuttlefish_base"], |
| 78 | } |
| 79 | |
| 80 | // Same as "cuttlefish_host", but only for non-Android OS. |
| 81 | cc_defaults { |
| 82 | name: "cuttlefish_buildhost_only", |
Greg Hartman | ce872ef | 2017-12-04 22:51:47 -0800 | [diff] [blame] | 83 | host_supported: true, |
Jiyong Park | 58c326b | 2021-01-05 16:52:58 +0900 | [diff] [blame] | 84 | device_supported: false, |
Greg Hartman | ce872ef | 2017-12-04 22:51:47 -0800 | [diff] [blame] | 85 | defaults: ["cuttlefish_base"], |
| 86 | } |
Ram Muthiah | 0f7fc06 | 2019-12-10 15:48:14 -0800 | [diff] [blame] | 87 | |
| 88 | cc_defaults { |
| 89 | name: "cuttlefish_recovery_available", |
| 90 | recovery_available : true |
| 91 | } |
| 92 | |
| 93 | cc_defaults { |
| 94 | name: "enabled_on_p_and_later", |
| 95 | enabled: true |
| 96 | } |
| 97 | |
| 98 | cc_defaults { |
| 99 | name: "enabled_on_q_and_later", |
| 100 | enabled: true |
| 101 | } |
| 102 | |
| 103 | cc_defaults { |
| 104 | name: "enabled_on_q_internal_and_later", |
| 105 | enabled: true |
| 106 | } |
| 107 | |
| 108 | cc_defaults { |
Ram Muthiah | 0f7fc06 | 2019-12-10 15:48:14 -0800 | [diff] [blame] | 109 | name: "cuttlefish_libicuuc", |
Alistair Delva | 8cd279f | 2020-09-03 08:35:39 -0700 | [diff] [blame] | 110 | target: { |
| 111 | host: { |
| 112 | shared_libs: [ |
| 113 | "libicuuc", |
| 114 | ], |
| 115 | }, |
| 116 | }, |
Ram Muthiah | 0f7fc06 | 2019-12-10 15:48:14 -0800 | [diff] [blame] | 117 | } |
| 118 | |
| 119 | cc_defaults { |
| 120 | name: "cuttlefish_health_storage", |
| 121 | defaults: ["enabled_on_q_and_later"], |
Ram Muthiah | 0f7fc06 | 2019-12-10 15:48:14 -0800 | [diff] [blame] | 122 | } |
| 123 | |
| 124 | java_test_host { |
| 125 | name: "tombstone_transmit_tests", |
| 126 | |
| 127 | libs: ["tradefed"], |
| 128 | |
| 129 | srcs: ["tests/src/**/TombstoneTransmitTest.java"], |
| 130 | |
| 131 | test_config: "tests/tombstone-transmit-tests.xml", |
| 132 | |
| 133 | test_suites: ["general-tests"], |
| 134 | } |
Jiyong Park | 4613c42 | 2021-02-01 22:14:13 +0900 | [diff] [blame^] | 135 | |
| 136 | filegroup { |
| 137 | name: "cf_dtb", |
| 138 | srcs: ["dtb.img"], |
| 139 | } |