Skip to content

Commit bf2fd5f

Browse files
committed
android: Readded Android.mk
Fixes #107.
1 parent b3bd90e commit bf2fd5f

File tree

1 file changed

+59
-0
lines changed

1 file changed

+59
-0
lines changed

Android.mk

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
LOCAL_PATH := $(call my-dir)
2+
3+
###########################
4+
#
5+
# SDL_net shared library
6+
#
7+
###########################
8+
9+
include $(CLEAR_VARS)
10+
11+
LOCAL_MODULE := SDL3_net
12+
13+
LOCAL_C_INCLUDES := $(LOCAL_PATH)/include
14+
15+
LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/include
16+
17+
LOCAL_SRC_FILES := \
18+
$(subst $(LOCAL_PATH)/,,) \
19+
$(wildcard $(LOCAL_PATH)/src/*.c) \
20+
21+
LOCAL_CFLAGS =
22+
23+
# Warnings we haven't fixed (yet)
24+
LOCAL_CFLAGS += -Wno-unused-parameter -Wno-sign-compare
25+
26+
LOCAL_CXXFLAGS += -std=gnu++11
27+
28+
LOCAL_LDLIBS :=
29+
30+
LOCAL_LDFLAGS := -Wl,--no-undefined -Wl,--no-undefined-version -Wl,--version-script=$(LOCAL_PATH)/src/SDL_net.sym
31+
32+
ifeq ($(NDK_DEBUG),1)
33+
cmd-strip :=
34+
endif
35+
36+
LOCAL_SHARED_LIBRARIES := SDL3
37+
38+
include $(BUILD_SHARED_LIBRARY)
39+
40+
###########################
41+
#
42+
# SDL_net static library
43+
#
44+
###########################
45+
46+
LOCAL_MODULE := SDL3_net_static
47+
48+
LOCAL_MODULE_FILENAME := libSDL3_net
49+
50+
LOCAL_LDLIBS :=
51+
52+
LOCAL_LDFLAGS :=
53+
54+
LOCAL_EXPORT_LDLIBS :=
55+
56+
LOCAL_STATIC_LIBRARIES := SDL3
57+
LOCAL_SHARED_LIBRARIES :=
58+
59+
include $(BUILD_STATIC_LIBRARY)

0 commit comments

Comments
 (0)