1//
2// Copyright (C) 2022 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
20cc_defaults {
21    name: "cvd_send_sms_defaults",
22    shared_libs: [
23        "libbase",
24        "libcuttlefish_fs",
25        "liblog",
26        "libicuuc",
27    ],
28    defaults: ["cuttlefish_buildhost_only"],
29}
30
31cc_library {
32    name: "libcvd_send_sms",
33    srcs: [
34        "sms_sender.cc",
35        "pdu_format_builder.cc"
36    ],
37    defaults: ["cvd_send_sms_defaults"],
38}
39
40cc_binary {
41    name: "cvd_send_sms",
42    srcs: [
43        "main.cc"
44    ],
45    static_libs: [
46        "libcvd_send_sms",
47        "libgflags",
48    ],
49    defaults: ["cvd_send_sms_defaults"],
50}
51
52cc_test_host {
53    name: "cvd_send_sms_test",
54    srcs: [
55        "unittest/main_test.cc",
56        "unittest/sms_sender_test.cc",
57        "unittest/pdu_format_builder_test.cc",
58    ],
59    static_libs: [
60        "libgmock",
61        "libcvd_send_sms",
62    ],
63    defaults: ["cvd_send_sms_defaults"],
64}
65