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 | |
| 10 | LOCAL_STATIC_LIBRARIES := \ |
| 11 | libunz |
| 12 | |
| 13 | LOCAL_MODULE:= libzipfile |
| 14 | |
| 15 | LOCAL_C_INCLUDES += external/zlib |
| 16 | |
| 17 | include $(BUILD_HOST_STATIC_LIBRARY) |
| 18 | |
| 19 | # build device static library |
| 20 | include $(CLEAR_VARS) |
| 21 | |
| 22 | LOCAL_SRC_FILES:= \ |
| 23 | centraldir.c \ |
| 24 | zipfile.c |
| 25 | |
| 26 | LOCAL_STATIC_LIBRARIES := \ |
| 27 | libunz |
| 28 | |
| 29 | LOCAL_MODULE:= libzipfile |
| 30 | |
| 31 | LOCAL_C_INCLUDES += external/zlib |
| 32 | |
| 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 | |
| 42 | LOCAL_STATIC_LIBRARIES := libzipfile libunz |
| 43 | |
| 44 | LOCAL_MODULE := test_zipfile |
| 45 | |
| 46 | LOCAL_C_INCLUDES += external/zlib |
| 47 | |
| 48 | include $(BUILD_HOST_EXECUTABLE) |