forked from AuroraMiddleware/gtk
71bb1bebc0
Generate .pc files for the package, so that it would be easier for building introspection for packages that depend on GTK+. Also split PythonPath into PythonPath and PythonPathX64 to facilitate the build of introspection files, which need to have Python that is built with the same ac=rchitecture where GTK+ is built. Clean up the formatting and spacing a bit.
82 lines
3.4 KiB
XML
82 lines
3.4 KiB
XML
<?xml version="1.0" encoding="Windows-1252"?>
|
|
<VisualStudioPropertySheet
|
|
ProjectType="Visual C++"
|
|
Version="8.00"
|
|
Name="gtk3gensrcsprops"
|
|
InheritedPropertySheets=".\gtk3-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)_Broadway 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)_Broadway

|
|
:DONE_GDKCONFIG_H

|
|
"
|
|
/>
|
|
<UserMacro
|
|
Name="GDbusCodeGenCmd"
|
|
Value="$(GlibEtcInstallRoot)\bin\gdbus-codegen --interface-prefix org.Gtk. --c-namespace _Gtk --generate-c-code gtkdbusgenerated ./gtkdbusinterfaces.xml"
|
|
/>
|
|
<UserMacro
|
|
Name="GenerateGtkDbusBuiltSources"
|
|
Value="cd ..\..\..\gtk & $(PythonPath)\python $(GDbusCodeGenCmd) & cd $(SolutionDir)"
|
|
/>
|
|
<UserMacro
|
|
Name="GenerateGtkDbusBuiltSourcesX64"
|
|
Value="cd ..\..\..\gtk & $(PythonPathX64)\python $(GDbusCodeGenCmd) & cd $(SolutionDir)"
|
|
/>
|
|
<UserMacro
|
|
Name="CopyGtkWin32RC"
|
|
Value="copy ..\..\..\gtk\gtk-win32.rc.body ..\..\..\gtk\gtk-win32.rc"
|
|
/>
|
|
<UserMacro
|
|
Name="GenerateGtkWin32Manifest"
|
|
Value="$(PythonPath)\python ..\replace.py --action=replace-var --input=..\..\..\gtk\libgtk3.manifest.in --output=..\..\..\gtk\libgtk3.manifest --var=EXE_MANIFEST_ARCHITECTURE --outstring=*"
|
|
/>
|
|
<UserMacro
|
|
Name="CopyDemosH"
|
|
Value="copy ..\..\..\demos\gtk-demo\demos.h.win32 ..\..\..\demos\gtk-demo\demos.h"
|
|
/>
|
|
</VisualStudioPropertySheet>
|