blob: b0612a82190d8ffd43422e9257b2b32f1d4e7ff3 [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",
Elliott Hughes7504fa92019-10-16 11:00:15 -07008 "-Wno-unused-parameter",
Elliott Hughesc2e01832018-07-20 13:55:44 -07009 "-O2",
Elliott Hughes055b2f32019-09-17 13:05:56 -070010 // We're actually implementing bionic here, so we don't want <math.h>
11 // to try to be helpful by renaming long double routines.
12 "-D__BIONIC_LP32_USE_LONG_DOUBLE",
Elliott Hughesc2e01832018-07-20 13:55:44 -070013 "-DWANT_ROUNDING=0",
14 "-DWANT_ERRNO=0",
Adhemerval Zanella9e6e8322018-07-26 11:43:46 -030015 "-DFLT_EVAL_METHOD=0",
16 "-ffp-contract=fast",
Elliott Hughesc2e01832018-07-20 13:55:44 -070017 ],
Elliott Hughes3f885362019-10-15 09:04:39 -070018 local_include_dirs: ["math/include"],
Elliott Hughesc2e01832018-07-20 13:55:44 -070019 srcs: [
Haibo Huangcd7d5362019-07-31 18:22:02 -070020 "math/*.c",
Elliott Hughesc2e01832018-07-20 13:55:44 -070021 ],
Adhemerval Zanella8e8d1b72018-08-06 13:22:58 -030022
23 // arch-specific settings
24 arch: {
25 arm64: {
26 cflags: [
27 "-DHAVE_FAST_FMA=1",
28 ],
29 },
30 },
31
Elliott Hughesc2e01832018-07-20 13:55:44 -070032 target: {
Christopher Ferris8785a762018-07-27 13:59:37 -070033 darwin: {
34 enabled: false,
35 },
Elliott Hughesc2e01832018-07-20 13:55:44 -070036 linux_bionic: {
37 enabled: true,
38 },
39 },
40 stl: "none",
Dan Willemsen35edf452018-12-03 13:56:24 -080041 static: {
42 system_shared_libs: [],
43 },
Elliott Hughesc2e01832018-07-20 13:55:44 -070044}
45
Elliott Hughese9c71052018-08-01 13:26:04 -070046// adb shell "/data/nativetest64/mathtest/mathtest /data/nativetest64/mathtest/test/testcases/directed/*"
47// adb shell "/data/nativetest/mathtest/mathtest /data/nativetest/mathtest/test/testcases/directed/*"
Elliott Hughesc2e01832018-07-20 13:55:44 -070048cc_test {
49 name: "mathtest",
50 gtest: false,
51 host_supported: true,
52 cflags: ["-Werror", "-Wno-missing-braces"],
Adhemerval Zanella0d6b7542018-07-26 15:17:39 -030053 srcs: [
Haibo Huangcd7d5362019-07-31 18:22:02 -070054 "math/test/mathtest.c"
Adhemerval Zanella0d6b7542018-07-26 15:17:39 -030055 ],
Haibo Huangcd7d5362019-07-31 18:22:02 -070056 data: ["math/test/testcases/directed/*.tst"],
Elliott Hughesc2e01832018-07-20 13:55:44 -070057 local_include_dirs: ["math/include"],
58 target: {
Elliott Hughese3966aa2018-07-26 08:46:15 -070059 darwin: {
60 enabled: false,
61 },
Elliott Hughesc2e01832018-07-20 13:55:44 -070062 linux_bionic: {
63 enabled: true,
64 },
65 },
66}