| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
|
|
|
|
|
|
| |
This updates the NMake Makefiles for:
-Removing the __pycache__ directory on clean, which is generated when
using Python 3.x, in the NMake Makefiles for building the main
introspection files.
-Building the giteststructinfo test program, as well as moving builds of
DLLs and EXEs to using inference rules when applicable, for the NMake
Makefiles that is used to build the tests.
|
|
|
|
| |
I missed gitestmacros.h, which will be required... :|
|
|
|
|
|
| |
Some of these test sources will be used during the test of PyGObject/PyGI,
so "install" them.
|
|
|
|
| |
https://bugzilla.gnome.org/show_bug.cgi?id=752047
|
|
|
|
|
| |
So if I patch things downstream I can more easily rebuild the
autotools.
|
|
|
|
|
|
|
|
|
|
|
|
| |
This reverts commit 98bb6c91b710a95efe4cfeb303daeec3381b9c98.
It breaks programs simply executed *transitively* from a setuid
binary like the dbus daemon launch helper.
https://bugzilla.redhat.com/show_bug.cgi?id=1285991
Conflicts:
girepository/girepository.c
|
|
|
|
|
|
|
| |
We want to clean up the .ilk files, but only want to create them only
during debug builds.
Also silence some warnings during the tests by defining TOP_BUILDDIR.
|
|
|
|
| |
This makes things a bit more consistent, rather than using BASEDIR
|
|
|
|
|
|
|
| |
We want to have projects to share common items as much as possible, so
move project-specific away from detectenv-msvc.mak and introspection-msvc.mak
so that projects needing to update intropsection-msvc.mak can come back here
to update it, and update detectenv-msvc.mak from $(glib_srcroot)/build/win32.
|
|
|
|
| |
We need DOS/Windows line feeds here...
|
|
|
|
|
|
| |
The transitive_dependencies GHashTable was being leaked.
https://bugzilla.gnome.org/show_bug.cgi?id=758448
|
|
|
|
|
| |
The Python command for generating the tool scripts are mixed up for
32-bit release and 64-bit debug builds, fix that. Oops.
|
|
|
|
|
|
|
|
|
|
| |
Move the NMake Makefiles modules and the Python tool scripts to build/win32,
so that we may be consistent across the board. Also, update the build files
and the README.txt's to make it clear to people that Python 3.3+ is now
supported for building the introspection files, in addition to Python 2.7.x.
Make the NMake Makefiles more flexible in powershell environments so that
the variables can be properly passed in from the command line.
|
| |
|
|
|
|
|
| |
Since the introspection scanner also supports Python 3.3+, use PYTHON
instead of PYTHON2 to make this clearer to people.
|
|
|
|
|
|
| |
Rename it to "gi-install" so that it will not conflict with the other
projects in the GTK+ stack if used as a part of an all-in-one solution
file.
|
|
|
|
|
|
|
|
|
| |
This partially reverts 8fbfbf3.
As we now ensure that items using GResources and GConstructors are always
referenced so that the linker does not optimize them out in a default
Release build, we no longer need to enforce the use of /LTCG, so
/LTCG:incremental will work as well.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
On bug #719966, the question arose of whether parameters annotated with
(element-type) but not (not nullable) are regarded as nullable or
non-nullable.
Add some new unit tests to Regress-1.0.gir to check the behaviour is as
expected: annotating a parameter with (element-type) implicitly makes it
non-nullable (unless also annotated with (nullable)).
https://bugzilla.gnome.org/show_bug.cgi?id=757678
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
A condition was supposed to test if GI_SCANNER_DEBUG environment
variable is unset or empty, but instead always evaluated to true.
This results in any build pausing in pdb whenever an uncaught exception
occurs in a g-ir-* tool.
https://bugzilla.gnome.org/show_bug.cgi?id=757443
|
|
|
|
|
|
|
|
| |
If the file is new, set the permissions to 0644.
If the file with the name specified as --output exists, copy its
metadata onto the temporary output file.
https://bugzilla.gnome.org/show_bug.cgi?id=757442
|
|
|
|
|
|
|
| |
If the move resulted in EPERM, discard the temporary output file, but
raise the error so that the tool exits with a nonzero status.
https://bugzilla.gnome.org/show_bug.cgi?id=757442
|
|
|
|
|
|
|
| |
We need to encode the identifier-filter command to bytes, and decode its
outputs to ascii in order for it to work on Python 3.x.
https://bugzilla.gnome.org/show_bug.cgi?id=757126
|
|
|
|
|
|
|
|
| |
sys.exc_clear(), which was called when we need to ignore the error when
we can't embed manifests to the dumper program on MSVC 2010 and later,
is only available/needed for Python 2.7.x, so only use it there.
https://bugzilla.gnome.org/show_bug.cgi?id=757126
|
|
|
|
|
|
|
|
|
|
| |
Windows builds check the library that was passed into the introspection
scanner to deduce the correct DLL that is to be used by the .gir/.typelib
file, but this was not updated for Python 2.x/3.x compatibility, as the
outputs of a subprocess must be decoded. Fix this for both MSVC and
MinGW-based builds.
https://bugzilla.gnome.org/show_bug.cgi?id=757126
|
|
|
|
|
|
| |
This is checked for Python 2.7.x compatibility as well.
https://bugzilla.gnome.org/show_bug.cgi?id=757126
|
|
|
|
|
|
|
|
| |
The transition to Python 3.x compatibility accidentily removed the
'relocatability' support that was added, so re-enable this support on
Windows again.
https://bugzilla.gnome.org/show_bug.cgi?id=757126
|
|
|
|
|
|
|
|
|
| |
MSVC 2015 changed its default link-time code generation setting to
/LTCG:incremental, which causes problems if /opt:noref is to be used,
meaning that some code will be optimized out by the linker.
Avoid this situtation here by enforcing the use of /LTCG for MSVC 2010+
builds.
|
| |
|
|
|
|
|
|
|
|
|
| |
Darwin's linker doesn't like "-rpath=path"; instead pass "-rpath path",
which works on more linkers than the version with the = sign does.
Additionally, Darwin's linker has no equivalent for "--no-as-needed" (it
seems to do the right thing by default?)
https://bugzilla.gnome.org/show_bug.cgi?id=625195
|
|
|
|
|
|
|
|
| |
Use a single static allocation for the hash created in regress_test_ghash_gvalue_return().
This function is explicitly marked as returning the hash with transfer-none
and doesn't need to re-create the hash each call.
https://bugzilla.gnome.org/show_bug.cgi?id=736517
|
|
|
|
|
|
| |
Transfer is annotated as full so the function should free its input.
https://bugzilla.gnome.org/show_bug.cgi?id=736517
|
|
|
|
|
|
|
| |
Transfer is annotated as full so the function should free its input
after testing and before output assignment.
https://bugzilla.gnome.org/show_bug.cgi?id=736517
|
|
|
|
|
|
|
|
| |
g_simple_async_result_complete_in_idle() will add its own reference for
managing the async result. We need to unref the result after calling this
so we don't leak.
https://bugzilla.gnome.org/show_bug.cgi?id=736517
|
|
|
|
|
|
|
|
|
|
| |
g-ir-scanner now supports something like this:
typedef void my_callback(int);
Notice how my_callback is not a pointer.
https://bugzilla.gnome.org/show_bug.cgi?id=755645
|
|
|
|
|
|
|
| |
This allows building in both Python 2 and 3 by fixing a few
text/binary ambiguities and using "as" in an except clause.
https://bugzilla.gnome.org/show_bug.cgi?id=756763
|
|
|
|
|
|
|
|
|
| |
In the generated GIR for Gio-2.0, the <c:include/> elements for
gio-unix headers got emitted with absolute pathnames. Obviously, this
does not work well when GIR needs to be checked into repositories,
is used to build in other locations, etc.
https://bugzilla.gnome.org/show_bug.cgi?id=756679
|
|
|
|
|
|
|
| |
It was not possible to use the tool with a custom build directory,
even when it was given as the second command line parameter.
https://bugzilla.gnome.org/show_bug.cgi?id=756665
|
| |
|
|
|
|
| |
Regression from df21d1f362a810f48a23b7c121bf09ce398539c7
|
|
|
|
|
|
|
| |
They're just internal bits for users of C, shouldn't be part of the
API.
https://bugzilla.gnome.org/show_bug.cgi?id=755882
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add "n_field_callbacks" to ObjectBlob which represents the number of object
fields which are also callbacks. This a allows a constant time computation
for accessing sections after fields. Track writing of this field by passing
an extra argument through the girnode writers recursive call structure. This
essentally reverts a portion of commit 7027bb256d0d1ab which added a linear
time computation for accessing sections after fields.
Update typelib validator to also ensure n_field_callbacks is properly set.
https://bugzilla.gnome.org/show_bug.cgi?id=700338
|
|
|
|
|
|
|
| |
The nullable code needs to search via index lookup of closure_name,
which drops the need to (incorrectly) assign closure_name again.
https://bugzilla.gnome.org/show_bug.cgi?id=756352
|
|
|
|
|
|
|
| |
Node is always present in the output of .log_node(), so printing it
another time as context just adds noise.
https://bugzilla.gnome.org/show_bug.cgi?id=756088
|
|
|
|
|
|
|
| |
Fixup to commit 10cb665fee2cc378dd2f13bad16e6384836a8b16. I failed to
work git properly when submitting the patch.
https://bugzilla.gnome.org/show_bug.cgi?id=729660
|
|
|
|
|
|
|
|
|
|
|
|
| |
This adds an autotools module that can be included in projects to be
used for generating the command lines for g-ir-scanner and
g-ir-compiler for introspection builds on Visual Studio builds.
This is currently not used directly in the MSVC builds of g-i, but
is added here as other modules are directly to get this file from
here (i.e. $(srcroot)/build) for inclusion in their Makefile.am's
to support introspection builds for modules that support Visual
Studio builds.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
gpointer parameters and return types should be marked as nullable by
default, unless:
• also annotated with (type) and not with (nullable); or
• explicitly annotated with (not nullable).
This introduces the (not nullable) annotation as a direct opposite to
(nullable). In future, (not) could be extended to invert other
annotations.
https://bugzilla.gnome.org/show_bug.cgi?id=729660
|
|
|
|
|
|
|
|
| |
All user_data pointers should be nullable, and they should all be
annotated as closures too. I have not found any counter-examples where a
closure is non-nullable.
https://bugzilla.gnome.org/show_bug.cgi?id=729660
|