2021-04-26 13:45:29 +00:00
|
|
|
@echo off
|
|
|
|
setlocal ENABLEDELAYEDEXPANSION ENABLEEXTENSIONS
|
|
|
|
set script_dir_path=%~dp0
|
|
|
|
set script_dir_path=%script_dir_path:~0,-1%
|
|
|
|
|
2023-04-17 10:12:38 +00:00
|
|
|
rem Extracts the source path, make it native, and put it
|
|
|
|
rem back again. This is a workaround on Windows LLVM/MINGW
|
|
|
|
rem to help CMake find source files when doing Unity Build.
|
2023-04-13 17:26:15 +00:00
|
|
|
set args=%*
|
2023-04-17 10:12:38 +00:00
|
|
|
set source_dir_path=
|
|
|
|
set native_source_dir_path=
|
|
|
|
for %%i in (%args%) do (
|
|
|
|
if "%%i"=="-S" (
|
|
|
|
set found=true
|
|
|
|
) else if defined found (
|
|
|
|
set source_dir_path=%%i
|
|
|
|
set native_source_dir_path=%%~dpnxi
|
|
|
|
set found=
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
if NOT "%native_source_dir_path%" == "" (
|
|
|
|
set args=!args:%source_dir_path%=%native_source_dir_path%!
|
|
|
|
)
|
2023-04-13 17:26:15 +00:00
|
|
|
|
2021-04-26 13:45:29 +00:00
|
|
|
set cmake_scripts_dir=%script_dir_path%
|
|
|
|
|
2021-06-14 14:58:33 +00:00
|
|
|
set relative_bin_dir=@relative_path_from_libexec_dir_to_bin_dir@
|
|
|
|
if NOT "%relative_bin_dir%" == "" (
|
|
|
|
set relative_bin_dir="%relative_bin_dir%"\
|
|
|
|
)
|
|
|
|
|
|
|
|
call "%script_dir_path%"\%relative_bin_dir%"qt-cmake.bat" ^
|
2023-04-13 17:26:15 +00:00
|
|
|
@script_passed_args@ %args%
|