Skip to content

WinCPPToolkit is an integrated suite of popular C++ build tools for Windows, designed to enhance the efficiency of cross-platform projects being developed within the Windows environment.

Notifications You must be signed in to change notification settings

ChillMagic/WinCPPToolkit

Repository files navigation

WinCPPToolkit

WinCPPToolkit is an integrated suite of popular C++ build tools for Windows, designed to enhance the efficiency of cross-platform projects being developed within the Windows environment.

This toolkit is designed for cross-platform C/C++ projects, making building more convenient. It can also be integrated into IDEs such as CLion (See it), offering an alternative toolchain option besides Visual Studio and MinGW.

You can use it on Windows in a way similar to Linux like this:

mkdir build
cd build
cmake ..
ninja

Currently integrated or in the process of integration tools:

  • clang+llvm
  • cmake
  • ninja
  • git
  • meson

Requirements

Setup

To setup this tool, you typically follow these steps after ensuring Python is installed on your system:

  1. Clone the repository: Clone the repository to your local machine using Git.

    git clone https://github.com/ChillMagic/WinCPPToolkit.git
  2. Navigate to the project directory: Change into the project directory.

    cd WinCPPToolkit
  3. Setup Python environment Run get-python script to setup.

    .\get-python.bat
    
  4. Run the init script: Execute the script or command to init the tool.

    python\python init.py

Usage

Shell Setup

Setup PATH variable: Now, by adding toolkit to the PATH, you can directly use the commands.

Powershell:

$env:PATH += ";" + (Join-Path (Get-Location) "bin")

CMD:

set PATH=%PATH%;%cd%\bin

After setting up the PATH, you can directly use commands like cmake for building. This toolkit utilizes clang/llvm + cmake + ninja as the toolset, which can be used as follows:

cmake ..
ninja

CLion Setup

In CLion, you can use it by simply making the following settings:

Compatibility

MinGW

In some projects, although Windows cmake scripts are configured, the MinGW toolchain is used. Compatibility can be achieved by adding the __MINGW32__ macro, be like:

cmake .. -DCMAKE_CXX_FLAGS=-D__MINGW32__

About

WinCPPToolkit is an integrated suite of popular C++ build tools for Windows, designed to enhance the efficiency of cross-platform projects being developed within the Windows environment.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published