Commit def108cf authored by mk's avatar mk
Browse files

update 1.8.9

parent 285ca540
Loading
Loading
Loading
Loading

winbuild/Config.props

0 → 100644
+39 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  <PropertyGroup
    Condition="'$(ConfigBeforeTargets)' == '' and '$(ConfigAfterTargets)' == '' and '$(ConfigurationType)' != 'Makefile'">
    <ConfigBeforeTargets>Midl</ConfigBeforeTargets>
    <ConfigAfterTargets>CustomBuild</ConfigAfterTargets>
  </PropertyGroup>
  <PropertyGroup>
    <ConfigDependsOn
      Condition="'$(ConfigurationType)' != 'Makefile'">_SelectedFiles;$(ConfigDependsOn)</ConfigDependsOn>
  </PropertyGroup>
  <ItemDefinitionGroup>
    <Config>
      <CommandLineTemplate>python "$(ProjectDir)..\src\configgen.py" -cpp [AllOptions] [AdditionalOptions] [inputs] &gt; $(IntDir)%(Filename)options.cpp</CommandLineTemplate>
      <Outputs>$(IntDir)%(Filename)options.cpp</Outputs>
      <ExecutionDescription>Executing configgen for doxygen...</ExecutionDescription>
      <ShowOnlyRuleProperties>false</ShowOnlyRuleProperties>
      <AdditionalDependencies>$(ProjectDir)..\src\configgen.py</AdditionalDependencies>
    </Config>
  </ItemDefinitionGroup>
  <PropertyGroup
    Condition="'$(Config_dwBeforeTargets)' == '' and '$(Config_dwAfterTargets)' == '' and '$(ConfigurationType)' != 'Makefile'">
    <Config_dwBeforeTargets>Midl</Config_dwBeforeTargets>
    <Config_dwAfterTargets>CustomBuild</Config_dwAfterTargets>
  </PropertyGroup>
  <PropertyGroup>
    <Config_dwDependsOn
      Condition="'$(ConfigurationType)' != 'Makefile'">_SelectedFiles;$(Config_dwDependsOn)</Config_dwDependsOn>
  </PropertyGroup>
  <ItemDefinitionGroup>
    <Config_dw>
      <CommandLineTemplate>python "$(ProjectDir)..\src\configgen.py" -wiz [AllOptions] [AdditionalOptions] [inputs]  &gt; $(IntDir)%(Filename)doc.cpp</CommandLineTemplate>
      <Outputs>$(IntDir)%(Filename)doc.cpp</Outputs>
      <ExecutionDescription>Executing configgen for doxywizard ...</ExecutionDescription>
      <ShowOnlyRuleProperties>false</ShowOnlyRuleProperties>
      <AdditionalDependencies>$(ProjectDir)..\src\configgen.py</AdditionalDependencies>
    </Config_dw>
  </ItemDefinitionGroup>
</Project>
 No newline at end of file

winbuild/Config.xml

0 → 100644
+251 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<ProjectSchemaDefinitions xmlns="clr-namespace:Microsoft.Build.Framework.XamlTypes;assembly=Microsoft.Build.Framework" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:sys="clr-namespace:System;assembly=mscorlib" xmlns:transformCallback="Microsoft.Cpp.Dev10.ConvertPropertyCallback">
  <Rule
    Name="Config"
    PageTemplate="tool"
    DisplayName="Config"
    Order="200">
    <Rule.DataSource>
      <DataSource
        Persistence="ProjectFile"
        ItemType="Config" />
    </Rule.DataSource>
    <Rule.Categories>
      <Category
        Name="General">
        <Category.DisplayName>
          <sys:String>General</sys:String>
        </Category.DisplayName>
      </Category>
      <Category
        Name="Command Line"
        Subtype="CommandLine">
        <Category.DisplayName>
          <sys:String>Command Line</sys:String>
        </Category.DisplayName>
      </Category>
    </Rule.Categories>
    <StringListProperty
      Name="Inputs"
      Category="Command Line"
      IsRequired="true"
      Switch=" ">
      <StringListProperty.DataSource>
        <DataSource
          Persistence="ProjectFile"
          ItemType="Config"
          SourceType="Item" />
      </StringListProperty.DataSource>
    </StringListProperty>
    <StringProperty
      Name="CommandLineTemplate"
      DisplayName="Command Line"
      Visible="False"
      IncludeInCommandLine="False" />
    <DynamicEnumProperty
      Name="ConfigBeforeTargets"
      Category="General"
      EnumProvider="Targets"
      IncludeInCommandLine="False">
      <DynamicEnumProperty.DisplayName>
        <sys:String>Execute Before</sys:String>
      </DynamicEnumProperty.DisplayName>
      <DynamicEnumProperty.Description>
        <sys:String>Specifies the targets for the build customization to run before.</sys:String>
      </DynamicEnumProperty.Description>
      <DynamicEnumProperty.ProviderSettings>
        <NameValuePair
          Name="Exclude"
          Value="^ConfigBeforeTargets|^Compute" />
      </DynamicEnumProperty.ProviderSettings>
      <DynamicEnumProperty.DataSource>
        <DataSource
          Persistence="ProjectFile"
          HasConfigurationCondition="true" />
      </DynamicEnumProperty.DataSource>
    </DynamicEnumProperty>
    <DynamicEnumProperty
      Name="ConfigAfterTargets"
      Category="General"
      EnumProvider="Targets"
      IncludeInCommandLine="False">
      <DynamicEnumProperty.DisplayName>
        <sys:String>Execute After</sys:String>
      </DynamicEnumProperty.DisplayName>
      <DynamicEnumProperty.Description>
        <sys:String>Specifies the targets for the build customization to run after.</sys:String>
      </DynamicEnumProperty.Description>
      <DynamicEnumProperty.ProviderSettings>
        <NameValuePair
          Name="Exclude"
          Value="^ConfigAfterTargets|^Compute" />
      </DynamicEnumProperty.ProviderSettings>
      <DynamicEnumProperty.DataSource>
        <DataSource
          Persistence="ProjectFile"
          ItemType=""
          HasConfigurationCondition="true" />
      </DynamicEnumProperty.DataSource>
    </DynamicEnumProperty>
    <StringListProperty
      Name="Outputs"
      DisplayName="Outputs"
      Visible="False"
      IncludeInCommandLine="False" />
    <StringProperty
      Name="ExecutionDescription"
      DisplayName="Execution Description"
      Visible="False"
      IncludeInCommandLine="False" />
    <StringListProperty
      Name="AdditionalDependencies"
      DisplayName="Additional Dependencies"
      IncludeInCommandLine="False"
      Visible="true" />
    <StringProperty
      Subtype="AdditionalOptions"
      Name="AdditionalOptions"
      Category="Command Line">
      <StringProperty.DisplayName>
        <sys:String>Additional Options</sys:String>
      </StringProperty.DisplayName>
      <StringProperty.Description>
        <sys:String>Additional Options</sys:String>
      </StringProperty.Description>
    </StringProperty>
  </Rule>
  <ItemType
    Name="Config"
    DisplayName="Config" />
  <FileExtension
    Name="*.xml"
    ContentType="Config" />
  <ContentType
    Name="Config"
    DisplayName="Config"
    ItemType="Config" />
  <Rule
    Name="Config_dw"
    PageTemplate="tool"
    DisplayName="Config"
    Order="200">
    <Rule.DataSource>
      <DataSource
        Persistence="ProjectFile"
        ItemType="Config_dw" />
    </Rule.DataSource>
    <Rule.Categories>
      <Category
        Name="General">
        <Category.DisplayName>
          <sys:String>General</sys:String>
        </Category.DisplayName>
      </Category>
      <Category
        Name="Command Line"
        Subtype="CommandLine">
        <Category.DisplayName>
          <sys:String>Command Line</sys:String>
        </Category.DisplayName>
      </Category>
    </Rule.Categories>
    <StringListProperty
      Name="Inputs"
      Category="Command Line"
      IsRequired="true"
      Switch=" ">
      <StringListProperty.DataSource>
        <DataSource
          Persistence="ProjectFile"
          ItemType="Config_dw"
          SourceType="Item" />
      </StringListProperty.DataSource>
    </StringListProperty>
    <StringProperty
      Name="CommandLineTemplate"
      DisplayName="Command Line"
      Visible="False"
      IncludeInCommandLine="False" />
    <DynamicEnumProperty
      Name="Config_dwBeforeTargets"
      Category="General"
      EnumProvider="Targets"
      IncludeInCommandLine="False">
      <DynamicEnumProperty.DisplayName>
        <sys:String>Execute Before</sys:String>
      </DynamicEnumProperty.DisplayName>
      <DynamicEnumProperty.Description>
        <sys:String>Specifies the targets for the build customization to run before.</sys:String>
      </DynamicEnumProperty.Description>
      <DynamicEnumProperty.ProviderSettings>
        <NameValuePair
          Name="Exclude"
          Value="^Config_dwBeforeTargets|^Compute" />
      </DynamicEnumProperty.ProviderSettings>
      <DynamicEnumProperty.DataSource>
        <DataSource
          Persistence="ProjectFile"
          HasConfigurationCondition="true" />
      </DynamicEnumProperty.DataSource>
    </DynamicEnumProperty>
    <DynamicEnumProperty
      Name="Config_dwAfterTargets"
      Category="General"
      EnumProvider="Targets"
      IncludeInCommandLine="False">
      <DynamicEnumProperty.DisplayName>
        <sys:String>Execute After</sys:String>
      </DynamicEnumProperty.DisplayName>
      <DynamicEnumProperty.Description>
        <sys:String>Specifies the targets for the build customization to run after.</sys:String>
      </DynamicEnumProperty.Description>
      <DynamicEnumProperty.ProviderSettings>
        <NameValuePair
          Name="Exclude"
          Value="^Config_dwAfterTargets|^Compute" />
      </DynamicEnumProperty.ProviderSettings>
      <DynamicEnumProperty.DataSource>
        <DataSource
          Persistence="ProjectFile"
          ItemType=""
          HasConfigurationCondition="true" />
      </DynamicEnumProperty.DataSource>
    </DynamicEnumProperty>
    <StringListProperty
      Name="Outputs"
      DisplayName="Outputs"
      Visible="False"
      IncludeInCommandLine="False" />
    <StringProperty
      Name="ExecutionDescription"
      DisplayName="Execution Description"
      Visible="False"
      IncludeInCommandLine="False" />
    <StringListProperty
      Name="AdditionalDependencies"
      DisplayName="Additional Dependencies"
      IncludeInCommandLine="False"
      Visible="true" />
    <StringProperty
      Subtype="AdditionalOptions"
      Name="AdditionalOptions"
      Category="Command Line">
      <StringProperty.DisplayName>
        <sys:String>Additional Options</sys:String>
      </StringProperty.DisplayName>
      <StringProperty.Description>
        <sys:String>Additional Options</sys:String>
      </StringProperty.Description>
    </StringProperty>
  </Rule>
  <ItemType
    Name="Config_dw"
    DisplayName="Config" />
  <FileExtension
    Name="*.xml"
    ContentType="Config_dw" />
  <ContentType
    Name="Config_dw"
    DisplayName="Config"
    ItemType="Config_dw" />
