Android.mk 952 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. LOCAL_PATH := $(call my-dir)
  2. include $(CLEAR_VARS)
  3. LOCAL_CFLAGS := -W -Wall -Werror -D_POSIX_C_SOURCE=200112
  4. LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/../../
  5. # bionic /sys/types.h fails with -std=c++0x, as it doesn't include
  6. # stdint.h, but tries to use uint64_t.
  7. LOCAL_CPPFLAGS := -std=gnu++0x
  8. LOCAL_EXPORT_CPPFLAGS := -std=gnu++0x
  9. # libzipper throws exceptions
  10. LOCAL_CPPFLAGS += -fexceptions -frtti
  11. LOCAL_EXPORT_CPPFLAGS += -fexceptions -frtti
  12. LOCAL_CPP_EXTENSION := .cc
  13. LOCAL_LDLIBS := -lz
  14. LOCAL_EXPORT_LDLIBS := -lz
  15. LOCAL_MODULE := zipper
  16. LOCAL_MODULE_FILENAME := libzipper
  17. LOCAL_SRC_FILES :=\
  18. ../../CompressedFile.cc \
  19. ../../deflate.cc \
  20. ../../gzip.cc \
  21. ../../zip.cc \
  22. ../../Compressor.cc \
  23. ../../Exception.cc \
  24. ../../Reader.cc \
  25. ../../zipper.cc \
  26. ../../Container.cc \
  27. ../../FileReader.cc \
  28. ../../Decompressor.cc \
  29. ../../FileWriter.cc \
  30. ../../Writer.cc \
  31. ../../port/strerror_posix.cc \
  32. include $(BUILD_STATIC_LIBRARY)