build: Use separate cmd to build DataStreamSuite/QueryAnalyzer.sln
The DataStreamSuite.sln builds the new webapp now, which will (eventually) replace DSQA. We'll keep it around for now, but with a clean separation from the main build.
This commit is contained in:
1 parent
add3aa8bd3
commit
a0029ed4c6
5 files changed
+204
-16
No files matched your search
@@ -0,0 +1,29 @@
|
||||
@echo off
|
||||
setlocal
|
||||
|
||||
set VS_DEV_CMD_BAT="C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\Common7\\Tools\\VsDevCmd.bat"
|
||||
if exist %VS_DEV_CMD_BAT% (
|
||||
call %VS_DEV_CMD_BAT%
|
||||
)
|
||||
|
||||
set NODEVARS_BAT="C:\\Program Files\\nodejs\\nodevars.bat"
|
||||
if exist %NODEVARS_BAT% (
|
||||
call %NODEVARS_BAT%
|
||||
)
|
||||
|
||||
set TOOLS_DIR=%~dp0
|
||||
set REPO_DIR=%~dp0..
|
||||
set BUILD_PY=%TOOLS_DIR%\py\build_data_stream_query_analyzer.py
|
||||
|
||||
if DEFINED VIRTUAL_ENV (
|
||||
@REM We're already in a venv, just run build_data_stream_query_analyzer.py (whether or not it is
|
||||
@REM the 'right' venv is the caller's responsibility)
|
||||
echo "Building in the current venv '%VIRTUAL_ENV'"
|
||||
@call python %BUILD_PY% %*
|
||||
) else (
|
||||
@REM Ensure the (default) venv is created, then run build_data_stream_query_analyzer.py in it
|
||||
@call %TOOLS_DIR%\ensure_venv.cmd
|
||||
@call %TOOLS_DIR%\venv_exec.cmd python %BUILD_PY% %*
|
||||
)
|
||||
|
||||
EXIT /B %ERRORLEVEL%
|
||||
Reference in new issue
Block a user