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 16package { 17 default_applicable_licenses: ["Android-Apache-2.0"], 18} 19 20soong_config_module_type { 21 name: "cf_cc_defaults", 22 module_type: "cc_defaults", 23 config_namespace: "cvdhost", 24 bool_variables: ["enforce_mac80211_hwsim"], 25 properties: ["cflags"], 26} 27 28// This is the customization layer driven by soong config variables. 29cf_cc_defaults { 30 name: "cvd_cc_defaults", 31 soong_config_variables: { 32 // PRODUCT_ENFORCE_MAC80211_HWSIM sets this 33 enforce_mac80211_hwsim: { 34 cflags: ["-DENFORCE_MAC80211_HWSIM=true"], 35 conditions_default: { 36 cflags: [], 37 } 38 }, 39 } 40} 41 42cc_library_static { 43 name: "libcuttlefish_vm_manager", 44 srcs: [ 45 "crosvm_builder.cpp", 46 "crosvm_manager.cpp", 47 "gem5_manager.cpp", 48 "host_configuration.cpp", 49 "qemu_manager.cpp", 50 "vm_manager.cpp", 51 ], 52 header_libs: [ 53 "vulkan_headers", 54 ], 55 shared_libs: [ 56 "libcuttlefish_fs", 57 "libcuttlefish_utils", 58 "libbase", 59 "libfruit", 60 "libjsoncpp", 61 ], 62 static_libs: [ 63 "libcuttlefish_host_config", 64 ], 65 defaults: [ 66 "cuttlefish_host", 67 "cuttlefish_libicuuc", 68 "cvd_cc_defaults", 69 ], 70} 71