</ProjectSchemaDefinitions>
 No newline at end of file
+81 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  <ItemGroup>
    <PropertyPageSchema
      Include="$(MSBuildThisFileDirectory)$(MSBuildThisFileName).xml" />
    <AvailableItemName
      Include="GenResources">
      <Targets>_GenResources</Targets>
    </AvailableItemName>
  </ItemGroup>
  <UsingTask
    TaskName="GenResources"
    TaskFactory="XamlTaskFactory"
    AssemblyName="Microsoft.Build.Tasks.v4.0">
    <Task>$(MSBuildThisFileDirectory)$(MSBuildThisFileName).xml</Task>
  </UsingTask>
  <Target
    Name="_GenResources"
    BeforeTargets="$(GenResourcesBeforeTargets)"
    AfterTargets="$(GenResourcesAfterTargets)"
    Condition="'@(GenResources)' != ''"
    DependsOnTargets="$(GenResourcesDependsOn);ComputeGenResourcesOutput"
    Outputs="@(GenResources-&gt;Metadata('Outputs')-&gt;Distinct())"
    Inputs="@(GenResources);%(GenResources.AdditionalDependencies);$(MSBuildProjectFile)">
    <ItemGroup
      Condition="'@(SelectedFiles)' != ''">
      <GenResources
        Remove="@(GenResources)"
        Condition="'%(Identity)' != '@(SelectedFiles)'" />
    </ItemGroup>
    <ItemGroup>
      <GenResources_tlog
        Include="%(GenResources.Outputs)"
        Condition="'%(GenResources.Outputs)' != '' and '%(GenResources.ExcludedFromBuild)' != 'true'">
        <Source>@(GenResources, '|')</Source>
      </GenResources_tlog>
    </ItemGroup>
    <Message
      Importance="High"
      Text="%(GenResources.ExecutionDescription)" />
    <WriteLinesToFile
      Condition="'@(GenResources_tlog)' != '' and '%(GenResources_tlog.ExcludedFromBuild)' != 'true'"
      File="$(TLogLocation)$(ProjectName).write.1.tlog"
      Lines="^%(GenResources_tlog.Source);@(GenResources_tlog-&gt;'%(Fullpath)')" />
    <GenResources
      Condition="'@(GenResources)' != '' and '%(GenResources.ExcludedFromBuild)' != 'true'"
      CommandLineTemplate="%(GenResources.CommandLineTemplate)"
      AdditionalOptions="%(GenResources.AdditionalOptions)"
      Inputs="@(GenResources)" />
  </Target>
  <PropertyGroup>
    <ComputeLinkInputsTargets>
            $(ComputeLinkInputsTargets);
            ComputeGenResourcesOutput;
          </ComputeLinkInputsTargets>
    <ComputeLibInputsTargets>
            $(ComputeLibInputsTargets);
            ComputeGenResourcesOutput;
          </ComputeLibInputsTargets>
  </PropertyGroup>
  <Target
    Name="ComputeGenResourcesOutput"
    Condition="'@(GenResources)' != ''">
    <ItemGroup>
      <GenResourcesDirsToMake
        Condition="'@(GenResources)' != '' and '%(GenResources.ExcludedFromBuild)' != 'true'"
        Include="%(GenResources.Outputs)" />
      <Link
        Include="%(GenResourcesDirsToMake.Identity)"
        Condition="'%(Extension)'=='.obj' or '%(Extension)'=='.res' or '%(Extension)'=='.rsc' or '%(Extension)'=='.lib'" />
      <Lib
        Include="%(GenResourcesDirsToMake.Identity)"
        Condition="'%(Extension)'=='.obj' or '%(Extension)'=='.res' or '%(Extension)'=='.rsc' or '%(Extension)'=='.lib'" />
      <ImpLib
        Include="%(GenResourcesDirsToMake.Identity)"
        Condition="'%(Extension)'=='.obj' or '%(Extension)'=='.res' or '%(Extension)'=='.rsc' or '%(Extension)'=='.lib'" />
    </ItemGroup>
    <MakeDir
      Directories="@(GenResourcesDirsToMake-&gt;'%(RootDir)%(Directory)')" />
  </Target>
