summaryrefslogtreecommitdiff
path: root/meson_options.txt
Commit message (Collapse)AuthorAgeFilesLines
* build: Auto-generate VAPIRasmus Thomsen2023-01-111-0/+2
| | | | | The autogenerated version has a more intuitive API on Vala and is more up-to-date
* build: Add config options for libsoupMatt Turner2022-02-201-0/+4
| | | | | This allows distributions that ship both versions to choose which version of libsoup will be linked.
* build: Add an option to control building testsMatt Turner2022-02-201-0/+2
| | | | | | | | | | | | | | | Commit 8569c99d2926 ("Look for a Python installation with the tap module") correctly added a dependency on the gi Python module for tests. Commit 51ca035697a4 ("Make tracker:endpoint test work on macOS") restructured Python probing by moving it to the top-level meson.build. These two commits have the side-effect of exposing the fact that the gi Python module is really only a test dependency, and should not be required if building without tests. As such, add a -Dtests=bool option to disable building tests. This reduces the number of ninja targets from 232 to 188 on my non-test build.
* libtracker-sparql: Allow building against multiple versions of libsoupCarlos Garnacho2021-07-281-3/+1
| | | | | | | | | | | | | | | | Tracker is an innocent bystander hindering libsoup3 port, since the libsoup2/3->tracker->gtk3 dependency chain imposes a libsoup version, graphical applications using libsoup cannot port at their own pace. Make our remote code (connection & endpoint) be a private module that is built against both versions of libsoup (if found), then we pick one at runtime, with a preference on libsoup3 if libsoup2 .so file is not seen in the already loaded libraries. This patch should be reverted ASAP, once we can consider libsoup2 deprecated. Fixes: https://gitlab.gnome.org/GNOME/tracker/-/issues/320
* Meson build option: Added introspectionnitinosiris2021-05-051-0/+2
| | | | | | | The --disable-introspection was lost during the Meson port and but can be useful to shave off some build time for Flatpaks written in non-introspected languages. Fixes: https://gitlab.gnome.org/GNOME/tracker/-/issues/37
* Add support for building with libsoup3carlosgc/soup3Carlos Garcia Campos2021-03-231-0/+2
| | | | | Add soup2 build option, enabled by default. When disabled, it builds against soup3 instead.
* build: Add meson option to enable TAP protocol in testsCarlos Garnacho2021-03-221-0/+2
| | | | | | | | | Together with our C tests we have our python functional test framework, which requires the use of TAPTestRunner from tap.py. Add a config switch, so that we don't need the python library (or behave strangely in functional tests without it) in developer setups, and can enable specifically in CI.
* build: Inherit systemd_user_services option from parent projectSam Thursfield2020-11-231-2/+2
| | | | | | | This fixes a confusing build error when building tracker-miners with `-Dtracker_core=subproject -Dsystemd_user_services=false` (the fix would be to set `-Dtracker:systemd_user_services=false`, this commit makes it unnecessary.)
* build: Remove forgotten network_manager optionwip/jtojnar/drop-nm-optJan Tojnar2020-10-111-2/+0
| | | | It is not used since https://gitlab.gnome.org/GNOME/tracker/commit/a88e0f23df07308670020926285549b0ed8a55a2.
* build: restore dbus/systemd optionsCarlos Garnacho2020-07-171-0/+6
| | | | | | | These options were cleaned up but will be good to have again for the portal service. While at it, split the systemd setting into a boolean to enable or disable the feature, and a string option to specify the user units path.
* build: Enable documentation builds by defaultSam Thursfield2020-03-151-1/+1
| | | | | | It's primarily developers who will be building Tracker directly from Git. We want developers to keep the documentation working, so let's enable docs by default.
* Remove no-FTS codepathsSam Thursfield2020-03-081-2/+0
| | | | | | | For historical reasons we have a codepath to build without full-text search support, mostly useful on systems where the SQLite FTS5 module is not available. This module is not difficult to build so in Tracker 3.0 we'll require it.
* Clean up Meson optionsSam Thursfield2020-02-251-10/+6
| | | | Fixes https://gitlab.gnome.org/GNOME/tracker-miners/issues/49
* Enable functional tests for everyoneSam Thursfield2020-02-171-2/+0
| | | | There should be no reason to disable them anymore.
* build: Make "safe" sqlite checks fail hardCarlos Garnacho2019-12-101-0/+2
| | | | | | | Nobody reads configure script summaries, make it sure they will by spewing a build error. Make this overridable though, so people and distributors at least make a conscious choice to shoot themselves in the foot.
* utils/trackertestutils: Make it usable by other projectsSam Thursfield2019-09-281-2/+2
| | | | | | | | | | | | | | | | | | | | | This commit makes the tracker-testutils-2.0 package more reusable. The idea is that projects using Tracker can use this as a way to sandbox their test suites from the user's real Tracker data. In your meson.build file you would do something like this to locate the script and run your test. python3 = find_program('python3') trackertestutils = dependency('tracker-testutils-2.0') tracker_sandbox_command = find_program(trackertestutils.get_pkgconfig_variable('command')) test('myapptest', tracker_sandbox_command, args: ['--index-tmpdir', my_app_test_executable]) This would ensure that XDG_CACHE_HOME and XDG_DATA_HOME point to a temporary directory, separate from any real Tracker index data that the current user might have inside their XDG cache & data directories.
* meson: Add options to define whether to install and where test utilsMarco Trevisan (TreviƱo)2019-09-241-0/+4
| | | | | | | | | | | | | | | | | Since commit 8ae99192 we provide tracker test utils python modules. These are installed by default in tracker internal libdir, and as per meson default this is an arch-dependent path, while the test utils aren't. So in some distributions, not to provide such files in multiple packages for each architecture, we'd need to install those files somewhere else that is not arch-dependent. Unfortunately meson doesn't provide such path by default (which ideally would be /usr/lib/tracker-${abi-version}), and I think isn't correct either to install such files into the datadir, so in order to make this path customizable and at the same time to make it possible to locate, provide meson options and build a pkg config file for it, providing the python path variable that should be used.
* build: Toggle developer docs off by defaultCarlos Garnacho2019-02-181-1/+1
| | | | | They are irrelevant to most people and on most situations. Toggling docs off might save a few cycles globally.
* Merge branch 'mraudsepp/tracker-meson-docs-options'Carlos Garnacho2019-02-181-1/+3
|\
| * build: Separate manpages install option from gtk-doc generationMart Raudsepp2019-02-181-1/+3
| | | | | | | | | | | | | | The main use case for the docs option seems to be to not spend time on gtk-doc generation. It is rather unexpected this also disables the installation of manpages, which are just installed as-is with no work involved.
* | build: Use meson feature option type where appropriateMart Raudsepp2019-02-141-4/+4
|/
* meson: Avoid NetworkManager automagic dependencyQuentin Glidic2017-12-161-0/+2
| | | | | | https://bugzilla.gnome.org/show_bug.cgi?id=791433 Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
* meson: Fix build with libstemmerSam Thursfield2017-12-161-1/+1
| | | | | | Based on a patch by Jeremy Bicha <jbicha@ubuntu.com>. https://bugzilla.gnome.org/show_bug.cgi?id=790373
* meson: Remove options that are only relevant to tracker-minersSam Thursfield2017-10-311-29/+0
| | | | The tracker-miners now live in a separate repo.
* meson: Fix use of nonexistant 'default' keywordSam Thursfield2017-10-311-3/+3
| | | | The correct keyword is 'value'.
* Remove Maemo/Meego leftoversSam Thursfield2017-06-081-2/+0
| | | | | | | | | | | | | | | | | | | This removes various code paths that we believe to be unused. * The userguides miner has been removed altogether. * The application miner no longer parses MeeGo-style .desktop files * The TRACKER_DISABLE_MEEGOTOUCH_LOCALE environment flag is gone (it already did nothing) * Character set detection with libmeegotouch is removed, only enca or libicu are supported * Meego-specific flags are gone from .desktop files * Functional tests have lost their vestigal Scratchbox and Aegis support There are 5 ontologies referencing Maemo, 4 of which are largely unused. These have been kept around in case anyone is using them outside Tracker. https://bugzilla.gnome.org/show_bug.cgi?id=783555
* Meson build instructions for TrackerSam Thursfield2017-05-221-0/+51
See <http://mesonbuild.com/> for information about Meson. Remaining issues: * There's no `make dist` equivalent. We currently produce release tarballs containing the output files of the Vala compiler. We need to think through whether we can stop doing that. Shipping the generated .c files does make the Vala preprocessor useless so it would be good if we can stop. * The Firefox, Thunderbird, Evolution and Nautilus plugins are not built * https://github.com/mesonbuild/meson/issues/671 -- means we can't depend on tracker_common_dep in most places and have to manually set link_with, include_directories and sources instead. * https://github.com/mesonbuild/meson/issues/1469 -- without this we have to install generated Vala headers using a script * https://github.com/mesonbuild/meson/issues/1229 -- means adding the #include guard to libtracker-sparql/tracker-generated-no-checks.h is a pain * The test suite has some spurious failures. Here's a rough speed comparison. Meson: time sh -c 'meson .. --prefix=/opt/tracker-meson -D bash_completion=/opt/tracker-meson/share/bash-completion -Dsystemd_user_services=/opt/tracker-meson/lib/systemd/user -Ddbus_services=/opt/tracker-meson/share/dbus-1/services && ninja-build -j 4 && ninja-build install' real 1m8.194s user 2m16.962s sys 0m20.532s Autotools: time sh -c './configure --prefix=/opt/tracker-autotools --with-bash-completion-dir=/opt/tracker-autotools/share/bash-completion --with-session-bus-services-dir=/opt/tracker-autotools/share/dbus-1/services --disable-nautilus-extension && make -j 4 && make install' real 2m37.750s user 4m37.214s sys 0m54.806s Plus 30+ seconds of ./autogen.sh first. Note that Meson builds may fail if your source tree has generated files from an Autotools build in there. If you see errors about duplicate definitions, first try cleaning your source tree (use `git clean -dfx`, but make sure you commit any work first!!)