@echo off
set QTSRC=%~dp0
set QTDIR=%CD%
-if exist configure.exe goto conf
+if not exist %QTSRC%\.gitignore goto sconf
echo Please wait while bootstrapping configure ...
for %%C in (cl.exe icl.exe g++.exe perl.exe) do set %%C=%%~$PATH:C
-set nosyncqt=
-if not exist include (
- if "%perl.exe%" == "" (
- echo Perl not found in PATH. Aborting. >&2
- exit /b 1
- )
- if not exist mkspecs (
- md mkspecs
- if errorlevel 1 goto exit
- )
- perl %QTSRC%bin\syncqt -outdir %QTDIR% %QTSRC%
- if errorlevel 1 goto exit
- set nosyncqt=-no-syncqt
+if "%perl.exe%" == "" (
+ echo Perl not found in PATH. Aborting. >&2
+ exit /b 1
)
-
-if not exist src\corelib\global\qconfig.h (
- if not exist src\corelib\global (
- md src\corelib\global
- if errorlevel 1 goto exit
- )
- echo /* Generated by configure.bat - DO NOT EDIT! */ > src\corelib\global\qconfig.h
+if not exist mkspecs (
+ md mkspecs
+ if errorlevel 1 goto exit
)
+perl %QTSRC%bin\syncqt -minimal -module QtCore -outdir %QTDIR% %QTSRC%
+if errorlevel 1 goto exit
if not exist tools\configure (
md tools\configure
cd ..\..
:conf
-configure.exe -srcdir %QTSRC% %* %nosyncqt%
+configure.exe -srcdir %QTSRC% %*
+goto exit
+
+:sconf
+%QTSRC%\configure.exe %*
:exit