</Project>
 No newline at end of file
+127 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<ProjectSchemaDefinitions xmlns="clr-namespace:Microsoft.Build.Framework.XamlTypes;assembly=Microsoft.Build.Framework" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:sys="clr-namespace:System;assembly=mscorlib" xmlns:transformCallback="Microsoft.Cpp.Dev10.ConvertPropertyCallback">
  <Rule
    Name="GenResources"
    PageTemplate="tool"
    DisplayName="GenResources"
    Order="200">
    <Rule.DataSource>
      <DataSource
        Persistence="ProjectFile"
        ItemType="GenResources" />
    </Rule.DataSource>
    <Rule.Categories>
      <Category
        Name="General">
        <Category.DisplayName>
          <sys:String>General</sys:String>
        </Category.DisplayName>
      </Category>
      <Category
        Name="Command Line"
        Subtype="CommandLine">
        <Category.DisplayName>
          <sys:String>Command Line</sys:String>
        </Category.DisplayName>
      </Category>
    </Rule.Categories>
    <StringListProperty
      Name="Inputs"
      Category="Command Line"
      IsRequired="true"
      Switch=" ">
      <StringListProperty.DataSource>
        <DataSource
          Persistence="ProjectFile"
          ItemType="GenResources"
          SourceType="Item" />
      </StringListProperty.DataSource>
    </StringListProperty>
    <StringProperty
      Name="CommandLineTemplate"
      DisplayName="Command Line"
      Visible="False"
      IncludeInCommandLine="False" />
    <DynamicEnumProperty
      Name="GenResourcesBeforeTargets"
      Category="General"
      EnumProvider="Targets"
      IncludeInCommandLine="False">
      <DynamicEnumProperty.DisplayName>
        <sys:String>Execute Before</sys:String>
      </DynamicEnumProperty.DisplayName>
      <DynamicEnumProperty.Description>
        <sys:String>Specifies the targets for the build customization to run before.</sys:String>
      </DynamicEnumProperty.Description>
      <DynamicEnumProperty.ProviderSettings>
        <NameValuePair
          Name="Exclude"
          Value="^GenResourcesBeforeTargets|^Compute" />
      </DynamicEnumProperty.ProviderSettings>
      <DynamicEnumProperty.DataSource>
        <DataSource
          Persistence="ProjectFile"
          HasConfigurationCondition="true" />
      </DynamicEnumProperty.DataSource>
    </DynamicEnumProperty>
    <DynamicEnumProperty
      Name="GenResourcesAfterTargets"
      Category="General"
      EnumProvider="Targets"
      IncludeInCommandLine="False">
      <DynamicEnumProperty.DisplayName>
        <sys:String>Execute After</sys:String>
      </DynamicEnumProperty.DisplayName>
      <DynamicEnumProperty.Description>
        <sys:String>Specifies the targets for the build customization to run after.</sys:String>
      </DynamicEnumProperty.Description>
      <DynamicEnumProperty.ProviderSettings>
        <NameValuePair
          Name="Exclude"
          Value="^GenResourcesAfterTargets|^Compute" />
      </DynamicEnumProperty.ProviderSettings>
      <DynamicEnumProperty.DataSource>
        <DataSource
          Persistence="ProjectFile"
          ItemType=""
          HasConfigurationCondition="true" />
      </DynamicEnumProperty.DataSource>
    </DynamicEnumProperty>
    <StringListProperty
      Name="Outputs"
      DisplayName="Outputs"
      Visible="False"
      IncludeInCommandLine="False" />
    <StringProperty
      Name="ExecutionDescription"
      DisplayName="Execution Description"
      Visible="False"
      IncludeInCommandLine="False" />
    <StringListProperty
      Name="AdditionalDependencies"
      DisplayName="Additional Dependencies"
      IncludeInCommandLine="False"
      Visible="true" />
    <StringProperty
      Subtype="AdditionalOptions"
      Name="AdditionalOptions"
      Category="Command Line">
      <StringProperty.DisplayName>
        <sys:String>Additional Options</sys:String>
      </StringProperty.DisplayName>
      <StringProperty.Description>
        <sys:String>Additional Options</sys:String>
      </StringProperty.Description>
    </StringProperty>
  </Rule>
  <ItemType
    Name="GenResources"
    DisplayName="GenResources" />
  <FileExtension
    Name=".*"
    ContentType="GenResources" />
  <ContentType
    Name="GenResources"
    DisplayName="GenResources"
    ItemType="GenResources" />
