Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Android platform #48

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
objs/
66 changes: 66 additions & 0 deletions Android.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
LOCAL_PATH := $(call my-dir)
DEUBG = -D_DEBUG

SRC1_FILES := $(wildcard $(LOCAL_PATH)/src/net/*.cpp)
SRC2_FILES := $(wildcard $(LOCAL_PATH)/src/xop/*.cpp)
SRC3_FILES := $(wildcard $(LOCAL_PATH)/example/rtsp_server.cpp)
SRC4_FILES := $(wildcard $(LOCAL_PATH)/example/rtsp_pusher.cpp)
SRC5_FILES := $(wildcard $(LOCAL_PATH)/example/rtsp_h264_file.cpp)

##### Module rtsp_server########

include $(CLEAR_VARS)
LOCAL_MODULE := rtsp_server

LOCAL_C_INCLUDES += \
$(LOCAL_PATH)/inc \
$(LOCAL_PATH)/src \
$(LOCAL_PATH)/src/xop \
$(LOCAL_PATH)/src/3rdpart

LOCAL_SRC_FILES := \
$(SRC1_FILES:$(LOCAL_PATH)/%=%) \
$(SRC2_FILES:$(LOCAL_PATH)/%=%) \
$(SRC3_FILES:$(LOCAL_PATH)/%=%)

LOCAL_CPPFLAGS += -fPIC -Wall -Wno-unused-parameter -lrt -pthread -lpthread -ldl -lm $(DEBUG) -std=c++11

include $(BUILD_EXECUTABLE)

##### Module rtsp_pusher########
include $(CLEAR_VARS)
LOCAL_MODULE := rtsp_pusher

LOCAL_C_INCLUDES += \
$(LOCAL_PATH)/inc \
$(LOCAL_PATH)/src \
$(LOCAL_PATH)/src/xop \
$(LOCAL_PATH)/src/3rdpart

LOCAL_SRC_FILES := \
$(SRC1_FILES:$(LOCAL_PATH)/%=%) \
$(SRC2_FILES:$(LOCAL_PATH)/%=%) \
$(SRC4_FILES:$(LOCAL_PATH)/%=%)

LOCAL_CPPFLAGS += -fPIC -Wall -Wno-unused-parameter -lrt -pthread -lpthread -ldl -lm $(DEBUG) -std=c++11

include $(BUILD_EXECUTABLE)

##### Module rtsp_h264_file########
include $(CLEAR_VARS)
LOCAL_MODULE := rtsp_h264_file

LOCAL_C_INCLUDES += \
$(LOCAL_PATH)/inc \
$(LOCAL_PATH)/src \
$(LOCAL_PATH)/src/xop \
$(LOCAL_PATH)/src/3rdpart

LOCAL_SRC_FILES := \
$(SRC1_FILES:$(LOCAL_PATH)/%=%) \
$(SRC2_FILES:$(LOCAL_PATH)/%=%) \
$(SRC5_FILES:$(LOCAL_PATH)/%=%)

LOCAL_CPPFLAGS += -fPIC -Wall -Wno-unused-parameter -lrt -pthread -lpthread -ldl -lm $(DEBUG) -std=c++11

include $(BUILD_EXECUTABLE)
Binary file added rtsp_h264_file
Binary file not shown.
Binary file added rtsp_pusher
Binary file not shown.
Binary file added rtsp_server
Binary file not shown.
Binary file added test1.h264
Binary file not shown.