aboutsummaryrefslogtreecommitdiffstats
path: root/distrib/sdl-1.2.15/Makefile.android
diff options
context:
space:
mode:
authorSteve Kondik <shade@chemlab.org>2012-11-18 15:47:18 -0800
committerSteve Kondik <shade@chemlab.org>2012-11-18 15:47:18 -0800
commita546c7006355a7bd1df4267ee53d0bfa2c017c8c (patch)
tree01be0bf6c0d6968e1468ec9661fd52110f9b05a7 /distrib/sdl-1.2.15/Makefile.android
parentbaf3d7830396202df5cc47bd7bcee109c319cdb3 (diff)
parent0f809250987b64f491bd3b4b73c0f0d33036a786 (diff)
downloadexternal_qemu-a546c7006355a7bd1df4267ee53d0bfa2c017c8c.zip
external_qemu-a546c7006355a7bd1df4267ee53d0bfa2c017c8c.tar.gz
external_qemu-a546c7006355a7bd1df4267ee53d0bfa2c017c8c.tar.bz2
Merge branch 'jb-mr1-release' of https://android.googlesource.com/platform/external/qemu into mr1-staging
Change-Id: I8a4a71ac65b08e6e17f26c942f67a15b85211115
Diffstat (limited to 'distrib/sdl-1.2.15/Makefile.android')
-rw-r--r--distrib/sdl-1.2.15/Makefile.android93
1 files changed, 93 insertions, 0 deletions
diff --git a/distrib/sdl-1.2.15/Makefile.android b/distrib/sdl-1.2.15/Makefile.android
new file mode 100644
index 0000000..2dfa7dd
--- /dev/null
+++ b/distrib/sdl-1.2.15/Makefile.android
@@ -0,0 +1,93 @@
+LOCAL_PATH:= $(call my-dir)
+
+SDL_DIR := $(LOCAL_PATH)
+include $(SDL_DIR)/sources.make
+
+CONFIG_DIRS := \
+ $(LOCAL_PATH)/objs \
+ $(LOCAL_PATH)/include \
+ $(LOCAL_PATH) \
+
+CONFIG_INCLUDES := $(CONFIG_DIRS:%=-I%)
+
+MY_CC := $(CC)
+MY_LD := $(LD)
+MY_CFLAGS := $(CFLAGS) $(CONFIG_INCLUDES)
+MY_LDFLAGS := $(LDFLAGS)
+
+include $(CLEAR_VARS)
+
+LOCAL_NO_DEFAULT_COMPILER_FLAGS := true
+LOCAL_CC := $(MY_CC)
+LOCAL_CFLAGS := $(MY_CFLAGS) $(LOCAL_CFLAGS)
+LOCAL_LDFLAGS := $(MY_LDFLAGS) $(LOCAL_LDFLAGS)
+
+LOCAL_MODULE := libSDL
+
+LOCAL_SRC_FILES := $(SDL_SOURCES)
+
+include $(BUILD_HOST_STATIC_LIBRARY)
+
+## Build libSDLmain
+##
+
+include $(CLEAR_VARS)
+
+LOCAL_NO_DEFAULT_COMPILER_FLAGS := true
+LOCAL_CC := $(MY_CC)
+LOCAL_CFLAGS := $(MY_CFLAGS) $(LOCAL_CFLAGS)
+LOCAL_LDFLAGS := $(MY_LDFLAGS) $(LOCAL_LDFLAGS)
+
+LOCAL_MODULE := libSDLmain
+
+LOCAL_SRC_FILES := $(SDLMAIN_SOURCES)
+
+include $(BUILD_HOST_STATIC_LIBRARY)
+
+# handle installation of generated files
+#
+
+SDL_HEADERS := \
+ SDL.h \
+ SDL_active.h \
+ SDL_audio.h \
+ SDL_byteorder.h \
+ SDL_cdrom.h \
+ SDL_copying.h \
+ SDL_cpuinfo.h \
+ SDL_endian.h \
+ SDL_error.h \
+ SDL_events.h \
+ SDL_getenv.h \
+ SDL_joystick.h \
+ SDL_keyboard.h \
+ SDL_keysym.h \
+ SDL_loadso.h \
+ SDL_main.h \
+ SDL_mouse.h \
+ SDL_mutex.h \
+ SDL_name.h \
+ SDL_opengl.h \
+ SDL_platform.h \
+ SDL_quit.h \
+ SDL_rwops.h \
+ SDL_stdinc.h \
+ SDL_syswm.h \
+ SDL_thread.h \
+ SDL_timer.h \
+ SDL_types.h \
+ SDL_version.h \
+ SDL_video.h \
+ begin_code.h \
+ close_code.h \
+
+
+$(foreach target,$(INSTALL_TARGETS),\
+ $(eval $(call install-target,objs/sdl-config,$(target)/bin/sdl-config)) \
+ $(eval $(call install-target,objs/SDL_config.h,$(target)/include/SDL/SDL_config.h)) \
+ $(eval $(call install-target,objs/libs/libSDL.a,$(target)/libs/libSDL.a)) \
+ $(eval $(call install-target,objs/libs/libSDLmain.a,$(target)/libs/libSDLmain.a)) \
+ $(foreach header,$(SDL_HEADERS), \
+ $(eval $(call install-target,include/$(header),$(target)/include/SDL/$(header))) \
+ ) \
+)