author | Sam Lantinga <slouken@libsdl.org> |
Sat, 14 Jan 2012 13:21:19 -0500 | |
changeset 6217 | 6952b11b7f46 |
parent 6208 | 291fea716f09 |
child 6270 | 0cf2443a0b17 |
permissions | -rwxr-xr-x |
4964
6c645018741e
Build the SDL library as a shared object on Android, so it will work correctly with SDL_image and SDL_ttf.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
1 |
LOCAL_PATH := $(call my-dir) |
6c645018741e
Build the SDL library as a shared object on Android, so it will work correctly with SDL_image and SDL_ttf.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
2 |
|
6c645018741e
Build the SDL library as a shared object on Android, so it will work correctly with SDL_image and SDL_ttf.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
3 |
########################### |
6c645018741e
Build the SDL library as a shared object on Android, so it will work correctly with SDL_image and SDL_ttf.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
4 |
# |
6c645018741e
Build the SDL library as a shared object on Android, so it will work correctly with SDL_image and SDL_ttf.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
5 |
# SDL shared library |
6c645018741e
Build the SDL library as a shared object on Android, so it will work correctly with SDL_image and SDL_ttf.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
6 |
# |
6c645018741e
Build the SDL library as a shared object on Android, so it will work correctly with SDL_image and SDL_ttf.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
7 |
########################### |
6c645018741e
Build the SDL library as a shared object on Android, so it will work correctly with SDL_image and SDL_ttf.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
8 |
|
6c645018741e
Build the SDL library as a shared object on Android, so it will work correctly with SDL_image and SDL_ttf.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
9 |
include $(CLEAR_VARS) |
6c645018741e
Build the SDL library as a shared object on Android, so it will work correctly with SDL_image and SDL_ttf.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
10 |
|
6c645018741e
Build the SDL library as a shared object on Android, so it will work correctly with SDL_image and SDL_ttf.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
11 |
LOCAL_MODULE := SDL |
6c645018741e
Build the SDL library as a shared object on Android, so it will work correctly with SDL_image and SDL_ttf.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
12 |
|
6c645018741e
Build the SDL library as a shared object on Android, so it will work correctly with SDL_image and SDL_ttf.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
13 |
LOCAL_C_INCLUDES := $(LOCAL_PATH)/include |
6c645018741e
Build the SDL library as a shared object on Android, so it will work correctly with SDL_image and SDL_ttf.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
14 |
|
5090
327f181542f1
Include windows.h in a single point in the source, so we can be consistent about the definition of UNICODE and have core utility functions for Windows that all modules can share.
Sam Lantinga <slouken@libsdl.org>
parents:
5003
diff
changeset
|
15 |
LOCAL_SRC_FILES := \ |
4964
6c645018741e
Build the SDL library as a shared object on Android, so it will work correctly with SDL_image and SDL_ttf.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
16 |
$(subst $(LOCAL_PATH)/,, \ |
6c645018741e
Build the SDL library as a shared object on Android, so it will work correctly with SDL_image and SDL_ttf.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
17 |
$(wildcard $(LOCAL_PATH)/src/*.c) \ |
6c645018741e
Build the SDL library as a shared object on Android, so it will work correctly with SDL_image and SDL_ttf.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
18 |
$(wildcard $(LOCAL_PATH)/src/audio/*.c) \ |
5090
327f181542f1
Include windows.h in a single point in the source, so we can be consistent about the definition of UNICODE and have core utility functions for Windows that all modules can share.
Sam Lantinga <slouken@libsdl.org>
parents:
5003
diff
changeset
|
19 |
$(wildcard $(LOCAL_PATH)/src/audio/android/*.c) \ |
327f181542f1
Include windows.h in a single point in the source, so we can be consistent about the definition of UNICODE and have core utility functions for Windows that all modules can share.
Sam Lantinga <slouken@libsdl.org>
parents:
5003
diff
changeset
|
20 |
$(wildcard $(LOCAL_PATH)/src/audio/dummy/*.c) \ |
5003
3a95a2b93eb3
Updated the atomic API for better use cases
Sam Lantinga <slouken@libsdl.org>
parents:
4964
diff
changeset
|
21 |
$(LOCAL_PATH)/src/atomic/SDL_atomic.c \ |
3a95a2b93eb3
Updated the atomic API for better use cases
Sam Lantinga <slouken@libsdl.org>
parents:
4964
diff
changeset
|
22 |
$(LOCAL_PATH)/src/atomic/SDL_spinlock.c.arm \ |
5090
327f181542f1
Include windows.h in a single point in the source, so we can be consistent about the definition of UNICODE and have core utility functions for Windows that all modules can share.
Sam Lantinga <slouken@libsdl.org>
parents:
5003
diff
changeset
|
23 |
$(wildcard $(LOCAL_PATH)/src/core/android/*.cpp) \ |
4964
6c645018741e
Build the SDL library as a shared object on Android, so it will work correctly with SDL_image and SDL_ttf.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
24 |
$(wildcard $(LOCAL_PATH)/src/cpuinfo/*.c) \ |
6c645018741e
Build the SDL library as a shared object on Android, so it will work correctly with SDL_image and SDL_ttf.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
25 |
$(wildcard $(LOCAL_PATH)/src/events/*.c) \ |
6c645018741e
Build the SDL library as a shared object on Android, so it will work correctly with SDL_image and SDL_ttf.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
26 |
$(wildcard $(LOCAL_PATH)/src/file/*.c) \ |
5090
327f181542f1
Include windows.h in a single point in the source, so we can be consistent about the definition of UNICODE and have core utility functions for Windows that all modules can share.
Sam Lantinga <slouken@libsdl.org>
parents:
5003
diff
changeset
|
27 |
$(wildcard $(LOCAL_PATH)/src/haptic/*.c) \ |
327f181542f1
Include windows.h in a single point in the source, so we can be consistent about the definition of UNICODE and have core utility functions for Windows that all modules can share.
Sam Lantinga <slouken@libsdl.org>
parents:
5003
diff
changeset
|
28 |
$(wildcard $(LOCAL_PATH)/src/haptic/dummy/*.c) \ |
4964
6c645018741e
Build the SDL library as a shared object on Android, so it will work correctly with SDL_image and SDL_ttf.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
29 |
$(wildcard $(LOCAL_PATH)/src/joystick/*.c) \ |
5090
327f181542f1
Include windows.h in a single point in the source, so we can be consistent about the definition of UNICODE and have core utility functions for Windows that all modules can share.
Sam Lantinga <slouken@libsdl.org>
parents:
5003
diff
changeset
|
30 |
$(wildcard $(LOCAL_PATH)/src/joystick/android/*.c) \ |
5092 | 31 |
$(wildcard $(LOCAL_PATH)/src/loadso/dlopen/*.c) \ |
5090
327f181542f1
Include windows.h in a single point in the source, so we can be consistent about the definition of UNICODE and have core utility functions for Windows that all modules can share.
Sam Lantinga <slouken@libsdl.org>
parents:
5003
diff
changeset
|
32 |
$(wildcard $(LOCAL_PATH)/src/power/*.c) \ |
5161
1bd1e62e648d
Fixed building for Android
Sam Lantinga <slouken@libsdl.org>
parents:
5092
diff
changeset
|
33 |
$(wildcard $(LOCAL_PATH)/src/render/*.c) \ |
5204
daa5463466c5
Fixed building on Android, added SDL_opengles2.h, removed unnecessary SDL_glesfuncs.h
Sam Lantinga <slouken@libsdl.org>
parents:
5161
diff
changeset
|
34 |
$(wildcard $(LOCAL_PATH)/src/render/*/*.c) \ |
4964
6c645018741e
Build the SDL library as a shared object on Android, so it will work correctly with SDL_image and SDL_ttf.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
35 |
$(wildcard $(LOCAL_PATH)/src/stdlib/*.c) \ |
6c645018741e
Build the SDL library as a shared object on Android, so it will work correctly with SDL_image and SDL_ttf.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
36 |
$(wildcard $(LOCAL_PATH)/src/thread/*.c) \ |
5090
327f181542f1
Include windows.h in a single point in the source, so we can be consistent about the definition of UNICODE and have core utility functions for Windows that all modules can share.
Sam Lantinga <slouken@libsdl.org>
parents:
5003
diff
changeset
|
37 |
$(wildcard $(LOCAL_PATH)/src/thread/pthread/*.c) \ |
4964
6c645018741e
Build the SDL library as a shared object on Android, so it will work correctly with SDL_image and SDL_ttf.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
38 |
$(wildcard $(LOCAL_PATH)/src/timer/*.c) \ |
5090
327f181542f1
Include windows.h in a single point in the source, so we can be consistent about the definition of UNICODE and have core utility functions for Windows that all modules can share.
Sam Lantinga <slouken@libsdl.org>
parents:
5003
diff
changeset
|
39 |
$(wildcard $(LOCAL_PATH)/src/timer/unix/*.c) \ |
4964
6c645018741e
Build the SDL library as a shared object on Android, so it will work correctly with SDL_image and SDL_ttf.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
40 |
$(wildcard $(LOCAL_PATH)/src/video/*.c) \ |
5092 | 41 |
$(wildcard $(LOCAL_PATH)/src/video/android/*.c)) |
4964
6c645018741e
Build the SDL library as a shared object on Android, so it will work correctly with SDL_image and SDL_ttf.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
42 |
|
6208
291fea716f09
David Carre cpasjuste@gmail.com
Sam Lantinga <slouken@libsdl.org>
parents:
5204
diff
changeset
|
43 |
LOCAL_CFLAGS += -DGL_GLEXT_PROTOTYPES |
5204
daa5463466c5
Fixed building on Android, added SDL_opengles2.h, removed unnecessary SDL_glesfuncs.h
Sam Lantinga <slouken@libsdl.org>
parents:
5161
diff
changeset
|
44 |
LOCAL_LDLIBS := -ldl -lGLESv1_CM -lGLESv2 -llog |
4964
6c645018741e
Build the SDL library as a shared object on Android, so it will work correctly with SDL_image and SDL_ttf.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
45 |
|
6c645018741e
Build the SDL library as a shared object on Android, so it will work correctly with SDL_image and SDL_ttf.
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
46 |
include $(BUILD_SHARED_LIBRARY) |