The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 1 | LOCAL_PATH:= $(call my-dir) |
| 2 | |
| 3 | # build host static library |
| 4 | include $(CLEAR_VARS) |
| 5 | |
| 6 | LOCAL_SRC_FILES:= \ |
| 7 | centraldir.c \ |
| 8 | zipfile.c |
| 9 | |
Trevor Drake | d8fc39a | 2014-12-05 15:59:03 +0000 | [diff] [blame] | 10 | LOCAL_STATIC_LIBRARIES := libz |
The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 11 | |
| 12 | LOCAL_MODULE:= libzipfile |
| 13 | |
Mark Salyzyn | ab88674 | 2014-05-01 07:27:02 -0700 | [diff] [blame] | 14 | LOCAL_CFLAGS := -Werror |
| 15 | |
Ian Rogers | 4660179 | 2014-06-05 11:42:26 -0700 | [diff] [blame] | 16 | LOCAL_MULTILIB := both |
| 17 | |
The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 18 | include $(BUILD_HOST_STATIC_LIBRARY) |
| 19 | |
| 20 | # build device static library |
| 21 | include $(CLEAR_VARS) |
| 22 | |
| 23 | LOCAL_SRC_FILES:= \ |
| 24 | centraldir.c \ |
| 25 | zipfile.c |
| 26 | |
Trevor Drake | d8fc39a | 2014-12-05 15:59:03 +0000 | [diff] [blame] | 27 | LOCAL_STATIC_LIBRARIES := libz |
The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 28 | |
| 29 | LOCAL_MODULE:= libzipfile |
| 30 | |
Mark Salyzyn | ab88674 | 2014-05-01 07:27:02 -0700 | [diff] [blame] | 31 | LOCAL_CFLAGS := -Werror |
| 32 | |
The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 33 | include $(BUILD_STATIC_LIBRARY) |
| 34 | |
| 35 | |
| 36 | # build test_zipfile |
| 37 | include $(CLEAR_VARS) |
| 38 | |
| 39 | LOCAL_SRC_FILES:= \ |
| 40 | test_zipfile.c |
| 41 | |
Trevor Drake | d8fc39a | 2014-12-05 15:59:03 +0000 | [diff] [blame] | 42 | LOCAL_STATIC_LIBRARIES := libzipfile libz |
The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 43 | |
| 44 | LOCAL_MODULE := test_zipfile |
| 45 | |
Mark Salyzyn | ab88674 | 2014-05-01 07:27:02 -0700 | [diff] [blame] | 46 | LOCAL_CFLAGS := -Werror |
| 47 | |
The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 48 | include $(BUILD_HOST_EXECUTABLE) |