Auto compile commands on build

dev
anulax1225 ago%!(EXTRA string=7 months)
parent 805b14955a
commit e33dddedea
  1. 1
      .gitignore
  2. 2
      src/Premake/Wks.py
  3. 2
      src/ToolChaine.py

1
.gitignore vendored

@ -1,5 +1,6 @@
/test_app/
bin/
build/
dist/
**.spec
**__pycache__**

@ -8,7 +8,7 @@ def get(name) -> str:
{
"MultiProcessorCompile"
}
toolset "clang"
linkgroups "On"
outputdir = "%{cfg.system}-%{cfg.architecture}-%{cfg.buildcfg}"

@ -45,6 +45,8 @@ def build(config) -> None:
Log.info("Build with vscode 2022")
case "Linux":
Command.exec("premake5 gmake2")
Command.exec("premake5 export-compile-commands")
Command.exec(f"mv ./compile_commands/{config.lower()}.json ./compile_commands.json")
Command.exec(f"make config={config.lower()}")
case _:
Log.error("Platform not supported")

Loading…
Cancel
Save