1// 2// Copyright (C) 2020 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 16cc_defaults { 17 name: "modem_simulator_base", 18 srcs: [ 19 "channel_monitor.cpp", 20 "thread_looper.cpp", 21 "command_parser.cpp", 22 "modem_simulator.cpp", 23 "modem_service.cpp", 24 "sim_service.cpp", 25 "network_service.cpp", 26 "misc_service.cpp", 27 "call_service.cpp", 28 "data_service.cpp", 29 "sms_service.cpp", 30 "sup_service.cpp", 31 "stk_service.cpp", 32 "pdu_parser.cpp", 33 "cf_device_config.cpp", 34 "nvram_config.cpp" 35 ], 36 shared_libs: [ 37 "libcuttlefish_fs", 38 "libcuttlefish_utils", 39 "libbase", 40 "libnl", 41 "libcuttlefish_device_config", 42 ], 43 static_libs: [ 44 "libcuttlefish_host_config", 45 "libgflags", 46 "libjsoncpp", 47 "libtinyxml2", 48 ], 49 cflags: ["-Werror", "-Wall", "-fexceptions"], 50 defaults: ["cuttlefish_host_only"], 51} 52 53cc_binary_host { 54 name: "modem_simulator", 55 srcs: [ 56 "main.cpp" 57 ], 58 defaults: ["modem_simulator_base"], 59} 60 61prebuilt_etc_host { 62 name: "iccprofile_for_sim0.xml", 63 src: "files/iccprofile_for_sim0.xml", 64 filename: "iccprofile_for_sim0.xml", 65 sub_dir: "modem_simulator/files", 66} 67 68prebuilt_etc_host { 69 name: "numeric_operator.xml", 70 src: "files/numeric_operator.xml", 71 filename: "numeric_operator.xml", 72 sub_dir: "modem_simulator/files", 73} 74 75cc_test { 76 name: "modem_simulator_test", 77 srcs: [ 78 "unittest/main_test.cpp", 79 "unittest/service_test.cpp", 80 "unittest/command_parser_test.cpp", 81 "unittest/pdu_parser_test.cpp", 82 ], 83 include_dirs: [ 84 "device/google/cuttlefish/host/commands", 85 ], 86 defaults: ["modem_simulator_base"], 87 test_suites: ["general-tests"], 88 host_supported: true, 89 whole_static_libs: [ 90 "libc++fs" 91 ], 92} 93