blob: 3f3f563207032d12ad50fdaad2379b28aeeee271 [file] [log] [blame]
Elliott Hughesc2e01832018-07-20 13:55:44 -07001cc_library {
2 name: "libarm-optimized-routines",
3 host_supported: true,
Adhemerval Zanellad9635cd2018-07-27 14:03:55 -03004 recovery_available: true,
dimitry70ee0b12019-05-06 12:09:20 +02005 native_bridge_supported: true,
Elliott Hughesc2e01832018-07-20 13:55:44 -07006 cflags: [
7 "-Werror",
8 "-O2",
9 "-DWANT_ROUNDING=0",
10 "-DWANT_ERRNO=0",
Adhemerval Zanella9e6e8322018-07-26 11:43:46 -030011 "-DFLT_EVAL_METHOD=0",
12 "-ffp-contract=fast",
Elliott Hughesc2e01832018-07-20 13:55:44 -070013 ],
14 srcs: [
Haibo Huangcd7d5362019-07-31 18:22:02 -070015 "math/*.c",
Elliott Hughesc2e01832018-07-20 13:55:44 -070016 ],
Adhemerval Zanella8e8d1b72018-08-06 13:22:58 -030017
18 // arch-specific settings
19 arch: {
20 arm64: {
21 cflags: [
22 "-DHAVE_FAST_FMA=1",
23 ],
24 },
25 },
26
Elliott Hughesc2e01832018-07-20 13:55:44 -070027 target: {
Christopher Ferris8785a762018-07-27 13:59:37 -070028 darwin: {
29 enabled: false,
30 },
Elliott Hughesc2e01832018-07-20 13:55:44 -070031 linux_bionic: {
32 enabled: true,
33 },
34 },
35 stl: "none",
Dan Willemsen35edf452018-12-03 13:56:24 -080036 static: {
37 system_shared_libs: [],
38 },
Elliott Hughesc2e01832018-07-20 13:55:44 -070039}
40
Elliott Hughese9c71052018-08-01 13:26:04 -070041// adb shell "/data/nativetest64/mathtest/mathtest /data/nativetest64/mathtest/test/testcases/directed/*"
42// adb shell "/data/nativetest/mathtest/mathtest /data/nativetest/mathtest/test/testcases/directed/*"
Elliott Hughesc2e01832018-07-20 13:55:44 -070043cc_test {
44 name: "mathtest",
45 gtest: false,
46 host_supported: true,
47 cflags: ["-Werror", "-Wno-missing-braces"],
Adhemerval Zanella0d6b7542018-07-26 15:17:39 -030048 srcs: [
Haibo Huangcd7d5362019-07-31 18:22:02 -070049 "math/test/mathtest.c"
Adhemerval Zanella0d6b7542018-07-26 15:17:39 -030050 ],
Haibo Huangcd7d5362019-07-31 18:22:02 -070051 data: ["math/test/testcases/directed/*.tst"],
Elliott Hughesc2e01832018-07-20 13:55:44 -070052 local_include_dirs: ["math/include"],
53 target: {
Elliott Hughese3966aa2018-07-26 08:46:15 -070054 darwin: {
55 enabled: false,
56 },
Elliott Hughesc2e01832018-07-20 13:55:44 -070057 linux_bionic: {
58 enabled: true,
59 },
60 },
61}