mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
[IDE] We should always configure SRS for switching between branches.
This commit is contained in:
parent
afa32910c9
commit
169f08bae1
1 changed files with 8 additions and 6 deletions
|
@ -14,6 +14,13 @@ message("SRS home is ${SRS_DIR}")
|
||||||
include(ProcessorCount)
|
include(ProcessorCount)
|
||||||
ProcessorCount(JOBS)
|
ProcessorCount(JOBS)
|
||||||
|
|
||||||
|
# We should always configure SRS for switching between branches.
|
||||||
|
IF (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
|
||||||
|
EXEC_PROGRAM("cd ${SRS_DIR} && ./configure --osx --jobs=${JOBS}")
|
||||||
|
ELSE ()
|
||||||
|
EXEC_PROGRAM("cd ${SRS_DIR} && ./configure --jobs=${JOBS}")
|
||||||
|
ENDIF ()
|
||||||
|
|
||||||
set(DEPS_LIBS ${SRS_DIR}/objs/st/libst.a
|
set(DEPS_LIBS ${SRS_DIR}/objs/st/libst.a
|
||||||
${SRS_DIR}/objs/openssl/lib/libssl.a
|
${SRS_DIR}/objs/openssl/lib/libssl.a
|
||||||
${SRS_DIR}/objs/openssl/lib/libcrypto.a
|
${SRS_DIR}/objs/openssl/lib/libcrypto.a
|
||||||
|
@ -24,12 +31,7 @@ set(DEPS_LIBS ${SRS_DIR}/objs/st/libst.a
|
||||||
${SRS_DIR}/objs/ffmpeg/lib/libswresample.a)
|
${SRS_DIR}/objs/ffmpeg/lib/libswresample.a)
|
||||||
foreach(DEPS_LIB ${DEPS_LIBS})
|
foreach(DEPS_LIB ${DEPS_LIBS})
|
||||||
IF (NOT EXISTS ${DEPS_LIB})
|
IF (NOT EXISTS ${DEPS_LIB})
|
||||||
MESSAGE("${DEPS_LIB} not found")
|
MESSAGE(FATAL_ERROR "${DEPS_LIB} not found")
|
||||||
IF (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
|
|
||||||
EXEC_PROGRAM("cd ${SRS_DIR} && ./configure --osx --jobs=${JOBS}")
|
|
||||||
ELSE ()
|
|
||||||
EXEC_PROGRAM("cd ${SRS_DIR} && ./configure --jobs=${JOBS}")
|
|
||||||
ENDIF ()
|
|
||||||
ELSE ()
|
ELSE ()
|
||||||
MESSAGE("${DEPS_LIB} is ok")
|
MESSAGE("${DEPS_LIB} is ok")
|
||||||
ENDIF ()
|
ENDIF ()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue