xref: /aosp_15_r20/system/extras/tests/timetest/Android.bp (revision 288bf5226967eb3dac5cce6c939ccc2a7f2b4fe5)
1*288bf522SAndroid Build Coastguard Worker// Copyright 2006 The Android Open Source Project
2*288bf522SAndroid Build Coastguard Worker
3*288bf522SAndroid Build Coastguard Workerpackage {
4*288bf522SAndroid Build Coastguard Worker    default_team: "trendy_team_build_infra",
5*288bf522SAndroid Build Coastguard Worker    // See: http://go/android-license-faq
6*288bf522SAndroid Build Coastguard Worker    // A large-scale-change added 'default_applicable_licenses' to import
7*288bf522SAndroid Build Coastguard Worker    // all of the 'license_kinds' from "system_extras_tests_license"
8*288bf522SAndroid Build Coastguard Worker    // to get the below license kinds:
9*288bf522SAndroid Build Coastguard Worker    //   SPDX-license-identifier-Apache-2.0
10*288bf522SAndroid Build Coastguard Worker    default_applicable_licenses: ["system_extras_tests_license"],
11*288bf522SAndroid Build Coastguard Worker}
12*288bf522SAndroid Build Coastguard Worker
13*288bf522SAndroid Build Coastguard Workercc_test {
14*288bf522SAndroid Build Coastguard Worker    name: "time-unit-tests",
15*288bf522SAndroid Build Coastguard Worker    cflags: [
16*288bf522SAndroid Build Coastguard Worker        "-fstack-protector-all",
17*288bf522SAndroid Build Coastguard Worker        "-g",
18*288bf522SAndroid Build Coastguard Worker        "-Wextra",
19*288bf522SAndroid Build Coastguard Worker        "-fno-builtin",
20*288bf522SAndroid Build Coastguard Worker    ],
21*288bf522SAndroid Build Coastguard Worker    srcs: [
22*288bf522SAndroid Build Coastguard Worker        "rtc_test.cpp",
23*288bf522SAndroid Build Coastguard Worker    ],
24*288bf522SAndroid Build Coastguard Worker    shared_libs: [
25*288bf522SAndroid Build Coastguard Worker        "libbase",
26*288bf522SAndroid Build Coastguard Worker    ],
27*288bf522SAndroid Build Coastguard Worker}
28*288bf522SAndroid Build Coastguard Worker
29*288bf522SAndroid Build Coastguard Workercc_test {
30*288bf522SAndroid Build Coastguard Worker    name: "timetest",
31*288bf522SAndroid Build Coastguard Worker    srcs: ["timetest.c"],
32*288bf522SAndroid Build Coastguard Worker    cflags: [
33*288bf522SAndroid Build Coastguard Worker        "-Wall",
34*288bf522SAndroid Build Coastguard Worker        "-Werror",
35*288bf522SAndroid Build Coastguard Worker    ],
36*288bf522SAndroid Build Coastguard Worker    static_executable: true,
37*288bf522SAndroid Build Coastguard Worker    static_libs: ["libc"],
38*288bf522SAndroid Build Coastguard Worker}
39