-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathFusee_Linux.targets
32 lines (26 loc) · 2.17 KB
/
Fusee_Linux.targets
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
<?xml version="1.0" encoding="utf-8" ?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<!-- BeforeBuild on Non-Windows -->
<Target Name="BeforeBuild" Condition=" '$(OS)' != 'Windows_NT' ">
<Message Importance="High" Text="### BeforeBuildEvent $(TargetName): Copying necessary files ###" />
<MakeDir Directories="$(OutputPath)" Condition="!Exists('$(OutputPath)')" />
<Exec Command="rsync -a $(OutputPath)../../*.dll $(OutputPath)" />
<Exec Command="rsync -a $(SolutionDir)ExternalBinaries/SFML/*.so* $(OutputPath)" />
</Target>
<!--- AfterBuild on Non-Windows -->
<Target Name="AfterBuild" Condition=" '$(Configuration)' == 'Debug+Web' And '$(OS)' != 'Windows_NT' ">
<MakeDir Directories="$(OutputPath)Web/" Condition="!Exists('$(OutputPath)Web/')" />
<MakeDir Directories="$(OutputPath)Web/Assets" Condition="!Exists('$(OutputPath)Web/Assets')" />
<MakeDir Directories="$(OutputPath)Web/Assets/Scripts" Condition="!Exists('$(OutputPath)Web/Scripts')" />
<MakeDir Directories="$(OutputPath)Web/Assets/Styles" Condition="!Exists('$(OutputPath)Web/Styles')" />
<Message Importance="High" Text="### PostBuildEvent $(TargetName): JSIL CCing ###" />
<Exec ContinueOnError="true" Timeout="60000" Command='mono "$(SolutionDir)ExternalBinaries/JSIL/Compiler/JSILc.exe" -o "$(OutputPath)Web/Assets/Scripts" "$(TargetPath)"' />
<Message Importance="High" Text="### PostBuildEvent $(TargetName): Copying additional scripts/styles ###" />
<Exec Command="rsync -a $(OutputPath)../../WebGL/Scripts/*.* $(OutputPath)Web/Assets/Scripts" />
<Exec Command="rsync -a $(OutputPath)../../WebGL/Styles/*.* $(OutputPath)Web/Assets/Styles" />
<Exec Command="rsync -a $(OutputPath)../../WebAudio/*.* $(OutputPath)Web/Assets/Scripts" />
<Message Importance="High" Text="### PostBuildEvent $(TargetName): Creating default HTML file ###" />
<Exec ContinueOnError="true" Timeout="60000" Command='mono "$(SolutionDir)ExternalBinaries/JSIL/Compiler/fuHTMLGen.exe" "$(OutputPath)" "$(OutputPath)Web/" "$(TargetPath)"' />
<Message Importance="High" Text="### PostBuildEvent $(TargetName): Done ###" />
</Target>
</Project>