Chung-yih Wang | eec1182 | 2009-07-02 00:22:04 +0800 | [diff] [blame^] | 1 | LOCAL_PATH:= $(call my-dir) |
| 2 | include $(CLEAR_VARS) |
| 3 | |
| 4 | LOCAL_SRC_FILES:= \ |
| 5 | cert.c certtool.c |
| 6 | |
| 7 | LOCAL_C_INCLUDES += \ |
| 8 | $(JNI_H_INCLUDE) \ |
| 9 | external/openssl/include |
| 10 | |
| 11 | LOCAL_SHARED_LIBRARIES := \ |
| 12 | libcutils \ |
| 13 | libnativehelper \ |
| 14 | libutils \ |
| 15 | libcrypto |
| 16 | |
| 17 | ifeq ($(TARGET_SIMULATOR),true) |
| 18 | ifeq ($(TARGET_OS),linux) |
| 19 | ifeq ($(TARGET_ARCH),x86) |
| 20 | LOCAL_LDLIBS += -lpthread -ldl -lrt -lssl |
| 21 | endif |
| 22 | endif |
| 23 | endif |
| 24 | |
| 25 | ifeq ($(WITH_MALLOC_LEAK_CHECK),true) |
| 26 | LOCAL_CFLAGS += -DMALLOC_LEAK_CHECK |
| 27 | endif |
| 28 | |
| 29 | LOCAL_MODULE:= libcerttool_jni |
| 30 | |
| 31 | include $(BUILD_SHARED_LIBRARY) |