diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..d9c4f04 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +objs/ diff --git a/Android.mk b/Android.mk new file mode 100644 index 0000000..00f9836 --- /dev/null +++ b/Android.mk @@ -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) \ No newline at end of file diff --git a/rtsp_h264_file b/rtsp_h264_file new file mode 100644 index 0000000..029dcd3 Binary files /dev/null and b/rtsp_h264_file differ diff --git a/rtsp_pusher b/rtsp_pusher new file mode 100644 index 0000000..f61e271 Binary files /dev/null and b/rtsp_pusher differ diff --git a/rtsp_server b/rtsp_server new file mode 100644 index 0000000..38c4083 Binary files /dev/null and b/rtsp_server differ diff --git a/test1.h264 b/test1.h264 new file mode 100644 index 0000000..568b835 Binary files /dev/null and b/test1.h264 differ