diff options
author | Elliott Hughes <enh@google.com> | 2018-07-20 13:55:44 -0700 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2018-07-25 15:07:42 -0700 |
commit | c2e01833f094dfc8e0fd71f964ecbda6c93ab5a9 (patch) | |
tree | 65f8daaea5c85db2ac70361127b3cd5afe07be32 | |
parent | d4b3f738e61b7eb7e7235a01a36cdab9a4b3caa1 (diff) | |
download | arm-optimized-routines-c2e01833f094dfc8e0fd71f964ecbda6c93ab5a9.tar.gz |
Build the library and the tests.
This currently fails 18/13938 tests on arm and arm64.
Bug: N/A
Test: ran tests
Change-Id: Iee9f7ad092c7e83faaf9b30e09e08c94a7b9b838
-rwxr-xr-x | Android.bp | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/Android.bp b/Android.bp new file mode 100755 index 0000000..9e13c82 --- /dev/null +++ b/Android.bp @@ -0,0 +1,37 @@ +cc_library { + name: "libarm-optimized-routines", + host_supported: true, + cflags: [ + "-Werror", + "-O2", + "-DWANT_ROUNDING=0", + "-DWANT_ERRNO=0", + ], + srcs: [ + "math/*.c", + ], + target: { + linux_bionic: { + enabled: true, + }, + }, + stl: "none", +} + +// adb shell "find /data/nativetest/mathtest/ -iname '*.tst' -print0 | xargs -0 cat | /data/nativetest/mathtest/mathtest" +// adb shell "find /data/nativetest64/mathtest/ -iname '*.tst' -print0 | xargs -0 cat | /data/nativetest64/mathtest/mathtest" +cc_test { + name: "mathtest", + gtest: false, + host_supported: true, + cflags: ["-Werror", "-Wno-missing-braces"], + srcs: ["test/mathtest.c"], + data: ["test/testcases/directed/*.tst"], + static_libs: ["libarm-optimized-routines"], + local_include_dirs: ["math/include"], + target: { + linux_bionic: { + enabled: true, + }, + }, +} |