added using checked memory handling functions to list handling
[rocksndiamonds.git] / src / Android.mk
1 # =============================================================================
2 # Rocks'n'Diamonds - McDuffin Strikes Back!
3 # -----------------------------------------------------------------------------
4 # (c) 1995-2014 by Artsoft Entertainment
5 #                  Holger Schemel
6 #                  info@artsoft.org
7 #                  https://www.artsoft.org/
8 # -----------------------------------------------------------------------------
9 # src/Android.mk
10 # =============================================================================
11
12 LOCAL_PATH := $(call my-dir)
13
14 include $(CLEAR_VARS)
15
16 LOCAL_MODULE := main
17
18 SDL_PATH       := ../build-projects/android/app/jni/SDL2
19 SDL_IMAGE_PATH := ../build-projects/android/app/jni/SDL2_image
20 SDL_MIXER_PATH := ../build-projects/android/app/jni/SDL2_mixer
21 SDL_NET_PATH   := ../build-projects/android/app/jni/SDL2_net
22
23 LOCAL_C_INCLUDES :=                             \
24         $(LOCAL_PATH)/$(SDL_PATH)/include       \
25         $(LOCAL_PATH)/$(SDL_IMAGE_PATH)         \
26         $(LOCAL_PATH)/$(SDL_MIXER_PATH)         \
27         $(LOCAL_PATH)/$(SDL_NET_PATH)
28
29 DEBUG = -DDEBUG -g
30 OPTIONS = $(DEBUG) -Wall                        # only for debugging purposes
31
32 ifdef BUILD_DIST                                # distribution build
33 OPTIONS = -O2 -Wall
34 endif
35
36 LOCAL_CFLAGS := -DTARGET_SDL2 $(OPTIONS)
37
38 # application source code files
39 LOCAL_SRC_FILES := $(SDL_PATH)/src/main/android/SDL_android_main.c \
40         libgame/system.c                \
41         libgame/gadgets.c               \
42         libgame/text.c                  \
43         libgame/sound.c                 \
44         libgame/joystick.c              \
45         libgame/snapshot.c              \
46         libgame/image.c                 \
47         libgame/random.c                \
48         libgame/hash.c                  \
49         libgame/http.c                  \
50         libgame/base64.c                \
51         libgame/setup.c                 \
52         libgame/misc.c                  \
53         libgame/sdl.c                   \
54         libgame/zip/ioapi.c             \
55         libgame/zip/iowin32.c           \
56         libgame/zip/unzip.c             \
57         libgame/zip/miniunz.c           \
58         game_em/cave.c                  \
59         game_em/convert.c               \
60         game_em/graphics.c              \
61         game_em/init.c                  \
62         game_em/game.c                  \
63         game_em/logic.c                 \
64         game_em/reademc.c               \
65         game_sp/init.c                  \
66         game_sp/file.c                  \
67         game_sp/main.c                  \
68         game_sp/vb_lib.c                \
69         game_sp/ASM.c                   \
70         game_sp/BugsTerminals.c         \
71         game_sp/DDScrollBuffer.c        \
72         game_sp/DDSpriteBuffer.c        \
73         game_sp/Display.c               \
74         game_sp/DoGameStuff.c           \
75         game_sp/Electrons.c             \
76         game_sp/Explosions.c            \
77         game_sp/Globals.c               \
78         game_sp/Infotrons.c             \
79         game_sp/InitGameConditions.c    \
80         game_sp/Input.c                 \
81         game_sp/MainForm.c              \
82         game_sp/MainGameLoop.c          \
83         game_sp/Murphy.c                \
84         game_sp/OrangeDisk.c            \
85         game_sp/SnikSnaks.c             \
86         game_sp/Sound.c                 \
87         game_sp/Zonk.c                  \
88         game_mm/mm_init.c               \
89         game_mm/mm_main.c               \
90         game_mm/mm_game.c               \
91         game_mm/mm_files.c              \
92         game_mm/mm_tools.c              \
93         main.c                          \
94         conf_gfx.c                      \
95         conf_snd.c                      \
96         conf_mus.c                      \
97         conf_hlp.c                      \
98         init.c                          \
99         config.c                        \
100         events.c                        \
101         tools.c                         \
102         screens.c                       \
103         game.c                          \
104         editor.c                        \
105         files.c                         \
106         tape.c                          \
107         anim.c                          \
108         api.c                           \
109         network.c                       \
110         netserv.c
111
112 LOCAL_SHARED_LIBRARIES := SDL2 SDL2_image SDL2_mixer SDL2_net
113
114 LOCAL_LDLIBS := -lGLESv1_CM -lGLESv2 -llog -lz
115
116 include $(BUILD_SHARED_LIBRARY)