git clone --recursive https://github.com/SpriteOvO/AirPodsDesktop.git
cd AirPodsDesktop
mkdir Build
cd Build
The current path will be named BuildPath in the rest of this document.
-
Download and install CMake (>= v3.20) if you didn't have it.
-
Choose a target platform to continue:
-
Download and install Visual Studio 2019 if you didn't have it.
-
Clone and bootstrap vcpkg if you didn't have it.
-
Download and install Qt 5.15.2. (Minimum required components are only
MSVC 2019 32-bit
)
Set the installed Qt directory to thePATH
environment variable, or pass it to the CMake option later. -
Download and install NSIS. (Optional, not required if you do not generate installer)
-
Open Powershell, go to BuildPath.
Modify the following arguments according to your needs and run it.cmake -G "Visual Studio 16 2019" -A Win32 -DCMAKE_BUILD_TYPE=<Debug|RelWithDebInfo> -DCMAKE_TOOLCHAIN_FILE=path\to\vcpkg\scripts\buildsystems\vcpkg.cmake ../ cmake --build . --config <Debug|RelWithDebInfo> ls ./Binary
- Note that if you have not just added the Qt directory to the
PATH
environment variable, you need to pass it to theCMAKE_PREFIX_PATH
option in the first line this way-DCMAKE_PREFIX_PATH=path\to\Qt\5.15.2\msvc2019
. - See the CMakeLists.txt
Build options
section for more options.
- Note that if you have not just added the Qt directory to the