Only download Gtk on Windows

This commit is contained in:
cra0zy 2019-11-07 22:35:42 +01:00
parent 81fae5eea6
commit dfc9980f58

View File

@ -5,7 +5,7 @@
<GtkDir Condition=" '$(GtkDir)' == '' ">$(LOCALAPPDATA)\Gtk\3.24</GtkDir>
</PropertyGroup>
<Target Name="InstallGtk" BeforeTargets="Build" Condition=" '$(SkipGtkInstall)' != 'True' and !Exists('$(GtkDir)/libgtk-3-0.dll') ">
<Target Name="InstallGtk" BeforeTargets="Build" Condition=" '$(SkipGtkInstall)' != 'True' and '$(OS)' == 'Windows_NT' and !Exists('$(GtkDir)/libgtk-3-0.dll') ">
<Message Importance="High" Text="Gtk has not been detected, downloading and installing it, set SkipGtkInstall to True to skip theese steps."/>
<Message Importance="High" Text="Ignore Gtk extract errors, bug msbuild/issues/3884"/>
<MakeDir Directories="$(GtkDir)"/>