gtksearchengine: Add tracker3 search engine

Make this dependency optional at build time, and prefer it over
the old tracker <= 2.x implementation.
This commit is contained in:
Carlos Garnacho
2020-05-17 00:04:56 +02:00
parent 5858f7c5bd
commit ae776046fc
7 changed files with 469 additions and 5 deletions

View File

@ -655,6 +655,10 @@ gtk_unix_sources = files(
'gtksearchenginetracker.c',
)
if os_unix and tracker3_enabled
gtk_unix_sources += 'gtksearchenginetracker3.c'
endif
if os_unix
gtk_sources += gtk_unix_sources
endif
@ -916,6 +920,10 @@ if cloudproviders_enabled
gtk_deps += cloudproviders_dep
endif
if os_unix and tracker3_enabled
gtk_deps += tracker3_dep
endif
# Unconditional. If libintl isn't found,
# the object just does nothing being in the deplist
gtk_deps += libintl_dep