LOCAL_PATH := $(call my-dir) #====================================== include $(CLEAR_VARS) LOCAL_MODULE := cocos_zlib_static LOCAL_MODULE_FILENAME := zlib LOCAL_SRC_FILES := $(TARGET_ARCH_ABI)/libz.a include $(PREBUILT_STATIC_LIBRARY) #====================================== include $(CLEAR_VARS) LOCAL_MODULE := cocos_jpeg_static LOCAL_MODULE_FILENAME := jpeg LOCAL_SRC_FILES := $(TARGET_ARCH_ABI)/libjpeg.a include $(PREBUILT_STATIC_LIBRARY) #====================================== include $(CLEAR_VARS) LOCAL_MODULE := cocos_png_static LOCAL_MODULE_FILENAME := png LOCAL_SRC_FILES := $(TARGET_ARCH_ABI)/libpng.a include $(PREBUILT_STATIC_LIBRARY) #====================================== include $(CLEAR_VARS) ifeq ($(USE_TIFF),1) LOCAL_MODULE := cocos_tiff_static LOCAL_MODULE_FILENAME := tiff LOCAL_SRC_FILES := $(TARGET_ARCH_ABI)/libtiff.a include $(PREBUILT_STATIC_LIBRARY) endif #====================================== include $(CLEAR_VARS) LOCAL_MODULE := cocos_webp_static LOCAL_MODULE_FILENAME := webp LOCAL_SRC_FILES := $(TARGET_ARCH_ABI)/libwebp.a LOCAL_WHOLE_STATIC_LIBRARIES := cpufeatures ifeq ($(TARGET_ARCH_ABI),armeabi-v7a) LOCAL_CFLAGS := -DHAVE_NEON=1 endif include $(PREBUILT_STATIC_LIBRARY) include $(CLEAR_VARS) LOCAL_MODULE := cocos_crypto_static LOCAL_MODULE_FILENAME := crypto LOCAL_SRC_FILES := $(TARGET_ARCH_ABI)/libcrypto.a LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/$(TARGET_ARCH_ABI)/include include $(PREBUILT_STATIC_LIBRARY) include $(CLEAR_VARS) LOCAL_MODULE := cocos_ssl_static LOCAL_MODULE_FILENAME := ssl LOCAL_SRC_FILES := $(TARGET_ARCH_ABI)/libssl.a LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/$(TARGET_ARCH_ABI)/include include $(PREBUILT_STATIC_LIBRARY) #====================================== include $(CLEAR_VARS) LOCAL_MODULE := websockets_static LOCAL_MODULE_FILENAME := libwebsockets_static LOCAL_SRC_FILES := $(TARGET_ARCH_ABI)/libwebsockets.a LOCAL_CPPFLAGS := -D__STDC_LIMIT_MACROS=1 LOCAL_EXPORT_CPPFLAGS := -D__STDC_LIMIT_MACROS=1 include $(PREBUILT_STATIC_LIBRARY) #====================================== include $(CLEAR_VARS) LOCAL_MODULE := v8_inspector LOCAL_SRC_FILES := $(TARGET_ARCH_ABI)/v8/libinspector.a include $(PREBUILT_STATIC_LIBRARY) #====================================== include $(CLEAR_VARS) LOCAL_MODULE := v8_static LOCAL_SRC_FILES := $(TARGET_ARCH_ABI)/v8/libv8_monolith.a LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/$(TARGET_ARCH_ABI)/include/v8 ifeq ($(TARGET_ARCH),arm64) LOCAL_EXPORT_CPPFLAGS := -DV8_COMPRESS_POINTERS LOCAL_EXPORT_CFLAGS := -DV8_COMPRESS_POINTERS endif ifeq ($(TARGET_ARCH),x86_64) LOCAL_EXPORT_CPPFLAGS := \ -DV8_COMPRESS_POINTERS \ -DV8_TARGET_ARCH_X64 \ -DV8_HAVE_TARGET_OS \ -DV8_TARGET_OS_ANDROID LOCAL_EXPORT_CFLAGS := \ -DV8_COMPRESS_POINTERS \ -DV8_TARGET_ARCH_X64 \ -DV8_HAVE_TARGET_OS \ -DV8_TARGET_OS_ANDROID endif include $(PREBUILT_STATIC_LIBRARY) #====================================== include $(CLEAR_VARS) LOCAL_MODULE := uv_static LOCAL_MODULE_FILENAME := libuv LOCAL_SRC_FILES := $(TARGET_ARCH_ABI)/libuv.a LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/$(TARGET_ARCH_ABI)/include/uv include $(PREBUILT_STATIC_LIBRARY) #====================================== include $(CLEAR_VARS) LOCAL_MODULE := cocos_freetype_static LOCAL_MODULE_FILENAME := libfreetype LOCAL_SRC_FILES := $(TARGET_ARCH_ABI)/libfreetype.a LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/$(TARGET_ARCH_ABI)/include/freetype include $(PREBUILT_STATIC_LIBRARY) #====================================== ifneq ($(TARGET_ARCH),x86_64) include $(CLEAR_VARS) LOCAL_MODULE := cocos2djni LOCAL_MODULE_FILENAME := libcocos2djni LOCAL_SRC_FILES := $(TARGET_ARCH_ABI)/libcocos2djni.a include $(PREBUILT_STATIC_LIBRARY) endif #====================================== #$(call import-module,android/cpufeatures)