1 LOCAL_PATH := $(call my-dir)/../../../..
5 LOCAL_MODULE := xscreensaver
7 # The base framework files:
9 android/screenhack-android.c \
10 jwxyz/jwxyz-android.c \
11 jwxyz/jwxyz-common.c \
13 jwxyz/jwxyz-timers.c \
16 # Utilities used by the hacks:
21 hacks/glx/dropshadow.c \
22 hacks/glx/chessmodels.c \
24 hacks/glx/gltrackball.c \
25 hacks/glx/glut_stroke.c \
26 hacks/glx/glut_swidth.c \
27 hacks/glx/grab-ximage.c \
28 hacks/glx/marching.c \
33 hacks/glx/trackball.c \
35 hacks/glx/xpm-ximage.c \
39 utils/aligned_malloc.c \
49 utils/textclient-mobile.c \
56 # The source files of all of the currently active hacks:
57 LOCAL_SRC_FILES += $(shell \
58 for f in $$ANDROID_HACKS ; do \
59 if [ "$$f" = "companioncube" ]; then f="companion"; fi ; \
60 if [ -f "../../../../hacks/$$f.c" ]; then \
61 echo "hacks/$$f.c" ; \
63 echo "hacks/glx/$$f.c" ; \
67 # Some savers occupy more than one source file:
72 hacks/pacman_level.c \
74 hacks/glx/b_lockglue.c \
75 hacks/glx/b_sphere.c \
76 hacks/glx/buildlwo.c \
77 hacks/glx/companion_quad.c \
78 hacks/glx/companion_disc.c \
79 hacks/glx/companion_heart.c \
80 hacks/glx/cow_face.c \
81 hacks/glx/cow_hide.c \
82 hacks/glx/cow_hoofs.c \
83 hacks/glx/cow_horns.c \
84 hacks/glx/cow_tail.c \
85 hacks/glx/cow_udder.c \
88 hacks/glx/glschool_alg.c \
89 hacks/glx/glschool_gl.c \
90 hacks/glx/involute.c \
91 hacks/glx/lament_model.c \
92 hacks/glx/pipeobjs.c \
94 hacks/glx/robot-wireframe.c \
95 hacks/glx/polyhedra-gl.c \
104 hacks/glx/sonar-sim.c \
105 hacks/glx/sonar-icmp.c \
106 hacks/glx/splitflap_obj.c \
107 hacks/glx/sproingiewrap.c \
108 hacks/glx/stonerview-move.c \
109 hacks/glx/stonerview-osc.c \
110 hacks/glx/stonerview-view.c \
112 hacks/glx/tangram_shapes.c \
116 hacks/glx/toaster.c \
117 hacks/glx/toaster_base.c \
118 hacks/glx/toaster_handle.c \
119 hacks/glx/toaster_handle2.c \
120 hacks/glx/toaster_jet.c \
121 hacks/glx/toaster_knob.c \
122 hacks/glx/toaster_slots.c \
123 hacks/glx/toaster_wing.c \
124 hacks/glx/tronbit_idle1.c \
125 hacks/glx/tronbit_idle2.c \
126 hacks/glx/tronbit_no.c \
127 hacks/glx/tronbit_yes.c \
128 hacks/glx/tunnel_draw.c \
131 LOCAL_LDLIBS := -lGLESv1_CM -ldl -llog -lEGL
133 LOCAL_C_INCLUDES := \
135 $(LOCAL_PATH)/android \
136 $(LOCAL_PATH)/utils \
137 $(LOCAL_PATH)/jwxyz \
138 $(LOCAL_PATH)/hacks \
139 $(LOCAL_PATH)/hacks/glx \
141 # -Wnested-externs would also be here, but for Android unistd.h.
145 -Wstrict-prototypes \
146 -Wmissing-prototypes \
153 -DHAVE_XUTF8DRAWSTRING=1 \
154 -DHAVE_GLBINDTEXTURE=1 \
155 -DGL_VERSION_ES_CM_1_0 \
157 -DHAVE_INTTYPES_H=1 \
160 -DGETTIMEOFDAY_TWO_ARGS=1 \
164 include $(BUILD_SHARED_LIBRARY)