mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-05 16:20:10 +00:00
e68f7eca6e
Add a utility project to get config.h and gdkconfig.h from their *.h.win32 (or win32_broadway, if applicable) counterparts, using custom build rules, so that these "generated" files can also be removed on clean and "regenerated" upon update. This also enables the removal of configs in certain projects that isn't really needed as a result. Also update and merge the projects and property sheets to include a single property sheet that it needs, which will then in turn include the other property sheets that is needed, so that things are cleaner. Updates to the Visual Studio 2010 projects will follow later.
65 lines
2.7 KiB
XML
65 lines
2.7 KiB
XML
<?xml version="1.0" encoding="Windows-1252"?>
|
|
<VisualStudioPropertySheet
|
|
ProjectType="Visual C++"
|
|
Version="8.00"
|
|
Name="gtkgensrcsprops"
|
|
InheritedPropertySheets=".\gtk-build-defines.vsprops"
|
|
>
|
|
<UserMacro
|
|
Name="GenConfigH"
|
|
Value="
|
|
copy ..\..\..\config.h.win32 ..\..\..\config.h
|
|
"
|
|
/>
|
|
<UserMacro
|
|
Name="GenGdkConfigHWin32"
|
|
Value="
|
|
if exist ..\..\..\MSVC_$(ConfigurationName) goto DONE_GDKCONFIG_H

|
|
|
|
if exist ..\..\..\gdk\gdkconfig.h del ..\..\..\gdk\gdkconfig.h

|
|
if exist ..\..\..\GDK_BROADWAY_BUILD del ..\..\..\GDK_BROADWAY_BUILD

|
|
if exist ..\..\..\MSVC_$(ConfigurationName)_Broadway del ..\..\..\MSVC_$(ConfigurationName)_Broadway

|
|
|
|
if exist $(ConfigurationName)\$(PlatformName)\bin\$(GtkDllPrefix)gdk$(GtkDllSuffix).dll del $(ConfigurationName)\$(PlatformName)\bin\$(GtkDllPrefix)gdk$(GtkDllSuffix).dll

|
|
if exist $(ConfigurationName)\$(PlatformName)\bin\gdk-$(ApiVersion).lib del $(ConfigurationName)\$(PlatformName)\bin\gdk-$(ApiVersion).lib

|
|
|
|
if "$(ConfigurationName)" == "Release" del ..\..\..\MSVC_Debug

|
|
if "$(ConfigurationName)" == "Debug" del ..\..\..\MSVC_Release

|
|
|
|
copy ..\..\..\gdk\gdkconfig.h.win32 ..\..\..\gdk\gdkconfig.h

|
|
copy ..\..\..\gdk\gdkconfig.h.win32 ..\..\..\GDK_WIN32ONLY_BUILD

|
|
|
|
echo $(ConfigurationName) > ..\..\..\MSVC_$(ConfigurationName)

|
|
:DONE_GDKCONFIG_H

|
|
"
|
|
/>
|
|
<UserMacro
|
|
Name="GenGdkConfigHBroadway"
|
|
Value="
|
|
if exist ..\..\..\MSVC_$(ConfigurationName) goto DONE_GDKCONFIG_H

|
|
|
|
if exist ..\..\..\gdk\gdkconfig.h del ..\..\..\gdk\gdkconfig.h

|
|
if exist ..\..\..\GDK_WIN32ONLY_BUILD del ..\..\..\GDK_WIN32ONLY_BUILD

|
|
|
|
if exist ..\..\..\MSVC_Release del ..\..\..\MSVC_Release

|
|
if exist ..\..\..\MSVC_Debug del ..\..\..\MSVC_Debug

|
|
|
|
if "$(ConfigurationName)" == "Release_Broadway" del ..\..\..\MSVC_Debug_Broadway

|
|
if "$(ConfigurationName)" == "Debug_Broadway" del ..\..\..\MSVC_Release_Broadway

|
|
|
|
copy ..\..\..\gdk\gdkconfig.h.win32_broadway ..\..\..\gdk\gdkconfig.h

|
|
copy ..\..\..\gdk\gdkconfig.h.win32_broadway ..\..\..\GDK_BROADWAY_BUILD

|
|
|
|
echo $(ConfigurationName) > ..\..\..\MSVC_$(ConfigurationName)

|
|
:DONE_GDKCONFIG_H

|
|
"
|
|
/>
|
|
<UserMacro
|
|
Name="GenerateGtkDbusBuiltSources"
|
|
Value="
|
|
cd ..\..\..\gtk

|
|
python $(GlibEtcInstallRoot)\bin\gdbus-codegen --interface-prefix org.Gtk. --c-namespace _Gtk --generate-c-code gtkdbusgenerated ./gtkdbusinterfaces.xml

|
|
cd $(SolutionDir)

|
|
"
|
|
/>
|
|
</VisualStudioPropertySheet> |