Skip to content

Commit

Permalink
dist target in common just import
Browse files Browse the repository at this point in the history
  • Loading branch information
dirkvdb committed Feb 19, 2025
1 parent 3f0e65c commit c565973
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
12 changes: 12 additions & 0 deletions dist.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
@echo off

REM Print the first argument of the script

FOR /F "tokens=* USEBACKQ" %%F IN (`"C:\Program Files (x86)\Microsoft Visual Studio\Installer\vswhere.exe" -latest -property InstallationPath`) DO (
SET vspath=%%F
)
ECHO %vspath%
ECHO %1
set VSCMD_START_DIR=%1
CALL "%vspath%\VC\Auxiliary\Build\vcvarsall.bat" x64
just build_dist
10 changes: 9 additions & 1 deletion vcpkg.just
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,12 @@ export VCPKG_OVERLAY_TRIPLETS := join(source_directory(), "vcpkg_overlay", "trip
export VCPKG_OVERLAY_PORTS := join(source_directory(), "vcpkg_overlay", "ports")

git_status_clean:
git diff --quiet --exit-code
git diff --quiet --exit-code

# will invoke just build_dist but first activates the visual studio environment
[windows]
dist:
cmd.exe /C '{{source_directory()}}/dist.bat' '{{justfile_directory()}}'

[unix]
dist: build_dist

0 comments on commit c565973

Please sign in to comment.