blob: bb77bfb38f99b9e865e461c2182fbdbdf4b66324 [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: {
Christopher Ferris8785a762018-07-27 13:59:37 -070014 darwin: {
15 enabled: false,
16 },
Elliott Hughesc2e01832018-07-20 13:55:44 -070017 linux_bionic: {
18 enabled: true,
19 },
20 },
21 stl: "none",
22}
23
24// adb shell "find /data/nativetest/mathtest/ -iname '*.tst' -print0 | xargs -0 cat | /data/nativetest/mathtest/mathtest"
25// adb shell "find /data/nativetest64/mathtest/ -iname '*.tst' -print0 | xargs -0 cat | /data/nativetest64/mathtest/mathtest"
26cc_test {
27 name: "mathtest",
28 gtest: false,
29 host_supported: true,
30 cflags: ["-Werror", "-Wno-missing-braces"],
31 srcs: ["test/mathtest.c"],
32 data: ["test/testcases/directed/*.tst"],
33 static_libs: ["libarm-optimized-routines"],
34 local_include_dirs: ["math/include"],
35 target: {
Elliott Hughese3966aa2018-07-26 08:46:15 -070036 darwin: {
37 enabled: false,
38 },
Elliott Hughesc2e01832018-07-20 13:55:44 -070039 linux_bionic: {
40 enabled: true,
41 },
42 },
43}