1soong_namespace {
2}
3
4package {
5    default_applicable_licenses: ["vendor_samsung_slsi_gnss_license"],
6}
7
8license {
9    name: "vendor_samsung_slsi_gnss_license",
10    visibility: [":__subpackages__"],
11    license_kinds: [
12        "legacy_by_exception_only", // by exception only
13        "legacy_proprietary", // by exception only
14    ],
15}
16
17cc_prebuilt_binary {
18    name: "android.hardware.gnss-service",
19    arch: {
20        arm64: {
21            srcs: ["release/android.hardware.gnss-service"],
22            shared_libs: [
23                "liblog",
24                "libutils",
25                "libhardware",
26                "libhidlbase",
27                "android.hardware.gnss-V3-ndk",
28                "libsensorndkbridge",
29                "libc++",
30                "libc",
31                "libm",
32                "libdl",
33            ],
34        },
35    },
36    compile_multilib: "64",
37    vendor: true,
38    relative_install_path: "hw",
39    strip: {
40        none: true,
41    },
42    // Bypass because libhidltransport is deprecated
43    // Bypass because libhwbinder is deprecated
44    check_elf_files: false,
45    product_variables: {
46        debuggable: {
47            required: [
48                "libsighandler",
49            ],
50        },
51    },
52
53    init_rc: ["init.gnss.rc"],
54    vintf_fragments: ["android.hardware.gnss@default.xml"],
55}
56
57cc_prebuilt_binary {
58    name: "gnssd",
59    arch: {
60        arm64: {
61            srcs: ["release/gnssd"],
62            shared_libs: [
63                "liblog",
64                "libutils",
65                "libhardware_legacy",
66                "libcutils",
67                "libssl",
68                "libcrypto",
69                // "libsitril-gps",
70                "android.frameworks.sensorservice@1.0",
71                "libhidlbase",
72                "libandroid_net",
73                "libc++",
74                "libc",
75                "libm",
76                "libdl",
77                "libcurl",
78            ],
79        },
80    },
81    compile_multilib: "64",
82    vendor: true,
83    relative_install_path: "hw",
84    strip: {
85        none: true,
86    },
87    // Bypass because libsitril-gps is Android.mk module
88    check_elf_files: false,
89    product_variables: {
90        debuggable: {
91            required: [
92                "libsighandler",
93            ],
94        },
95    },
96    required: [
97        "libcustomgnss",
98    ],
99}
100