summaryrefslogtreecommitdiff
path: root/daemon/meson.build
Commit message (Collapse)AuthorAgeFilesLines
* daemon: PATH-expand the sftp backend ssh clientAlex Stewart2022-12-141-1/+1
| | | | | | | | | | | | | | | | | Meson is currently configured to search the gvfs builder's PATH for an ssh client, and hardcode its fullpath as the canonical ssh client for the gvfs sftp backend. This setup breaks in cases where the builder has a different ssh client from the final runtime root, or where the client's pathes differ. Builders using OpenEmbedded or buildroot workspaces are particularly affected. Instead, set SSH_PROGRAM to `ssh` so that it gets PATH-expanded at runtime. Closes: https://gitlab.gnome.org/GNOME/gvfs/-/issues/465 Signed-off-by: Alex Stewart <alex.stewart@ni.com>
* build: Remove incorrect i18n.merge_file argumentOndrej Holy2022-01-211-1/+0
| | | | | | | | The positional argument was being silently ignored until meson 0.60.0 where it fails with "ERROR: Function does not take positional arguments". Related: https://github.com/mesonbuild/meson/issues/9441 Fixes: https://gitlab.gnome.org/GNOME/gvfs/-/issues/599
* build: Improve the use of file generation on configure timeIñigo Martínez2021-10-251-15/+8
| | | | | | The files generated on configure time have been improved by the stacking multiple configuration processes, use of generator tags and the use of dictionaries.
* build: Move to string based include_directoriesIñigo Martínez2021-10-251-1/+1
| | | | | | To be consistent with the whole set of build files, the `include_directories` have been replaced by string based alternative.
* build: Use dictionary for easier unpackIñigo Martínez2021-10-251-27/+26
| | | | | | | | | Dictionaries can be used to ease `foreach` statements due to their natural unpacking system[0]. This system has been used to ease some loops. [0] https://mesonbuild.com/Syntax.html#foreach-with-a-dictionary
* build: Make use of the new full_path methodIñigo Martínez2021-10-251-1/+1
| | | | | | | | | | | | The external program object returned by `find_program()` has been fixed and its `path` method has been deprecated and `full_path` is the method to be called[0]. The deprecated `path` method has been updated in meson build files. Required meson version has also been bumped to 0.55. [0] https://mesonbuild.com/Release-notes-for-0-55-0.html#find_program-fixes-when-the-program-has-been-overridden-by-executable
* admin: Make the privileged group configurableOndrej Holy2021-06-071-2/+9
| | | | | | | | | Currently, `wheel` group is hardcoded in the `.rules` file which is there to prevent redundant password prompt when starting gvfsd-admin. The Debian based systems obviously uses `sudo` group instead of `wheel`. Let's make the privileged group configurable. https://gitlab.gnome.org/GNOME/gvfs/-/issues/565
* daemon/meson.build: define gvfs_rpath for libgvfsdaemon.soRobby Workman2019-07-181-0/+1
| | | | | | | | | | | | | | On Slackware development branch with gvfs-1.40.2, I just noticed this: # ldd /usr/lib64/gvfs/libgvfsdaemon.so | grep "not found" libgvfscommon.so => not found After some backtracking, it seems that this first occurred in the switchover from autotools to meson in the 1.36.x --> 1.38.x bump. Big thanks to Cogitri in #gnome/irc.gnome.org for the patience and assistance with troubleshooting this. Signed-off-by: Robby Workman <rworkman@slackware.com>
* build: Add dependency on gsettings-desktop-schemasOndrej Holy2019-07-111-0/+1
| | | | | | | | Lockdown settings provided by gsettings-desktop-schemas are used in the code, however, gsettings-desktop-schemas dependency is missing, which can lead to "Settings schema 'org.gnome.desktop.lockdown' does not contain a key named 'disable-writing-to-devices'" errors. Let's add the dependency to prevent such errors.
* build: Use dictionaries in configuration_data objectsIñigo Martínez2019-05-161-4/+5
| | | | | | | | | | Since 0.49.0[0], a dictionary could be used as a replacement for each key/value pair as if `set` method was called for each of them. Almost all of the `configuration_data` objects have been changed to use a dictionary. [0] http://mesonbuild.com/Reference-manual.html#configuration_data
* build: Make use of dictionaries to gain readibilityIñigo Martínez2019-01-211-72/+31
| | | | | | | | | | | | | | | | The set of daemons is a large list of executables to be built. To ease its build an array of arrays was created, but this harms readibility. This has been improved by the use of the new dictionary types[0] and the possibility of using a dictionary as a parameter in target objects[1]. The individual dependencies have been moved directly to the new dictionary because it remains clear their meaning. [0] http://mesonbuild.com/Release-notes-for-0-47-0.html#new-builtin-object-type-dictionary [1] http://mesonbuild.com/Release-notes-for-0-49-0.html#can-specify-keyword-arguments-with-a-dictionary
* build: Do not use prefix on directory variablesIñigo Martínez2019-01-211-5/+5
| | | | | | | | | Although usually directory variables are set by using the `prefix` directory, this might cause issues due to parameters that need relative directories. In order to ease the transition `prefix` directory has been stripped from directory variables and only has been appended when necessary.
* build: Use generators placeholdersIñigo Martínez2019-01-211-7/+5
| | | | | | | | | | Functions derived from generators as `configure_file`, `custom_target` and `i18n.merge_file` can use placeholders like `@BASENAME@` that removes the extension from the input filename string. The output string has been replaced by this placeholder that allows in some cases the use of less variables.
* build: Fix the parameter order in configure_fileIñigo Martínez2019-01-211-3/+3
| | | | | | | The `install` and `install_dir` parameters must be the last parameters in the `configure_file` function. The paremeters have been reordered to fix this issue.
* build: Fix the use of pkg-config file variablesIñigo Martínez2019-01-211-5/+5
| | | | | | | | | The names of the variables in meson corresponding to the variables obtained from the pkg-config files has been fixed by using a pattern. The pattern uses the dependency name as the prefix and the obtained variable as the suffix.
* build: Use / instead of join_pathsIñigo Martínez2019-01-211-4/+4
| | | | | | | Since meson 0.49, the `/` character can be used to join paths[0], so all the instances of `join_paths` have been replaced. [0] http://mesonbuild.com/Release-notes-for-0-49-0.html#joining-paths-with-
* build: Add trailing commasIñigo Martínez2019-01-211-54/+54
| | | | | | | Add missing trailing commas that avoids getting noise when another file/parameter is added and eases reviewing changes[0]. [0] https://gitlab.gnome.org/GNOME/dconf/merge_requests/11#note_291585
* Revert "build: Add trailing commas"Ondrej Holy2019-01-071-54/+54
| | | | This reverts commit f4ee93b06cfc4d9f727f9174e40d08097a25d571.
* Revert "build: Use / instead of join_paths"Ondrej Holy2019-01-071-4/+4
| | | | This reverts commit 9523d8e09e0088c8cd58ace494d47cc3083151fc.
* Revert "build: Fix the use of pkg-config file variables"Ondrej Holy2019-01-071-5/+5
| | | | This reverts commit 22e9f7721b891b17cd726f1bf92b15a35be34d22.
* Revert "build: Fix the parameter order in configure_file"Ondrej Holy2019-01-071-3/+3
| | | | This reverts commit 12f4c5a98e1b4a1a0b5fba45439dab74d12519bb.
* Revert "build: Use generators placeholders"Ondrej Holy2019-01-071-5/+7
| | | | This reverts commit dc34f1be6a3c1fa6d5615ad5d647003e7ce3196f.
* Revert "build: Do not use prefix on directory variables"Ondrej Holy2019-01-071-5/+5
| | | | This reverts commit db31059d1b7b11b597b03064329fb1e8899b11f2.
* Revert "build: Make use of dictionaries to gain readibility"Ondrej Holy2019-01-071-31/+72
| | | | This reverts commit a60d8c0987914213f2e69f760b15500a10c3adb4.
* build: Make use of dictionaries to gain readibilityIñigo Martínez2019-01-041-72/+31
| | | | | | | | | | | | | | | | The set of daemons is a large list of executables to be built. To ease its build an array of arrays was created, but this harms readibility. This has been improved by the use of the new dictionary types[0] and the possibility of using a dictionary as a parameter in target objects[1]. The individual dependencies have been moved directly to the new dictionary because it remains clear their meaning. [0] http://mesonbuild.com/Release-notes-for-0-47-0.html#new-builtin-object-type-dictionary [1] http://mesonbuild.com/Release-notes-for-0-49-0.html#can-specify-keyword-arguments-with-a-dictionary
* build: Do not use prefix on directory variablesIñigo Martínez2019-01-041-5/+5
| | | | | | | | | Although usually directory variables are set by using the `prefix` directory, this might cause issues due to parameters that need relative directories. In order to ease the transition `prefix` directory has been stripped from directory variables and only has been appended when necessary.
* build: Use generators placeholdersIñigo Martínez2019-01-041-7/+5
| | | | | | | | | | Functions derived from generators as `configure_file`, `custom_target` and `i18n.merge_file` can use placeholders like `@BASENAME@` that removes the extension from the input filename string. The output string has been replaced by this placeholder that allows in some cases the use of less variables.
* build: Fix the parameter order in configure_fileIñigo Martínez2019-01-041-3/+3
| | | | | | | The `install` and `install_dir` parameters must be the last parameters in the `configure_file` function. The paremeters have been reordered to fix this issue.
* build: Fix the use of pkg-config file variablesIñigo Martínez2019-01-041-5/+5
| | | | | | | | | The names of the variables in meson corresponding to the variables obtained from the pkg-config files has been fixed by using a pattern. The pattern uses the dependency name as the prefix and the obtained variable as the suffix.
* build: Use / instead of join_pathsIñigo Martínez2019-01-041-4/+4
| | | | | | | Since meson 0.49, the `/` character can be used to join paths[0], so all the instances of `join_paths` have been replaced. [0] http://mesonbuild.com/Release-notes-for-0-49-0.html#joining-paths-with-
* build: Add trailing commasIñigo Martínez2019-01-041-54/+54
| | | | | | | Add missing trailing commas that avoids getting noise when another file/parameter is added and eases reviewing changes[0]. [0] https://gitlab.gnome.org/GNOME/dconf/merge_requests/11#note_291585
* ftp: Add implicit TLS modeMantas Mikulėnas2018-07-301-2/+2
| | | | | | | | | | | | | | Although specs discourage it, ftps:// is generally accepted to mean "implicit" TLS on a separate port (in the same style as HTTPS); some servers still use this method and it's regaining popularity within IANA. gvfs couldn't connect to such servers, as it only implemented "explicit" TLS (STARTTLS) mode. This patch implements "implicit" TLS mode and adds the 'ftpis' URI scheme for it. https://gitlab.gnome.org/GNOME/gvfs/issues/4
* gettext: Remove embedded polkit rulesOndrej Holy2018-04-171-1/+0
| | | | | | polkit.its and polkit.loc has been embedded in our project by Bug 768707 so we could push gettext port. Those files are already part of recent gettext release, so we can remove them.
* build: Make SFTP backend optionalIñigo Martínez2018-04-031-17/+19
| | | | | | | | | One of the requirements for SFTP is the existence of a ssh client. A new option has been added to make SFTP backend optional, so a ssh client is not a hard requirement anymore. https://bugzilla.gnome.org/show_bug.cgi?id=786149
* build: Revise dependenciesIñigo Martínez2018-04-031-9/+14
| | | | | | | | | | | | | | | gvfs is using a set of glib libraries (gio-2.0, gio-unix-2.0, glib, gobject-2.0) in almost all the created objects. However, these dependencies are not always necessary. gvfs' meson port also uses some internal dependencies formed by built libraries. This internal dependencies depend on other dependendecies as well. These both issues have been fixed by reviewing all the internal dependencies and built objects. https://bugzilla.gnome.org/show_bug.cgi?id=794365
* admin: Use really persistent d-bus nameOndrej Holy2018-02-151-1/+2
| | | | | | | | | Commit 8e9439ef introduced DBusName=org.gtk.vfs.mountpoint_admin in admin.mount.in, but forgot to set the necessary mount options. So, each client spawns new daemon currently, which is not necessary. Let's set the missing -DMOUNTABLE_DBUS_NAME options. https://bugzilla.gnome.org/show_bug.cgi?id=793445
* build: Use ITS rules for polkit in mesonIñigo Martínez2017-11-131-0/+1
| | | | | | | | | | In a previous change polkit ITS rules were included to be used when merging translations with gettext. However, the use of this files is missing when using meson. This patch restores the use of those files. https://bugzilla.gnome.org/show_bug.cgi?id=786149
* build: Make SystemdService entry conditionalIñigo Martínez2017-11-071-9/+18
| | | | | | | | | | | | When systemd user units installation is disabled, SystemdService entry should also not be present on D-Bus service files. This patch adds a common D-Bus service file template allowing, an homogeneus D-Bus service file generation and also a SystemService entry conditioned to the systemd user units installation option. https://bugzilla.gnome.org/show_bug.cgi?id=786149
* build: Add an option for gcryptIñigo Martínez2017-11-071-1/+1
| | | | | | | | Add an option to make gcrypt conditional allowing to disable it if desired. This patch also makes the existence of libgcrypt-config program mandatory if the gcrypt option is enabled. https://bugzilla.gnome.org/show_bug.cgi?id=786149
* build: Improve installation on system pathsIñigo Martínez2017-10-311-3/+3
| | | | | | | | | | | | Instead of being hardcoded, D-Bus, systemd and GIO modules paths can be checked by using the information in their correspondant pkg-config files. This patch uses the information on pkg-config files by default, and also allows the user to provide this information to avoid overwriting system files. https://bugzilla.gnome.org/show_bug.cgi?id=786149
* build: Reorder meson options and update descriptionOndrej Holy2017-10-311-3/+3
| | | | | | | | meson_options.txt is hard to read. Let's create sorted groups of options and unify the description. Also change some option names to match correspoding backend names. https://bugzilla.gnome.org/show_bug.cgi?id=786149
* build: Port to meson build systemIñigo Martínez2017-10-311-0/+622
meson is a build system focused on speed an ease of use, which helps speeding up the software development. This patch adds meson support along autotools. https://bugzilla.gnome.org/show_bug.cgi?id=786149