forked from antirez/dump1090
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild_setup.bat
More file actions
29 lines (21 loc) · 992 Bytes
/
build_setup.bat
File metadata and controls
29 lines (21 loc) · 992 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
@echo off
set CMAKE_GENERATOR=Visual Studio 17 2022
set ARG1=DUMP1090_FIRST_BUILD=ON
echo Setting up build environment...
echo Generating build files with CMake...
cmake -G "%CMAKE_GENERATOR%" -S . -B build/ -D%ARG1%
echo Installing LibUSB...
cmake --build build/third_party/libusb-cmake/ --config Debug
cmake --build build/third_party/libusb-cmake/ --config Release
cmake --install build/third_party/libusb-cmake/ --config Release
echo Build and install pthreads-win32...
cmake --build build/_deps/pthreads-win32-build/ --config Debug
cmake --build build/_deps/pthreads-win32-build/ --config Release
cmake --install build/_deps/pthreads-win32-build/ --config Release
echo Starting regular build...
cmake -S . -B build/ -DDUMP1090_FIRST_BUILD=OFF
cmake --build build/ --config Debug
cmake --build build/ --config Release
echo Copying rtlsdr.dll to relevant folders
xcopy /f /d "build/install/bin/rtlsdr.dll" "build/Debug/"
xcopy /f /d "build/install/bin/rtlsdr.dll" "build/Release/"