Bob Badour | 59328a3 | 2021-02-03 22:29:21 -0800 | [diff] [blame] | 1 | package { |
| 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 |
| 24 | license { |
| 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 | |
Dan Willemsen | 6799144 | 2018-11-19 16:04:14 -0800 | [diff] [blame] | 38 | cc_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: { |
Elliott Hughes | 840a670 | 2020-04-09 16:02:44 -0700 | [diff] [blame] | 58 | arm: { cflags: ["-DSTRESSAPPTEST_CPU_ARMV7A"] }, |
| 59 | arm64: { cflags: ["-DSTRESSAPPTEST_CPU_AARCH64"] }, |
Dan Willemsen | 6799144 | 2018-11-19 16:04:14 -0800 | [diff] [blame] | 60 | x86: { |
| 61 | enabled: false, |
| 62 | }, |
| 63 | x86_64: { |
| 64 | enabled: false, |
| 65 | }, |
| 66 | }, |
| 67 | |
| 68 | cflags: [ |
| 69 | "-DHAVE_CONFIG_H", |
| 70 | "-DANDROID", |
| 71 | "-DNDEBUG", |
| 72 | "-UDEBUG", |
| 73 | "-DCHECKOPTS", |
| 74 | |
| 75 | "-Wall", |
| 76 | "-Werror", |
| 77 | "-Wno-unused-parameter", |
| 78 | "-Wno-#warnings", |
| 79 | "-Wno-implicit-fallthrough", |
| 80 | ], |
| 81 | } |