aboutsummaryrefslogtreecommitdiff
path: root/Android.bp
diff options
context:
space:
mode:
Diffstat (limited to 'Android.bp')
-rw-r--r--Android.bp42
1 files changed, 34 insertions, 8 deletions
diff --git a/Android.bp b/Android.bp
index c6c284ad6..8daf08d37 100644
--- a/Android.bp
+++ b/Android.bp
@@ -3,11 +3,23 @@
cc_defaults {
name: "libpng-defaults",
- exclude_srcs: [
- "example.c",
- "pngtest.c",
+ srcs: [
+ "png.c",
+ "pngerror.c",
+ "pngget.c",
+ "pngmem.c",
+ "pngpread.c",
+ "pngread.c",
+ "pngrio.c",
+ "pngrtran.c",
+ "pngrutil.c",
+ "pngset.c",
+ "pngtrans.c",
+ "pngwio.c",
+ "pngwrite.c",
+ "pngwtran.c",
+ "pngwutil.c",
],
- srcs: ["*.c"],
cflags: [
"-std=gnu89",
"-Wall",
@@ -16,18 +28,32 @@ cc_defaults {
],
arch: {
arm: {
- srcs: ["arm/*"],
+ srcs: [
+ "arm/arm_init.c",
+ "arm/filter_neon.S",
+ "arm/filter_neon_intrinsics.c",
+ ],
},
arm64: {
- srcs: ["arm/*",],
+ srcs: [
+ "arm/arm_init.c",
+ "arm/filter_neon.S",
+ "arm/filter_neon_intrinsics.c",
+ ],
},
x86: {
- srcs: ["intel/*"],
+ srcs: [
+ "intel/intel_init.c",
+ "intel/filter_sse2_intrinsics.c",
+ ],
// Disable optimizations because they crash on windows
// cflags: ["-DPNG_INTEL_SSE_OPT=1"],
},
x86_64: {
- srcs: ["intel/*"],
+ srcs: [
+ "intel/intel_init.c",
+ "intel/filter_sse2_intrinsics.c",
+ ],
// Disable optimizations because they crash on windows
// cflags: ["-DPNG_INTEL_SSE_OPT=1"],
},