forked from stevedonovan/AndroLua
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Ildar Mulyukov
committed
Jun 12, 2020
1 parent
248ec4b
commit e0e0217
Showing
6 changed files
with
115 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[submodule "app/src/main/jni/luasocket/luasocket"] | ||
path = app/src/main/jni/luasocket/luasocket | ||
url = https://github.com/diegonehab/luasocket |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
LOCAL_PATH := $(call my-dir) | ||
|
||
# Tweaks to reuse original luasocket makefile | ||
O=o | ||
SOCKET=usocket.o | ||
|
||
# This is from ./luasocket/src/makefile | ||
|
||
# DEBUG: NODEBUG DEBUG | ||
# debug mode causes luasocket to collect and returns timing information useful | ||
# for testing and debugging luasocket itself | ||
DEBUG?=NODEBUG | ||
|
||
#------ | ||
# Compiler and linker settings | ||
# for Linux | ||
DEF_linux=-DLUASOCKET_$(DEBUG) | ||
|
||
#------ | ||
# Modules belonging to socket-core | ||
# | ||
SOCKET_OBJS= \ | ||
luasocket.$(O) \ | ||
timeout.$(O) \ | ||
buffer.$(O) \ | ||
io.$(O) \ | ||
auxiliar.$(O) \ | ||
compat.$(O) \ | ||
options.$(O) \ | ||
inet.$(O) \ | ||
$(SOCKET) \ | ||
except.$(O) \ | ||
select.$(O) \ | ||
tcp.$(O) \ | ||
udp.$(O) | ||
|
||
#------ | ||
# Modules belonging mime-core | ||
# | ||
MIME_OBJS= \ | ||
mime.$(O) \ | ||
compat.$(O) | ||
# skipping Unix sockets and Serial modules | ||
|
||
# socket-core | ||
include $(CLEAR_VARS) | ||
LOCAL_C_INCLUDES += $(LOCAL_PATH)/../lua | ||
LOCAL_C_INCLUDES += $(LOCAL_PATH)/luasocket/src | ||
LOCAL_CFLAGS += $(DEF_linux) | ||
LOCAL_MODULE := socket_core | ||
LOCAL_SRC_FILES := $(SOCKET_OBJS:%o=luasocket/src/%c) | ||
LOCAL_SHARED_LIBRARIES := luajava | ||
# LOCAL_ALLOW_UNDEFINED_SYMBOLS = true | ||
# LOCAL_LDLIBS := -L$(SYSROOT)/usr/lib -llog | ||
include $(BUILD_SHARED_LIBRARY) | ||
|
||
# mime-core | ||
include $(CLEAR_VARS) | ||
LOCAL_C_INCLUDES += $(LOCAL_PATH)/../lua | ||
LOCAL_C_INCLUDES += $(LOCAL_PATH)/luasocket/src | ||
LOCAL_CFLAGS += $(DEF_linux) | ||
LOCAL_MODULE := mime_core | ||
LOCAL_SRC_FILES := $(MIME_OBJS:%o=luasocket/src/%c) | ||
LOCAL_SHARED_LIBRARIES := luajava | ||
# LOCAL_ALLOW_UNDEFINED_SYMBOLS = true | ||
# LOCAL_LDLIBS := -L$(SYSROOT)/usr/lib -llog | ||
include $(BUILD_SHARED_LIBRARY) | ||
|