diff options
author | Siddhesh Wani | 2015-05-25 14:46:31 +0530 |
---|---|---|
committer | Siddhesh Wani | 2015-05-25 14:46:31 +0530 |
commit | db464f35f5a10b58d9ed1085e0b462689adee583 (patch) | |
tree | de5cdbc71a54765d9fec33414630ae2c8904c9b8 /Visual-Studio-settings | |
download | Scilab2C_fossee_old-db464f35f5a10b58d9ed1085e0b462689adee583.tar.gz Scilab2C_fossee_old-db464f35f5a10b58d9ed1085e0b462689adee583.tar.bz2 Scilab2C_fossee_old-db464f35f5a10b58d9ed1085e0b462689adee583.zip |
Original Version
Diffstat (limited to 'Visual-Studio-settings')
-rw-r--r-- | Visual-Studio-settings/f2c.props | 23 | ||||
-rw-r--r-- | Visual-Studio-settings/f2c.rules | 20 | ||||
-rw-r--r-- | Visual-Studio-settings/f2c.targets | 81 | ||||
-rw-r--r-- | Visual-Studio-settings/f2c.xml | 127 | ||||
-rw-r--r-- | Visual-Studio-settings/rename-vc-files.rules | 19 |
5 files changed, 270 insertions, 0 deletions
diff --git a/Visual-Studio-settings/f2c.props b/Visual-Studio-settings/f2c.props new file mode 100644 index 0000000..c128265 --- /dev/null +++ b/Visual-Studio-settings/f2c.props @@ -0,0 +1,23 @@ +<?xml version="1.0" encoding="utf-8"?>
+<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <PropertyGroup
+ Condition="'$(f2c_ruleBeforeTargets)' == '' and '$(f2c_ruleAfterTargets)' == '' and '$(ConfigurationType)' != 'Makefile'">
+ <f2c_ruleBeforeTargets>Midl</f2c_ruleBeforeTargets>
+ <f2c_ruleAfterTargets>CustomBuild</f2c_ruleAfterTargets>
+ </PropertyGroup>
+ <PropertyGroup>
+ <f2c_ruleDependsOn
+ Condition="'$(ConfigurationType)' != 'Makefile'">_SelectedFiles;$(f2c_ruleDependsOn)</f2c_ruleDependsOn>
+ </PropertyGroup>
+ <ItemDefinitionGroup>
+ <f2c_rule>
+ <CommandLineTemplate>cd "%(RootDir)%(Directory)"
+"$(SolutionDir)bin\f2c.exe" -E -I..\..\..\core\includes -I..\..\..\..\core\includes "%(Filename)%(Extension)" 2>NUL
+
+</CommandLineTemplate>
+ <Outputs>%(RootDir)%(Directory)%(Filename).c</Outputs>
+ <ExecutionDescription>Converting %(Filename).f to %(Filename).c ...</ExecutionDescription>
+ <ShowOnlyRuleProperties>false</ShowOnlyRuleProperties>
+ </f2c_rule>
+ </ItemDefinitionGroup>
+</Project>
\ No newline at end of file diff --git a/Visual-Studio-settings/f2c.rules b/Visual-Studio-settings/f2c.rules new file mode 100644 index 0000000..c69a92f --- /dev/null +++ b/Visual-Studio-settings/f2c.rules @@ -0,0 +1,20 @@ +<?xml version="1.0" encoding="utf-8"?>
+<VisualStudioToolFile
+ Name="Fortran to C conversion"
+ Version="8,00"
+ >
+ <Rules>
+ <CustomBuildRule
+ Name="f2c rule"
+ DisplayName="f2c rule"
+ CommandLine="cd "$(InputDir)"
"$(SolutionDir)bin\f2c.exe" -E -I..\..\..\core\includes -I..\..\..\..\core\includes "$(InputFileName)" 2>NUL

"
+ Outputs=""$(InputDir)$(InputName).c""
+ FileExtensions="*.f"
+ ExecutionDescription="Converting $(InputName).f to $(InputName).c ..."
+ ShowOnlyRuleProperties="false"
+ >
+ <Properties>
+ </Properties>
+ </CustomBuildRule>
+ </Rules>
+</VisualStudioToolFile>
diff --git a/Visual-Studio-settings/f2c.targets b/Visual-Studio-settings/f2c.targets new file mode 100644 index 0000000..7bfc2a0 --- /dev/null +++ b/Visual-Studio-settings/f2c.targets @@ -0,0 +1,81 @@ +<?xml version="1.0" encoding="utf-8"?>
+<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <ItemGroup>
+ <PropertyPageSchema
+ Include="$(MSBuildThisFileDirectory)$(MSBuildThisFileName).xml" />
+ <AvailableItemName
+ Include="f2c_rule">
+ <Targets>_f2c_rule</Targets>
+ </AvailableItemName>
+ </ItemGroup>
+ <UsingTask
+ TaskName="f2c_rule"
+ TaskFactory="XamlTaskFactory"
+ AssemblyName="Microsoft.Build.Tasks.v4.0">
+ <Task>$(MSBuildThisFileDirectory)$(MSBuildThisFileName).xml</Task>
+ </UsingTask>
+ <Target
+ Name="_f2c_rule"
+ BeforeTargets="$(f2c_ruleBeforeTargets)"
+ AfterTargets="$(f2c_ruleAfterTargets)"
+ Condition="'@(f2c_rule)' != ''"
+ DependsOnTargets="$(f2c_ruleDependsOn);Computef2c_ruleOutput"
+ Outputs="%(f2c_rule.Outputs)"
+ Inputs="%(f2c_rule.Identity);%(f2c_rule.AdditionalDependencies);$(MSBuildProjectFile)">
+ <ItemGroup
+ Condition="'@(SelectedFiles)' != ''">
+ <f2c_rule
+ Remove="@(f2c_rule)"
+ Condition="'%(Identity)' != '@(SelectedFiles)'" />
+ </ItemGroup>
+ <ItemGroup>
+ <f2c_rule_tlog
+ Include="%(f2c_rule.Outputs)"
+ Condition="'%(f2c_rule.Outputs)' != '' and '%(f2c_rule.ExcludedFromBuild)' != 'true'">
+ <Source>@(f2c_rule, '|')</Source>
+ </f2c_rule_tlog>
+ </ItemGroup>
+ <Message
+ Importance="High"
+ Text="%(f2c_rule.ExecutionDescription)" />
+ <WriteLinesToFile
+ Condition="'@(f2c_rule_tlog)' != '' and '%(f2c_rule_tlog.ExcludedFromBuild)' != 'true'"
+ File="$(IntDir)$(ProjectName).write.1.tlog"
+ Lines="^%(f2c_rule_tlog.Source);@(f2c_rule_tlog->'%(Fullpath)')" />
+ <f2c_rule
+ Condition="'@(f2c_rule)' != '' and '%(f2c_rule.ExcludedFromBuild)' != 'true'"
+ CommandLineTemplate="%(f2c_rule.CommandLineTemplate)"
+ AdditionalOptions="%(f2c_rule.AdditionalOptions)"
+ Inputs="%(f2c_rule.Identity)" />
+ </Target>
+ <PropertyGroup>
+ <ComputeLinkInputsTargets>
+ $(ComputeLinkInputsTargets);
+ Computef2c_ruleOutput;
+ </ComputeLinkInputsTargets>
+ <ComputeLibInputsTargets>
+ $(ComputeLibInputsTargets);
+ Computef2c_ruleOutput;
+ </ComputeLibInputsTargets>
+ </PropertyGroup>
+ <Target
+ Name="Computef2c_ruleOutput"
+ Condition="'@(f2c_rule)' != ''">
+ <ItemGroup>
+ <f2c_ruleDirsToMake
+ Condition="'@(f2c_rule)' != '' and '%(f2c_rule.ExcludedFromBuild)' != 'true'"
+ Include="%(f2c_rule.Outputs)" />
+ <Link
+ Include="%(f2c_ruleDirsToMake.Identity)"
+ Condition="'%(Extension)'=='.obj' or '%(Extension)'=='.res' or '%(Extension)'=='.rsc' or '%(Extension)'=='.lib'" />
+ <Lib
+ Include="%(f2c_ruleDirsToMake.Identity)"
+ Condition="'%(Extension)'=='.obj' or '%(Extension)'=='.res' or '%(Extension)'=='.rsc' or '%(Extension)'=='.lib'" />
+ <ImpLib
+ Include="%(f2c_ruleDirsToMake.Identity)"
+ Condition="'%(Extension)'=='.obj' or '%(Extension)'=='.res' or '%(Extension)'=='.rsc' or '%(Extension)'=='.lib'" />
+ </ItemGroup>
+ <MakeDir
+ Directories="@(f2c_ruleDirsToMake->'%(RootDir)%(Directory)')" />
+ </Target>
+</Project>
\ No newline at end of file diff --git a/Visual-Studio-settings/f2c.xml b/Visual-Studio-settings/f2c.xml new file mode 100644 index 0000000..b4df883 --- /dev/null +++ b/Visual-Studio-settings/f2c.xml @@ -0,0 +1,127 @@ +<?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="f2c_rule"
+ PageTemplate="tool"
+ DisplayName="f2c rule"
+ Order="200">
+ <Rule.DataSource>
+ <DataSource
+ Persistence="ProjectFile"
+ ItemType="f2c_rule" />
+ </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="f2c_rule"
+ SourceType="Item" />
+ </StringListProperty.DataSource>
+ </StringListProperty>
+ <StringProperty
+ Name="CommandLineTemplate"
+ DisplayName="Command Line"
+ Visible="False"
+ IncludeInCommandLine="False" />
+ <DynamicEnumProperty
+ Name="f2c_ruleBeforeTargets"
+ 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="^f2c_ruleBeforeTargets|^Compute" />
+ </DynamicEnumProperty.ProviderSettings>
+ <DynamicEnumProperty.DataSource>
+ <DataSource
+ Persistence="ProjectFile"
+ HasConfigurationCondition="true" />
+ </DynamicEnumProperty.DataSource>
+ </DynamicEnumProperty>
+ <DynamicEnumProperty
+ Name="f2c_ruleAfterTargets"
+ 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="^f2c_ruleAfterTargets|^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="f2c_rule"
+ DisplayName="f2c rule" />
+ <FileExtension
+ Name="*.f"
+ ContentType="f2c_rule" />
+ <ContentType
+ Name="f2c_rule"
+ DisplayName="f2c rule"
+ ItemType="f2c_rule" />
+</ProjectSchemaDefinitions>
\ No newline at end of file diff --git a/Visual-Studio-settings/rename-vc-files.rules b/Visual-Studio-settings/rename-vc-files.rules new file mode 100644 index 0000000..6af189d --- /dev/null +++ b/Visual-Studio-settings/rename-vc-files.rules @@ -0,0 +1,19 @@ +<?xml version="1.0" encoding="utf-8"?>
+<VisualStudioToolFile
+ Name="Rename .vc Files"
+ Version="8,00"
+ >
+ <Rules>
+ <CustomBuildRule
+ Name="rename .vc files"
+ DisplayName="Rename .vc files"
+ CommandLine="copy "$(InputDir)$(InputFileName)" "$(InputDir)$(InputName)" 1>NUL"
+ Outputs="$(InputDir)$(InputName) "
+ FileExtensions="*.vc"
+ ExecutionDescription="Copy $(InputDir)$(InputFileName) --> $(InputDir)$(InputName)"
+ >
+ <Properties>
+ </Properties>
+ </CustomBuildRule>
+ </Rules>
+</VisualStudioToolFile>
|