[Android] Lazyfoo tutorial upgrade :) multiple header and c++ files

Hello,

Can you please help me about Android NDK?
I have been followed the lazyfoo tutorial but now my project is bigger and I would know how I could (as I do on CodeBlocks) include header and cpp files?

I mean I want several files for my project instead of one big file with the declarations inside.

Thanks
Have a nice week end :slight_smile:

This is what one of my Android.mk files looks like, which includes all the cpp files the app needs from the src folder, and various others too: (it also adds the define NDEBUG if I don’t comment out that LOCAL_CPPFLAGS line)

LOCAL_PATH := $(call my-dir)
    
include $(CLEAR_VARS)

LOCAL_MODULE := main

LOCAL_CPPFLAGS += "-DNDEBUG"

SDL_PATH := ../SDL2

LOCAL_C_INCLUDES := $(LOCAL_PATH)/$(SDL_PATH)/include $(LOCAL_PATH)/../SDL2_image/ $(LOCAL_PATH)/../SDL2_ttf/ $(LOCAL_PATH)/../SDL2_mixer/

# Add your application source files here...
PROJECT_FILES := $(wildcard $(LOCAL_PATH)/*.cpp)
PROJECT_FILES += $(wildcard $(LOCAL_PATH)/../../../../../../../../../CrossPlatform/UX/*.cpp)
PROJECT_FILES += $(wildcard $(LOCAL_PATH)/../../../../../../../../../CrossPlatform/Firefight/*.cpp)
PROJECT_FILES += $(wildcard $(LOCAL_PATH)/../../../../../../../../../CrossPlatform/Serialize/*.cpp)
LOCAL_SRC_FILES := $(PROJECT_FILES)

LOCAL_SHARED_LIBRARIES := SDL2 SDL2_image SDL2_ttf SDL2_mixer

LOCAL_LDLIBS := -lGLESv1_CM -lGLESv2 -llog

include $(BUILD_SHARED_LIBRARY)