xref: /aosp_15_r20/external/ims/rcs/rcsservice/Android.bp (revision 060f4407e8083d867a85d4a869747d9905816290)
1*060f4407SAndroid Build Coastguard Worker// Copyright (c) 2015, Motorola Mobility LLC
2*060f4407SAndroid Build Coastguard Worker// All rights reserved.
3*060f4407SAndroid Build Coastguard Worker//
4*060f4407SAndroid Build Coastguard Worker// Redistribution and use in source and binary forms, with or without
5*060f4407SAndroid Build Coastguard Worker// modification, are permitted provided that the following conditions are met:
6*060f4407SAndroid Build Coastguard Worker//     - Redistributions of source code must retain the above copyright
7*060f4407SAndroid Build Coastguard Worker//       notice, this list of conditions and the following disclaimer.
8*060f4407SAndroid Build Coastguard Worker//     - Redistributions in binary form must reproduce the above copyright
9*060f4407SAndroid Build Coastguard Worker//       notice, this list of conditions and the following disclaimer in the
10*060f4407SAndroid Build Coastguard Worker//       documentation and/or other materials provided with the distribution.
11*060f4407SAndroid Build Coastguard Worker//     - Neither the name of Motorola Mobility nor the
12*060f4407SAndroid Build Coastguard Worker//       names of its contributors may be used to endorse or promote products
13*060f4407SAndroid Build Coastguard Worker//       derived from this software without specific prior written permission.
14*060f4407SAndroid Build Coastguard Worker//
15*060f4407SAndroid Build Coastguard Worker// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
16*060f4407SAndroid Build Coastguard Worker// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
17*060f4407SAndroid Build Coastguard Worker// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
18*060f4407SAndroid Build Coastguard Worker// PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL MOTOROLA MOBILITY LLC BE LIABLE
19*060f4407SAndroid Build Coastguard Worker// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
20*060f4407SAndroid Build Coastguard Worker// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
21*060f4407SAndroid Build Coastguard Worker// OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22*060f4407SAndroid Build Coastguard Worker// HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23*060f4407SAndroid Build Coastguard Worker// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24*060f4407SAndroid Build Coastguard Worker// OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
25*060f4407SAndroid Build Coastguard Worker// DAMAGE.
26*060f4407SAndroid Build Coastguard Worker
27*060f4407SAndroid Build Coastguard Worker//#########################################################################
28*060f4407SAndroid Build Coastguard Worker// Build the application : Presence.apk
29*060f4407SAndroid Build Coastguard Worker//#########################################################################
30*060f4407SAndroid Build Coastguard Worker
31*060f4407SAndroid Build Coastguard Workerpackage {
32*060f4407SAndroid Build Coastguard Worker    default_applicable_licenses: ["external_ims_rcs_rcsservice_license"],
33*060f4407SAndroid Build Coastguard Worker}
34*060f4407SAndroid Build Coastguard Worker
35*060f4407SAndroid Build Coastguard Worker// Added automatically by a large-scale-change
36*060f4407SAndroid Build Coastguard Worker// See: http://go/android-license-faq
37*060f4407SAndroid Build Coastguard Workerlicense {
38*060f4407SAndroid Build Coastguard Worker    name: "external_ims_rcs_rcsservice_license",
39*060f4407SAndroid Build Coastguard Worker    visibility: [":__subpackages__"],
40*060f4407SAndroid Build Coastguard Worker    license_kinds: [
41*060f4407SAndroid Build Coastguard Worker        "SPDX-license-identifier-BSD",
42*060f4407SAndroid Build Coastguard Worker    ],
43*060f4407SAndroid Build Coastguard Worker    license_text: [
44*060f4407SAndroid Build Coastguard Worker        "LICENSE",
45*060f4407SAndroid Build Coastguard Worker    ],
46*060f4407SAndroid Build Coastguard Worker}
47*060f4407SAndroid Build Coastguard Worker
48*060f4407SAndroid Build Coastguard Workerjava_library {
49*060f4407SAndroid Build Coastguard Worker    name: "ucepresencelib",
50*060f4407SAndroid Build Coastguard Worker    // We only want this to be used as a static import.
51*060f4407SAndroid Build Coastguard Worker    installable: false,
52*060f4407SAndroid Build Coastguard Worker    srcs: [
53*060f4407SAndroid Build Coastguard Worker        "src/com/android/service/ims/presence/*.java",
54*060f4407SAndroid Build Coastguard Worker        "src/com/android/service/ims/RcsSettingUtils.java",
55*060f4407SAndroid Build Coastguard Worker        "src/com/android/service/ims/Task.java",
56*060f4407SAndroid Build Coastguard Worker        "src/com/android/service/ims/TaskManager.java",
57*060f4407SAndroid Build Coastguard Worker        ":rcsmanager-utils"
58*060f4407SAndroid Build Coastguard Worker    ]
59*060f4407SAndroid Build Coastguard Worker}
60*060f4407SAndroid Build Coastguard Worker
61*060f4407SAndroid Build Coastguard Workerandroid_app {
62*060f4407SAndroid Build Coastguard Worker    // This is the target being built. (Name of APK)
63*060f4407SAndroid Build Coastguard Worker    name: "RcsService",
64*060f4407SAndroid Build Coastguard Worker    // Only compile source java files in this apk.
65*060f4407SAndroid Build Coastguard Worker    srcs: [
66*060f4407SAndroid Build Coastguard Worker        "src/com/android/service/ims/AlarmBroadcastReceiver.java",
67*060f4407SAndroid Build Coastguard Worker        "src/com/android/service/ims/DeviceShutdown.java",
68*060f4407SAndroid Build Coastguard Worker        "src/com/android/service/ims/LauncherUtils.java",
69*060f4407SAndroid Build Coastguard Worker        "src/com/android/service/ims/PresenceInfoParser.java",
70*060f4407SAndroid Build Coastguard Worker        "src/com/android/service/ims/RcsService.java",
71*060f4407SAndroid Build Coastguard Worker        "src/com/android/service/ims/RcsServiceApp.java",
72*060f4407SAndroid Build Coastguard Worker        "src/com/android/service/ims/RcsStackAdaptor.java",
73*060f4407SAndroid Build Coastguard Worker        "src/com/android/service/ims/RcsUtils.java",
74*060f4407SAndroid Build Coastguard Worker        "src/com/android/service/ims/StackListener.java"
75*060f4407SAndroid Build Coastguard Worker    ],
76*060f4407SAndroid Build Coastguard Worker    static_libs: [
77*060f4407SAndroid Build Coastguard Worker        "ucepresencelib",
78*060f4407SAndroid Build Coastguard Worker        "com.android.ims.rcsmanager"
79*060f4407SAndroid Build Coastguard Worker    ],
80*060f4407SAndroid Build Coastguard Worker    certificate: "platform",
81*060f4407SAndroid Build Coastguard Worker    system_ext_specific: true,
82*060f4407SAndroid Build Coastguard Worker    platform_apis: true,
83*060f4407SAndroid Build Coastguard Worker}
84