xref: /aosp_15_r20/external/stressapptest/Android.bp (revision 424fb153c814cbcb3e8904974796228774b3229a)
1package {
2    default_applicable_licenses: ["external_stressapptest_license"],
3}
4
5// Added automatically by a large-scale-change that took the approach of
6// 'apply every license found to every target'. While this makes sure we respect
7// every license restriction, it may not be entirely correct.
8//
9// e.g. GPL in an MIT project might only apply to the contrib/ directory.
10//
11// Please consider splitting the single license below into multiple licenses,
12// taking care not to lose any license_kind information, and overriding the
13// default license using the 'licenses: [...]' property on targets as needed.
14//
15// For unused files, consider creating a 'filegroup' with "//visibility:private"
16// to attach the license to, and including a comment whether the files may be
17// used in the current project.
18//
19// large-scale-change included anything that looked like it might be a license
20// text as a license_text. e.g. LICENSE, NOTICE, COPYING etc.
21//
22// Please consider removing redundant or irrelevant files from 'license_text:'.
23// http://go/android-license-faq
24license {
25    name: "external_stressapptest_license",
26    visibility: [":__subpackages__"],
27    license_kinds: [
28        "SPDX-license-identifier-Apache-2.0",
29        "SPDX-license-identifier-MIT",
30        "legacy_notice",
31    ],
32    license_text: [
33        "COPYING",
34        "NOTICE",
35    ],
36}
37
38cc_binary {
39    name: "stressapptest",
40
41    srcs: [
42        "src/main.cc",
43        "src/adler32memcpy.cc",
44        "src/disk_blocks.cc",
45        "src/error_diag.cc",
46        "src/finelock_queue.cc",
47        "src/logger.cc",
48        "src/os.cc",
49        "src/os_factory.cc",
50        "src/pattern.cc",
51        "src/queue.cc",
52        "src/sat.cc",
53        "src/sat_factory.cc",
54        "src/worker.cc",
55    ],
56
57    arch: {
58        arm: {
59            cflags: ["-DSTRESSAPPTEST_CPU_ARMV7A"],
60        },
61        arm64: {
62            cflags: ["-DSTRESSAPPTEST_CPU_AARCH64"],
63        },
64        x86: {
65            enabled: false,
66        },
67        x86_64: {
68            cflags: ["-DSTRESSAPPTEST_CPU_X86_64"],
69        },
70    },
71
72    cflags: [
73        "-DHAVE_CONFIG_H",
74        "-DANDROID",
75        "-DNDEBUG",
76        "-UDEBUG",
77        "-DCHECKOPTS",
78
79        "-Wall",
80        "-Werror",
81        "-Wno-unused-parameter",
82        "-Wno-#warnings",
83        "-Wno-implicit-fallthrough",
84    ],
85}
86