Webware / WebKit / Adapters / mod_webkit2 / make.bat

@echo off

rem Batch file for generating the mod_webkit Apache 2.2 DSO module.
rem You can either use the full Microsoft Visual Studio 2010
rem or the free Microsoft Visual C++ 2010 Express Edition
rem (download at
rem We also use the free Microsoft Windows 7 SDK to configure
rem the environment variables and for building the 64bit version
rem (at

rem The path to your Apache 2.2 installation
rem (32bit version may be under %ProgramFiles(x86)% on 64bit systems)
set Apache=%ProgramFiles%\Apache Software Foundation\Apache2.2

rem The path to your Windows SDK installation
set SDK=%ProgramFiles%\Microsoft SDKs\Windows\v7.1

rem Setup the environment (use /x64 to build a 64bit module)
call "%SDK%\bin\setenv" /Release /x86 /win7

set PATH=%Apache%\bin;%PATH%
set INCLUDE=%Apache%\include;%INCLUDE%
set LIB=%Apache%\lib;%LIB%

rem Compile and link mod_webkit
cl /W3 /O2 /EHsc /LD /MT ^
    mod_webkit.c marshal.c ^
    /link libhttpd.lib libapr-1.lib libaprutil-1.lib ws2_32.lib

rem Remove all intermediate results
del /Q *.exp *.ilk *.lib *.obj *.pdb

rem Install mod_webkit
copy mod_webkit.dll "%Apache%\modules\"

rem Wait for keypress before leaving
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.