mirror of
https://github.com/QuasarApp/qca.git
synced 2025-04-29 04:54:31 +00:00
generate crypto.prf during configwin, not during installwin
svn path=/trunk/kdesupport/qca/; revision=816879
This commit is contained in:
parent
f33e057384
commit
0dea7f07a1
128
configwin.bat
128
configwin.bat
@ -1,62 +1,66 @@
|
||||
@echo off
|
||||
REM write conf_win.pri and confapp_win.pri
|
||||
|
||||
if "%1"=="rd" goto debug_and_release
|
||||
if "%1"=="r" goto release
|
||||
if "%1"=="d" goto debug
|
||||
if "%1"=="rds" goto debug_and_release_static
|
||||
if "%1"=="rs" goto release_static
|
||||
if "%1"=="ds" goto debug_static
|
||||
goto usage
|
||||
|
||||
:usage
|
||||
echo usage: configwin [mode]
|
||||
echo modes:
|
||||
echo rd release and debug, dynamic
|
||||
echo r release, dynamic
|
||||
echo d debug, dynamic
|
||||
echo rds release and debug, static
|
||||
echo rs release static
|
||||
echo ds debug static
|
||||
goto end
|
||||
|
||||
:debug_and_release
|
||||
echo Configuring for release and debug, dynamic
|
||||
echo CONFIG += debug_and_release build_all > conf_win.pri
|
||||
echo CONFIG += debug > confapp_win.pri
|
||||
goto done
|
||||
|
||||
:release
|
||||
echo Configuring for release, dynamic
|
||||
echo CONFIG += release > conf_win.pri
|
||||
echo CONFIG += release > confapp_win.pri
|
||||
goto done
|
||||
|
||||
:debug
|
||||
echo Configuring for debug, dynamic
|
||||
echo CONFIG += debug > conf_win.pri
|
||||
echo CONFIG += debug > confapp_win.pri
|
||||
goto done
|
||||
|
||||
:debug_and_release_static
|
||||
echo Configuring for release and debug, static
|
||||
echo CONFIG += debug_and_release build_all staticlib > conf_win.pri
|
||||
echo CONFIG += debug > confapp_win.pri
|
||||
goto done
|
||||
|
||||
:release_static
|
||||
echo Configuring for release, static
|
||||
echo CONFIG += release staticlib > conf_win.pri
|
||||
echo CONFIG += release > confapp_win.pri
|
||||
goto done
|
||||
|
||||
:debug_static
|
||||
echo Configuring for debug, static
|
||||
echo CONFIG += debug staticlib > conf_win.pri
|
||||
echo CONFIG += debug > confapp_win.pri
|
||||
goto done
|
||||
|
||||
:done
|
||||
echo Wrote conf_win.pri and confapp_win.pri
|
||||
|
||||
:end
|
||||
@echo off
|
||||
REM write conf_win.pri and confapp_win.pri
|
||||
|
||||
if "%1"=="rd" goto debug_and_release
|
||||
if "%1"=="r" goto release
|
||||
if "%1"=="d" goto debug
|
||||
if "%1"=="rds" goto debug_and_release_static
|
||||
if "%1"=="rs" goto release_static
|
||||
if "%1"=="ds" goto debug_static
|
||||
goto usage
|
||||
|
||||
:usage
|
||||
echo usage: configwin [mode]
|
||||
echo modes:
|
||||
echo rd release and debug, dynamic
|
||||
echo r release, dynamic
|
||||
echo d debug, dynamic
|
||||
echo rds release and debug, static
|
||||
echo rs release static
|
||||
echo ds debug static
|
||||
goto end
|
||||
|
||||
:debug_and_release
|
||||
echo Configuring for release and debug, dynamic
|
||||
echo CONFIG += debug_and_release build_all > conf_win.pri
|
||||
echo CONFIG += debug > confapp_win.pri
|
||||
goto done
|
||||
|
||||
:release
|
||||
echo Configuring for release, dynamic
|
||||
echo CONFIG += release > conf_win.pri
|
||||
echo CONFIG += release > confapp_win.pri
|
||||
goto done
|
||||
|
||||
:debug
|
||||
echo Configuring for debug, dynamic
|
||||
echo CONFIG += debug > conf_win.pri
|
||||
echo CONFIG += debug > confapp_win.pri
|
||||
goto done
|
||||
|
||||
:debug_and_release_static
|
||||
echo Configuring for release and debug, static
|
||||
echo CONFIG += debug_and_release build_all staticlib > conf_win.pri
|
||||
echo CONFIG += debug > confapp_win.pri
|
||||
goto done
|
||||
|
||||
:release_static
|
||||
echo Configuring for release, static
|
||||
echo CONFIG += release staticlib > conf_win.pri
|
||||
echo CONFIG += release > confapp_win.pri
|
||||
goto done
|
||||
|
||||
:debug_static
|
||||
echo Configuring for debug, static
|
||||
echo CONFIG += debug staticlib > conf_win.pri
|
||||
echo CONFIG += debug > confapp_win.pri
|
||||
goto done
|
||||
|
||||
:done
|
||||
echo QCA_INCDIR = "%CD%\include" > crypto.prf
|
||||
echo QCA_LIBDIR = "%CD%\lib" >> crypto.prf
|
||||
type crypto.prf.in >> crypto.prf
|
||||
|
||||
echo Wrote conf_win.pri and confapp_win.pri
|
||||
|
||||
:end
|
||||
|
@ -2,12 +2,7 @@
|
||||
REM install qmake feature file pointing to the current directory
|
||||
|
||||
if not defined QTDIR goto err
|
||||
|
||||
echo QCA_INCDIR = "%CD%\include" > crypto.prf
|
||||
echo QCA_LIBDIR = "%CD%\lib" >> crypto.prf
|
||||
type crypto.prf.in >> crypto.prf
|
||||
copy crypto.prf "%QTDIR%\mkspecs\features"
|
||||
|
||||
echo Installed crypto.prf as a qmake feature.
|
||||
goto end
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user