blob: 82c16a43a7d00d5a55c6161318faa3881a45666d [file] [log] [blame]
Elliott Hughesc2e01832018-07-20 13:55:44 -07001cc_library {
2 name: "libarm-optimized-routines",
3 host_supported: true,
4 cflags: [
5 "-Werror",
6 "-O2",
7 "-DWANT_ROUNDING=0",
8 "-DWANT_ERRNO=0",
9 ],
10 srcs: [
11 "math/*.c",
12 ],
13 target: {
14 linux_bionic: {
15 enabled: true,
16 },
17 },
18 stl: "none",
19}
20
21// adb shell "find /data/nativetest/mathtest/ -iname '*.tst' -print0 | xargs -0 cat | /data/nativetest/mathtest/mathtest"
22// adb shell "find /data/nativetest64/mathtest/ -iname '*.tst' -print0 | xargs -0 cat | /data/nativetest64/mathtest/mathtest"
23cc_test {
24 name: "mathtest",
25 gtest: false,
26 host_supported: true,
27 cflags: ["-Werror", "-Wno-missing-braces"],
28 srcs: ["test/mathtest.c"],
29 data: ["test/testcases/directed/*.tst"],
30 static_libs: ["libarm-optimized-routines"],
31 local_include_dirs: ["math/include"],
32 target: {
Elliott Hughese3966aa2018-07-26 08:46:15 -070033 darwin: {
34 enabled: false,
35 },
Elliott Hughesc2e01832018-07-20 13:55:44 -070036 linux_bionic: {
37 enabled: true,
38 },
39 },
40}