2017-09-26 08:59:34 +02:00
|
|
|
LOCAL_PATH := $(call my-dir)
|
|
|
|
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
LOCAL_CFLAGS += -O3 -Wall -std=c99 -D"log2(x)=(log(x)/log(2))"
|
|
|
|
LOCAL_MODULE := main
|
|
|
|
|
|
|
|
SRC_PATH := ../../../../src
|
2018-01-09 12:37:38 +01:00
|
|
|
THIRD_PARTY_PATH := ../../../../../3rd-party
|
2017-09-26 08:59:34 +02:00
|
|
|
|
|
|
|
LOCAL_C_INCLUDES := \
|
2018-01-13 12:58:58 +01:00
|
|
|
$(LOCAL_PATH)/$(THIRD_PARTY_PATH)/SDL2-2.0.5/include \
|
2018-01-09 12:37:38 +01:00
|
|
|
$(LOCAL_PATH)/$(THIRD_PARTY_PATH)/lua-5.3.1/src \
|
|
|
|
$(LOCAL_PATH)/$(THIRD_PARTY_PATH)/giflib-5.1.4/lib \
|
|
|
|
$(LOCAL_PATH)/$(THIRD_PARTY_PATH)/zlib-1.2.8 \
|
2018-01-10 12:45:53 +01:00
|
|
|
$(LOCAL_PATH)/$(THIRD_PARTY_PATH)/duktape-2.2.0\src \
|
2018-01-10 15:11:22 +01:00
|
|
|
$(LOCAL_PATH)/$(THIRD_PARTY_PATH)/blip-buf \
|
2018-01-10 15:36:49 +01:00
|
|
|
$(LOCAL_PATH)/$(THIRD_PARTY_PATH)/SDL2_net-2.0.1 \
|
2018-01-11 05:57:14 +01:00
|
|
|
$(LOCAL_PATH)/$(THIRD_PARTY_PATH)/moonscript \
|
2018-01-10 12:45:53 +01:00
|
|
|
$(LOCAL_PATH)/../../../../include
|
2017-09-26 08:59:34 +02:00
|
|
|
|
|
|
|
# Add your application source files here...
|
2018-01-10 12:45:53 +01:00
|
|
|
LOCAL_SRC_FILES := \
|
2018-01-13 12:58:58 +01:00
|
|
|
$(THIRD_PARTY_PATH)/SDL2-2.0.5/src/main/android/SDL_android_main.c \
|
2018-01-10 12:45:53 +01:00
|
|
|
$(THIRD_PARTY_PATH)/duktape-2.2.0/src/duktape.c \
|
2018-01-10 15:11:22 +01:00
|
|
|
$(THIRD_PARTY_PATH)/blip-buf/blip_buf.c \
|
2018-01-10 15:36:49 +01:00
|
|
|
$(THIRD_PARTY_PATH)/SDL2_net-2.0.1/SDLnet.c \
|
|
|
|
$(THIRD_PARTY_PATH)/SDL2_net-2.0.1/SDLnetTCP.c \
|
|
|
|
$(THIRD_PARTY_PATH)/SDL2_net-2.0.1/SDLnetselect.c \
|
2018-01-10 12:45:53 +01:00
|
|
|
$(SRC_PATH)/studio.c \
|
2017-09-26 08:59:34 +02:00
|
|
|
$(SRC_PATH)/console.c \
|
|
|
|
$(SRC_PATH)/html.c \
|
|
|
|
$(SRC_PATH)/run.c \
|
|
|
|
$(SRC_PATH)/ext/file_dialog.c \
|
|
|
|
$(SRC_PATH)/ext/md5.c \
|
|
|
|
$(SRC_PATH)/ext/gif.c \
|
|
|
|
$(SRC_PATH)/fs.c \
|
|
|
|
$(SRC_PATH)/tools.c \
|
|
|
|
$(SRC_PATH)/start.c \
|
|
|
|
$(SRC_PATH)/sprite.c \
|
|
|
|
$(SRC_PATH)/map.c \
|
|
|
|
$(SRC_PATH)/sfx.c \
|
|
|
|
$(SRC_PATH)/music.c \
|
|
|
|
$(SRC_PATH)/history.c \
|
|
|
|
$(SRC_PATH)/world.c \
|
|
|
|
$(SRC_PATH)/code.c \
|
|
|
|
$(SRC_PATH)/config.c \
|
|
|
|
$(SRC_PATH)/net.c \
|
|
|
|
$(SRC_PATH)/luaapi.c \
|
|
|
|
$(SRC_PATH)/jsapi.c \
|
|
|
|
$(SRC_PATH)/tic.c \
|
|
|
|
$(SRC_PATH)/dialog.c \
|
|
|
|
$(SRC_PATH)/menu.c \
|
|
|
|
$(SRC_PATH)/surf.c \
|
|
|
|
$(SRC_PATH)/tic80.c
|
|
|
|
|
|
|
|
LOCAL_SHARED_LIBRARIES := SDL2 lua z gif
|
|
|
|
|
|
|
|
LOCAL_LDLIBS := -lGLESv1_CM -lGLESv2 -llog
|
|
|
|
|
|
|
|
include $(BUILD_SHARED_LIBRARY)
|