添加mac版本二进制文件

This commit is contained in:
xiongziliang
2019-08-19 14:59:56 +08:00
parent 5bcdb7fb53
commit fa60a3c1d8
25 changed files with 35 additions and 6 deletions

1
.gitattributes vendored Normal file
View File

@@ -0,0 +1 @@
release/ filter=lfs diff=lfs merge=lfs -text

View File

@@ -2,13 +2,34 @@
cmake_minimum_required(VERSION 3.1.3)
#使能c++11
set(CMAKE_CXX_STANDARD 11)
#加载自定义模块
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${PROJECT_SOURCE_DIR}/cmake")
#设置库文件路径
set(LIBRARY_OUTPUT_PATH ${PROJECT_BINARY_DIR}/lib)
#设置可执行程序路径
set(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin)
#set(CMAKE_BUILD_TYPE "Release")
if(${CMAKE_BUILD_TYPE} MATCHES "Release")
message(STATUS "Release版本")
set(BuildType "Release")
else()
set(BuildType "Debug")
message(STATUS "Debug版本")
endif()
#设置bin和lib库目录
set(RELEASE_DIR ${CMAKE_SOURCE_DIR}/release)
if (CMAKE_SYSTEM_NAME MATCHES "Linux")
SET(LIBRARY_OUTPUT_PATH ${RELEASE_DIR}/linux/${BuildType})
SET(EXECUTABLE_OUTPUT_PATH ${RELEASE_DIR}/linux/${BuildType})
elseif (CMAKE_SYSTEM_NAME MATCHES "Windows")
SET(LIBRARY_OUTPUT_PATH ${RELEASE_DIR}/windows)
SET(EXECUTABLE_OUTPUT_PATH ${RELEASE_DIR}/windows)
elseif (CMAKE_SYSTEM_NAME MATCHES "Darwin")
SET(LIBRARY_OUTPUT_PATH ${RELEASE_DIR}/mac/${BuildType})
SET(EXECUTABLE_OUTPUT_PATH ${RELEASE_DIR}/mac/${BuildType})
endif ()
LINK_DIRECTORIES(${LIBRARY_OUTPUT_PATH})
#设置工程源码根目录
set(ToolKit_Root ${CMAKE_SOURCE_DIR}/3rdpart/ZLToolKit/src)

BIN
release/mac/Release/MediaServer Executable file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -0,0 +1,6 @@
执行可执行程序时,请在终端输入:
```
export DYLD_LIBRARY_PATH=./
./MediaServer -d &
```

BIN
release/mac/Release/ssl.p12 Normal file

Binary file not shown.

Binary file not shown.

BIN
release/mac/Release/test_httpApi Executable file

Binary file not shown.

Binary file not shown.

BIN
release/mac/Release/test_player Executable file

Binary file not shown.

BIN
release/mac/Release/test_pusher Executable file

Binary file not shown.

Binary file not shown.

BIN
release/mac/Release/test_server Executable file

Binary file not shown.

View File

@@ -439,7 +439,8 @@ static inline unsigned int showBitsLong(void *pvHandle, int iN)
if (iN <= 32) {
return showBits(ptPtr, iN);
}
}
return 0;
}