fixed bug not updating game panel values in visible warp forward mode
[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 #                  http://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       := ../Special/Android/jni/SDL2-2.0.1
19 SDL_IMAGE_PATH := ../Special/Android/jni/SDL2_image-2.0.0
20 SDL_MIXER_PATH := ../Special/Android/jni/SDL2_mixer-2.0.0
21 SDL_NET_PATH   := ../Special/Android/jni/SDL2_net-2.0.0
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 # OPTIONS = -O3 -Wall                           # distribution build
32
33 # LOCAL_CFLAGS := -DTARGET_SDL2
34 LOCAL_CFLAGS := -DTARGET_SDL2 $(OPTIONS)
35
36 # application source code files
37 LOCAL_SRC_FILES := $(SDL_PATH)/src/main/android/SDL_android_main.c \
38         libgame/system.c                \
39         libgame/gadgets.c               \
40         libgame/text.c                  \
41         libgame/sound.c                 \
42         libgame/joystick.c              \
43         libgame/snapshot.c              \
44         libgame/toons.c                 \
45         libgame/image.c                 \
46         libgame/random.c                \
47         libgame/hash.c                  \
48         libgame/setup.c                 \
49         libgame/misc.c                  \
50         libgame/sdl.c                   \
51         game_em/cave.c                  \
52         game_em/convert.c               \
53         game_em/graphics.c              \
54         game_em/init.c                  \
55         game_em/input.c                 \
56         game_em/main.c                  \
57         game_em/sound.c                 \
58         game_em/synchro_1.c             \
59         game_em/synchro_2.c             \
60         game_em/synchro_3.c             \
61         game_em/tab_generate.c          \
62         game_em/ulaw_generate.c         \
63         game_sp/init.c                  \
64         game_sp/file.c                  \
65         game_sp/main.c                  \
66         game_sp/vb_lib.c                \
67         game_sp/ASM.c                   \
68         game_sp/BugsTerminals.c         \
69         game_sp/DDScrollBuffer.c        \
70         game_sp/DDSpriteBuffer.c        \
71         game_sp/Display.c               \
72         game_sp/DoGameStuff.c           \
73         game_sp/Electrons.c             \
74         game_sp/Explosions.c            \
75         game_sp/Globals.c               \
76         game_sp/Infotrons.c             \
77         game_sp/InitGameConditions.c    \
78         game_sp/Input.c                 \
79         game_sp/MainForm.c              \
80         game_sp/MainGameLoop.c          \
81         game_sp/Murphy.c                \
82         game_sp/OrangeDisk.c            \
83         game_sp/SnikSnaks.c             \
84         game_sp/Sound.c                 \
85         game_sp/Zonk.c                  \
86         main.c                          \
87         conf_gfx.c                      \
88         conf_snd.c                      \
89         conf_mus.c                      \
90         conf_hlp.c                      \
91         init.c                          \
92         config.c                        \
93         events.c                        \
94         tools.c                         \
95         screens.c                       \
96         game.c                          \
97         editor.c                        \
98         files.c                         \
99         tape.c                          \
100         cartoons.c                      \
101         network.c                       \
102         netserv.c
103
104 LOCAL_SHARED_LIBRARIES := SDL2 SDL2_image SDL2_mixer SDL2_net smpeg2
105
106 LOCAL_LDLIBS := -lGLESv1_CM -llog
107
108 include $(BUILD_SHARED_LIBRARY)