1. 07 Apr, 2019 2 commits
  2. 02 Apr, 2019 4 commits
  3. 25 Mar, 2019 1 commit
    • Christoph Reiter's avatar
      shlibs: fall back to basename on macOS for relative paths. Fixes #222 · fd9125f1
      Christoph Reiter authored
      On macOS we ideally want to write the final absolute path of the library
      into the gir and typelib. Up until now we inferred the install path from
      the .la file in case we used libtool and through otool in case we weren't
      using libtool hoping that the install_name was matching the install path.
      
      meson currently sets the install_name of libraries to "@rpath/foo.dylib"
      and adds rpaths to the executables in the build dir. Only during install does
      it change the install_name to the absolute target path in all places.
      
      Since we get called during build time we only get the @rpath from otool,
      which then makes things fail at runtime since the executables don't have
      the matching rpath set.
      
      To make this somewhat work just fall back to the basename for relative
      paths, so we dlopen "foo.dylib" and depend on things being in /usr/local/lib
      or DYLD_FALLBACK_LIBRARY_PATH including the lib path (see man dlopen)
      fd9125f1
  4. 24 Mar, 2019 1 commit
  5. 15 Mar, 2019 2 commits
  6. 11 Mar, 2019 2 commits
  7. 10 Mar, 2019 1 commit
  8. 07 Mar, 2019 1 commit
  9. 04 Mar, 2019 4 commits
  10. 02 Mar, 2019 1 commit
    • Christoph Reiter's avatar
      ccompiler: restore customize_compiler() setup for macOS. See #268 · d7524c9d
      Christoph Reiter authored
      The original customize_compiler() calls into  _osx_support.customize_compiler()
      the first time it is used and I didn't copy it in !118 because it is private API.
      
      Issue #268 points out that the macOS build is broken now so I guess that was important
      in some way. Make sure the setup code is run by calling the original customize_compiler()
      with a dummy compiler instance.
      d7524c9d
  11. 13 Feb, 2019 2 commits
  12. 04 Feb, 2019 2 commits
  13. 02 Feb, 2019 2 commits
  14. 01 Feb, 2019 1 commit
  15. 16 Jan, 2019 2 commits
  16. 13 Jan, 2019 1 commit
  17. 12 Jan, 2019 1 commit
    • Christoph Reiter's avatar
      autotools: don't pass all the libregress cflags to the scanner. Fixes #226 · 329b71b7
      Christoph Reiter authored
      They contain things like -fvisibility=hidden which, in case of building with
      CFLAGS="-flto -O2" LDFLAGS="-Wl,--as-needed -flto", results in the linker
      throwing out unused symbols and not linking the dumper against libregress.
      
      This results in errors like:
        Invalid GType function: 'regress_test_enum_get_type'
        Failed to find symbol 'regress_test_enum_get_type'
      
      Fix this by only passing the required CFLAGS to the scanner instead.
      329b71b7
  18. 10 Jan, 2019 5 commits
    • Tomasz Mi膮sko's avatar
      Restore original meaning of disguised attribute. · f606183a
      Tomasz Mi膮sko authored
      > Certain types like GIConv and GdkAtom are pointers internally but don't
      > look like pointers when referenced. They have the form.
      >
      >  typedef struct _X *X;
      >
      > Parse these as structures/records but mark them in the gir with a 'disguised'
      > attribute so that we know that they need special handling.
      
      Additionally, stop relaying on disguised attribute when deciding whether
      to render a page. Check number of fields instead, so as to avoid
      introducing large regression in the docs.
      
      Fixes #101.
      f606183a
    • Christoph Reiter's avatar
    • Christoph Reiter's avatar
      maintransformer: when the namespace is empty use error() instead of fatal() · 3b630bfb
      Christoph Reiter authored
      network-manager is calling things like this during configure:
      g-ir-scanner --namespace=test --library=c /dev/null --output /dev/null
      to test if the scanner is working. This results in a fatal error, but
      beause of #229 was ignored.
      
      Do keep this working after we fix #229 downgrade this to a simple recoverable
      error message. An empty namespace doesn't prevent the scanner from creating
      a .gir file so this should be fine.
      3b630bfb
    • Christoph Reiter's avatar
      message: simplify handling of error levels · 06a460b3
      Christoph Reiter authored
      Instead of allowing each error level to be enabled just enable all of them
      through the enable_warnings() method. This matches what the code is currently
      doing (minus that one helper script) and simplifies things.
      
      Also remove the error count, it's not used.
      06a460b3
    • Colin Walters's avatar
      repository: g_irepository_get_object_gtype_interfaces · 9826d952
      Colin Walters authored
      Bindings in some cases need to look up information from a GType
      dynamically.  Support that better by supplying a cache for this
      information.
      
      (Rebased and versioning / gtk-doc stuff added by Philip Chimento.)
      
      Closes #38.
      See gjs#55.
      9826d952
  19. 09 Jan, 2019 2 commits
  20. 08 Jan, 2019 3 commits
    • Tomasz Mi膮sko's avatar
      tests: Add functions using flat struct arrays · efb9b272
      Tomasz Mi膮sko authored
      Relatively common in practice are:
      * output with transfer full, which is already covered by
        `regress_test_array_struct_out`,
      * input with transfer none, covered by a new
        `regress_test_array_struct_in_none`
      
      Other variants are quite esoteric, but it still might be useful to
      include them so that bindings can verify that they are handled
      gracefully, e.g., by reporting an error instead of crashing.
      
      Issue #90
      efb9b272
    • Christoph Reiter's avatar
      version bump · 44a5ab2d
      Christoph Reiter authored
      44a5ab2d
    • Christoph Reiter's avatar
      release · 2ba8a73a
      Christoph Reiter authored
      2ba8a73a