glib2 3.0.9-x64-mingw32 → 3.1.0-x64-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +2 -2
- data/ext/glib2/extconf.rb +0 -3
- data/ext/glib2/glib2.def +3 -0
- data/ext/glib2/rbglib.c +52 -20
- data/ext/glib2/rbglib.h +2 -2
- data/ext/glib2/rbglib_iochannel.c +1 -1
- data/ext/glib2/rbglib_mainloop.c +34 -11
- data/ext/glib2/rbglib_messages.c +21 -14
- data/ext/glib2/rbgobj_closure.c +65 -28
- data/ext/glib2/rbgobj_signal.c +38 -2
- data/ext/glib2/rbgobject.h +16 -0
- data/ext/glib2/rbgutil.c +6 -6
- data/lib/2.2/glib2.so +0 -0
- data/lib/2.3/glib2.so +0 -0
- data/lib/glib2.rb +8 -3
- data/lib/gnome2/rake/external-package.rb +24 -1
- data/lib/gnome2/rake/windows-binary-build-task.rb +339 -338
- data/vendor/local/bin/asn1Coding.exe +0 -0
- data/vendor/local/bin/asn1Decoding.exe +0 -0
- data/vendor/local/bin/asn1Parser.exe +0 -0
- data/vendor/local/bin/envsubst.exe +0 -0
- data/vendor/local/bin/gdbus.exe +0 -0
- data/vendor/local/bin/gettext.exe +0 -0
- data/vendor/local/bin/gio-querymodules.exe +0 -0
- data/vendor/local/bin/gio.exe +0 -0
- data/vendor/local/bin/glib-compile-resources.exe +0 -0
- data/vendor/local/bin/glib-compile-schemas.exe +0 -0
- data/vendor/local/bin/glib-genmarshal.exe +0 -0
- data/vendor/local/bin/glib-gettextize +1 -1
- data/vendor/local/bin/glib-mkenums +1 -1
- data/vendor/local/bin/gobject-query.exe +0 -0
- data/vendor/local/bin/gresource.exe +0 -0
- data/vendor/local/bin/gsettings.exe +0 -0
- data/vendor/local/bin/gspawn-win64-helper-console.exe +0 -0
- data/vendor/local/bin/gspawn-win64-helper.exe +0 -0
- data/vendor/local/bin/iconv.exe +0 -0
- data/vendor/local/bin/idn.exe +0 -0
- data/vendor/local/bin/libasprintf-0.dll +0 -0
- data/vendor/local/bin/libcharset-1.dll +0 -0
- data/vendor/local/bin/libffi-6.dll +0 -0
- data/vendor/local/bin/libgio-2.0-0.dll +0 -0
- data/vendor/local/bin/libglib-2.0-0.dll +0 -0
- data/vendor/local/bin/libgmodule-2.0-0.dll +0 -0
- data/vendor/local/bin/libgmp-10.dll +0 -0
- data/vendor/local/bin/libgnutls-30.dll +0 -0
- data/vendor/local/bin/libgobject-2.0-0.dll +0 -0
- data/vendor/local/bin/libgthread-2.0-0.dll +0 -0
- data/vendor/local/bin/libhogweed-4-2.dll +0 -0
- data/vendor/local/bin/libiconv-2.dll +0 -0
- data/vendor/local/bin/libidn-11.dll +0 -0
- data/vendor/local/bin/libintl-8.dll +0 -0
- data/vendor/local/bin/libnettle-6-2.dll +0 -0
- data/vendor/local/bin/libp11-kit-0.dll +0 -0
- data/vendor/local/bin/libpcre-1.dll +0 -0
- data/vendor/local/bin/libpcrecpp-0.dll +0 -0
- data/vendor/local/bin/libpcreposix-0.dll +0 -0
- data/vendor/local/bin/libtasn1-6.dll +0 -0
- data/vendor/local/bin/nettle-hash.exe +0 -0
- data/vendor/local/bin/nettle-lfib-stream.exe +0 -0
- data/vendor/local/bin/nettle-pbkdf2.exe +0 -0
- data/vendor/local/bin/ngettext.exe +0 -0
- data/vendor/local/bin/p11-kit.exe +0 -0
- data/vendor/local/bin/pcregrep.exe +0 -0
- data/vendor/local/bin/pcretest.exe +0 -0
- data/vendor/local/bin/pkcs1-conv.exe +0 -0
- data/vendor/local/bin/sexp-conv.exe +0 -0
- data/vendor/local/bin/trust.exe +0 -0
- data/vendor/local/include/glib-2.0/gio/gappinfo.h +11 -0
- data/vendor/local/include/glib-2.0/gio/gdrive.h +4 -0
- data/vendor/local/include/glib-2.0/gio/gfileinfo.h +9 -0
- data/vendor/local/include/glib-2.0/gio/gio-autocleanups.h +1 -0
- data/vendor/local/include/glib-2.0/gio/gioenums.h +10 -10
- data/vendor/local/include/glib-2.0/gio/giotypes.h +1 -1
- data/vendor/local/include/glib-2.0/gio/gsettings.h +14 -0
- data/vendor/local/include/glib-2.0/gio/gvfs.h +36 -0
- data/vendor/local/include/glib-2.0/glib/gchecksum.h +1 -1
- data/vendor/local/include/glib-2.0/glib/ghmac.h +5 -0
- data/vendor/local/include/glib-2.0/glib/gkeyfile.h +6 -0
- data/vendor/local/include/glib-2.0/glib/gmacros.h +1 -1
- data/vendor/local/include/glib-2.0/glib/gmain.h +11 -0
- data/vendor/local/include/glib-2.0/glib/gmessages.h +211 -2
- data/vendor/local/include/glib-2.0/glib/gtypes.h +2 -1
- data/vendor/local/include/glib-2.0/glib/gunicode.h +23 -3
- data/vendor/local/include/glib-2.0/glib/gutils.h +10 -0
- data/vendor/local/include/glib-2.0/glib/gvariant.h +71 -2
- data/vendor/local/include/glib-2.0/glib/gvarianttype.h +0 -1
- data/vendor/local/include/glib-2.0/glib/gversionmacros.h +23 -0
- data/vendor/local/include/glib-2.0/gobject/gparam.h +2 -1
- data/vendor/local/include/glib-2.0/gobject/gsignal.h +1 -1
- data/vendor/local/include/glib-2.0/gobject/gtypemodule.h +2 -0
- data/vendor/local/include/gmp.h +1 -1
- data/vendor/local/include/nettle/nettle-stdint.h +1 -1
- data/vendor/local/lib/gio/modules/libgiognutls.a +0 -0
- data/vendor/local/lib/gio/modules/libgiognutls.dll +0 -0
- data/vendor/local/lib/gio/modules/libgiognutls.dll.a +0 -0
- data/vendor/local/lib/glib-2.0/include/glibconfig.h +3 -2
- data/vendor/local/lib/libasprintf.a +0 -0
- data/vendor/local/lib/libasprintf.dll.a +0 -0
- data/vendor/local/lib/libcharset.a +0 -0
- data/vendor/local/lib/libcharset.dll.a +0 -0
- data/vendor/local/lib/libffi.a +0 -0
- data/vendor/local/lib/libffi.dll.a +0 -0
- data/vendor/local/lib/libgio-2.0.dll.a +0 -0
- data/vendor/local/lib/libgio-2.0.la +5 -5
- data/vendor/local/lib/libglib-2.0.dll.a +0 -0
- data/vendor/local/lib/libglib-2.0.la +5 -5
- data/vendor/local/lib/libgmodule-2.0.dll.a +0 -0
- data/vendor/local/lib/libgmodule-2.0.la +5 -5
- data/vendor/local/lib/libgmp.dll.a +0 -0
- data/vendor/local/lib/libgnutls.dll.a +0 -0
- data/vendor/local/lib/libgobject-2.0.dll.a +0 -0
- data/vendor/local/lib/libgobject-2.0.la +5 -5
- data/vendor/local/lib/libgthread-2.0.dll.a +0 -0
- data/vendor/local/lib/libgthread-2.0.la +5 -5
- data/vendor/local/lib/libhogweed.a +0 -0
- data/vendor/local/lib/libhogweed.dll.a +0 -0
- data/vendor/local/lib/libiconv.dll.a +0 -0
- data/vendor/local/lib/libidn.a +0 -0
- data/vendor/local/lib/libidn.dll.a +0 -0
- data/vendor/local/lib/libintl.a +0 -0
- data/vendor/local/lib/libintl.dll.a +0 -0
- data/vendor/local/lib/libnettle.a +0 -0
- data/vendor/local/lib/libnettle.dll.a +0 -0
- data/vendor/local/lib/libp11-kit.dll.a +0 -0
- data/vendor/local/lib/libpcre.a +0 -0
- data/vendor/local/lib/libpcre.dll.a +0 -0
- data/vendor/local/lib/libpcrecpp.a +0 -0
- data/vendor/local/lib/libpcrecpp.dll.a +0 -0
- data/vendor/local/lib/libpcreposix.a +0 -0
- data/vendor/local/lib/libpcreposix.dll.a +0 -0
- data/vendor/local/lib/libtasn1.a +0 -0
- data/vendor/local/lib/libtasn1.dll.a +0 -0
- data/vendor/local/lib/p11-kit/p11-kit-remote.exe +0 -0
- data/vendor/local/lib/pkcs11/p11-kit-trust.dll +0 -0
- data/vendor/local/lib/pkcs11/p11-kit-trust.dll.a +0 -0
- data/vendor/local/lib/pkgconfig/gio-2.0.pc +2 -2
- data/vendor/local/lib/pkgconfig/gio-windows-2.0.pc +1 -1
- data/vendor/local/lib/pkgconfig/glib-2.0.pc +2 -2
- data/vendor/local/lib/pkgconfig/gmodule-2.0.pc +1 -1
- data/vendor/local/lib/pkgconfig/gmodule-export-2.0.pc +1 -1
- data/vendor/local/lib/pkgconfig/gmodule-no-export-2.0.pc +1 -1
- data/vendor/local/lib/pkgconfig/gnutls.pc +1 -1
- data/vendor/local/lib/pkgconfig/gobject-2.0.pc +2 -2
- data/vendor/local/lib/pkgconfig/gthread-2.0.pc +1 -1
- data/vendor/local/share/bash-completion/completions/gsettings +3 -3
- data/vendor/local/share/gdb/auto-load/home/vagrant/ruby-gnome2.win64/glib2/vendor/local/lib/{libglib-2.0.so.0.4800.1-gdb.py → libglib-2.0.so.0.5000.2-gdb.py} +1 -1
- data/vendor/local/share/gdb/auto-load/home/vagrant/ruby-gnome2.win64/glib2/vendor/local/lib/{libgobject-2.0.so.0.4800.1-gdb.py → libgobject-2.0.so.0.5000.2-gdb.py} +1 -1
- data/vendor/local/share/glib-2.0/codegen/__init__.pyc +0 -0
- data/vendor/local/share/glib-2.0/codegen/__init__.pyo +0 -0
- data/vendor/local/share/glib-2.0/codegen/codegen.py +32 -22
- data/vendor/local/share/glib-2.0/codegen/codegen.pyc +0 -0
- data/vendor/local/share/glib-2.0/codegen/codegen.pyo +0 -0
- data/vendor/local/share/glib-2.0/codegen/codegen_docbook.pyc +0 -0
- data/vendor/local/share/glib-2.0/codegen/codegen_docbook.pyo +0 -0
- data/vendor/local/share/glib-2.0/codegen/codegen_main.py +3 -0
- data/vendor/local/share/glib-2.0/codegen/codegen_main.pyc +0 -0
- data/vendor/local/share/glib-2.0/codegen/codegen_main.pyo +0 -0
- data/vendor/local/share/glib-2.0/codegen/config.py +1 -1
- data/vendor/local/share/glib-2.0/codegen/config.pyc +0 -0
- data/vendor/local/share/glib-2.0/codegen/config.pyo +0 -0
- data/vendor/local/share/glib-2.0/codegen/dbustypes.pyc +0 -0
- data/vendor/local/share/glib-2.0/codegen/dbustypes.pyo +0 -0
- data/vendor/local/share/glib-2.0/codegen/parser.py +8 -4
- data/vendor/local/share/glib-2.0/codegen/parser.pyc +0 -0
- data/vendor/local/share/glib-2.0/codegen/parser.pyo +0 -0
- data/vendor/local/share/glib-2.0/codegen/utils.py +8 -2
- data/vendor/local/share/glib-2.0/codegen/utils.pyc +0 -0
- data/vendor/local/share/glib-2.0/codegen/utils.pyo +0 -0
- data/vendor/local/share/glib-2.0/gdb/{glib.py → glib_gdb.py} +0 -0
- data/vendor/local/share/glib-2.0/gdb/{gobject.py → gobject_gdb.py} +3 -3
- data/vendor/local/share/gtk-doc/html/gio/GAction.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/GActionGroup.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/GActionMap.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/GAppInfo.html +115 -8
- data/vendor/local/share/gtk-doc/html/gio/GApplication.html +4 -4
- data/vendor/local/share/gtk-doc/html/gio/GApplicationCommandLine.html +2 -1
- data/vendor/local/share/gtk-doc/html/gio/GAsyncInitable.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/GAsyncResult.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/GCancellable.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/GConverter.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/GCredentials.html +5 -5
- data/vendor/local/share/gtk-doc/html/gio/GDBusInterface.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/GDBusMessage.html +6 -6
- data/vendor/local/share/gtk-doc/html/gio/GDBusObject.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/GDBusObjectManager.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/GDBusObjectManagerClient.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/GDBusObjectManagerServer.html +3 -3
- data/vendor/local/share/gtk-doc/html/gio/GDatagramBased.html +8 -7
- data/vendor/local/share/gtk-doc/html/gio/GDrive.html +44 -1
- data/vendor/local/share/gtk-doc/html/gio/GDtlsClientConnection.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/GDtlsConnection.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/GDtlsServerConnection.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/GFile.html +25 -23
- data/vendor/local/share/gtk-doc/html/gio/GFileDescriptorBased.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/GFileEnumerator.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/GFileInfo.html +18 -4
- data/vendor/local/share/gtk-doc/html/gio/GFileMonitor.html +5 -5
- data/vendor/local/share/gtk-doc/html/gio/GIOModule.html +14 -10
- data/vendor/local/share/gtk-doc/html/gio/GIcon.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/GInetSocketAddress.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/GInitable.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/GListModel.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/GLoadableIcon.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/GMenu.html +14 -14
- data/vendor/local/share/gtk-doc/html/gio/GMenuModel.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/GMount.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/GMountOperation.html +5 -5
- data/vendor/local/share/gtk-doc/html/gio/GNetworkMonitor.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/GPollableInputStream.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/GPollableOutputStream.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/GPropertyAction.html +4 -4
- data/vendor/local/share/gtk-doc/html/gio/GProxy.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/GProxyResolver.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/GRemoteActionGroup.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/GResolver.html +2 -0
- data/vendor/local/share/gtk-doc/html/gio/GResource.html +32 -2
- data/vendor/local/share/gtk-doc/html/gio/GSeekable.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/GSettings.html +234 -11
- data/vendor/local/share/gtk-doc/html/gio/GSimpleAsyncResult.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/GSocketConnectable.html +3 -3
- data/vendor/local/share/gtk-doc/html/gio/GSocketService.html +10 -2
- data/vendor/local/share/gtk-doc/html/gio/GSrvTarget.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/GSubprocessLauncher.html +9 -9
- data/vendor/local/share/gtk-doc/html/gio/GTask.html +6 -6
- data/vendor/local/share/gtk-doc/html/gio/GThemedIcon.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/GTlsBackend.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/GTlsCertificate.html +10 -9
- data/vendor/local/share/gtk-doc/html/gio/GTlsClientConnection.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/GTlsFileDatabase.html +3 -3
- data/vendor/local/share/gtk-doc/html/gio/GTlsServerConnection.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/GVfs.html +222 -0
- data/vendor/local/share/gtk-doc/html/gio/GVolume.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/annotation-glossary.html +4 -2
- data/vendor/local/share/gtk-doc/html/gio/api-index-2-48.html +2 -2
- data/vendor/local/share/gtk-doc/html/gio/api-index-2-50.html +79 -0
- data/vendor/local/share/gtk-doc/html/gio/api-index-full.html +44 -0
- data/vendor/local/share/gtk-doc/html/gio/ch33.html +2 -2
- data/vendor/local/share/gtk-doc/html/gio/ch35.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/extending-gio.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/gapplication-tool.html +2 -2
- data/vendor/local/share/gtk-doc/html/gio/gdbus-codegen.html +18 -6
- data/vendor/local/share/gtk-doc/html/gio/gio-D-Bus-Introspection-Data.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/gio-Desktop-file-based-GAppInfo.html +7 -4
- data/vendor/local/share/gtk-doc/html/gio/gio-GFileAttribute.html +1 -1
- data/vendor/local/share/gtk-doc/html/gio/gio-GSettingsSchema-GSettingsSchemaSource.html +3 -3
- data/vendor/local/share/gtk-doc/html/gio/gio-GWin32RegistryKey.html +2 -2
- data/vendor/local/share/gtk-doc/html/gio/gio-Unix-Mounts.html +10 -6
- data/vendor/local/share/gtk-doc/html/gio/gio-hierarchy.html +2 -2
- data/vendor/local/share/gtk-doc/html/gio/gio.devhelp2 +14 -0
- data/vendor/local/share/gtk-doc/html/gio/gio.html +664 -0
- data/vendor/local/share/gtk-doc/html/gio/glib-compile-resources.html +19 -0
- data/vendor/local/share/gtk-doc/html/gio/glib-compile-schemas.html +6 -0
- data/vendor/local/share/gtk-doc/html/gio/gsettings-tool.html +7 -0
- data/vendor/local/share/gtk-doc/html/gio/index.html +5 -1
- data/vendor/local/share/gtk-doc/html/gio/pt02.html +3 -0
- data/vendor/local/share/gtk-doc/html/gio/running-gio-apps.html +10 -9
- data/vendor/local/share/gtk-doc/html/gio/testing.html +2 -2
- data/vendor/local/share/gtk-doc/html/gio/tools.html +3 -0
- data/vendor/local/share/gtk-doc/html/glib/annotation-glossary.html +4 -2
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-16.html +2 -2
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-40.html +1 -1
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-46.html +1 -1
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-48.html +2 -2
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-50.html +121 -0
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-6.html +2 -2
- data/vendor/local/share/gtk-doc/html/glib/api-index-full.html +110 -34
- data/vendor/local/share/gtk-doc/html/glib/glib-Arrays.html +1 -1
- data/vendor/local/share/gtk-doc/html/glib/glib-Bookmark-file-parser.html +10 -9
- data/vendor/local/share/gtk-doc/html/glib/glib-Byte-Arrays.html +4 -4
- data/vendor/local/share/gtk-doc/html/glib/glib-Character-Set-Conversion.html +10 -8
- data/vendor/local/share/gtk-doc/html/glib/glib-Commandline-option-parser.html +8 -8
- data/vendor/local/share/gtk-doc/html/glib/glib-Data-Checksums.html +1 -1
- data/vendor/local/share/gtk-doc/html/glib/glib-Data-HMACs.html +56 -2
- data/vendor/local/share/gtk-doc/html/glib/glib-Dynamic-Loading-of-Modules.html +1 -1
- data/vendor/local/share/gtk-doc/html/glib/glib-Error-Reporting.html +2 -2
- data/vendor/local/share/gtk-doc/html/glib/glib-File-Utilities.html +71 -50
- data/vendor/local/share/gtk-doc/html/glib/glib-GVariant.html +74 -17
- data/vendor/local/share/gtk-doc/html/glib/glib-GVariantType.html +4 -4
- data/vendor/local/share/gtk-doc/html/glib/glib-I18N.html +1 -1
- data/vendor/local/share/gtk-doc/html/glib/glib-IO-Channels.html +2 -2
- data/vendor/local/share/gtk-doc/html/glib/glib-Key-value-file-parser.html +57 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-Keyed-Data-Lists.html +3 -3
- data/vendor/local/share/gtk-doc/html/glib/glib-Memory-Allocation.html +2 -2
- data/vendor/local/share/gtk-doc/html/glib/glib-Message-Logging.html +1009 -13
- data/vendor/local/share/gtk-doc/html/glib/glib-Miscellaneous-Macros.html +2 -2
- data/vendor/local/share/gtk-doc/html/glib/glib-Miscellaneous-Utility-Functions.html +84 -56
- data/vendor/local/share/gtk-doc/html/glib/glib-Perl-compatible-regular-expressions.html +3 -0
- data/vendor/local/share/gtk-doc/html/glib/glib-Simple-XML-Subset-Parser.html +1 -1
- data/vendor/local/share/gtk-doc/html/glib/glib-Spawning-Processes.html +4 -4
- data/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html +1 -1
- data/vendor/local/share/gtk-doc/html/glib/glib-String-Utility-Functions.html +2 -2
- data/vendor/local/share/gtk-doc/html/glib/glib-Testing.html +27 -13
- data/vendor/local/share/gtk-doc/html/glib/glib-The-Main-Event-Loop.html +36 -14
- data/vendor/local/share/gtk-doc/html/glib/glib-Threads.html +4 -4
- data/vendor/local/share/gtk-doc/html/glib/glib-UNIX-specific-utilities-and-integration.html +1 -1
- data/vendor/local/share/gtk-doc/html/glib/glib-URI-Functions.html +4 -4
- data/vendor/local/share/gtk-doc/html/glib/glib-Unicode-Manipulation.html +68 -5
- data/vendor/local/share/gtk-doc/html/glib/glib-Version-Information.html +17 -4
- data/vendor/local/share/gtk-doc/html/glib/glib-Warnings-and-Assertions.html +12 -23
- data/vendor/local/share/gtk-doc/html/glib/glib-Windows-Compatibility-Functions.html +1 -1
- data/vendor/local/share/gtk-doc/html/glib/glib-core.html +2 -3
- data/vendor/local/share/gtk-doc/html/glib/glib-regex-syntax.html +1 -1
- data/vendor/local/share/gtk-doc/html/glib/glib-running.html +3 -2
- data/vendor/local/share/gtk-doc/html/glib/glib-utilities.html +1 -1
- data/vendor/local/share/gtk-doc/html/glib/glib.devhelp2 +36 -2
- data/vendor/local/share/gtk-doc/html/glib/gvariant-format-strings.html +6 -6
- data/vendor/local/share/gtk-doc/html/glib/gvariant-text.html +1 -1
- data/vendor/local/share/gtk-doc/html/glib/index.html +4 -4
- data/vendor/local/share/gtk-doc/html/gobject/GTypePlugin.html +1 -1
- data/vendor/local/share/gtk-doc/html/gobject/chapter-gtype.html +1 -1
- data/vendor/local/share/gtk-doc/html/gobject/gobject-Boxed-Types.html +1 -1
- data/vendor/local/share/gtk-doc/html/gobject/gobject-Closures.html +1 -1
- data/vendor/local/share/gtk-doc/html/gobject/gobject-Generic-values.html +3 -3
- data/vendor/local/share/gtk-doc/html/gobject/gobject-Signals.html +2 -2
- data/vendor/local/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html +2 -2
- data/vendor/local/share/gtk-doc/html/gobject/gobject-properties.html +2 -2
- data/vendor/local/share/gtk-doc/html/gobject/howto-gobject-construction.html +2 -2
- data/vendor/local/share/gtk-doc/html/gobject/howto-gobject-destruction.html +1 -1
- data/vendor/local/share/gtk-doc/html/gobject/index.html +1 -1
- data/vendor/local/share/gtk-doc/html/gobject/tools-gtkdoc.html +1 -1
- data/vendor/local/share/gtk-doc/html/p11-kit/p11-kit-Future.html +4 -4
- data/vendor/local/share/gtk-doc/html/p11-kit/p11-kit-Modules.html +12 -12
- data/vendor/local/share/gtk-doc/html/p11-kit/p11-kit-PIN-Callbacks.html +15 -15
- data/vendor/local/share/gtk-doc/html/p11-kit/p11-kit-URIs.html +2 -2
- data/vendor/local/share/gtk-doc/html/p11-kit/p11-kit-Utilities.html +2 -2
- data/vendor/local/share/locale/az/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/be@latin/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/bn_IN/LC_MESSAGES/glib-networking.mo +0 -0
- data/vendor/local/share/locale/ca/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/ca@valencia/LC_MESSAGES/glib-networking.mo +0 -0
- data/vendor/local/share/locale/ca@valencia/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/cs/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/da/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/de/LC_MESSAGES/glib-networking.mo +0 -0
- data/vendor/local/share/locale/de/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/dz/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/en@shaw/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/en_CA/LC_MESSAGES/glib-networking.mo +0 -0
- data/vendor/local/share/locale/en_CA/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/en_GB/LC_MESSAGES/glib-networking.mo +0 -0
- data/vendor/local/share/locale/en_GB/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/eo/LC_MESSAGES/glib-networking.mo +0 -0
- data/vendor/local/share/locale/es/LC_MESSAGES/glib-networking.mo +0 -0
- data/vendor/local/share/locale/es/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/eu/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/fa/LC_MESSAGES/glib-networking.mo +0 -0
- data/vendor/local/share/locale/fa/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/fi/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/fr/LC_MESSAGES/glib-networking.mo +0 -0
- data/vendor/local/share/locale/fr/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/gl/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/gu/LC_MESSAGES/glib-networking.mo +0 -0
- data/vendor/local/share/locale/gu/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/he/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/hr/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/hu/LC_MESSAGES/glib-networking.mo +0 -0
- data/vendor/local/share/locale/hu/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/id/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/it/LC_MESSAGES/glib-networking.mo +0 -0
- data/vendor/local/share/locale/it/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/kk/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/km/LC_MESSAGES/glib-networking.mo +0 -0
- data/vendor/local/share/locale/kn/LC_MESSAGES/glib-networking.mo +0 -0
- data/vendor/local/share/locale/ko/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/lt/LC_MESSAGES/glib-networking.mo +0 -0
- data/vendor/local/share/locale/lt/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/lv/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/mai/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/mg/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/ml/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/ms/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/nb/LC_MESSAGES/glib-networking.mo +0 -0
- data/vendor/local/share/locale/nb/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/nds/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/oc/LC_MESSAGES/glib-networking.mo +0 -0
- data/vendor/local/share/locale/oc/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/pa/LC_MESSAGES/glib-networking.mo +0 -0
- data/vendor/local/share/locale/pl/LC_MESSAGES/glib-networking.mo +0 -0
- data/vendor/local/share/locale/pl/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/pt/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/pt_BR/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/sk/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/sl/LC_MESSAGES/glib-networking.mo +0 -0
- data/vendor/local/share/locale/sl/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/sq/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/sr/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/sr@ije/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/sr@latin/LC_MESSAGES/glib-networking.mo +0 -0
- data/vendor/local/share/locale/sr@latin/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/sv/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/th/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/tr/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/tt/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/ug/LC_MESSAGES/glib-networking.mo +0 -0
- data/vendor/local/share/locale/ug/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/wa/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/zh_CN/LC_MESSAGES/glib-networking.mo +0 -0
- data/vendor/local/share/locale/zh_HK/LC_MESSAGES/glib-networking.mo +0 -0
- data/vendor/local/share/locale/zh_HK/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/zh_TW/LC_MESSAGES/glib-networking.mo +0 -0
- data/vendor/local/share/locale/zh_TW/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/man/man1/gapplication.1 +1 -1
- data/vendor/local/share/man/man1/gdbus-codegen.1 +8 -3
- data/vendor/local/share/man/man1/gdbus.1 +1 -1
- data/vendor/local/share/man/man1/gio-querymodules.1 +1 -1
- data/vendor/local/share/man/man1/gio.1 +583 -0
- data/vendor/local/share/man/man1/glib-compile-resources.1 +19 -1
- data/vendor/local/share/man/man1/glib-compile-schemas.1 +6 -1
- data/vendor/local/share/man/man1/glib-genmarshal.1 +1 -1
- data/vendor/local/share/man/man1/glib-gettextize.1 +1 -1
- data/vendor/local/share/man/man1/glib-mkenums.1 +1 -1
- data/vendor/local/share/man/man1/gobject-query.1 +1 -1
- data/vendor/local/share/man/man1/gresource.1 +1 -1
- data/vendor/local/share/man/man1/gsettings.1 +9 -1
- data/vendor/local/share/man/man1/gtester-report.1 +1 -1
- data/vendor/local/share/man/man1/gtester.1 +1 -1
- metadata +12 -7
data/ext/glib2/rbgobject.h
CHANGED
@@ -197,10 +197,26 @@ extern void rbgobj_set_signal_func(VALUE klass, const gchar *sig_name, GValToRVa
|
|
197
197
|
extern GValToRValSignalFunc rbgobj_get_signal_func(guint signal_id);
|
198
198
|
extern VALUE rbgobj_signal_wrap(guint sig_id);
|
199
199
|
|
200
|
+
typedef struct {
|
201
|
+
GValue *return_value;
|
202
|
+
guint n_param_values;
|
203
|
+
const GValue *param_values;
|
204
|
+
VALUE callback;
|
205
|
+
VALUE extra_args;
|
206
|
+
} RGClosureCallData;
|
207
|
+
typedef void (*RGClosureCallFunc)(RGClosureCallData *data);
|
208
|
+
|
209
|
+
extern void rbgobj_set_signal_call_func(VALUE klass,
|
210
|
+
const gchar *signal_name,
|
211
|
+
RGClosureCallFunc func);
|
212
|
+
extern RGClosureCallFunc rbgobj_get_signal_call_func(guint signal_id);
|
200
213
|
|
201
214
|
/* rbgobj_closure.c */
|
202
215
|
extern GClosure* g_rclosure_new(VALUE callback_proc, VALUE extra_args,
|
203
216
|
GValToRValSignalFunc func);
|
217
|
+
extern GClosure* g_rclosure_new_call(VALUE callback_proc,
|
218
|
+
VALUE extra_args,
|
219
|
+
RGClosureCallFunc func);
|
204
220
|
extern void g_rclosure_attach(GClosure *closure, VALUE object);
|
205
221
|
extern void g_rclosure_set_tag(GClosure *closure, const gchar *tag);
|
206
222
|
|
data/ext/glib2/rbgutil.c
CHANGED
@@ -138,22 +138,22 @@ rbgutil_key_equal(VALUE rb_key, const char *key)
|
|
138
138
|
}
|
139
139
|
|
140
140
|
static gboolean
|
141
|
-
rbg_interrupt_prepare (G_GNUC_UNUSED GSource *
|
142
|
-
|
141
|
+
rbg_interrupt_prepare (G_GNUC_UNUSED GSource *source,
|
142
|
+
G_GNUC_UNUSED gint *timeout)
|
143
143
|
{
|
144
144
|
return rb_thread_interrupted(rb_thread_current());
|
145
145
|
}
|
146
146
|
|
147
147
|
static gboolean
|
148
|
-
rbg_interrupt_check (G_GNUC_UNUSED GSource *
|
148
|
+
rbg_interrupt_check (G_GNUC_UNUSED GSource *source)
|
149
149
|
{
|
150
150
|
return rb_thread_interrupted(rb_thread_current());
|
151
151
|
}
|
152
152
|
|
153
153
|
static gboolean
|
154
|
-
rbg_interrupt_dispatch (G_GNUC_UNUSED GSource *
|
155
|
-
|
156
|
-
|
154
|
+
rbg_interrupt_dispatch (G_GNUC_UNUSED GSource *source,
|
155
|
+
GSourceFunc callback,
|
156
|
+
gpointer user_data)
|
157
157
|
{
|
158
158
|
if (callback) {
|
159
159
|
return callback(user_data);
|
data/lib/2.2/glib2.so
CHANGED
Binary file
|
data/lib/2.3/glib2.so
CHANGED
Binary file
|
data/lib/glib2.rb
CHANGED
@@ -33,10 +33,15 @@ module GLib
|
|
33
33
|
def exit_application(exception, status)
|
34
34
|
msg = exception.message || exception.to_s
|
35
35
|
msg = exception.class.to_s if msg == ""
|
36
|
-
backtrace = exception.backtrace
|
37
|
-
|
36
|
+
backtrace = exception.backtrace || []
|
37
|
+
first_line = backtrace.shift
|
38
|
+
if first_line
|
39
|
+
$stderr.puts("#{first_line}: #{msg}")
|
40
|
+
else
|
41
|
+
$stderr.puts(msg)
|
42
|
+
end
|
38
43
|
backtrace.each do |v|
|
39
|
-
$stderr.puts
|
44
|
+
$stderr.puts("\t from #{v}")
|
40
45
|
end
|
41
46
|
exit(status)
|
42
47
|
end
|
@@ -107,6 +107,8 @@ module GNOME2
|
|
107
107
|
latest_version_freedesktop
|
108
108
|
when :freedesktop_gstreamer
|
109
109
|
latest_version_freedesktop_gstreamer
|
110
|
+
when :webkitgtk
|
111
|
+
latest_version_webkitgtk
|
110
112
|
else
|
111
113
|
nil
|
112
114
|
end
|
@@ -127,7 +129,8 @@ module GNOME2
|
|
127
129
|
base_url << "/#{name}"
|
128
130
|
when :gnu
|
129
131
|
base_url = "http://ftp.gnu.org/pub/gnu/#{name}"
|
130
|
-
|
132
|
+
when :webkitgtk
|
133
|
+
base_url = webkitgtk_base_url
|
131
134
|
else
|
132
135
|
base_url = nil
|
133
136
|
end
|
@@ -146,6 +149,10 @@ module GNOME2
|
|
146
149
|
"https://gstreamer.freedesktop.org/src"
|
147
150
|
end
|
148
151
|
|
152
|
+
def webkitgtk_base_url
|
153
|
+
"https://webkitgtk.org/releases"
|
154
|
+
end
|
155
|
+
|
149
156
|
def sort_versions(versions)
|
150
157
|
versions.sort_by do |version|
|
151
158
|
version.split(".").collect(&:to_i)
|
@@ -224,6 +231,22 @@ module GNOME2
|
|
224
231
|
version.split(".")[1].to_i.odd?
|
225
232
|
end
|
226
233
|
|
234
|
+
def latest_version_webkitgtk
|
235
|
+
base_url = webkitgtk_base_url
|
236
|
+
versions = []
|
237
|
+
open(base_url) do |index|
|
238
|
+
index.read.scan(/<a (.+?)>/) do |content,|
|
239
|
+
case content
|
240
|
+
when /href="#{Regexp.escape(name)}-
|
241
|
+
(\d+(?:\.\d+)*)
|
242
|
+
\.tar\.#{Regexp.escape(compression_method)}"/x
|
243
|
+
versions << $1
|
244
|
+
end
|
245
|
+
end
|
246
|
+
end
|
247
|
+
sort_versions(versions).last
|
248
|
+
end
|
249
|
+
|
227
250
|
class WindowsConfiguration < Struct.new(:build,
|
228
251
|
:include_paths,
|
229
252
|
:library_paths,
|
@@ -10,341 +10,342 @@ module GNOME2
|
|
10
10
|
class WindowsBinaryBuildTask
|
11
11
|
include ::Rake::DSL
|
12
12
|
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
|
277
|
-
|
278
|
-
|
279
|
-
|
280
|
-
|
281
|
-
|
282
|
-
|
283
|
-
|
284
|
-
|
285
|
-
|
286
|
-
|
287
|
-
|
288
|
-
|
289
|
-
|
290
|
-
|
291
|
-
|
292
|
-
|
293
|
-
|
294
|
-
|
295
|
-
|
296
|
-
|
297
|
-
|
298
|
-
|
299
|
-
|
300
|
-
|
301
|
-
|
302
|
-
|
303
|
-
|
304
|
-
|
305
|
-
|
306
|
-
|
307
|
-
|
308
|
-
|
309
|
-
|
310
|
-
|
311
|
-
|
312
|
-
|
313
|
-
|
314
|
-
|
315
|
-
|
316
|
-
|
317
|
-
|
318
|
-
|
319
|
-
|
320
|
-
|
321
|
-
|
322
|
-
|
323
|
-
|
324
|
-
|
325
|
-
|
326
|
-
|
327
|
-
|
328
|
-
|
329
|
-
|
330
|
-
|
331
|
-
|
332
|
-
|
333
|
-
|
334
|
-
|
335
|
-
|
336
|
-
|
337
|
-
|
338
|
-
|
339
|
-
|
340
|
-
|
341
|
-
|
342
|
-
|
343
|
-
|
344
|
-
|
345
|
-
|
346
|
-
|
347
|
-
|
348
|
-
|
349
|
-
|
350
|
-
|
13
|
+
def initialize(package)
|
14
|
+
@package = package
|
15
|
+
end
|
16
|
+
|
17
|
+
def define
|
18
|
+
namespace :windows do
|
19
|
+
namespace :builder do
|
20
|
+
task :before
|
21
|
+
define_build_tasks
|
22
|
+
build_tasks = build_packages.collect do |package|
|
23
|
+
"windows:builder:build:#{package.name}"
|
24
|
+
end
|
25
|
+
task :build => build_tasks
|
26
|
+
task :after
|
27
|
+
end
|
28
|
+
desc "Build Windows binaries"
|
29
|
+
task :build => ["windows:builder:before",
|
30
|
+
"windows:builder:build",
|
31
|
+
"windows:builder:after"]
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
def rcairo_binary_base_dir
|
36
|
+
rcairo_dir + "vendor" + "local"
|
37
|
+
end
|
38
|
+
|
39
|
+
def glib2_binary_base_dir
|
40
|
+
@package.glib2_root_dir + "vendor" + "local"
|
41
|
+
end
|
42
|
+
|
43
|
+
def binary_base_dir(package)
|
44
|
+
@package.project_root_dir + package + "vendor" + "local"
|
45
|
+
end
|
46
|
+
|
47
|
+
private
|
48
|
+
def define_build_tasks
|
49
|
+
namespace :build do
|
50
|
+
prepare_task_names = []
|
51
|
+
namespace :prepare do
|
52
|
+
prepare_task_names << "pkg_config"
|
53
|
+
task :pkg_config do
|
54
|
+
depended_packages = @package.windows.build_dependencies
|
55
|
+
use_packages = [@package.name] + depended_packages
|
56
|
+
pkg_config_path = use_packages.collect do |package|
|
57
|
+
"../#{package}/#{@package.windows.relative_binary_dir}/lib/pkgconfig"
|
58
|
+
end
|
59
|
+
ENV["PKG_CONFIG_PATH"] = pkg_config_path.collect do |path|
|
60
|
+
File.expand_path(path)
|
61
|
+
end.join(":")
|
62
|
+
ENV["PKG_CONFIG_LIBDIR"] = rcairo_pkgconfig_path
|
63
|
+
end
|
64
|
+
|
65
|
+
prepare_task_names << "pkg_config_for_build"
|
66
|
+
task :pkg_config_for_build do
|
67
|
+
# XXX: Is it needless?
|
68
|
+
# ENV["PKG_CONFIG_FOR_BUILD"] = "env - pkg-config"
|
69
|
+
end
|
70
|
+
end
|
71
|
+
|
72
|
+
full_prepare_task_names = prepare_task_names.collect do |name|
|
73
|
+
"windows:builder:build:prepare:#{name}"
|
74
|
+
end
|
75
|
+
task :prepare => full_prepare_task_names
|
76
|
+
|
77
|
+
build_packages.each do |package|
|
78
|
+
namespace package.name do
|
79
|
+
task :before
|
80
|
+
download_task = "source:downloader:download:#{package.name}"
|
81
|
+
built_file = package.windows.built_file
|
82
|
+
if built_file
|
83
|
+
built_file = dist_dir + built_file
|
84
|
+
file built_file.to_s do
|
85
|
+
::Rake::Task["windows:builder:build:prepare"].invoke
|
86
|
+
::Rake::Task[download_task].invoke
|
87
|
+
build_package_task_body(package)
|
88
|
+
end
|
89
|
+
task :build => built_file.to_s
|
90
|
+
else
|
91
|
+
task :build => [:prepare, download_task] do
|
92
|
+
build_package_task_body(package)
|
93
|
+
end
|
94
|
+
end
|
95
|
+
task :after
|
96
|
+
end
|
97
|
+
|
98
|
+
prefix = "windows:builder:build:#{package.name}"
|
99
|
+
desc "Build #{package.label} and install it into #{dist_dir}."
|
100
|
+
task package.name => [
|
101
|
+
"#{prefix}:before",
|
102
|
+
"#{prefix}:build",
|
103
|
+
"#{prefix}:after",
|
104
|
+
]
|
105
|
+
end
|
106
|
+
end
|
107
|
+
end
|
108
|
+
|
109
|
+
def build_package_task_body(package)
|
110
|
+
package_tmp_dir = @package.tmp_dir + "windows" + package.name
|
111
|
+
rm_rf(package_tmp_dir)
|
112
|
+
mkdir_p(package_tmp_dir)
|
113
|
+
|
114
|
+
tar_full_path = @package.download_dir + package.archive_base_name
|
115
|
+
Dir.chdir(package_tmp_dir.to_s) do
|
116
|
+
sh("tar", "xf", tar_full_path.to_s)
|
117
|
+
end
|
118
|
+
|
119
|
+
package_dir_path =
|
120
|
+
package_tmp_dir + package.base_name + package.base_dir_in_package
|
121
|
+
Dir.chdir(package_dir_path.to_s) do
|
122
|
+
package.windows.patches.each do |patch|
|
123
|
+
sh("patch -p1 < #{@package.patches_dir}/#{patch}")
|
124
|
+
end
|
125
|
+
if File.exist?("configure")
|
126
|
+
configure(package)
|
127
|
+
else
|
128
|
+
cmake(package)
|
129
|
+
end
|
130
|
+
common_make_args = []
|
131
|
+
common_make_args << "MAKE=make"
|
132
|
+
common_make_args << "GLIB_COMPILE_SCHEMAS=glib-compile-schemas"
|
133
|
+
if package.windows.use_cc_environment_variable?
|
134
|
+
common_make_args << cc_env(package)
|
135
|
+
end
|
136
|
+
add_gobject_introspection_make_args(package, common_make_args)
|
137
|
+
build_make_args = common_make_args.dup
|
138
|
+
install_make_args = common_make_args.dup
|
139
|
+
if package.windows.build_concurrently?
|
140
|
+
make_n_jobs = ENV["MAKE_N_JOBS"]
|
141
|
+
build_make_args << "-j#{make_n_jobs}" if make_n_jobs
|
142
|
+
end
|
143
|
+
ENV["GREP_OPTIONS"] = "--text"
|
144
|
+
# ENV["GI_SCANNER_DEBUG"] = "save-temps"
|
145
|
+
# build_make_args << "--debug"
|
146
|
+
# build_make_args << "V=1"
|
147
|
+
# build_make_args << "VERBOSE=1"
|
148
|
+
sh("nice", "make", *build_make_args) or exit(false)
|
149
|
+
sh("make", "install", *install_make_args) or exit(false)
|
150
|
+
|
151
|
+
package_license_dir = license_dir + package.name
|
152
|
+
mkdir_p(package_license_dir)
|
153
|
+
package_license_files = ["AUTHORS", "COPYING", "COPYING.LIB"]
|
154
|
+
package_license_files = package_license_files.reject do |file|
|
155
|
+
not File.exist?(file)
|
156
|
+
end
|
157
|
+
cp(package_license_files, package_license_dir)
|
158
|
+
bundled_packages = package.bundled_packages
|
159
|
+
bundled_packages.each do |bundled_package|
|
160
|
+
bundled_package_license_dir = license_dir + bundled_package[:name]
|
161
|
+
mkdir_p(bundled_package_license_dir)
|
162
|
+
license_files = bundled_package[:license_files].collect do |file|
|
163
|
+
File.join(bundled_package[:path], file)
|
164
|
+
end
|
165
|
+
cp(license_files, bundled_package_license_dir)
|
166
|
+
end
|
167
|
+
end
|
168
|
+
end
|
169
|
+
|
170
|
+
def configure(package)
|
171
|
+
sh("./autogen.sh") if package.windows.need_autogen?
|
172
|
+
sh("autoreconf", "--install", "--force") if package.windows.need_autoreconf?
|
173
|
+
sh("./configure",
|
174
|
+
cc_env(package),
|
175
|
+
dlltool_env,
|
176
|
+
"CPPFLAGS=#{cppflags(package)}",
|
177
|
+
"LDFLAGS=#{ldflags(package)}",
|
178
|
+
"--prefix=#{dist_dir}",
|
179
|
+
"--host=#{@package.windows.build_host}",
|
180
|
+
*package.windows.configure_args) or exit(false)
|
181
|
+
end
|
182
|
+
|
183
|
+
def cmake(package)
|
184
|
+
sh("cmake",
|
185
|
+
".",
|
186
|
+
"-DCMAKE_INSTALL_PREFIX=#{dist_dir}",
|
187
|
+
"-DCMAKE_SYSTEM_NAME=Windows",
|
188
|
+
"-DCMAKE_SYSTEM_PROCESSOR=#{@package.windows.build_architecture}",
|
189
|
+
"-DCMAKE_C_COMPILER=#{cc(package)}",
|
190
|
+
"-DCMAKE_CXX_COMPILER=#{cxx(package)}",
|
191
|
+
*package.windows.cmake_args) or exit(false)
|
192
|
+
end
|
193
|
+
|
194
|
+
def cc_env(package)
|
195
|
+
"CC=#{cc(package)}"
|
196
|
+
end
|
197
|
+
|
198
|
+
def dlltool_env
|
199
|
+
"DLLTOOL=#{dlltool}"
|
200
|
+
end
|
201
|
+
|
202
|
+
def build_packages
|
203
|
+
packages = @package.external_packages.select do |package|
|
204
|
+
package.windows.build?
|
205
|
+
end
|
206
|
+
# For backward compatibility
|
207
|
+
packages + @package.windows.build_packages
|
208
|
+
end
|
209
|
+
|
210
|
+
def dist_dir
|
211
|
+
@package.windows.absolute_binary_dir
|
212
|
+
end
|
213
|
+
|
214
|
+
def license_dir
|
215
|
+
dist_dir + "share" + "license"
|
216
|
+
end
|
217
|
+
|
218
|
+
def glib2_include_path
|
219
|
+
"#{glib2_binary_base_dir}/include"
|
220
|
+
end
|
221
|
+
|
222
|
+
def glib2_lib_path
|
223
|
+
"#{glib2_binary_base_dir}/lib"
|
224
|
+
end
|
225
|
+
|
226
|
+
def rcairo_dir
|
227
|
+
suffix = @package.windows.build_architecture_suffix
|
228
|
+
@package.project_root_dir.parent + "rcairo.#{suffix}"
|
229
|
+
end
|
230
|
+
|
231
|
+
def rcairo_pkgconfig_path
|
232
|
+
"#{rcairo_binary_base_dir}/lib/pkgconfig"
|
233
|
+
end
|
234
|
+
|
235
|
+
def rcairo_include_path
|
236
|
+
"#{rcairo_binary_base_dir}/include"
|
237
|
+
end
|
238
|
+
|
239
|
+
def rcairo_lib_path
|
240
|
+
"#{rcairo_binary_base_dir}/lib"
|
241
|
+
end
|
242
|
+
|
243
|
+
def cc(package)
|
244
|
+
cc_command_line = [
|
245
|
+
"#{@package.windows.build_host}-gcc",
|
246
|
+
*package.windows.cc_args,
|
247
|
+
]
|
248
|
+
cc_command_line.compact.join(" ")
|
249
|
+
end
|
250
|
+
|
251
|
+
def cxx(package)
|
252
|
+
cxx_command_line = [
|
253
|
+
"#{@package.windows.build_host}-g++",
|
254
|
+
]
|
255
|
+
cxx_command_line.compact.join(" ")
|
256
|
+
end
|
257
|
+
|
258
|
+
def dlltool
|
259
|
+
"#{@package.windows.build_host}-dlltool"
|
260
|
+
end
|
261
|
+
|
262
|
+
def cppflags(package)
|
263
|
+
include_paths = package.windows.include_paths
|
264
|
+
if @package.windows.build_dependencies.include?("glib2")
|
265
|
+
include_paths += [glib2_include_path]
|
266
|
+
end
|
267
|
+
include_paths += [
|
268
|
+
rcairo_include_path,
|
269
|
+
dist_dir + 'include',
|
270
|
+
]
|
271
|
+
cppflags = include_paths.collect do |path|
|
272
|
+
"-I#{path}"
|
273
|
+
end
|
274
|
+
cppflags.join(" ")
|
275
|
+
end
|
276
|
+
|
277
|
+
def ldflags(package)
|
278
|
+
library_paths = package.windows.library_paths
|
279
|
+
if @package.windows.build_dependencies.include?("glib2")
|
280
|
+
library_paths += [glib2_lib_path]
|
281
|
+
end
|
282
|
+
library_paths += [
|
283
|
+
rcairo_lib_path,
|
284
|
+
dist_dir + 'lib',
|
285
|
+
]
|
286
|
+
ldflags = library_paths.collect do |path|
|
287
|
+
"-L#{path}"
|
288
|
+
end
|
289
|
+
ldflags.join(" ")
|
290
|
+
end
|
291
|
+
|
292
|
+
def cmake_root_paths
|
293
|
+
paths = [
|
294
|
+
"/usr/#{@package.windows.build_host}",
|
295
|
+
rcairo_binary_base_dir.to_path,
|
296
|
+
]
|
297
|
+
@package.windows.build_dependencies.each do |package|
|
298
|
+
paths << binary_base_dir(package).to_path
|
299
|
+
end
|
300
|
+
paths
|
301
|
+
end
|
302
|
+
|
303
|
+
def add_gobject_introspection_make_args(package, common_make_args)
|
304
|
+
return unless use_gobject_introspection?(package)
|
305
|
+
|
306
|
+
g_ir_scanner = "#{@package.project_root_dir}/gobject-introspection/"
|
307
|
+
g_ir_scanner << "#{@package.native.relative_binary_dir}/bin/g-ir-scanner"
|
308
|
+
introspection_scanner = "INTROSPECTION_SCANNER=#{g_ir_scanner}"
|
309
|
+
common_make_args << introspection_scanner
|
310
|
+
|
311
|
+
|
312
|
+
dependencies = [
|
313
|
+
"gobject-introspection",
|
314
|
+
@package.name,
|
315
|
+
]
|
316
|
+
dependencies += @package.windows.gobject_introspection_dependencies
|
317
|
+
|
318
|
+
gi_base_dir = binary_base_dir("gobject-introspection")
|
319
|
+
introspection_compiler = "INTROSPECTION_COMPILER="
|
320
|
+
introspection_compiler << "#{gi_base_dir}/bin/g-ir-compiler.exe"
|
321
|
+
introspection_compiler_args = ""
|
322
|
+
dependencies.each do |dependent_package|
|
323
|
+
gir_dir = "#{binary_base_dir(dependent_package)}/share/gir-1.0"
|
324
|
+
introspection_compiler_args << " --includedir=#{gir_dir}"
|
325
|
+
end
|
326
|
+
if package.windows.gobject_introspection_compiler_split_args?
|
327
|
+
common_make_args << introspection_compiler
|
328
|
+
common_make_args <<
|
329
|
+
"INTROSPECTION_COMPILER_ARGS=#{introspection_compiler_args}"
|
330
|
+
common_make_args <<
|
331
|
+
"INTROSPECTION_COMPILER_OPTS=#{introspection_compiler_args}"
|
332
|
+
else
|
333
|
+
introspection_compiler << " #{introspection_compiler_args}"
|
334
|
+
common_make_args << introspection_compiler
|
335
|
+
end
|
336
|
+
|
337
|
+
common_make_args << dlltool_env
|
338
|
+
|
339
|
+
data_dirs = dependencies.collect do |dependent_package|
|
340
|
+
"#{binary_base_dir(dependent_package)}/share"
|
341
|
+
end
|
342
|
+
common_make_args << "XDG_DATA_DIRS=#{data_dirs.join(File::PATH_SEPARATOR)}"
|
343
|
+
end
|
344
|
+
|
345
|
+
def use_gobject_introspection?(package)
|
346
|
+
return false unless package.windows.use_gobject_introspection?
|
347
|
+
@package.windows.build_dependencies.include?("gobject-introspection")
|
348
|
+
end
|
349
|
+
end
|
350
|
+
end
|
351
|
+
end
|