changed network protocol version from 1.2.0 to 2.0.0
[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
19 SDL_IMAGE_PATH := ../Special/Android/jni/SDL2_image
20 SDL_MIXER_PATH := ../Special/Android/jni/SDL2_mixer
21 SDL_NET_PATH   := ../Special/Android/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 # 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/image.c                 \
45         libgame/random.c                \
46         libgame/hash.c                  \
47         libgame/setup.c                 \
48         libgame/misc.c                  \
49         libgame/sdl.c                   \
50         game_em/cave.c                  \
51         game_em/convert.c               \
52         game_em/graphics.c              \
53         game_em/init.c                  \
54         game_em/input.c                 \
55         game_em/main.c                  \
56         game_em/sound.c                 \
57         game_em/synchro_1.c             \
58         game_em/synchro_2.c             \
59         game_em/synchro_3.c             \
60         game_em/tab_generate.c          \
61         game_em/ulaw_generate.c         \
62         game_sp/init.c                  \
63         game_sp/file.c                  \
64         game_sp/main.c                  \
65         game_sp/vb_lib.c                \
66         game_sp/ASM.c                   \
67         game_sp/BugsTerminals.c         \
68         game_sp/DDScrollBuffer.c        \
69         game_sp/DDSpriteBuffer.c        \
70         game_sp/Display.c               \
71         game_sp/DoGameStuff.c           \
72         game_sp/Electrons.c             \
73         game_sp/Explosions.c            \
74         game_sp/Globals.c               \
75         game_sp/Infotrons.c             \
76         game_sp/InitGameConditions.c    \
77         game_sp/Input.c                 \
78         game_sp/MainForm.c              \
79         game_sp/MainGameLoop.c          \
80         game_sp/Murphy.c                \
81         game_sp/OrangeDisk.c            \
82         game_sp/SnikSnaks.c             \
83         game_sp/Sound.c                 \
84         game_sp/Zonk.c                  \
85         game_mm/mm_init.c               \
86         game_mm/mm_main.c               \
87         game_mm/mm_game.c               \
88         game_mm/mm_files.c              \
89         game_mm/mm_tools.c              \
90         main.c                          \
91         conf_gfx.c                      \
92         conf_snd.c                      \
93         conf_mus.c                      \
94         conf_hlp.c                      \
95         init.c                          \
96         config.c                        \
97         events.c                        \
98         tools.c                         \
99         screens.c                       \
100         game.c                          \
101         editor.c                        \
102         files.c                         \
103         tape.c                          \
104         anim.c                          \
105         network.c                       \
106         netserv.c
107
108 LOCAL_SHARED_LIBRARIES := SDL2 SDL2_image SDL2_mixer SDL2_net smpeg2
109
110 LOCAL_LDLIBS := -lGLESv1_CM -lGLESv2 -llog
111
112 include $(BUILD_SHARED_LIBRARY)