Skip to content

Commit 0c30468

Browse files
committed
[win_build] Add nix-tool
Build nix-tool and add it to the distribution.
1 parent dcf47e3 commit 0c30468

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,4 @@ tests/*.h5
1212
# library files
1313
*.dll
1414
*.mex*
15+
*.exe*

win_build.bat

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,13 @@ cmake --build . --config %BUILD_TYPE% --target testrunner
8787

8888
IF %ERRORLEVEL% == 1 (EXIT /b)
8989

90+
ECHO --------------------------------------------------------------------------
91+
ECHO Building nix-tool ...
92+
ECHO --------------------------------------------------------------------------
93+
cmake --build . --config %BUILD_TYPE% --target nix-tool
94+
95+
IF %ERRORLEVEL% == 1 (EXIT /b)
96+
9097
ECHO --------------------------------------------------------------------------
9198
ECHO Testing nix ...
9299
ECHO --------------------------------------------------------------------------
@@ -119,6 +126,8 @@ IF %ERRORLEVEL% == 1 (EXIT /b)
119126

120127
REM Copying required nix-mx.mex file to nix-mx root folder
121128
COPY %NIX_MX_ROOT%\build\%BUILD_TYPE%\nix_mx.mexw* %NIX_MX_ROOT%\ /Y
129+
REM Provide nix-tool as well for validation and content display
130+
COPY %NIX_ROOT%\build\%BUILD_TYPE%\nix-tool.exe %NIX_MX_ROOT%\ /Y
122131

123132
CD %NIX_MX_ROOT%
124133

0 commit comments

Comments
 (0)