|
|
|
@ -70,6 +70,7 @@ SRS_BUILD_TAG= # Set the object files tag name.
|
|
|
|
|
SRS_CLEAN=YES # Whether do "make clean" when configure.
|
|
|
|
|
SRS_SIMULATOR=NO # Whether enable RTC simulate API.
|
|
|
|
|
SRS_GENERATE_OBJS=NO # Whether generate objs and quit.
|
|
|
|
|
SRS_SINGLE_THREAD=NO # Whether force single thread mode.
|
|
|
|
|
#
|
|
|
|
|
################################################################
|
|
|
|
|
# Performance options.
|
|
|
|
@ -184,6 +185,7 @@ Experts:
|
|
|
|
|
--clean=on|off Whether do 'make clean' when configure. Default: $(value2switch $SRS_CLEAN)
|
|
|
|
|
--simulator=on|off RTC: Whether enable network simulator. Default: $(value2switch $SRS_SIMULATOR)
|
|
|
|
|
--generate-objs=on|off RTC: Whether generate objs and quit. Default: $(value2switch $SRS_GENERATE_OBJS)
|
|
|
|
|
--single-thread=on|off Whether force single thread mode. Default: $(value2switch $SRS_SINGLE_THREAD)
|
|
|
|
|
--build-tag=<TAG> Set the build object directory suffix.
|
|
|
|
|
|
|
|
|
|
Workflow:
|
|
|
|
@ -298,6 +300,7 @@ function parse_user_option() {
|
|
|
|
|
--rtc) SRS_RTC=$(switch2value $value) ;;
|
|
|
|
|
--simulator) SRS_SIMULATOR=$(switch2value $value) ;;
|
|
|
|
|
--generate-objs) SRS_GENERATE_OBJS=$(switch2value $value) ;;
|
|
|
|
|
--single-thread) SRS_SINGLE_THREAD=$(switch2value $value) ;;
|
|
|
|
|
--ffmpeg-fit) SRS_FFMPEG_FIT=$(switch2value $value) ;;
|
|
|
|
|
--gb28181) SRS_GB28181=$(switch2value $value) ;;
|
|
|
|
|
|
|
|
|
@ -586,6 +589,7 @@ function regenerate_options() {
|
|
|
|
|
SRS_AUTO_CONFIGURE="${SRS_AUTO_CONFIGURE} --debug-stats=$(value2switch $SRS_DEBUG_STATS)"
|
|
|
|
|
SRS_AUTO_CONFIGURE="${SRS_AUTO_CONFIGURE} --cross-build=$(value2switch $SRS_CROSS_BUILD)"
|
|
|
|
|
SRS_AUTO_CONFIGURE="${SRS_AUTO_CONFIGURE} --sanitizer=$(value2switch $SRS_SANITIZER)"
|
|
|
|
|
SRS_AUTO_CONFIGURE="${SRS_AUTO_CONFIGURE} --single-thread=$(value2switch $SRS_SINGLE_THREAD)"
|
|
|
|
|
if [[ $SRS_CROSS_BUILD_ARCH != "" ]]; then SRS_AUTO_CONFIGURE="$SRS_AUTO_CONFIGURE --arch=$SRS_CROSS_BUILD_ARCH"; fi
|
|
|
|
|
if [[ $SRS_CROSS_BUILD_CPU != "" ]]; then SRS_AUTO_CONFIGURE="$SRS_AUTO_CONFIGURE --cpu=$SRS_CROSS_BUILD_CPU"; fi
|
|
|
|
|
if [[ $SRS_CROSS_BUILD_HOST != "" ]]; then SRS_AUTO_CONFIGURE="$SRS_AUTO_CONFIGURE --host=$SRS_CROSS_BUILD_HOST"; fi
|
|
|
|
|