Forked from http://winlirc.sourceforge.net/
- Visual Studio 2022 (any edition). Make sure you install MFC
- CMake. Don't really need to install it separately - it comes with Visual Studio.
- Visual Studio Code
- Visual Studio or Visual Studio build tools
- CMake.
- CMake Tools extension for vscode
Initialize git submodules, if not done already:
git submodule update --init
There are two options when building with Visual Studio - using the CMake support built into Visual Studio, or by generating the Visual Studio solution, and using that.
You need Visual Studio, any edition will do. If that's installed, just run cmake --preset x86
or cmake --preset x64
to get all the depepndencies and initialize Visual Studio solution. You can build winlirc using cmake on command line
or you can open the generated .sln file and build it with Visual Studio. Here's an eample how to build and install
WinLIRC with CMake on command line:
c:\winlirc> cmake --preset x64
c:\winlirc> cd _build-x64
c:\winlirc\_build-x64> cmake --build . --config RelWithDebInfo
c:\winlirc\_build-x64> cmake --install . --prefix %userprofile%\winlirc --config RelWithDebInfo
Open the root folder of the repo in Visual Studio. Let Visual Studio configure the project. When Visual Studio finishes generating the build system, then just start building.
After building, you may want to build an installer. This requires Wix3 to be in
your PATH
(CMake does not support Wix4 yet).
Once winlirc has been built, assuming x64:
c:\winlirc> cd _build-x64
c:\winlirc\_build-x64> cpack --preset default
Have a config file you want to share? Please go to https://github.com/leg0/winlirc-configs and create a pull request.