Elliott Hughes | c2e0183 | 2018-07-20 13:55:44 -0700 | [diff] [blame] | 1 | cc_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 Ferris | 8785a76 | 2018-07-27 13:59:37 -0700 | [diff] [blame^] | 14 | darwin: { |
| 15 | enabled: false, |
| 16 | }, |
Elliott Hughes | c2e0183 | 2018-07-20 13:55:44 -0700 | [diff] [blame] | 17 | 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" |
| 26 | cc_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 Hughes | e3966aa | 2018-07-26 08:46:15 -0700 | [diff] [blame] | 36 | darwin: { |
| 37 | enabled: false, |
| 38 | }, |
Elliott Hughes | c2e0183 | 2018-07-20 13:55:44 -0700 | [diff] [blame] | 39 | linux_bionic: { |
| 40 | enabled: true, |
| 41 | }, |
| 42 | }, |
| 43 | } |