-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathmake_CAD.msbuild
55 lines (41 loc) · 3.1 KB
/
make_CAD.msbuild
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" DefaultTargets="All" ToolsVersion="14.0">
<Import Project="externals\common-scripts\common.msbuild"/>
<Import Project="META.props"/>
<PropertyGroup>
<!-- Some General Paths -->
<CREO_PARAMETRIC_TOOLKIT_PARENT_DIR Condition="'$(CREO_PARAMETRIC_TOOLKIT_PARENT_DIR)'==''">C:\Program Files\PTC\Creo 3.0\M060\Common Files</CREO_PARAMETRIC_TOOLKIT_PARENT_DIR>
</PropertyGroup>
<Target Name="MetaLink">
<MSBuild Projects="make.msbuild" Targets="MetaLink"/>
</Target>
<Target Name="LoadNuGetPackages">
<Exec Command=".nuget\NuGet.exe restore -ConfigFile .nuget\NuGet.Config All_CAD.sln"
WorkingDirectory="$(MSBuildThisFileDirectory)\src\CADAssembler"/>
</Target>
<Target Name="Build" DependsOnTargets="LoadNuGetPackages" >
<Error Text="CREO_PARAMETRIC_TOOLKIT_PARENT_DIR='$(CREO_PARAMETRIC_TOOLKIT_PARENT_DIR)' doesn't exist" Condition="!Exists('$(CREO_PARAMETRIC_TOOLKIT_PARENT_DIR)')"/>
<MSBuild Projects="$(MSBuildThisFileDirectory)\src\CADAssembler\All_CAD.sln" Targets="Build" Properties="Configuration=Release;Platform=x64;CREO_PARAMETRIC_TOOLKIT_PARENT_DIR=$(CREO_PARAMETRIC_TOOLKIT_PARENT_DIR);VisualStudioVersion=11.0;PlatformToolset=v110"/>
<Exec Command="cmd /s /c ""$(CREO_PARAMETRIC_TOOLKIT_PARENT_DIR)\..\Parametric\bin\protk_unlock.bat" src\CADAssembler\x64\Release\CADCreoParametricCreateAssembly.exe""
WorkingDirectory="$(MSBuildThisFileDirectory)" IgnoreExitCode="false"/>
<Exec Command="cmd /s /c ""$(CREO_PARAMETRIC_TOOLKIT_PARENT_DIR)\..\Parametric\bin\protk_unlock.bat" src\CADAssembler\x64\Release\CADCreoParametricMetaLink.exe""
WorkingDirectory="$(MSBuildThisFileDirectory)" IgnoreExitCode="false"/>
</Target>
<Target Name="All" DependsOnTargets="MetaLink;Build">
</Target>
<Target Name="Push_CADCreoParametricCreateAssembly_NuGet">
<Exec Command="cmd /c ..\..\bin\Python27\Scripts\Python.exe CADCreoParametricCreateAssembly\build_nuget_package.py pack_nuget"
WorkingDirectory="$(MSBuildThisFileDirectory)src\CADAssembler" IgnoreExitCode="false"/>
</Target>
<Target Name="Push_ExtractACM-XMLfromCreoModels_NuGet">
<Exec Command="cmd /c ..\..\bin\Python27\Scripts\Python.exe ExtractACM-XMLfromCreoModels\build_nuget_package.py pack_nuget"
WorkingDirectory="$(MSBuildThisFileDirectory)src\CADAssembler" IgnoreExitCode="false"/>
</Target>
<Target Name="Push_CADCreoParametricMetaLink_NuGet">
<Exec Command="cmd /c ..\..\bin\Python27\Scripts\Python.exe CADCreoParametricMetaLink\build_nuget_package.py pack_nuget"
WorkingDirectory="$(MSBuildThisFileDirectory)src\CADAssembler" IgnoreExitCode="false"/>
</Target>
<Target Name="Pack_NuGet" DependsOnTargets="Push_CADCreoParametricCreateAssembly_NuGet;Push_ExtractACM-XMLfromCreoModels_NuGet;Push_CADCreoParametricMetaLink_NuGet" />
<Target Name="Push_All_NuGet" DependsOnTargets="Pack_NuGet" />
<!-- deprecated -->
<Target Name="Push_NuGet" DependsOnTargets="Push_All_NuGet"/>
</Project>