Skip to content

leg0/WinLIRC

Repository files navigation

WinLIRC

Build Release

Forked from http://winlirc.sourceforge.net/

Prerequisites

For building in Visual Studio

  • Visual Studio 2022 (any edition). Make sure you install MFC
  • CMake. Don't really need to install it separately - it comes with Visual Studio.

For building in Visual Studio Code

Building

Initialize git submodules, if not done already:

git submodule update --init

Visual Studio

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.

With Generated Visual Studio solution

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

With built-in CMake support

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.

Create an installer

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

Share a config file

Have a config file you want to share? Please go to https://github.com/leg0/winlirc-configs and create a pull request.