LOCAL_PATH := $(call my-dir)

include $(CLEAR_VARS)
LOCAL_MODULE := libdobby
LOCAL_SRC_FILES := Dobby/libdobby.a
include $(PREBUILT_STATIC_LIBRARY)

include $(CLEAR_VARS)
LOCAL_MODULE := HOOK
LOCAL_SRC_FILES := \
    主程序.cpp \
    imgui/imgui.cpp \
    imgui/imgui_draw.cpp \
    imgui/imgui_tables.cpp \
    imgui/imgui_widgets.cpp \
    imgui/imgui_impl_android.cpp \
    imgui/imgui_impl_opengl3.cpp \
    android_native_app_glue.c \
    structures/data/SDK/PUBGM_Basic.cpp \
    structures/data/SDK/PUBGM_Basic_functions.cpp \
    structures/data/SDK/PUBGM_CoreUObject_functions.cpp \
    structures/data/SDK/PUBGM_Engine_functions.cpp \
    structures/data/SDK/PUBGM_ShadowTrackerExtra_functions.cpp \
    structures/data/SDK/PUBGM_UnrealArchExt_functions.cpp \
    structures/data/SDK/PUBGM_Gameplay_functions.cpp \
    structures/data/SDK/PUBGM_Client_functions.cpp \

LOCAL_CFLAGS := -w -s -Wno-error=format-security -fvisibility=hidden -fpermissive -fexceptions
LOCAL_CPPFLAGS := -w -s -Wno-error=format-security -fvisibility=hidden -std=c++17
LOCAL_CPPFLAGS += -Wno-error=c++11-narrowing -fpermissive -Wall -fexceptions
LOCAL_C_INCLUDES += $(LOCAL_PATH)/imgui
LOCAL_C_INCLUDES += $(LOCAL_PATH)/App
LOCAL_C_INCLUDES += $(LOCAL_PATH)/SDK
LOCAL_LDFLAGS := -Wl,--gc-sections,--strip-all
LOCAL_LDLIBS := -llog -landroid -lEGL -lGLESv1_CM -lGLESv2 -lGLESv3 -lm -ldl -lz
LOCAL_STATIC_LIBRARIES := libdobby

include $(BUILD_SHARED_LIBRARY)
$(call import-module,android/native_app_glue)
