Skip to content

Commit

Permalink
Windows: Support query feature by API.
Browse files Browse the repository at this point in the history
  • Loading branch information
winlinvip committed Dec 4, 2021
1 parent d969441 commit 2106e94
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 6 deletions.
5 changes: 5 additions & 0 deletions trunk/auto/auto_headers.sh
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,11 @@ if [ $SRS_CROSS_BUILD = YES ]; then
else
srs_undefine_macro "SRS_CROSSBUILD" $SRS_AUTO_HEADERS_H
fi
if [ $SRS_WINDOWS = YES ]; then
srs_define_macro "SRS_WINDOWS" $SRS_AUTO_HEADERS_H
else
srs_undefine_macro "SRS_WINDOWS" $SRS_AUTO_HEADERS_H
fi
if [ $SRS_OSX = YES ]; then
srs_define_macro "SRS_OSX" $SRS_AUTO_HEADERS_H
else
Expand Down
12 changes: 6 additions & 6 deletions trunk/auto/options.sh
Original file line number Diff line number Diff line change
Expand Up @@ -75,12 +75,12 @@ SRS_GPROF=NO # Performance test: gprof
################################################################
# Preset options
SRS_X86_X64=NO # For x86_64 servers
SRS_OSX=NO #For osx/macOS PC.
SRS_CROSS_BUILD=NO #For cross build, for example, on Ubuntu.
# For cross build, the cpu, for example(FFmpeg), --cpu=24kc
SRS_CROSS_BUILD_CPU=
# For cross build, the arch, for example(FFmpeg), --arch=aarch64
SRS_CROSS_BUILD_ARCH=
SRS_OSX=NO # For OSX/macOS PC.
SRS_WINDOWS=NO # For Cygwin/Windows PC or servers.
SRS_CROSS_BUILD=NO # For cross build, for example, on Ubuntu.
# For cross build, whether armv7 or armv8(aarch64).
SRS_CROSS_BUILD_ARMV7=NO
SRS_CROSS_BUILD_AARCH64=NO
# For cross build, the host, for example(libsrtp), --host=aarch64-linux-gnu
SRS_CROSS_BUILD_HOST=
# For cross build, the cross prefix, for example(FFmpeg), --cross-prefix=aarch64-linux-gnu-
Expand Down
2 changes: 2 additions & 0 deletions trunk/src/app/srs_app_latest_version.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ void srs_build_features(stringstream& ss)
{
if (SRS_OSX_BOOL) {
ss << "&os=mac";
} else if (SRS_WINDOWS_BOOL) {
ss << "&os=windows";
} else {
ss << "&os=linux";
}
Expand Down

0 comments on commit 2106e94

Please sign in to comment.