Skip to content

Commit

Permalink
Add configure script and disable build configurations
Browse files Browse the repository at this point in the history
  • Loading branch information
bindreams committed Feb 28, 2025
1 parent b887b6c commit a1f78cb
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 deletions.
File renamed without changes.
8 changes: 8 additions & 0 deletions configure.py
Original file line number Diff line number Diff line change
@@ -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")
File renamed without changes.
3 changes: 1 addition & 2 deletions qodana.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit a1f78cb

Please sign in to comment.