</ProjectSchemaDefinitions>
 No newline at end of file

winbuild/Lex.props

0 → 100644
+23 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  <PropertyGroup
    Condition="'$(LexBeforeTargets)' == '' and '$(LexAfterTargets)' == '' and '$(ConfigurationType)' != 'Makefile'">
    <LexBeforeTargets>Midl</LexBeforeTargets>
    <LexAfterTargets>CustomBuild</LexAfterTargets>
  </PropertyGroup>
  <PropertyGroup>
    <LexDependsOn
      Condition="'$(ConfigurationType)' != 'Makefile'">_SelectedFiles;$(LexDependsOn)</LexDependsOn>
  </PropertyGroup>
  <ItemDefinitionGroup>
    <Lex>
      <Case>False</Case>
      <Rules>False</Rules>
      <CommandLineTemplate>flex [AllOptions] -t -P%(Filename)YY [AdditionalOptions] [inputs] | python "$(ProjectDir)..\src\increasebuffer.py" &gt; $(IntDir)%(Filename).cpp</CommandLineTemplate>
      <Outputs>$(IntDir)%(Filename).cpp</Outputs>
      <ExecutionDescription>Executing Lex for %(FullPath) ...</ExecutionDescription>
      <ShowOnlyRuleProperties>false</ShowOnlyRuleProperties>
      <AdditionalDependencies>$(ProjectDir)..\src\increasebuffer.py</AdditionalDependencies>
    </Lex>
  </ItemDefinitionGroup>
</Project>
 No newline at end of file
Loading