~ubuntu-branches/debian/sid/subversion/sid

« back to all changes in this revision

Viewing changes to build/generator/templates/build_zlib.ezt

  • Committer: Package Import Robot
  • Author(s): James McCoy
  • Date: 2015-08-07 21:32:47 UTC
  • mfrom: (0.2.15) (4.1.7 experimental)
  • Revision ID: package-import@ubuntu.com-20150807213247-ozyewtmgsr6tkewl
Tags: 1.9.0-1
* Upload to unstable
* New upstream release.
  + Security fixes
    - CVE-2015-3184: Mixed anonymous/authenticated path-based authz with
      httpd 2.4
    - CVE-2015-3187: svn_repos_trace_node_locations() reveals paths hidden
      by authz
* Add >= 2.7 requirement for python-all-dev Build-Depends, needed to run
  tests.
* Remove Build-Conflicts against ruby-test-unit.  (Closes: #791844)
* Remove patches/apache_module_dependency in favor of expressing the
  dependencies in authz_svn.load/dav_svn.load.
* Build-Depend on apache2-dev (>= 2.4.16) to ensure ap_some_authn_required()
  is available when building mod_authz_svn and Depend on apache2-bin (>=
  2.4.16) for runtime support.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
[define COPYRIGHT]
2
 
#
3
 
#
4
 
# Licensed to the Apache Software Foundation (ASF) under one
5
 
# or more contributor license agreements.  See the NOTICE file
6
 
# distributed with this work for additional information
7
 
# regarding copyright ownership.  The ASF licenses this file
8
 
# to you under the Apache License, Version 2.0 (the
9
 
# "License"); you may not use this file except in compliance
10
 
# with the License.  You may obtain a copy of the License at
11
 
#
12
 
#   http://www.apache.org/licenses/LICENSE-2.0
13
 
#
14
 
# Unless required by applicable law or agreed to in writing,
15
 
# software distributed under the License is distributed on an
16
 
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17
 
# KIND, either express or implied.  See the License for the
18
 
# specific language governing permissions and limitations
19
 
# under the License.
20
 
#
21
 
#
22
 
[end]@echo off
23
 
@rem **************************************************************************
24
 
@rem * --== WARNING ==-- This is a generated file. Do not edit!
25
 
@rem *
26
 
@rem * From this directory, run this batch file like so:
27
 
@rem *
28
 
@rem *    .\build_zlib debug|release Win32|X64 [rebuild|clean]
29
 
@rem *
30
 
@rem **************************************************************************
31
 
 
32
 
@rem **************************************************************************
33
 
cd /D [zlib_path]
34
 
set exitcode=0
35
 
set zlib_version=[zlib_version]
36
 
 
37
 
if /i "%1" == "release" goto release
38
 
if /i "%1" == "debug" goto debug
39
 
goto pIerr
40
 
 
41
 
:checkplatform
42
 
if /i "%2" == "Win32" goto PWin32
43
 
if /i "%2" == "x64" goto PX64
44
 
goto pIIerr
45
 
 
46
 
:checkrebuild
47
 
 
48
 
[if-any use_ml]
49
 
@rem **************************************************************************
50
 
@rem Compile ASM sources with ML
51
 
set ASFLAGS=-nologo -Zi -coff
52
 
set LOC=-DASMV -DASMINF
53
 
[is zlib_version "1.2.4"]
54
 
set OBJA=contrib\masmx86\gvmat32c.obj contrib\masmx86\gvmat32.obj contrib\masmx86\inffas32.obj
55
 
set ASM_OPTS=ASFLAGS="%ASFLAGS%" LOC="%LOC%" OBJA="%OBJA%"
56
 
[else]
57
 
if /i "%2" == "Win32" (
58
 
  set ASM_OPTS=LOC="-DASMV -DASMINF" OBJA="inffas32.obj match686.obj" "AS=ml -safeseh"
59
 
) else if /i "%2" == "x64" (
60
 
  set ASM_OPTS=LOC="-DASMV -DASMINF" OBJA="inffasx64.obj gvmat64.obj inffas8664.obj" AS=ml64 
61
 
)
62
 
[end]
63
 
[end]
64
 
 
65
 
 
66
 
if /i "%3" == "rebuild" goto rebuild
67
 
if /i "%3" == "clean" goto clean
68
 
if not "%3" == "" goto pIIIerr
69
 
set target= %STATICLIB%
70
 
goto build
71
 
 
72
 
:rebuild
73
 
set target=clean %STATICLIB%
74
 
goto build
75
 
 
76
 
:clean
77
 
set target=clean
78
 
goto build
79
 
 
80
 
@rem **************************************************************************
81
 
:release
82
 
set STATICLIB=zlibstat.lib
83
 
set CC_OPTS=/MD /O2 /Zi
84
 
goto checkplatform
85
 
 
86
 
@rem **************************************************************************
87
 
:debug
88
 
set STATICLIB=zlibstatD.lib
89
 
set CC_OPTS=/MDd /Gm /ZI /Od /GZ /D_DEBUG
90
 
goto checkplatform
91
 
 
92
 
@rem **************************************************************************
93
 
:PWin32
94
 
goto checkrebuild
95
 
 
96
 
@rem **************************************************************************
97
 
:PX64
98
 
goto checkrebuild
99
 
 
100
 
@rem **************************************************************************
101
 
:build
102
 
set COMMON_CC_OPTS=/nologo /W3 /DWIN32 /D_WINDOWS
103
 
[is zlib_version "1.2.4"]
104
 
set CFLAGS=%COMMON_CC_OPTS% %CC_OPTS% %LOC%
105
 
set BUILD_OPTS=%ASM_OPTS% CFLAGS="%COMMON_CC_OPTS% %CC_OPTS% %LOC%"
106
 
[else]
107
 
set BUILD_OPTS=%ASM_OPTS%
108
 
[end]
109
 
@echo nmake /f win32\Makefile.msc %BUILD_OPTS% STATICLIB=%STATICLIB% %target%
110
 
nmake /nologo /f win32\Makefile.msc %BUILD_OPTS% STATICLIB=%STATICLIB% %target%
111
 
if errorlevel 1 goto err
112
 
goto end
113
 
 
114
 
@rem **************************************************************************
115
 
:pIerr
116
 
echo error: First parameter should be "release" or "debug"
117
 
goto err
118
 
 
119
 
@rem **************************************************************************
120
 
:pIIerr
121
 
echo error: Second parameter should be "Win32" or "X64"
122
 
goto err
123
 
 
124
 
 
125
 
@rem **************************************************************************
126
 
:pIIIerr
127
 
echo error: Third parameter should be "rebuild" or empty
128
 
goto err
129
 
 
130
 
@rem **************************************************************************
131
 
:err
132
 
set exitcode=1
133
 
:end
134
 
exit %exitcode%