File: qt-internal-configure-tests.bat.in

package info (click to toggle)
qt6-base 6.9.2%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 317,252 kB
  • sloc: cpp: 2,117,791; ansic: 382,065; xml: 142,588; python: 21,637; java: 8,805; asm: 4,009; javascript: 2,290; sh: 1,651; perl: 1,028; makefile: 133
file content (34 lines) | stat: -rw-r--r-- 993 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
@echo off
setlocal ENABLEDELAYEDEXPANSION ENABLEEXTENSIONS
set script_dir_path=%~dp0
set script_dir_path=%script_dir_path:~0,-1%

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.
set args=%*
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%!
)

set cmake_scripts_dir=%script_dir_path%

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" ^
     @script_passed_args@ %args%