16,240
社区成员
发帖
与我相关
我的任务
分享
@echo off
set path=R:\mingw32\bin;R:\Perl\bin;
set QTDIR=%cd%
title 编译QT - cnhemiya@gmail.com
echo -- 配置 --
pause
configure -platform win32-g++ -opensource -debug-and-release -qt-style-windowsxp -qt-style-windowsvista -no-style-plastique -no-style-cleanlooks -no-style-motif -no-style-cde -no-qt3support -no-script -no-scripttools -no-webkit -nomake examples -nomake demos
echo -- 编译 --
time /t
pause
jom -f Makefile
echo -- 编译结束,开始清理无用的文件 --
time /t
pause
rd /s /q include
cd bin
perl.exe -S syncqt
echo -- strip --
cd ../lib
for /f "delims=" %%i in ('dir /b /a-d /s "*d4.dll"') do strip %%i
cd ../imports
for /f "delims=" %%i in ('dir /b /a-d /s "*d4.dll"') do strip %%i
cd ../plugins
for /f "delims=" %%i in ('dir /b /a-d /s "*d4.dll"') do strip %%i
echo -- 删除bin目录下的debug dll和bat --
cd ..
cd bin
del /q *d4.dll
del /q createpackage
del /q createpackage.bat
del /q createpackage.pl
del /q elf2e32_qtwrapper
del /q elf2e32_qtwrapper.bat
del /q elf2e32_qtwrapper.pl
del /q patch_capabilities
del /q patch_capabilities.bat
del /q patch_capabilities.pl
del /q syncqt
del /q syncqt.bat
del /q findtr
del /q setcepaths.bat
echo -- 删除translations的ts --
cd ..
cd translations
del /q *.ts
del /q check-ts.pl
del /q check-ts.xq
del /q polish.qph
del /q README
echo -- 删除目录,pri,pro文件 --
cd ..
rd /s /q src
rd /s /q config.profiles
rd /s /q config.tests
rd /s /q demos
rd /s /q doc
rd /s /q examples
rd /s /q qmake
rd /s /q templates
rd /s /q tools
rd /s /q util
del /s /q *.pri
del /s /q *.pro
del /q *LICENSE*
echo -- 结束 --
time /t
pause