xref: /aosp_15_r20/external/libultrahdr/tests/Android.bp (revision 89a0ef05262152531a00a15832a2d3b1e3990773)
1*89a0ef05SAndroid Build Coastguard Worker// Copyright 2022 The Android Open Source Project
2*89a0ef05SAndroid Build Coastguard Worker//
3*89a0ef05SAndroid Build Coastguard Worker// Licensed under the Apache License, Version 2.0 (the "License");
4*89a0ef05SAndroid Build Coastguard Worker// you may not use this file except in compliance with the License.
5*89a0ef05SAndroid Build Coastguard Worker// You may obtain a copy of the License at
6*89a0ef05SAndroid Build Coastguard Worker//
7*89a0ef05SAndroid Build Coastguard Worker//      http://www.apache.org/licenses/LICENSE-2.0
8*89a0ef05SAndroid Build Coastguard Worker//
9*89a0ef05SAndroid Build Coastguard Worker// Unless required by applicable law or agreed to in writing, software
10*89a0ef05SAndroid Build Coastguard Worker// distributed under the License is distributed on an "AS IS" BASIS,
11*89a0ef05SAndroid Build Coastguard Worker// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12*89a0ef05SAndroid Build Coastguard Worker// See the License for the specific language governing permissions and
13*89a0ef05SAndroid Build Coastguard Worker// limitations under the License.
14*89a0ef05SAndroid Build Coastguard Worker
15*89a0ef05SAndroid Build Coastguard Workerpackage {
16*89a0ef05SAndroid Build Coastguard Worker    // See: http://go/android-license-faq
17*89a0ef05SAndroid Build Coastguard Worker    // A large-scale-change added 'default_applicable_licenses' to import
18*89a0ef05SAndroid Build Coastguard Worker    // all of the 'license_kinds' from "external_libultrahdr_license"
19*89a0ef05SAndroid Build Coastguard Worker    // to get the below license kinds:
20*89a0ef05SAndroid Build Coastguard Worker    //   SPDX-license-identifier-Apache-2.0
21*89a0ef05SAndroid Build Coastguard Worker    default_applicable_licenses: ["external_libultrahdr_license"],
22*89a0ef05SAndroid Build Coastguard Worker}
23*89a0ef05SAndroid Build Coastguard Worker
24*89a0ef05SAndroid Build Coastguard Workercc_test {
25*89a0ef05SAndroid Build Coastguard Worker    name: "ultrahdr_unit_test",
26*89a0ef05SAndroid Build Coastguard Worker    test_suites: ["device-tests"],
27*89a0ef05SAndroid Build Coastguard Worker    srcs: [
28*89a0ef05SAndroid Build Coastguard Worker        "editorhelper_test.cpp",
29*89a0ef05SAndroid Build Coastguard Worker        "gainmapmath_test.cpp",
30*89a0ef05SAndroid Build Coastguard Worker        "icchelper_test.cpp",
31*89a0ef05SAndroid Build Coastguard Worker        "jpegr_test.cpp",
32*89a0ef05SAndroid Build Coastguard Worker        "jpegencoderhelper_test.cpp",
33*89a0ef05SAndroid Build Coastguard Worker        "jpegdecoderhelper_test.cpp",
34*89a0ef05SAndroid Build Coastguard Worker    ],
35*89a0ef05SAndroid Build Coastguard Worker    shared_libs: [
36*89a0ef05SAndroid Build Coastguard Worker        "libimage_io",
37*89a0ef05SAndroid Build Coastguard Worker        "libjpeg",
38*89a0ef05SAndroid Build Coastguard Worker        "liblog",
39*89a0ef05SAndroid Build Coastguard Worker    ],
40*89a0ef05SAndroid Build Coastguard Worker    static_libs: [
41*89a0ef05SAndroid Build Coastguard Worker        "libgmock",
42*89a0ef05SAndroid Build Coastguard Worker        "libgtest",
43*89a0ef05SAndroid Build Coastguard Worker        "libjpegdecoder",
44*89a0ef05SAndroid Build Coastguard Worker        "libjpegencoder",
45*89a0ef05SAndroid Build Coastguard Worker        "libultrahdr",
46*89a0ef05SAndroid Build Coastguard Worker    ],
47*89a0ef05SAndroid Build Coastguard Worker    target: {
48*89a0ef05SAndroid Build Coastguard Worker        android: {
49*89a0ef05SAndroid Build Coastguard Worker            cflags: ["-DUHDR_ENABLE_GLES"],
50*89a0ef05SAndroid Build Coastguard Worker            shared_libs: [
51*89a0ef05SAndroid Build Coastguard Worker                "libEGL",
52*89a0ef05SAndroid Build Coastguard Worker                "libGLESv3",
53*89a0ef05SAndroid Build Coastguard Worker            ],
54*89a0ef05SAndroid Build Coastguard Worker        },
55*89a0ef05SAndroid Build Coastguard Worker    },
56*89a0ef05SAndroid Build Coastguard Worker    data: [
57*89a0ef05SAndroid Build Coastguard Worker        "./data/*.*",
58*89a0ef05SAndroid Build Coastguard Worker    ],
59*89a0ef05SAndroid Build Coastguard Worker}
60