Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ i18n = import('i18n')
# Set our translation domain
add_global_arguments('-DGETTEXT_PACKAGE="@0@"'.format (meson.project_name()), language:'c')

# Enable DesktopIntegration feature if option is enabled
if get_option('desktopintegration')
add_project_arguments(['--define', 'DESKTOP_INTEGRATION'], language: 'vala')
endif

subdir('lib')
subdir('plugins')

Expand Down
2 changes: 1 addition & 1 deletion meson_options.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
option ('desktopintegration', type : 'boolean', value : false)
option ('desktopintegration', type : 'boolean', value : true)
1 change: 0 additions & 1 deletion plugins/AppsPlugin/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ sources = [

if desktopintegration
sources += 'DesktopIntegration.vala'
add_project_arguments(['--define', 'DESKTOP_INTEGRATION'], language: 'vala')
endif

shared_library(
Expand Down