~ubuntu-branches/ubuntu/quantal/aspectc++/quantal

« back to all changes in this revision

Viewing changes to Puma/tools/gen_vcpp_proj.sh

  • Committer: Bazaar Package Importer
  • Author(s): Reinhard Tartler
  • Date: 2008-04-10 17:40:52 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20080410174052-xdnsm7oi8hauyyf1
Tags: 1.0pre4~svn.20080409+dfsg-3
Fix another missing include, this time in Ag++/StdSystem.cc

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
 
 
3
# This file is part of PUMA.
 
4
# Copyright (C) The PUMA developer team.
 
5
#                                                                
 
6
# This program is free software;  you can redistribute it and/or 
 
7
# modify it under the terms of the GNU General Public License as 
 
8
# published by the Free Software Foundation; either version 2 of 
 
9
# the License, or (at your option) any later version.            
 
10
#                                                                
 
11
# This program is distributed in the hope that it will be useful,
 
12
# but WITHOUT ANY WARRANTY; without even the implied warranty of 
 
13
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the  
 
14
# GNU General Public License for more details.                   
 
15
#                                                                
 
16
# You should have received a copy of the GNU General Public      
 
17
# License along with this program; if not, write to the Free     
 
18
# Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, 
 
19
# MA  02111-1307  USA                                            
 
20
 
 
21
PRJFILE="Puma.vcproj"
 
22
 
 
23
echo "Generating Puma project file $PRJFILE..."
 
24
 
 
25
rm -f "$PRJFILE"
 
26
  
 
27
cat >> "$PRJFILE" << EOF
 
28
<?xml version="1.0" encoding="Windows-1252"?>
 
29
<VisualStudioProject
 
30
        ProjectType="Visual C++"
 
31
        Version="7.00"
 
32
        Name="Puma"
 
33
        ProjectGUID="{37F3A735-0447-48C0-8FC5-832F01725A47}"
 
34
        Keyword="Win32Proj">
 
35
        <Platforms>
 
36
                <Platform
 
37
                        Name="Win32"/>
 
38
        </Platforms>
 
39
        <Configurations>
 
40
                <Configuration
 
41
                        Name="Debug|Win32"
 
42
                        OutputDirectory=".\lib\\\$(ConfigurationName)"
 
43
                        IntermediateDirectory=".\lib"
 
44
                        ConfigurationType="4"
 
45
                        CharacterSet="2">
 
46
                        <Tool
 
47
                                Name="VCCLCompilerTool"
 
48
                                Optimization="0"
 
49
                                AdditionalIncludeDirectories="&quot;.\gen-release\step2\inc&quot;;&quot;.\gen-release\step2\src&quot;;.\src\win32\regex"
 
50
                                PreprocessorDefinitions="WIN32;_DEBUG;_LIB;__SIZE_TYPE__=size_t;__PTRDIFF_TYPE__=ptrdiff_t;HAVE_STRING_H;STDC_HEADERS"
 
51
                                MinimalRebuild="true"
 
52
                                BasicRuntimeChecks="3"
 
53
                                RuntimeLibrary="3"
 
54
                                UsePrecompiledHeader="0"
 
55
                                WarningLevel="3"
 
56
                                Detect64BitPortabilityProblems="true"
 
57
                                DebugInformationFormat="4"
 
58
                                DisableSpecificWarnings="4800;4355;4996;4244;4267"/>
 
59
                        <Tool
 
60
                                Name="VCPostBuildEventTool"
 
61
                                CommandLine="copy &quot;\$(ProjectDir)\src\win32\regex\regex.h&quot; &quot;\$(ProjectDir)\include&quot;"/>
 
62
                </Configuration>
 
63
                <Configuration
 
64
                        Name="Release|Win32"
 
65
                        OutputDirectory=".\lib\\\$(ConfigurationName)"
 
66
                        IntermediateDirectory=".\lib"
 
67
                        ConfigurationType="4"
 
68
                        CharacterSet="2"
 
69
                        WholeProgramOptimization="1">
 
70
                        <Tool
 
71
                                Name="VCCLCompilerTool"
 
72
                                AdditionalIncludeDirectories="&quot;.\gen-release\step2\inc&quot;;&quot;.\gen-release\step2\src&quot;;.\src\win32\regex"
 
73
                                PreprocessorDefinitions="WIN32;NDEBUG;_LIB;__SIZE_TYPE__=size_t;__PTRDIFF_TYPE__=ptrdiff_t;HAVE_STRING_H;STDC_HEADERS"
 
74
                                RuntimeLibrary="2"
 
75
                                UsePrecompiledHeader="0"
 
76
                                WarningLevel="3"
 
77
                                Detect64BitPortabilityProblems="true"
 
78
                                DebugInformationFormat="0"
 
79
                                DisableSpecificWarnings="4355;4800;4996;4244;4267"/>
 
80
                        <Tool
 
81
                                Name="VCPostBuildEventTool"
 
82
                                CommandLine="copy &quot;\$(ProjectDir)\src\win32\regex\regex.h&quot; &quot;\$(ProjectDir)\include&quot;"/>
 
