20 December 2014

install perl

download pcre apr apr-util apr-iconv move to srclib

1)httpd-2.4.10\srclib\apr\CMakeLists.txt

APR_INSTALL_PRIVATE_H Change To ON

2)httpd-2.4.10\CMakeLists.txt

add

 ADD_DEFINITIONS(-DPCRE_STATIC)

disable

#INSTALL(FILES ${installed_mod_libs_exps} DESTINATION lib)
#INSTALL(FILES "${CMAKE_BINARY_DIR}/libhttpd.exp" DESTINATION LIB)

mone.bat

cd %1
call runcmake -DCMAKE_INSTALL_PREFIX=d:\prog\ap24\
call vsbuildcr %1
call vsbuildcr %1 install
cd ..

mkcm.bat

set PATH=%PATH%;d:\prog\perl\bin

rd /q /s d:\prog\ap24

cd srclib

call mone pcre
call mone apr
call mone apr-util

cd ..

call runcmake -DCMAKE_INSTALL_PREFIX=d:\prog\ap24\ 
call vsbuildcr httpd
call vsbuildcr httpd install
pause

vsbuildcr.bat

IF "x%2" == "x" GOTO one

echo "param 2"

"D:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\devenv.com" /build Release cmake-build\%1.sln /project %2.vcxproj
goto End
:one
echo "param 1"
"D:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\devenv.com" /build Release cmake-build\%1.sln

goto End

:End

runcmake.bat

if "x%CMAKE_PATH_FLAG%" == "x" goto setpath else goto start
:setpath
set %PATH%=D:\Prog\CMake\bin;%PATH%
:start
set CMAKE_PATH_FLAG=1
set BUILD_PATH=cmake-build
del %BUILD_PATH% /s /q
md  %BUILD_PATH%
cd  %BUILD_PATH%
cmake .. %*
cd ..


blog comments powered by Disqus