forked from NetEase/libpomelo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add libpomelo android ndk build support
- Loading branch information
Showing
7 changed files
with
74 additions
and
7 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,52 @@ | ||
LOCAL_PATH := $(call my-dir) | ||
|
||
include $(CLEAR_VARS) | ||
|
||
LOCAL_MODULE := pomelo_static | ||
|
||
LOCAL_MODULE_FILENAME := libpomelo | ||
|
||
LOCAL_SRC_FILES := \ | ||
src/client.c \ | ||
src/message.c \ | ||
src/package.c \ | ||
src/pkg-handshake.c \ | ||
src/transport.c \ | ||
src/common.c \ | ||
src/msg-json.c \ | ||
src/pb-decode.c \ | ||
src/pkg-heartbeat.c \ | ||
src/listener.c \ | ||
src/msg-pb.c \ | ||
src/pb-encode.c \ | ||
src/protocol.c \ | ||
src/map.c \ | ||
src/network.c \ | ||
src/pb-util.c \ | ||
src/thread.c \ | ||
|
||
|
||
|
||
|
||
|
||
LOCAL_EXPORT_C_INCLUDES :=$(LOCAL_PATH)/include \ | ||
$(LOCAL_PATH)/include/pomelo-protobuf \ | ||
$(LOCAL_PATH)/include/pomelo-protocol | ||
|
||
|
||
|
||
LOCAL_C_INCLUDES := $(LOCAL_PATH)/include \ | ||
$(LOCAL_PATH)/include/pomelo-protobuf \ | ||
$(LOCAL_PATH)/include/pomelo-protocol \ | ||
$(LOCAL_PATH)/include/pomelo-private | ||
|
||
LOCAL_WHOLE_STATIC_LIBRARIES := uv_static jansson_static | ||
|
||
|
||
|
||
include $(BUILD_STATIC_LIBRARY) | ||
|
||
LOCAL_CFLAGS := -D__ANDROID__ | ||
|
||
$(call import-module,libpomelo/deps/uv) \ | ||
$(call import-module,libpomelo/deps/jansson) |
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
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
00f92ad
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
你们这个地方的是已经成功了的东西吗,直接在android里面能运行
00f92ad
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
是的,在 android ndk 下编译成功,并在真实机子上测试过