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 \
72 hacks/glx/dymaxionmap-coords.c \
74 hacks/glx/glschool_alg.c \
75 hacks/glx/glschool_gl.c \
76 hacks/glx/involute.c \
77 hacks/glx/lament_model.c \
78 hacks/glx/pipeobjs.c \
79 hacks/glx/quickhull.c \
81 hacks/glx/robot-wireframe.c \
82 hacks/glx/polyhedra-gl.c \
93 hacks/glx/sonar-sim.c \
94 hacks/glx/sonar-icmp.c \
95 hacks/glx/splitflap_obj.c \
96 hacks/glx/sproingiewrap.c \
97 hacks/glx/stonerview-move.c \
98 hacks/glx/stonerview-osc.c \
99 hacks/glx/stonerview-view.c \
101 hacks/glx/tangram_shapes.c \
105 hacks/glx/toaster.c \
106 hacks/glx/toaster_base.c \
107 hacks/glx/toaster_handle.c \
108 hacks/glx/toaster_handle2.c \
109 hacks/glx/toaster_jet.c \
110 hacks/glx/toaster_knob.c \
111 hacks/glx/toaster_slots.c \
112 hacks/glx/toaster_wing.c \
113 hacks/glx/tronbit_idle1.c \
114 hacks/glx/tronbit_idle2.c \
115 hacks/glx/tronbit_no.c \
116 hacks/glx/tronbit_yes.c \
117 hacks/glx/tunnel_draw.c \
120 # The source files of the currently active GL hacks:
121 LOCAL_SRC_FILES += $(shell \
122 for f in $$ANDROID_HACKS ; do \
123 if [ "$$f" = "companioncube" ]; then f="companion"; fi ; \
124 if [ -f "../../../hacks/glx/$$f.c" ]; then \
125 echo "hacks/glx/$$f.c" ; \
129 LOCAL_C_INCLUDES := $(SHARED_C_INCLUDES)
130 LOCAL_CFLAGS += $(SHARED_CFLAGS) -DUSE_GL
132 include $(BUILD_STATIC_LIBRARY)
134 ##############################################################################
136 include $(CLEAR_VARS)
138 LOCAL_MODULE := xscreensaver
140 LOCAL_STATIC_LIBRARIES := xscreensaver-gl
142 # The base framework files:
144 jwxyz/jwxyz-android.c \
145 jwxyz/jwxyz-common.c \
147 jwxyz/jwxyz-image.c \
148 jwxyz/jwxyz-timers.c \
151 # Utilities used by the hacks:
157 hacks/ximage-loader.c \
158 utils/async_netdb.c \
159 utils/aligned_malloc.c \
171 utils/textclient-mobile.c \
172 utils/thread_util.c \
179 # The source files of the currently active Xlib hacks:
180 LOCAL_SRC_FILES += $(shell \
181 for f in $$ANDROID_HACKS ; do \
182 if [ -f "../../../hacks/$$f.c" ]; then \
183 echo "hacks/$$f.c" ; \
187 # Some savers occupy more than one source file:
189 hacks/apple2-main.c \
192 hacks/pacman_level.c \
194 LOCAL_LDLIBS := -lGLESv1_CM -ldl -llog -lEGL -latomic -landroid -ljnigraphics
196 LOCAL_C_INCLUDES := $(SHARED_C_INCLUDES)
197 LOCAL_CFLAGS += $(SHARED_CFLAGS)
199 include $(BUILD_SHARED_LIBRARY)