3
# This file is part of PUMA.
4
# Copyright (C) The PUMA developer team.
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.
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.
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,
23
echo "Generating Puma project file $PRJFILE..."
27
cat >> "$PRJFILE" << EOF
28
<?xml version="1.0" encoding="Windows-1252"?>
30
ProjectType="Visual C++"
33
ProjectGUID="{37F3A735-0447-48C0-8FC5-832F01725A47}"
42
OutputDirectory=".\lib\\\$(ConfigurationName)"
43
IntermediateDirectory=".\lib"
47
Name="VCCLCompilerTool"
49
AdditionalIncludeDirectories="".\gen-release\step2\inc";".\gen-release\step2\src";.\src\win32\regex"
50
PreprocessorDefinitions="WIN32;_DEBUG;_LIB;__SIZE_TYPE__=size_t;__PTRDIFF_TYPE__=ptrdiff_t;HAVE_STRING_H;STDC_HEADERS"
52
BasicRuntimeChecks="3"
54
UsePrecompiledHeader="0"
56
Detect64BitPortabilityProblems="true"
57
DebugInformationFormat="4"
58
DisableSpecificWarnings="4800;4355;4996;4244;4267"/>
60
Name="VCPostBuildEventTool"
61
CommandLine="copy "\$(ProjectDir)\src\win32\regex\regex.h" "\$(ProjectDir)\include""/>
65
OutputDirectory=".\lib\\\$(ConfigurationName)"
66
IntermediateDirectory=".\lib"
69
WholeProgramOptimization="1">
71
Name="VCCLCompilerTool"
72
AdditionalIncludeDirectories="".\gen-release\step2\inc";".\gen-release\step2\src";.\src\win32\regex"
73
PreprocessorDefinitions="WIN32;NDEBUG;_LIB;__SIZE_TYPE__=size_t;__PTRDIFF_TYPE__=ptrdiff_t;HAVE_STRING_H;STDC_HEADERS"
75
UsePrecompiledHeader="0"
77
Detect64BitPortabilityProblems="true"
78
DebugInformationFormat="0"
79
DisableSpecificWarnings="4355;4800;4996;4244;4267"/>
81
Name="VCPostBuildEventTool"
82
CommandLine="copy "\$(ProjectDir)\src\win32\regex\regex.h" "\$(ProjectDir)\include""/>
85
Name="Debug DLL|Win32"
86
OutputDirectory=".\lib\\\$(ConfigurationName)"
87
IntermediateDirectory=".\lib"
91
Name="VCCLCompilerTool"
93
AdditionalIncludeDirectories="".\gen-release\step2\inc";".\gen-release\step2\src";.\src\win32\regex"
94
PreprocessorDefinitions="WIN32;_DEBUG;_LIB;__SIZE_TYPE__=size_t;__PTRDIFF_TYPE__=ptrdiff_t;HAVE_STRING_H;STDC_HEADERS"
96
BasicRuntimeChecks="3"
98
UsePrecompiledHeader="0"
100
Detect64BitPortabilityProblems="true"
101
DebugInformationFormat="4"
102
DisableSpecificWarnings="4800;4355;4996;4244;4267"/>
105
GenerateDebugInformation="true"/>
107
Name="VCPostBuildEventTool"
108
CommandLine="copy "\$(ProjectDir)\src\win32\regex\regex.h" "\$(ProjectDir)\include""/>
111
Name="Release DLL|Win32"
112
OutputDirectory=".\lib\\\$(ConfigurationName)"
113
IntermediateDirectory=".\lib"
114
ConfigurationType="2"
116
WholeProgramOptimization="1">
118
Name="VCCLCompilerTool"
119
AdditionalIncludeDirectories="".\gen-release\step2\inc";".\gen-release\step2\src";.\src\win32\regex"
120
PreprocessorDefinitions="WIN32;NDEBUG;_LIB;__SIZE_TYPE__=size_t;__PTRDIFF_TYPE__=ptrdiff_t;HAVE_STRING_H;STDC_HEADERS"
122
UsePrecompiledHeader="0"
124
Detect64BitPortabilityProblems="true"
125
DebugInformationFormat="0"
126
DisableSpecificWarnings="4355;4800;4996;4244;4267"/>
128
Name="VCPostBuildEventTool"
129
CommandLine="copy "\$(ProjectDir)\src\win32\regex\regex.h" "\$(ProjectDir)\include""/>
135
Filter="cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx">
138
function add_files() {
139
find $1 -type f -regex "$2" -printf "%f\n" | \
141
echo " <File RelativePath=\"$3\\$file\"></File>" >> "$PRJFILE"
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"
148
cat >> "$PRJFILE" << EOF
152
Filter="h;hpp;hxx;ah;ot;hm;inl;inc;xsd">
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"
159
cat >> "$PRJFILE" << EOF
164
</VisualStudioProject>
167
recode lat1..ibmpc -q "$PRJFILE"