v2.1.1
This commit is contained in:
parent
8c48174b5b
commit
9341942014
1702 changed files with 33300 additions and 17345 deletions
|
@ -14,11 +14,11 @@
|
|||
* projects rather than just including "all"
|
||||
:)
|
||||
declare variable $projectList := "@PROJECT_INPUT@";
|
||||
declare variable $vsversion := "@VISUAL_STUDIO_VERSION@";
|
||||
declare variable $sourcePath := doc($projectList)/projects/variable[@name="sourcePath"];
|
||||
declare variable $outputBase := doc($projectList)/projects/variable[@name="outputBase"];
|
||||
declare variable $outputBase := doc($projectList)/projects/variable[@name="outputBase.@VISUAL_STUDIO_VERSION@"];
|
||||
|
||||
(: Visual Studio Variables --relatively static :)
|
||||
declare variable $platform := "Win32";
|
||||
declare variable $debugOptLevel := "0"; (: VS -- no optimization :)
|
||||
declare variable $releaseOptLevel := "2"; (: VS -- level 2 opt :)
|
||||
declare variable $warnLevel := "3"; (: VS warning level :)
|
||||
|
@ -28,6 +28,12 @@ declare variable $staticType := "4"; (: VS type 4 is a static lib :)
|
|||
declare variable $debugInfo := "3"; (: VS debug information format :)
|
||||
declare variable $libExtension := ".lib";
|
||||
|
||||
(: formatting :)
|
||||
declare function local:indent($n)
|
||||
{
|
||||
concat("
",string-join(for $i in (1 to $n) return " ", ""))
|
||||
};
|
||||
|
||||
(: is it a DLL, Application, or static library? :)
|
||||
declare function local:configurationType($projectType)
|
||||
{
|
||||
|
@ -38,6 +44,12 @@ declare function local:configurationType($projectType)
|
|||
else error("Unknown project type")
|
||||
};
|
||||
|
||||
(: "normalize" Windows file paths :)
|
||||
declare function local:windowsPath($path) as xs:string
|
||||
{
|
||||
translate($path,"/","\\")
|
||||
};
|
||||
|
||||
(: debug vs release :)
|
||||
declare function local:isDebug($config) as xs:boolean
|
||||
{
|
||||
|
@ -50,12 +62,12 @@ declare function local:isRelease($config) as xs:boolean
|
|||
};
|
||||
|
||||
(: machine-target-dependent link options :)
|
||||
declare function local:addLinkOptions($config)
|
||||
declare function local:addLinkOptions($project, $platform, $config)
|
||||
{
|
||||
let $machine := if (contains($config,"IA64")) then "/machine:IA64"
|
||||
else if (contains($config,"AMD64")) then "/machine:AMD64"
|
||||
else ""
|
||||
return if (not($machine eq "")) then attribute{"AdditionalOptions"}{$machine}
|
||||
let $machine := if (contains($platform,"Win32")) then "/machine:x86"
|
||||
else concat("/machine:",$platform)
|
||||
let $opt := string-join(($machine,$project/options/link[contains(@config,$config)])," ")
|
||||
return if (not($opt eq "")) then attribute{"AdditionalOptions"}{$opt}
|
||||
else ()
|
||||
};
|
||||
|
||||
|
@ -68,7 +80,7 @@ declare function local:addDebugInformation($config)
|
|||
declare function local:generateCompilerPreprocessorDefs($project, $config)
|
||||
{
|
||||
let $generic := doc($projectList)/projects/preprocessor[@config="all" or contains($config,@config)]
|
||||
let $proj := $project/preprocessor[@config="all" or contains($config,@config)]
|
||||
let $proj := $project/preprocessor[@config="all" or contains(@config,$config)]
|
||||
let $type := doc($projectList)/projects/preprocessor[@config=$project/type]
|
||||
|
||||
return string-join(($generic,$proj,$type),";")
|
||||
|
@ -98,19 +110,29 @@ declare function local:runtimeLibrary($config,$static as xs:boolean)
|
|||
if ($static) then "0" else"2"
|
||||
};
|
||||
|
||||
declare function local:getLibName($name, $config)
|
||||
{
|
||||
doc($projectList)/projects/library[@name=$name]/libname[@config=$config]
|
||||
};
|
||||
|
||||
declare function local:makeStaticOutputFile($project, $config)
|
||||
{
|
||||
attribute{"OutputFile"}
|
||||
{concat("$(OutDir)/", doc($projectList)/projects/library[@name=$project/@name and
|
||||
contains($config,@config)]/libname,".lib")
|
||||
{concat("$(OutDir)/", local:getLibName($project/@name, $config),".lib")
|
||||
}
|
||||
};
|
||||
|
||||
declare function local:makeImportLibrary($project, $config)
|
||||
{
|
||||
if ($project/type eq "dll") then
|
||||
attribute{"ImportLibrary"}{concat("$(OutDir)/", doc($projectList)/projects/library[@name=$project/@name and
|
||||
contains($config,@config)]/libname,".lib")}
|
||||
attribute{"ImportLibrary"}{concat("$(OutDir)/", local:getLibName($project/@name, $config),".lib")}
|
||||
else ()
|
||||
};
|
||||
|
||||
declare function local:makeModuleDefinition($project, $config)
|
||||
{
|
||||
if (not(empty($project/moddef))) then
|
||||
attribute{"ModuleDefinitionFile"}{local:windowsPath(concat($sourcePath,$project/moddef/@file))}
|
||||
else ()
|
||||
};
|
||||
|
||||
|
@ -119,8 +141,7 @@ declare function local:makeOutputPDBFile($project, $config)
|
|||
attribute{"ProgramDatabaseFile"}
|
||||
{
|
||||
if ($project/type eq "dll") then
|
||||
concat("$(OutDir)/", doc($projectList)/projects/library[@name=$project/@name and
|
||||
contains($config,@config)]/libname,".pdb")
|
||||
concat("$(OutDir)/", local:getLibName($project/@name, $config),".pdb")
|
||||
else
|
||||
concat("$(OutDir)/",if (not(empty($project/@output))) then $project/@output else $project/@name,".pdb")
|
||||
}
|
||||
|
@ -131,8 +152,7 @@ declare function local:makeOutputFile($project, $config)
|
|||
attribute{"OutputFile"}
|
||||
{
|
||||
if ($project/type eq "dll") then
|
||||
concat("$(OutDir)/", doc($projectList)/projects/library[@name=$project/@name and
|
||||
contains($config,@config)]/libname,".dll")
|
||||
concat("$(OutDir)/", local:getLibName($project/@name, $config), ".dll")
|
||||
else
|
||||
concat("$(OutDir)/",if (not(empty($project/@output))) then $project/@output else $project/@name,".exe")
|
||||
}
|
||||
|
@ -142,14 +162,23 @@ declare function local:makeOutputFile($project, $config)
|
|||
declare function local:addLibraryDependencies($project,$config)
|
||||
{
|
||||
attribute{"AdditionalDependencies"}{string-join(for $dep in $project/depends
|
||||
return concat(doc($projectList)/projects/library[@name=$dep and contains($config,@config)]/libname,".lib")," ")}
|
||||
return concat(local:getLibName($dep, $config),".lib")," ")}
|
||||
};
|
||||
|
||||
declare function local:makeLibraryDirectory($lib,$platform,$config)
|
||||
{
|
||||
for $dir in $lib/platform[contains(@name,$platform)]/config[$config=./@type]/libdir
|
||||
return
|
||||
if (not(empty($lib/libbase[@vsver=$vsversion]))) then
|
||||
concat($lib/libbase[@vsver=$vsversion],"/", $dir)
|
||||
else $dir
|
||||
};
|
||||
|
||||
(: The simple thing is to add all libraries for all projects :)
|
||||
declare function local:addLibraryDirectories($project,$config)
|
||||
declare function local:addLibraryDirectories($project,$platform,$config)
|
||||
{
|
||||
attribute{"AdditionalLibraryDirectories"}{string-join(for $dep in $project/depends
|
||||
return doc($projectList)/projects/library[@name=$dep and contains($config,@config)]/libdir,";")}
|
||||
return local:makeLibraryDirectory(doc($projectList)/projects/library[@name=$dep],$platform,$config),";")}
|
||||
};
|
||||
|
||||
(: The simple thing is to add all libraries for all projects :)
|
||||
|
@ -164,7 +193,7 @@ declare function local:addIncludeDirectories($project,$config)
|
|||
(: look for project-specific tool, then a type-specific event :)
|
||||
declare function local:generatePostBuildEvent($project, $config)
|
||||
{
|
||||
<Tool>
|
||||
local:indent(6),<Tool>
|
||||
{attribute{"Name"}{"VCPostBuildEventTool"}}
|
||||
{if (not(empty($project/event[@name="postbuild"]))) then
|
||||
(attribute{"CommandLine"}{$project/event[@name="postbuild"]/command[@config=$config]},
|
||||
|
@ -180,7 +209,7 @@ declare function local:generatePostBuildEvent($project, $config)
|
|||
|
||||
declare function local:generateCustomBuildTool($project, $config)
|
||||
{
|
||||
<Tool>
|
||||
local:indent(6),<Tool>
|
||||
{attribute{"Name"}{"VCCustomBuildTool"}}
|
||||
{if (not(empty($project/event[@name="custom"]))) then
|
||||
(attribute{"CommandLine"}{$project/event[@name="custom"]/command[contains(@config,$config)]},
|
||||
|
@ -196,19 +225,19 @@ declare function local:generateCustomBuildTool($project, $config)
|
|||
:)
|
||||
declare function local:generateConfigLibrarian($project, $config)
|
||||
{
|
||||
<Tool>
|
||||
local:indent(6),<Tool>
|
||||
{attribute{"Name"}{"VCLibrarianTool"}}
|
||||
{local:makeStaticOutputFile($project,$config)}
|
||||
</Tool>
|
||||
};
|
||||
|
||||
declare function local:generateConfigLinkerAndMidl($project, $config)
|
||||
declare function local:generateConfigLinkerAndMidl($project, $platform, $config)
|
||||
{
|
||||
<Tool>
|
||||
local:indent(6),<Tool>
|
||||
{attribute{"Name"}{"VCLinkerTool"}}
|
||||
{local:addLinkOptions($config)}
|
||||
{local:addLinkOptions($project, $platform, $config)}
|
||||
{local:addLibraryDependencies($project,$config)}
|
||||
{local:addLibraryDirectories($project,$config)}
|
||||
{local:addLibraryDirectories($project,$platform,$config)}
|
||||
{local:makeOutputFile($project, $config)}
|
||||
{local:makeOutputPDBFile($project, $config)}
|
||||
{attribute{"LinkIncremental"}{"1"}}
|
||||
|
@ -216,13 +245,14 @@ declare function local:generateConfigLinkerAndMidl($project, $config)
|
|||
{attribute{"SuppressStartupBanner"}{"TRUE"}}
|
||||
{attribute{"OptimizeReferences"}{"2"}}
|
||||
{local:makeImportLibrary($project,$config)}
|
||||
{attribute{"TargetMachine"}{"1"}}
|
||||
{local:makeModuleDefinition($project,$config)}
|
||||
{attribute{"TargetMachine"}{"0"}}
|
||||
</Tool>
|
||||
};
|
||||
|
||||
declare function local:generateConfigCompiler($project, $config, $static as xs:boolean)
|
||||
declare function local:generateConfigCompiler($project, $platform, $config, $static as xs:boolean)
|
||||
{
|
||||
<Tool>
|
||||
local:indent(6),<Tool>
|
||||
{attribute{"Name"}{"VCCLCompilerTool"}}
|
||||
{attribute{"Optimization"}{local:optLevel($config)}}
|
||||
{attribute{"MinimalRebuild"}{"TRUE"}}
|
||||
|
@ -233,13 +263,13 @@ declare function local:generateConfigCompiler($project, $config, $static as xs:b
|
|||
{if (not(empty($project/options/rtti))) then attribute{"RuntimeTypeInfo"}{"TRUE"} else ()}
|
||||
{attribute{"RuntimeLibrary"}{local:runtimeLibrary($config,$static)}}
|
||||
{if (local:isRelease($config)) then attribute{"EnableFunctionLevelLinking"}{"TRUE"} else ()}
|
||||
{attribute{"UsePrecompiledHeader"}{"2"}}
|
||||
{attribute{"UsePrecompiledHeader"}{"0"}}
|
||||
{if ($project/@name eq "dbxml") then attribute{"PrecompiledHeaderThrough"}{"DbXmlInternal.hpp"} else ()}
|
||||
{attribute{"PrecompiledHeaderFile"}{concat("./$(OutDir)/",$project/@name,".pch")}}
|
||||
{attribute{"AssemblerListingLocation"}{"./$(OutDir)/"}}
|
||||
{attribute{"ObjectFile"}{"./$(OutDir)/"}}
|
||||
{attribute{"WarningLevel"}{$warnLevel}}
|
||||
{attribute{"Detect64BitPortabilityProblems"}{"TRUE"}}
|
||||
{if (not($vsversion eq "8.00") and not($project/options/nowp64)) then attribute{"Detect64BitPortabilityProblems"}{"TRUE"} else ()}
|
||||
{attribute{"SuppressStartupBanner"}{"TRUE"}}
|
||||
{local:addDebugInformation($config)}
|
||||
{attribute{"CompileAs"}{"0"}}
|
||||
|
@ -248,70 +278,82 @@ declare function local:generateConfigCompiler($project, $config, $static as xs:b
|
|||
|
||||
declare function local:generateConfigBoilerplate($config)
|
||||
{
|
||||
<Tool Name="VCPreBuildEventTool"/>,
|
||||
<Tool Name="VCPreLinkEventTool"/>,
|
||||
<Tool Name="VCResourceCompilerTool"/>,
|
||||
<Tool Name="VCWebServiceProxyGeneratorTool"/>,
|
||||
<Tool Name="VCXMLDataGeneratorTool"/>,
|
||||
<Tool Name="VCWebDeploymentTool"/>,
|
||||
<Tool Name="VCManagedWrapperGeneratorTool"/>,
|
||||
<Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/>
|
||||
local:indent(6),<Tool Name="VCPreBuildEventTool"/>,
|
||||
local:indent(6),<Tool Name="VCPreLinkEventTool"/>,
|
||||
local:indent(6),<Tool Name="VCResourceCompilerTool"/>,
|
||||
local:indent(6),<Tool Name="VCXMLDataGeneratorTool"/>,
|
||||
local:indent(6),<Tool Name="VCManagedWrapperGeneratorTool"/>,
|
||||
local:indent(6),<Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/>
|
||||
};
|
||||
|
||||
(: could use $ConfigurationName, but DB uses config_machine, so copy that :)
|
||||
declare function local:generateOutputDirectory($config,$static)
|
||||
(: use "platform/configuration" :)
|
||||
declare function local:generateOutputDirectory($platform,$config,$static)
|
||||
{
|
||||
attribute{"OutputDirectory"}{concat($outputBase,string-join(tokenize($config," "),"_"),$static)}
|
||||
attribute{"OutputDirectory"}{local:windowsPath(concat($outputBase,"$(PlatformName)","/",string-join(tokenize($config," "),"_"),$static))}
|
||||
};
|
||||
|
||||
declare function local:generateConfig($project, $config)
|
||||
declare function local:generateConfig($project, $platform, $config)
|
||||
{
|
||||
<Configuration>
|
||||
local:indent(4),<Configuration>
|
||||
{attribute{"Name"}{concat($config,"|",$platform)}}
|
||||
{local:generateOutputDirectory($config,"")}
|
||||
{local:generateOutputDirectory($platform,$config,"")}
|
||||
{attribute{"IntermediateDirectory"}{concat("./$(OutDir)/",$project/@name)}}
|
||||
{attribute{"ConfigurationType"}{local:configurationType($project/type)}}
|
||||
{attribute{"UseOfMFC"}{"0"}}
|
||||
{attribute{"ATLMinimizesCRunTimeLibraryUsage"}{"FALSE"}}
|
||||
{attribute{"CharacterSet"}{"2"}}
|
||||
{local:generateConfigBoilerplate($config)}
|
||||
{local:generateConfigCompiler($project, $config,xs:boolean("false"))}
|
||||
{local:generateConfigLinkerAndMidl($project, $config)}
|
||||
{local:generateConfigCompiler($project, $platform, $config,xs:boolean("false"))}
|
||||
{local:generateConfigLinkerAndMidl($project, $platform, $config)}
|
||||
{local:generatePostBuildEvent($project,if (local:isDebug($config)) then "Debug" else "Release")}
|
||||
{local:generateCustomBuildTool($project,if (local:isDebug($config)) then "Debug" else "Release")}
|
||||
</Configuration>
|
||||
};
|
||||
|
||||
declare function local:generateStaticConfig($project, $config)
|
||||
declare function local:generateStaticConfig($project, $platform, $config)
|
||||
{
|
||||
<Configuration>
|
||||
local:indent(4),<Configuration>
|
||||
{attribute{"Name"}{concat($config,"|",$platform)}}
|
||||
{local:generateOutputDirectory($config,"_static")}
|
||||
{local:generateOutputDirectory($platform,$config,"_static")}
|
||||
{attribute{"IntermediateDirectory"}{concat("./$(OutDir)/",$project/@name)}}
|
||||
{attribute{"ConfigurationType"}{local:configurationType($project/type)}}
|
||||
{attribute{"UseOfMFC"}{"0"}}
|
||||
{attribute{"ATLMinimizesCRunTimeLibraryUsage"}{"FALSE"}}
|
||||
{attribute{"CharacterSet"}{"2"}}
|
||||
{local:generateConfigBoilerplate($config)}
|
||||
{local:generateConfigCompiler($project, $config,xs:boolean("true"))}
|
||||
{local:generateConfigCompiler($project, $platform, $config,xs:boolean("true"))}
|
||||
{if (contains($project/type,"lib")) then
|
||||
local:generateConfigLibrarian($project, $config)
|
||||
else
|
||||
local:generateConfigLinkerAndMidl($project, $config)
|
||||
local:generateConfigLinkerAndMidl($project, $platform, $config)
|
||||
}
|
||||
</Configuration>
|
||||
};
|
||||
|
||||
declare function local:generateRcFile($file)
|
||||
{
|
||||
local:indent(4),<File RelativePath="{local:windowsPath(concat($sourcePath,$file/@name))}">
|
||||
{ for $platform in local:getPlatforms($vsversion) return
|
||||
for $config in ("Debug","Release") return
|
||||
(local:indent(6),<FileConfiguration Name="{concat($config,"|",$platform)}">
|
||||
<Tool Name="VCResourceCompilerTool" PreprocessorDefinitions="{concat(if ($config="Debug") then "_DEBUG" else "NDEBUG",";","$(NoInherit))")}"/>
|
||||
{local:indent(6)}</FileConfiguration>)
|
||||
}
|
||||
{local:indent(4)}</File>
|
||||
};
|
||||
|
||||
declare function local:generateFilesNoFilter($project)
|
||||
{
|
||||
for $file in $project/files/file
|
||||
return <File RelativePath="{concat($sourcePath,$file/@name)}"/>
|
||||
return if (ends-with($file/@name,".rc")) then local:generateRcFile($file)
|
||||
else (local:indent(4),<File RelativePath="{local:windowsPath(concat($sourcePath,$file/@name))}"/>)
|
||||
};
|
||||
|
||||
declare function local:generateFilesWithFilter($project,$filter)
|
||||
{
|
||||
for $file in $project/files/filter[@name=$filter]/file
|
||||
return <File RelativePath="{concat($sourcePath,$file/@name)}"/>
|
||||
return if (ends-with($file/@name,".rc")) then local:generateRcFile($file)
|
||||
else (local:indent(6),<File RelativePath="{local:windowsPath(concat($sourcePath,$file/@name))}"/>)
|
||||
};
|
||||
|
||||
declare function local:generateFiles($project)
|
||||
|
@ -321,9 +363,20 @@ declare function local:generateFiles($project)
|
|||
local:generateFilesNoFilter($project)
|
||||
else
|
||||
for $filter in $filters
|
||||
return (<Filter Name="{$filter}" Filter="">
|
||||
return (local:indent(4),<Filter Name="{$filter}" Filter="">
|
||||
{local:generateFilesWithFilter($project,$filter)}
|
||||
</Filter>)
|
||||
{local:indent(4)}</Filter>)
|
||||
};
|
||||
|
||||
declare function local:getGuid($project)
|
||||
{
|
||||
concat("{",$project/@guid,"}")
|
||||
};
|
||||
|
||||
declare function local:getPlatforms($version)
|
||||
{
|
||||
if ($version eq "7.10") then ("Win32")
|
||||
else ("Win32", "x64", "IA64")
|
||||
};
|
||||
|
||||
declare function local:getProjects()
|
||||
|
@ -338,19 +391,23 @@ let $proj := if ($static) then doc($projectList)/projects/project[@name=substrin
|
|||
return
|
||||
<VisualStudioProject
|
||||
ProjectType="Visual C++"
|
||||
Version="7.10"
|
||||
Version="{$vsversion}"
|
||||
Name="{string($project/@name)}"
|
||||
SccProjectName=""
|
||||
SccLocalPath="">
|
||||
<Platforms><Platform Name="Win32"/></Platforms>
|
||||
<Configurations>
|
||||
ProjectGUID="{local:getGuid($project)}">
|
||||
{local:indent(2)}<Platforms>
|
||||
{local:indent(4)}<Platform Name="Win32"/>
|
||||
{local:indent(4)}<Platform Name="x64"/>
|
||||
{local:indent(4)}<Platform Name="IA64"/>
|
||||
{local:indent(2)}</Platforms>
|
||||
{local:indent(2)}<Configurations>
|
||||
{
|
||||
for $config in ("Debug","Debug IA64","Debug AMD64","Release","Release IA64","Release AMD64") return if ($static) then local:generateStaticConfig($project, $config) else local:generateConfig($project, $config)
|
||||
for $platform in local:getPlatforms($vsversion) return
|
||||
for $config in ("Debug","Release") return if ($static) then local:generateStaticConfig($project, $platform, $config) else local:generateConfig($project, $platform, $config)
|
||||
}
|
||||
</Configurations>
|
||||
<References/>
|
||||
<Files>
|
||||
{local:indent(2)}</Configurations>
|
||||
{local:indent(2)}<References/>
|
||||
{local:indent(2)}<Files>
|
||||
{local:generateFiles($proj)}
|
||||
</Files>
|
||||
<Globals/>
|
||||
</VisualStudioProject>
|
||||
{local:indent(2)}</Files>
|
||||
{local:indent(2)}<Globals/>
|
||||
{"
"}</VisualStudioProject>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# $Id: lib_paths.sed,v 1.5 2007/12/12 21:20:59 jpcs Exp $
|
||||
# $Id: lib_paths.sed,v 1.8 2008/03/19 20:04:40 jpcs Exp $
|
||||
# Default path for XQilla library, and paths to
|
||||
# Xerces
|
||||
#
|
||||
|
@ -15,12 +15,13 @@ s!@XQILLA_LIB@!@XQILLA_LIB_BASE@@XQILLA_VERSION_MAJOR@@XQILLA_VERSION_MINOR@!g
|
|||
s!@XQILLA_LIB_BASE@!xqilla!g
|
||||
|
||||
s!@XQILLA_VERSION_MAJOR@!2!g
|
||||
s!@XQILLA_VERSION_MINOR@!0!g
|
||||
s!@XQILLA_VERSION_PATCH@!0!g
|
||||
s!@XQILLA_VERSION_MINOR@!1!g
|
||||
s!@XQILLA_VERSION_PATCH@!1!g
|
||||
|
||||
# Xerces is assumed to be source (vs installation)
|
||||
s!@XERCES_LIBHOME@!@XERCES_WINHOME@/Build/Win32/VC6!g
|
||||
s!@XERCES_LIBHOME7@!@XERCES_WINHOME@/Build/Win32/VC7.1!g
|
||||
s!@XERCES_BUILDHOME@!@XERCES_WINHOME@/Build!g
|
||||
# Xerces-c is in ../../../xerces-c-src
|
||||
s!@XERCES_WINHOME@!../../../@XERCES_NAME@!g
|
||||
s!@XERCES_NAME@!xerces-c-src!g
|
||||
|
|
|
@ -19,23 +19,31 @@ CONFIG_INPUT=xqilla.template.xml
|
|||
# temporary xml document, post-sed-replacement
|
||||
CONFIG_OUTPUT=xqilla.xml
|
||||
|
||||
# location for output project files
|
||||
PROJECT_OUTPUT_DIR=../Win32Projects/VC7.1
|
||||
|
||||
# substitute some variables in the XML document template
|
||||
sed -f lib_paths.sed < $CONFIG_INPUT > $CONFIG_OUTPUT
|
||||
|
||||
# for each project, substitute 2 variables in the XQuery script, then run it
|
||||
for i in `cat $PROJECTS`
|
||||
# for each project/destination, substitute 2 variables in the XQuery script, then run it
|
||||
|
||||
for v in VC7.1 VC8
|
||||
do
|
||||
sed -e "s!@PROJECT_NAME@!$i!g" -e "s!@PROJECT_INPUT@!$CONFIG_OUTPUT!g" < $TEMPLATE > $TEMP_SCRIPT
|
||||
TMP=$PROJECT_OUTPUT_DIR/$i.tmp.vcproj
|
||||
TARG=$PROJECT_OUTPUT_DIR/$i.vcproj
|
||||
xqilla -o $TMP $TEMP_SCRIPT
|
||||
rm -f $TEMP_SCRIPT
|
||||
cmp $TMP $TARG > /dev/null 2>&1 ||
|
||||
PROJECT_OUTPUT_DIR=../Win32Projects/$v
|
||||
|
||||
if [ $v = "VC7.1" ]; then
|
||||
VERSION="7.10"
|
||||
else
|
||||
VERSION="8.00"
|
||||
fi
|
||||
|
||||
for i in `cat $PROJECTS`
|
||||
do
|
||||
sed -e "s!@PROJECT_NAME@!$i!g" -e "s!@PROJECT_INPUT@!$CONFIG_OUTPUT!g" -e"s!@VISUAL_STUDIO_VERSION@!$VERSION!g" < $TEMPLATE > $TEMP_SCRIPT
|
||||
TMP=$PROJECT_OUTPUT_DIR/$i.tmp.vcproj
|
||||
TARG=$PROJECT_OUTPUT_DIR/$i.vcproj
|
||||
xqilla -o $TMP $TEMP_SCRIPT
|
||||
rm -f $TEMP_SCRIPT
|
||||
cmp $TMP $TARG > /dev/null 2>&1 ||
|
||||
(echo "Building $TARG" && rm -f $TARG &&
|
||||
cp $TMP $TARG && chmod 664 $TARG)
|
||||
rm -f $TMP
|
||||
|
||||
rm -f $TMP
|
||||
done
|
||||
done
|
||||
|
|
|
@ -1,8 +1,7 @@
|
|||
#!/bin/sh
|
||||
# $Id: s_win32,v 1.2 2007/11/15 21:59:05 gmfeinberg Exp $
|
||||
# $Id: s_win32,v 1.3 2008/01/03 16:24:27 gmfeinberg Exp $
|
||||
#
|
||||
sh ./s_win32_dsp
|
||||
#sh ./s_win32_vcproj
|
||||
# s_projects requires that xqilla (the command line program) be in
|
||||
# your PATH
|
||||
sh ./s_projects
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# $Id: srcfiles.in,v 1.36 2007/11/30 12:36:35 jpcs Exp $
|
||||
# $Id: srcfiles.in,v 1.39 2008/01/31 17:37:12 jpcs Exp $
|
||||
#
|
||||
# This is an input file for scripts to build Windows projects.
|
||||
# It lists the source files in the XQilla tree and notes which are
|
||||
|
@ -27,7 +27,7 @@
|
|||
# the module's source listing
|
||||
# o all matching files will be placed in that folder
|
||||
#
|
||||
lib.filters=ast axis context dom-api events exceptions fastxdm framework fulltext functions items lexer mapm operators optimizer parser runtime schema simple-api update utils xerces xqts
|
||||
lib.filters=ast axis context dom-api events exceptions fastxdm framework fulltext functions items lexer mapm operators optimizer parser runtime schema simple-api update utils xerces xqts yajl
|
||||
src/ast/ASTNodeImpl.cpp lib
|
||||
src/ast/ConstantFoldingFunction.cpp lib
|
||||
src/ast/ContextTuple.cpp lib
|
||||
|
@ -219,6 +219,8 @@ src/functions/FunctionNormalizeUnicode.cpp lib
|
|||
src/functions/FunctionNot.cpp lib
|
||||
src/functions/FunctionNumber.cpp lib
|
||||
src/functions/FunctionOneOrMore.cpp lib
|
||||
src/functions/FunctionParseHTML.cpp lib
|
||||
src/functions/FunctionParseJSON.cpp lib
|
||||
src/functions/FunctionParseXML.cpp lib
|
||||
src/functions/FunctionPosition.cpp lib
|
||||
src/functions/FunctionPrefixFromQName.cpp lib
|
||||
|
@ -234,6 +236,7 @@ src/functions/FunctionRoundHalfToEven.cpp lib
|
|||
src/functions/FunctionSecondsFromDateTime.cpp lib
|
||||
src/functions/FunctionSecondsFromDuration.cpp lib
|
||||
src/functions/FunctionSecondsFromTime.cpp lib
|
||||
src/functions/FunctionSerializeJSON.cpp lib
|
||||
src/functions/FunctionStartsWith.cpp lib
|
||||
src/functions/FunctionStaticBaseURI.cpp lib
|
||||
src/functions/FunctionString.cpp lib
|
||||
|
@ -245,6 +248,7 @@ src/functions/FunctionSubstring.cpp lib
|
|||
src/functions/FunctionSubstringAfter.cpp lib
|
||||
src/functions/FunctionSubstringBefore.cpp lib
|
||||
src/functions/FunctionSum.cpp lib
|
||||
src/functions/FunctionTime.cpp lib
|
||||
src/functions/FunctionTimezoneFromDate.cpp lib
|
||||
src/functions/FunctionTimezoneFromDateTime.cpp lib
|
||||
src/functions/FunctionTimezoneFromTime.cpp lib
|
||||
|
@ -253,6 +257,7 @@ src/functions/FunctionTrace.cpp lib
|
|||
src/functions/FunctionTranslate.cpp lib
|
||||
src/functions/FunctionTrue.cpp lib
|
||||
src/functions/FunctionUnordered.cpp lib
|
||||
src/functions/FunctionUnparsedText.cpp lib
|
||||
src/functions/FunctionUpperCase.cpp lib
|
||||
src/functions/FunctionYearFromDate.cpp lib
|
||||
src/functions/FunctionYearFromDateTime.cpp lib
|
||||
|
@ -425,6 +430,19 @@ src/utils/XPath2NSUtils.cpp lib
|
|||
src/utils/XPath2Utils.cpp lib
|
||||
src/utils/XQillaPlatformUtils.cpp lib
|
||||
src/utils/XStr.cpp lib
|
||||
src/yajl/yajl.c lib
|
||||
src/yajl/yajl_buf.c lib
|
||||
src/yajl/yajl_buf.h lib
|
||||
src/yajl/yajl_common.h lib
|
||||
src/yajl/yajl_encode.c lib
|
||||
src/yajl/yajl_encode.h lib
|
||||
src/yajl/yajl_gen.c lib
|
||||
src/yajl/yajl_gen.h lib
|
||||
src/yajl/yajl_lex.c lib
|
||||
src/yajl/yajl_lex.h lib
|
||||
src/yajl/yajl_parse.h lib
|
||||
src/yajl/yajl_parser.c lib
|
||||
src/yajl/yajl_parser.h lib
|
||||
src/xerces/AncestorAxis.hpp lib
|
||||
src/xerces/AncestorOrSelfAxis.hpp lib
|
||||
src/xerces/AttributeAxis.hpp lib
|
||||
|
@ -653,6 +671,8 @@ include/xqilla/functions/FunctionNormalizeUnicode.hpp lib
|
|||
include/xqilla/functions/FunctionNot.hpp lib
|
||||
include/xqilla/functions/FunctionNumber.hpp lib
|
||||
include/xqilla/functions/FunctionOneOrMore.hpp lib
|
||||
include/xqilla/functions/FunctionParseHTML.hpp lib
|
||||
include/xqilla/functions/FunctionParseJSON.hpp lib
|
||||
include/xqilla/functions/FunctionParseXML.hpp lib
|
||||
include/xqilla/functions/FunctionPosition.hpp lib
|
||||
include/xqilla/functions/FunctionPrefixFromQName.hpp lib
|
||||
|
@ -668,6 +688,7 @@ include/xqilla/functions/FunctionRoundHalfToEven.hpp lib
|
|||
include/xqilla/functions/FunctionSecondsFromDateTime.hpp lib
|
||||
include/xqilla/functions/FunctionSecondsFromDuration.hpp lib
|
||||
include/xqilla/functions/FunctionSecondsFromTime.hpp lib
|
||||
include/xqilla/functions/FunctionSerializeJSON.hpp lib
|
||||
include/xqilla/functions/FunctionStartsWith.hpp lib
|
||||
include/xqilla/functions/FunctionStaticBaseURI.hpp lib
|
||||
include/xqilla/functions/FunctionString.hpp lib
|
||||
|
@ -679,6 +700,7 @@ include/xqilla/functions/FunctionSubstring.hpp lib
|
|||
include/xqilla/functions/FunctionSubstringAfter.hpp lib
|
||||
include/xqilla/functions/FunctionSubstringBefore.hpp lib
|
||||
include/xqilla/functions/FunctionSum.hpp lib
|
||||
include/xqilla/functions/FunctionTime.hpp lib
|
||||
include/xqilla/functions/FunctionTimezoneFromDate.hpp lib
|
||||
include/xqilla/functions/FunctionTimezoneFromDateTime.hpp lib
|
||||
include/xqilla/functions/FunctionTimezoneFromTime.hpp lib
|
||||
|
@ -687,6 +709,7 @@ include/xqilla/functions/FunctionTrace.hpp lib
|
|||
include/xqilla/functions/FunctionTranslate.hpp lib
|
||||
include/xqilla/functions/FunctionTrue.hpp lib
|
||||
include/xqilla/functions/FunctionUnordered.hpp lib
|
||||
include/xqilla/functions/FunctionUnparsedText.hpp lib
|
||||
include/xqilla/functions/FunctionUpperCase.hpp lib
|
||||
include/xqilla/functions/FunctionYearFromDate.hpp lib
|
||||
include/xqilla/functions/FunctionYearFromDateTime.hpp lib
|
||||
|
|
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue