build: Remove proto2 target/props from cs build
Don't need them now that all cfgs have been upgraded to proto3
This commit is contained in:
1 parent
753cac0e7a
commit
9ae3ababfa
3 files changed
-62
No files matched your search
@@ -35,7 +35,6 @@
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemDefinitionGroup>
|
||||
<Proto2></Proto2>
|
||||
<Proto3>
|
||||
<OutBase>$(IntermediateOutputPath)\gen\%(relativedir)</OutBase>
|
||||
<OutCS>%(OutBase)%(FileName).cs</OutCS>
|
||||
|
||||
@@ -1,33 +1,5 @@
|
||||
<Project>
|
||||
|
||||
<Target
|
||||
Name="CompileProto2"
|
||||
Condition="'@(Proto2)'!=''"
|
||||
Inputs="$(MSBuildProjectFile);$(protogen);%(Proto2.FullPath)"
|
||||
Outputs="$(GenDir)\proto2\%(Proto2.filename).cs"
|
||||
AfterTargets="PreBuildEvent">
|
||||
<PropertyGroup>
|
||||
<SourceRelativeFile>$([System.String]::Copy('%(proto2.fullpath)').Replace($(SourceRoot), ''))</SourceRelativeFile>
|
||||
<SourceRelativeDir>$([System.IO.Path]::GetDirectoryName($(SourceRelativeFile)))</SourceRelativeDir>
|
||||
<WorkingDirectory>$(GenDir)\proto2</WorkingDirectory>
|
||||
</PropertyGroup>
|
||||
<MakeDir Directories="$(WorkingDirectory)" />
|
||||
<Copy
|
||||
SourceFiles="%(Proto2.FullPath)"
|
||||
DestinationFolder="$(WorkingDirectory)"
|
||||
SkipUnchangedFiles="True"
|
||||
UseHardLinksIfPossible="True" />
|
||||
<Error
|
||||
Text="protogen.exe does not exist. If you forgot to clone with externals try: git submodule update --init --recursive"
|
||||
Condition="!Exists($(protogen))" />
|
||||
<Exec
|
||||
Command="$(Protogen) %(Proto2.filename)%(proto2.extension) --csharp_out=. -I. -I$(SourceRoot) -I$(Externals)\include"
|
||||
WorkingDirectory="$(WorkingDirectory)" />
|
||||
<ItemGroup>
|
||||
<Compile Include="$(WorkingDirectory)\%(Proto2.filename).cs" />
|
||||
</ItemGroup>
|
||||
</Target>
|
||||
|
||||
<!--
|
||||
Run this after GetAssemblyVersion because it happens after the Xaml compiler
|
||||
and exists in both xaml and non-xaml projects. One of the (many) xaml compile
|
||||
|
||||
@@ -63,37 +63,4 @@
|
||||
</Proto3>
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Proto2
|
||||
Include="../../lib/config/protos/*.proto">
|
||||
<ItemGroup>
|
||||
<ExcludedFiles Include="../../lib/config/protos/algo_types.proto" />
|
||||
<ExcludedFiles Include="../../lib/config/protos/cme_reference_data.proto" />
|
||||
<ExcludedFiles Include="../../lib/config/protos/exchange_sim_cfg.proto" />
|
||||
<ExcludedFiles Include="../../lib/config/protos/jetfix.proto" />
|
||||
<ExcludedFiles Include="../../lib/config/protos/keycode.proto" />
|
||||
<ExcludedFiles Include="../../lib/config/protos/logging.proto" />
|
||||
<ExcludedFiles Include="../../lib/config/protos/market_data.proto" />
|
||||
<ExcludedFiles Include="../../lib/config/protos/mercury_cfg.proto" />
|
||||
<ExcludedFiles Include="../../lib/config/protos/orderman_cfg.proto" />
|
||||
<ExcludedFiles Include="../../lib/config/protos/orders_fills_cleanup.proto" />
|
||||
<ExcludedFiles Include="../../lib/config/protos/perflog_cfg.proto" />
|
||||
<ExcludedFiles Include="../../lib/config/protos/ports.proto" />
|
||||
<ExcludedFiles Include="../../lib/config/protos/position_cfg.proto" />
|
||||
<ExcludedFiles Include="../../lib/config/protos/quickbus_cfg.proto" />
|
||||
<ExcludedFiles Include="../../lib/config/protos/span.proto" />
|
||||
<ExcludedFiles Include="../../lib/config/protos/spartan.proto" />
|
||||
<ExcludedFiles Include="../../lib/config/protos/spreader.proto" />
|
||||
<ExcludedFiles Include="../../lib/config/protos/subprocess.proto" />
|
||||
<ExcludedFiles Include="../../lib/config/protos/symbols.proto" />
|
||||
<ExcludedFiles Include="../../lib/config/protos/system_config.proto" />
|
||||
<ExcludedFiles Include="../../lib/config/protos/testkeys.proto" />
|
||||
<ExcludedFiles Include="../../lib/config/protos/threads.proto" />
|
||||
<ExcludedFiles Include="../../lib/config/protos/toggles.proto" />
|
||||
<ExcludedFiles Include="../../lib/config/protos/ui.proto" />
|
||||
</ItemGroup>
|
||||
<Exclude Text="@(ExcludedFiles, ';')" />
|
||||
</Proto2>
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
Reference in new issue
Block a user