/vcjsondb

Export compiler commands database aka. compile_commands.json from Microsoft Visual Studio .sln/vcxproj file.

Primary LanguageC++GNU General Public License v3.0GPL-3.0

vcjsondb

Export compiler commands database from Microsoft Visual Studio .sln/vcxproj file.

Build

Install Boost for MSVC

C:
cd \
git clone https://github.com/microsoft/vcpkg.git
cd vcpkg
bootstrap-vcpkg.bat

vcpkg integrate install

vcpkg install boost-program-options[core]:x64-windows-static
vcpkg install boost-filesystem[core]:x64-windows-static
vcpkg install boost-process[core]:x64-windows-static

Build with CMake

cmake.exe -G Ninja -DCMAKE_BUILD_TYPE=RelWithDeb -DCMAKE_TOOLCHAIN_FILE=C:/vcpkg/scripts/buildsystems/vcpkg.cmake -DVCPKG_TARGET_TRIPLET=x64-windows-static -S . -B build
cmake.exe --build build

Usage

vcjsondb.exe -i "C:\path\to\your\project\project1.sln" -i "C:\path\to\your\project\project2.sln" -o "C:\path\to\output\directory"