1 LOCAL_PATH := $(call my-dir)/../../..
3 # -Wnested-externs would also be here, but for Android unistd.h.
9 -DGL_GLEXT_PROTOTYPES \
17 -DHAVE_XUTF8DRAWSTRING=1 \
18 -DHAVE_GLBINDTEXTURE=1 \
23 -DGETTIMEOFDAY_TWO_ARGS=1 \
29 $(LOCAL_PATH)/android \
33 $(LOCAL_PATH)/hacks/glx \
37 LOCAL_MODULE := xscreensaver-gl
40 android/screenhack-android.c \
41 hacks/glx/dropshadow.c \
42 hacks/glx/chessmodels.c \
44 hacks/glx/gltrackball.c \
45 hacks/glx/glut_stroke.c \
46 hacks/glx/glut_swidth.c \
47 hacks/glx/grab-ximage.c \
48 hacks/glx/marching.c \
53 hacks/glx/trackball.c \
56 # Some savers occupy more than one source file:
59 hacks/glx/b_lockglue.c \
60 hacks/glx/b_sphere.c \
61 hacks/glx/buildlwo.c \
62 hacks/glx/companion_quad.c \
63 hacks/glx/companion_disc.c \
64 hacks/glx/companion_heart.c \
65 hacks/glx/cow_face.c \
66 hacks/glx/cow_hide.c \
67 hacks/glx/cow_hoofs.c \
68 hacks/glx/cow_horns.c \
69 hacks/glx/cow_tail.c \
70 hacks/glx/cow_udder.c \
73 hacks/glx/glschool_alg.c \
74 hacks/glx/glschool_gl.c \
75 hacks/glx/involute.c \
76 hacks/glx/lament_model.c \
77 hacks/glx/pipeobjs.c \
78 hacks/glx/quickhull.c \
80 hacks/glx/robot-wireframe.c \
81 hacks/glx/polyhedra-gl.c \
92 hacks/glx/sonar-sim.c \
93 hacks/glx/sonar-icmp.c \
94 hacks/glx/splitflap_obj.c \
95 hacks/glx/sproingiewrap.c \
96 hacks/glx/stonerview-move.c \
97 hacks/glx/stonerview-osc.c \
98 hacks/glx/stonerview-view.c \
100 hacks/glx/tangram_shapes.c \
104 hacks/glx/toaster.c \
105 hacks/glx/toaster_base.c \
106 hacks/glx/toaster_handle.c \
107 hacks/glx/toaster_handle2.c \
108 hacks/glx/toaster_jet.c \
109 hacks/glx/toaster_knob.c \
110 hacks/glx/toaster_slots.c \
111 hacks/glx/toaster_wing.c \
112 hacks/glx/tronbit_idle1.c \
113 hacks/glx/tronbit_idle2.c \
114 hacks/glx/tronbit_no.c \
115 hacks/glx/tronbit_yes.c \
116 hacks/glx/tunnel_draw.c \
119 # The source files of the currently active GL hacks:
120 LOCAL_SRC_FILES += $(shell \
121 for f in $$ANDROID_HACKS ; do \
122 if [ "$$f" = "companioncube" ]; then f="companion"; fi ; \
123 if [ -f "../../../hacks/glx/$$f.c" ]; then \
124 echo "hacks/glx/$$f.c" ; \
128 LOCAL_C_INCLUDES := $(SHARED_C_INCLUDES)
129 LOCAL_CFLAGS += $(SHARED_CFLAGS) -DUSE_GL
131 include $(BUILD_STATIC_LIBRARY)
133 ##############################################################################
135 include $(CLEAR_VARS)
137 LOCAL_MODULE := xscreensaver
139 LOCAL_STATIC_LIBRARIES := xscreensaver-gl
141 # The base framework files:
143 jwxyz/jwxyz-android.c \
144 jwxyz/jwxyz-common.c \
146 jwxyz/jwxyz-image.c \
147 jwxyz/jwxyz-timers.c \
150 # Utilities used by the hacks:
156 hacks/ximage-loader.c \
157 utils/async_netdb.c \
158 utils/aligned_malloc.c \
170 utils/textclient-mobile.c \
171 utils/thread_util.c \
178 # The source files of the currently active Xlib hacks:
179 LOCAL_SRC_FILES += $(shell \
180 for f in $$ANDROID_HACKS ; do \
181 if [ -f "../../../hacks/$$f.c" ]; then \
182 echo "hacks/$$f.c" ; \
186 # Some savers occupy more than one source file:
188 hacks/apple2-main.c \
191 hacks/pacman_level.c \
193 LOCAL_LDLIBS := -lGLESv1_CM -ldl -llog -lEGL -latomic -landroid -ljnigraphics
195 LOCAL_C_INCLUDES := $(SHARED_C_INCLUDES)
196 LOCAL_CFLAGS += $(SHARED_CFLAGS)
198 include $(BUILD_SHARED_LIBRARY)