2 LOCAL_PATH := $(call my-dir)
5 CCFL_CORE := $(HOME)/peg_ccfl-core
9 LOGGER_OBJ := $(CCFL_CORE)/logger
12 ifeq ($(SOCKET_OBJ), )
13 SOCKET_OBJ := $(CCFL_CORE)/ocsocket
16 ifeq ($(ANDROID_OBJ), )
17 ANDROID_OBJ := $(CCFL_CORE)/android
24 TARGET_PLATFORM := android-16
25 LOCAL_MODULE := oclogger
26 LOCAL_SRC_FILES := $(ANDROID_OBJ)/OCLogger/obj/local/$(TARGET_ARCH_ABI)/libOCLogger.a
27 include $(PREBUILT_STATIC_LIBRARY)
29 # ==============================================================
31 # ==============================================================
34 TARGET_PLATFORM := android-16
36 LOCAL_CPPFLAGS += -D_GLIBCXX__PTHREADS
37 LOCAL_CPPFLAGS += -D_THREAD_SAFE
38 LOCAL_CPPFLAGS += -D_REENTRANT
39 LOCAL_CPPFLAGS += -std=gnu++11
41 LOCAL_CPPFLAGS += -DHAVE_SOCKET_ERRNO
43 ifneq ($(TARGET_ARCH), $(X86_ARCH))
44 LOCAL_CPPFLAGS += -D__arm__
49 LOCAL_MODULE := OCSocket
51 LOCAL_SRC_FILES := $(SOCKET_OBJ)/src/ocsocket.c
53 LOCAL_C_INCLUDES := $(SOCKET_OBJ)/include
54 LOCAL_C_INCLUDES += $(LOGGER_OBJ)/include
56 LOCAL_STATIC_LIBRARIES := oclogger
58 include $(BUILD_STATIC_LIBRARY)