1. 09 Oct, 2020 12 commits
    • Chun-wei Fan's avatar
      peas-dirs.c: Fix building on Visual Studio · e5eac650
      Chun-wei Fan authored
      libloadersapi.h should not have been included directly, just include
      windows.h with WIN32_LEAN_AND_MEAN defined.
      e5eac650
    • Chun-wei Fan's avatar
      peas-demo: Don't hardcode installed paths on Windows · 1656eb41
      Chun-wei Fan authored
      Construct the paths dynamically, since things tend to be relocated on
      Windows regularly.
      1656eb41
    • Chun-wei Fan's avatar
      Python Loader: Do not hardcode localedir on Windows · 861cb1c3
      Chun-wei Fan authored
      We construct them dynamically according to the path that the libpeas DLL
      is in, so that they can be relocated easily on Windows, which is often
      the case there.
      861cb1c3
    • Chun-wei Fan's avatar
      embedded tests: Force export of generated resource code · 58b749f9
      Chun-wei Fan authored
      The 'export' option for glib-compile-resources needs to be updated for
      Visual Studio builds, so that such symbols are really exported.  Before
      this happens in GLib-2.64.4, force export of the symbols we need for the
      tests.
      58b749f9
    • Chun-wei Fan's avatar
      test/libpeas-gtk/plugin-manager: Use en-US locale on Windows · aad052d6
      Chun-wei Fan authored
      This will allow the tests here to pass on non-English versions of
      Windows when translations of the GTK+ stack is present.
      aad052d6
    • Chun-wei Fan's avatar
      build: Fix installation and some GTK tests · e646e945
      Chun-wei Fan authored
      Don't specify the install directory for libpeas and libpeas-gtk, as we
      need the DLLs to be in $(prefix)/bin and the .lib's/.so's to be in
      $(libdir), which Meson sorts out for us automatically.
      
      Also, just export the internal symbols for the tests when we build
      libpeas-gtk, as GObject on Windows really doesn't like the idea of
      mixing static .lib's with DLLs (i.e. a static libpeas-gtk mixing with a
      DLL libpeas).
      e646e945
    • Chun-wei Fan's avatar
      meson.build: Improve lua search on Windows · df637cf9
      Chun-wei Fan authored
      On Windows, especially Visual Studio builds, lua does not come with a
      pkg-config file, so we may need to look for the dependencies manually.
      
      We first reverse the order of the search in such situations, by looking
      for whether we have lua.exe or luajit.exe in our path, and then we look
      for the lua headers and the lua library[1].  If they could be found, we
      proceed to look for lua-lgi and build as we did before.
      
      [1]: lua51.lib for luajit or lua5[3|2|1].lib for lua 5.[3|2|1].
      df637cf9
    • Chun-wei Fan's avatar
      peas-object-module.c: Add fallback module search for Windows · 37d70f4a
      Chun-wei Fan authored
      When we specify the plugin module name via a plugin file,
      g_module_build_path() will append a 'lib' prefix to the final filename
      of the module DLL, which may cause the module load to fail because the
      module DLL is not built with the 'lib' prefix for its filename, which
      is often the case for Meson builds with Visual Studio and also likely
      in other scenarios.
      
      Fix this by adding a fallback check for Windows, that we look for the
      module DLL without the 'lib' prefix by appending '.dll' to the module
      name that we pass into g_module_build_path(), if we can't find the
      module DLL with the 'lib' prefix.
      37d70f4a
    • Chun-wei Fan's avatar
      tests: Construct paths appropriately · fd57c27f
      Chun-wei Fan authored
      Use G_DIR_SEPARATOR_S so that we don't confuse between forward and
      backward slashes, so that tests won't fail unecessarily.
      fd57c27f
    • Chun-wei Fan's avatar
      tests: Ensure symbols are exported on MSVC builds · a3bd59bf
      Chun-wei Fan authored
      Use a macro that is defined appropriately so that we also export the
      symbols of the test DLLs on Visual Studio builds as well.
      a3bd59bf
    • Chun-wei Fan's avatar
      meson: Don't use 'cp' to copy files · c34c89ca
      Chun-wei Fan authored
      'cp' is a UNIX/BASH shell-only command, which does not exist on standard
      Windows cmd.exe shells by default, so use a Python script that tries to
      do similar things.
      c34c89ca
    • Chun-wei Fan's avatar
      meson: Improve Python detection on Windows · c882c281
      Chun-wei Fan authored
      Standard Windows binaries from www.python.org typically come as an MSI
      installer, which do not include pkg-config files for us, and it is often
      the case that people have multiple installations of Python on their
      systems, such as having both 32-bit and 64-bit installations of Python,
      so we need to go a bit harder to look for Python 2,x/3.x installations,
      by:
      
      -Allow people to explicitly input a full path to their Python 2.x/3.x
       interpreters, so that the right include/lib paths for the desired
       Python installation(s) can be discovered and utilized.
      
      -If no explicit path is specified, let Meson's Python module look for
       the installations for us instead.
      c882c281
  2. 18 Sep, 2020 1 commit
  3. 12 Sep, 2020 3 commits
  4. 10 Aug, 2020 1 commit
  5. 27 Jun, 2020 1 commit
  6. 26 Jun, 2020 1 commit
  7. 16 Mar, 2020 1 commit
  8. 13 Mar, 2020 1 commit
  9. 06 Mar, 2020 1 commit
  10. 11 Feb, 2020 1 commit
  11. 27 Jan, 2020 1 commit
  12. 21 Jan, 2020 1 commit
  13. 20 Jan, 2020 2 commits
    • Christian Hergert's avatar
      demo: setup gettext during startup · 75838845
      Christian Hergert authored
      The peas-demo app needs to call setlocale(), bind_textdomain_codeset(),
      and textdomain() like a normal application to improve testing of
      translations.
      
      Related !24
      
      Fixes #35
      75838845
    • Christian Hergert's avatar
      i18n: simplify i18n for use within libpeas · ec20d0fa
      Christian Hergert authored
      We don't need a public (but not exposed via headers) function in our ABI
      to do gettext. Instead, we can just wrap _() to use g_dgettext() with a
      predefined GETTEXT_PACKAGE.
      
      Additionally, instead of requiring callers to check/initialize the
      libpeas gettext textdomain, we can use a static constructor to set that
      up once at startup.
      
      Related !24
      
      Fixes #35
      ec20d0fa
  14. 18 Jan, 2020 4 commits
  15. 16 Jan, 2020 1 commit
  16. 25 Dec, 2019 1 commit
  17. 19 Dec, 2019 1 commit
  18. 08 Dec, 2019 1 commit
    • Felix Riemann's avatar
      meson: Fix handling of 'demos' parameter · e7b19f64
      Felix Riemann authored
      Internally the build script evaluated the 'widgetry' parameter instead
      which is just a dependency of 'demos'. Evaluate the correct parameter
      to show the correct state in the build summary. Also drop the now obsolete
      duplicate check in peas-demo's meson script.
      e7b19f64
  19. 27 Nov, 2019 1 commit
  20. 30 Oct, 2019 1 commit
  21. 29 Oct, 2019 2 commits
  22. 28 Oct, 2019 1 commit