Skip to content

Commit ddc8147

Browse files
authored
Avsridha/build fix windows (microsoft#34)
* Creating an AMD64 build specific file so that we don't have to change the `iis/build_release.bat` to run on an AMD64 platform. * Adding a .gitignore.
1 parent 3effdf4 commit ddc8147

File tree

2 files changed

+78
-0
lines changed

2 files changed

+78
-0
lines changed

.gitignore

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
*.obj
2+
*.tlog
3+
*.log
4+
*.pdb
5+
*.dll
6+
*.exp
7+
*.ilk
8+
*.lib
9+
*.exe
10+
*.suo
11+
*.sdf
12+
*.opensdf
13+
*.so
14+
*.o
15+
*.Po
16+
*.Plo
17+
*.lo
18+
*.un~
19+
iis/release/*
20+
iis/dependencies/build_dir/*
21+
iis/dependencies/release_files/*
22+
apache2/.deps/*
23+
apache2/.libs/*
24+
apache2/libinjection/.deps/*
25+
apache2/libinjection/.libs/*
26+
iis/.vs/*
27+
iis/ModSecurityIIS.dll.Manifest
28+
iis/*.obj

iis/build_release_amd64.bat

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
2+
echo "Building release..."
3+
4+
set RELEASE_DIR=release
5+
set OUTPUT_DIR=%cd%\dependencies\release_files
6+
set CURRENT_DIR=%cd%
7+
8+
set AMD64=%RELEASE_DIR%\amd64
9+
10+
mkdir "%RELEASE_DIR%"
11+
12+
mkdir "%AMD64%"
13+
14+
set VCARGS64="C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\x86_amd64\vcvarsx86_amd64.bat"
15+
16+
set SSDEEP_ARCH="x64"
17+
call build_dependencies.bat %VCARGS64%
18+
@if NOT (%ERRORLEVEL%) == (0) goto build_failed
19+
call build_modsecurity.bat %VCARGS64%
20+
@if NOT (%ERRORLEVEL%) == (0) goto build_failed
21+
22+
copy "%OUTPUT_DIR%\libapr-1.dll" "%AMD64%"
23+
copy "%OUTPUT_DIR%\libapriconv-1.dll" "%AMD64%"
24+
copy "%OUTPUT_DIR%\libaprutil-1.dll" "%AMD64%"
25+
copy "%OUTPUT_DIR%\libcurl.dll" "%AMD64%"
26+
copy "%OUTPUT_DIR%\libxml2.dll" "%AMD64%"
27+
copy "%OUTPUT_DIR%\lua5.1.dll" "%AMD64%"
28+
copy "%OUTPUT_DIR%\mlogc.exe" "%AMD64%"
29+
copy "%OUTPUT_DIR%\ModSecurityIIS.dll" "%AMD64%"
30+
copy "%OUTPUT_DIR%\pcre.dll" "%AMD64%"
31+
copy "%OUTPUT_DIR%\zlib1.dll" "%AMD64%"
32+
copy "%OUTPUT_DIR%\yajl.dll" "%AMD64%"
33+
copy "%OUTPUT_DIR%\fuzzy.dll" "%AMD64%"
34+
35+
:: copy %OUTPUT_DIR%\Installer.exe %RELEASE_DIR%
36+
:: copy %OUTPUT_DIR%\ModSecurity.xml %RELEASE_DIR%
37+
:: copy %OUTPUT_DIR%\owasp_csr.zip %RELEASE_DIR%
38+
:: copy %OUTPUT_DIR%\README.txt %RELEASE_DIR%
39+
40+
41+
exit /B 0
42+
43+
:build_failed
44+
@echo Problems during the building phase
45+
@goto failed
46+
47+
:failed
48+
@cd %CURRENT_DIR%
49+
@exit /B 1
50+

0 commit comments

Comments
 (0)