83
                </Configuration>
 
84
                <Configuration
 
85
                        Name="Debug DLL|Win32"
 
86
                        OutputDirectory=".\lib\\\$(ConfigurationName)"
 
87
                        IntermediateDirectory=".\lib"
 
88
                        ConfigurationType="2"
 
89
                        CharacterSet="2">
 
90
                        <Tool
 
91
                                Name="VCCLCompilerTool"
 
92
                                Optimization="0"
 
93
                                AdditionalIncludeDirectories="&quot;.\gen-release\step2\inc&quot;;&quot;.\gen-release\step2\src&quot;;.\src\win32\regex"
 
94
                                PreprocessorDefinitions="WIN32;_DEBUG;_LIB;__SIZE_TYPE__=size_t;__PTRDIFF_TYPE__=ptrdiff_t;HAVE_STRING_H;STDC_HEADERS"
 
95
                                MinimalRebuild="true"
 
96
                                BasicRuntimeChecks="3"
 
97
                                RuntimeLibrary="3"
 
98
                                UsePrecompiledHeader="0"
 
99
                                WarningLevel="3"
 
100
                                Detect64BitPortabilityProblems="true"
 
101
                                DebugInformationFormat="4"
 
102
                                DisableSpecificWarnings="4800;4355;4996;4244;4267"/>
 
103
                        <Tool
 
104
                                Name="VCLinkerTool"
 
105
                                GenerateDebugInformation="true"/>
 
106
                        <Tool
 
107
                                Name="VCPostBuildEventTool"
 
108
                                CommandLine="copy &quot;\$(ProjectDir)\src\win32\regex\regex.h&quot; &quot;\$(ProjectDir)\include&quot;"/>
 
109
                </Configuration>
 
110
                <Configuration
 
111
                        Name="Release DLL|Win32"
 
112
                        OutputDirectory=".\lib\\\$(ConfigurationName)"
 
113
                        IntermediateDirectory=".\lib"
 
114
                        ConfigurationType="2"
 
115
                        CharacterSet="2"
 
116
                        WholeProgramOptimization="1">
 
117
                        <Tool
 
118
                                Name="VCCLCompilerTool"
 
119
                                AdditionalIncludeDirectories="&quot;.\gen-release\step2\inc&quot;;&quot;.\gen-release\step2\src&quot;;.\src\win32\regex"
 
120
                                PreprocessorDefinitions="WIN32;NDEBUG;_LIB;__SIZE_TYPE__=size_t;__PTRDIFF_TYPE__=ptrdiff_t;HAVE_STRING_H;STDC_HEADERS"
 
121
                                RuntimeLibrary="2"
 
122
                                UsePrecompiledHeader="0"
 
123
                                WarningLevel="3"
 
124
                                Detect64BitPortabilityProblems="true"
 
125
                                DebugInformationFormat="0"
 
126
                                DisableSpecificWarnings="4355;4800;4996;4244;4267"/>
 
127
                        <Tool
 
128
                                Name="VCPostBuildEventTool"
 
129
                                CommandLine="copy &quot;\$(ProjectDir)\src\win32\regex\regex.h&quot; &quot;\$(ProjectDir)\include&quot;"/>
 
130
                </Configuration>
 
131
        </Configurations>
 
132
        <Files>
 
133
                <Filter
 
134
                        Name="Source Files"
 
135
                        Filter="cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx">
 
136
EOF
 
137
 
 
138
function add_files() {
 
139
  find $1 -type f -regex "$2" -printf "%f\n" | \
 
140
  while read file; do
 
141
    echo "                      <File RelativePath=\"$3\\$file\"></File>" >> "$PRJFILE"
 
142
  done
 
143
}
 
144
 
 
145
add_files "./gen-release/step2/src" "\./.*\.\(c\|cc\|cxx\|cpp\)" ".\gen-release\step2\src"
 
146
add_files "./src/win32/regex" "\./.*\.\(c\|cc\|cxx\|cpp\)" ".\src\win32\regex"
 
147
 
 
148
cat >> "$PRJFILE" << EOF
 
149
                </Filter>
 
150
                <Filter
 
151
                        Name="Header Files"
 
152
                        Filter="h;hpp;hxx;ah;ot;hm;inl;inc;xsd">
 
153
EOF
 
154
 
 
155
add_files "./gen-release/step2/inc/Puma" "\./.*\.\(h\|ah\|hpp\|ot\)" ".\gen-release\step2\inc\Puma"
 
156
add_files "./gen-release/step2/src" "\./.*\.\(h\|ah\|hpp\|ot\)" ".\gen-release\step2\src"
 
157
add_files "./src/win32/regex" "\./.*\.\(h\|ah\|hpp\|ot\)" ".\src\win32\regex"
 
158
 
 
159
cat >> "$PRJFILE" << EOF
 
160
                </Filter>
 
161
        </Files>
 
162
        <Globals>
 
163
        </Globals>
 
164
</VisualStudioProject>
 
165
EOF
 
166
  
 
167
recode lat1..ibmpc -q "$PRJFILE"