From a1f78cb3f28bc51558cb38c625f56c7b12c5c46c Mon Sep 17 00:00:00 2001 From: Anna Zhukova Date: Fri, 28 Feb 2025 11:18:27 +0100 Subject: [PATCH] Add configure script and disable build configurations --- Makefile => Makefile.disabled | 0 configure.py | 8 ++++++++ meson.build => meson.build.disabled | 0 qodana.yaml | 3 +-- 4 files changed, 9 insertions(+), 2 deletions(-) rename Makefile => Makefile.disabled (100%) create mode 100644 configure.py rename meson.build => meson.build.disabled (100%) diff --git a/Makefile b/Makefile.disabled similarity index 100% rename from Makefile rename to Makefile.disabled diff --git a/configure.py b/configure.py new file mode 100644 index 000000000..f7d48d3dd --- /dev/null +++ b/configure.py @@ -0,0 +1,8 @@ +import shutil +import subprocess as sp +from pathlib import Path + +shutil.copy2("CMakeLists.txt.disabled", "CMakeLists.txt") +sp.run(["cmake", "-S", ".", "-B", "build", "-D", "CMAKE_EXPORT_COMPILE_COMMANDS=1"], check=True) +Path("CMakeLists.txt").unlink() +Path("build/compile_commands.json").rename("compile_commands.json") diff --git a/meson.build b/meson.build.disabled similarity index 100% rename from meson.build rename to meson.build.disabled diff --git a/qodana.yaml b/qodana.yaml index 8611ebf56..6a17fff70 100644 --- a/qodana.yaml +++ b/qodana.yaml @@ -4,5 +4,4 @@ profile: bootstrap: | apt-get update apt-get install meson -y - meson setup build . - mv build/compile_commands.json ./ + python3 configure.py