• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// Copyright (C) 2018 The Android Open Source Project
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7// http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15package {
16    default_applicable_licenses: ["Android-Apache-2.0"],
17}
18
19cc_test_library {
20    name: "libgamecore_java_tests_jni",
21    sdk_version: "26", // Oreo
22    sdk_variant_only: true,
23    srcs: ["src/cpp/surface_flinger_test_activity.cpp", "src/cpp/native_choreo_activity.cpp",],
24    stl: "c++_shared",
25    header_libs: ["jni_headers"],
26    shared_libs: [
27        "liblog",
28        "libandroid",
29        "libEGL",
30        "libGLESv2",
31        "libgamecore_sample",
32    ],
33    gtest: false,
34}
35
36android_test {
37    name: "GameCoreJavaTestCases",
38    sdk_version: "30",
39    static_libs: [
40        "androidx.test.rules",
41        "truth-prebuilt",
42        "GameCoreHelper",
43    ],
44    jni_libs: [
45        "libgamecore_sample",
46        "libgamecore_java_tests_jni",
47        "libagq",
48    ],
49    test_suites: ["device-tests"],
50    srcs: ["src/**/*.java"],
51    stl: "c++_shared",
52}