Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @'
- http://ftp.gnome.org/pub/GNOME/sources/glibmm/2.62/glibmm-2.62.0.tar.xz
- http://ftp.gnome.org/pub/GNOME/sources/pangomm/2.42/pangomm-2.42.2.tar.xz
- http://ftp.gnome.org/pub/GNOME/sources/libsigc++/2.10/libsigc++-2.10.2.tar.xz
- http://cairographics.org/releases/cairomm-1.13.1.tar.gz
- '@ -split "`n" | % { $f = "C:\dev\other\{0}" -f (Split-Path -Leaf $_); iwr $_ -OutFile $f; tar -xf $f -C C:\dev\other; rm $f }
- & "C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\Tools\Launch-VsDevShell.ps1" -Arch amd64
- cd C:\dev\other\libsigc++-2.10.2\MSVC_NMake
- nmake /f Makefile.vc CFG=release PREFIX=C:\dev\vcpkg\installed\x64-windows
- nmake /f Makefile.vc CFG=release PREFIX=C:\dev\vcpkg\installed\x64-windows install
- cd C:\dev\other\glibmm-2.62.0\MSVC_NMake
- @"
- #pragma once
- #pragma warning(disable: 4251)
- #pragma warning(disable: 4275)
- #pragma warning(disable: 4786)
- "@ | Out-File -Encoding ASCII gendef/msvc_recommended_pragmas.h
- glibmm','giomm'|%{(gc "release\x64\$_\$_.def")-notmatch'Weak'|Set-Content "release\x64\$_\$_.def"}
- cp C:\dev\vcpkg\installed\x64-windows\tools\glib\glib-compile-schemas.exe C:\dev\vcpkg\installed\x64-windows\bin\
- nmake /f Makefile.vc CFG=release PREFIX=C:\dev\vcpkg\installed\x64-windows
- nmake /f Makefile.vc CFG=release PREFIX=C:\dev\vcpkg\installed\x64-windows install
- cd C:\dev\other\cairomm-1.13.1\MSVC_Net2013
- devenv cairomm.sln /Upgrade
- (gc cairomm-version-paths.props) -replace 'GlibEtcInstallRoot>.*</GlibEtcInstallRoot', 'GlibEtcInstallRoot>C:\dev\vcpkg\installed\x64-windows</GlibEtcInstallRoot' | Set-Content cairomm-version-paths.props
- (gc cairomm.vcxproj) -replace '<ClCompile>', '<ClCompile><AdditionalIncludeDirectories>C:\dev\vcpkg\installed\x64-windows\include\cairo;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>' | Set-Content cairomm.vcxproj
- (gc cairomm-build-defines.props) -replace 'sigc-vc\$\(VSVer\)0-2_0.lib', 'sigc-vc140-2_0.lib' | Set-Content cairomm-build-defines.props
- (gc cairomm-build-defines.props) -replace 'sigc-vc\$\(VSVer\)0-d-2_0.lib', 'sigc-vc140-d-2_0.lib' | Set-Content cairomm-build-defines.props
- (gc gendef\gendef.cc) -replace 'def_file << " "','if(strstr(s,"Weak")==0) def_file << " "' | Set-Content gendef\gendef.cc
- @"
- #pragma once
- #pragma warning(disable: 4251)
- #pragma warning(disable: 4275)
- #pragma warning(disable: 4786)
- "@ | Out-File -Encoding ASCII gendef/msvc_recommended_pragmas.h
- cp gendef/msvc_recommended_pragmas.h ..\cairomm\
- msbuild gendef.vcxproj /p:Configuration=Release /p:Platform=x64
- msbuild cairomm.vcxproj /p:Configuration=Release /p:Platform=x64
- mkdir "C:\dev\vcpkg\installed\x64-windows\include\cairomm-1.0\cairomm" -Force
- cp -r ..\cairomm\* "C:\dev\vcpkg\installed\x64-windows\include\cairomm-1.0\cairomm\"
- cp Release\x64\bin\*.lib "C:\dev\vcpkg\installed\x64-windows\lib\"
- cp Release\x64\bin\*.dll "C:\dev\vcpkg\installed\x64-windows\bin\"
Advertisement
Add Comment
Please, Sign In to add comment