| 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 |  | 
| Mark Salyzyn | ab88674 | 2014-05-01 07:27:02 -0700 | [diff] [blame] | 17 | LOCAL_CFLAGS := -Werror | 
|  | 18 |  | 
| Ian Rogers | 4660179 | 2014-06-05 11:42:26 -0700 | [diff] [blame] | 19 | LOCAL_MULTILIB := both | 
|  | 20 |  | 
| The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 21 | include $(BUILD_HOST_STATIC_LIBRARY) | 
|  | 22 |  | 
|  | 23 | # build device static library | 
|  | 24 | include $(CLEAR_VARS) | 
|  | 25 |  | 
|  | 26 | LOCAL_SRC_FILES:= \ | 
|  | 27 | centraldir.c \ | 
|  | 28 | zipfile.c | 
|  | 29 |  | 
|  | 30 | LOCAL_STATIC_LIBRARIES := \ | 
|  | 31 | libunz | 
|  | 32 |  | 
|  | 33 | LOCAL_MODULE:= libzipfile | 
|  | 34 |  | 
|  | 35 | LOCAL_C_INCLUDES += external/zlib | 
|  | 36 |  | 
| Mark Salyzyn | ab88674 | 2014-05-01 07:27:02 -0700 | [diff] [blame] | 37 | LOCAL_CFLAGS := -Werror | 
|  | 38 |  | 
| The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 39 | include $(BUILD_STATIC_LIBRARY) | 
|  | 40 |  | 
|  | 41 |  | 
|  | 42 | # build test_zipfile | 
|  | 43 | include $(CLEAR_VARS) | 
|  | 44 |  | 
|  | 45 | LOCAL_SRC_FILES:= \ | 
|  | 46 | test_zipfile.c | 
|  | 47 |  | 
|  | 48 | LOCAL_STATIC_LIBRARIES := libzipfile libunz | 
|  | 49 |  | 
|  | 50 | LOCAL_MODULE := test_zipfile | 
|  | 51 |  | 
|  | 52 | LOCAL_C_INCLUDES += external/zlib | 
|  | 53 |  | 
| Mark Salyzyn | ab88674 | 2014-05-01 07:27:02 -0700 | [diff] [blame] | 54 | LOCAL_CFLAGS := -Werror | 
|  | 55 |  | 
| The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 56 | include $(BUILD_HOST_EXECUTABLE) |