Commit 9a00b563 authored by Philip Withnall's avatar Philip Withnall Committed by Richard Hughes

build: Allow hardcoded-popular plugin to be disabled

Distros might want to completely control the list of popular apps, and
since all the API and metadata is set up to make the list additive
(removing things from it is hard), we need a way to be able to disable
the hardcoded plugin.
Signed-off-by: Philip Withnall's avatarPhilip Withnall <withnall@endlessm.com>
parent acb56be0
Pipeline #87828 passed with stage
in 20 minutes and 9 seconds
......@@ -16,3 +16,4 @@ option('snap', type : 'boolean', value : false, description : 'enable Snap suppo
option('external_appstream', type : 'boolean', value : false, description : 'enable external AppStream support')
option('valgrind', type : 'boolean', value : true, description : 'enable Valgrind debugging integration')
option('gtk_doc', type : 'boolean', value : true, description : 'enable API reference')
option('hardcoded_popular', type : 'boolean', value : true, description : 'enable hardcoded-popular apps plugin')
......@@ -173,21 +173,23 @@ shared_module(
]
)
shared_module(
'gs_plugin_hardcoded-popular',
sources : 'gs-plugin-hardcoded-popular.c',
include_directories : [
include_directories('../..'),
include_directories('../../lib'),
],
install : true,
install_dir: plugin_dir,
c_args : cargs,
dependencies : plugin_libs,
link_with : [
libgnomesoftware
]
)
if get_option('hardcoded_popular')
shared_module(
'gs_plugin_hardcoded-popular',
sources : 'gs-plugin-hardcoded-popular.c',
include_directories : [
include_directories('../..'),
include_directories('../../lib'),
],
install : true,
install_dir: plugin_dir,
c_args : cargs,
dependencies : plugin_libs,
link_with : [
libgnomesoftware
]
)
endif
shared_module(
'gs_plugin_hardcoded-featured',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment