Skip to content

Commit

Permalink
Add ability to disable Demos build
Browse files Browse the repository at this point in the history
By default Demos build enabled
  • Loading branch information
Egor Shestakov committed Jun 15, 2024
1 parent b081b54 commit 18d43ee
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
7 changes: 5 additions & 2 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,10 @@ if buildImport
subdir('Import')
endif

subdir('Demos')
if get_option('buildDemos')
subdir('Demos')
endif

subdir('DumpData')
subdir('PublicTransportMap')

Expand Down Expand Up @@ -447,7 +450,7 @@ summary({
summary({
'BasemapImport': buildImport,
'Import': buildImport,
'Demos': true,
'Demos': get_option('buildDemos'),
'DumpData': true,
'OSMScout2': buildOSMScout2,
'StyleEditor': buildStyleEditor,
Expand Down
1 change: 1 addition & 0 deletions meson_options.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,5 @@ option('enableMapQt', type: 'boolean', value: true, description: 'Build Qt
option('enableMapSvg', type: 'boolean', value: true, description: 'Build SVG backend')
option('enableClientQt', type: 'boolean', value: true, description: 'Build Qt/QML library')
option('enableXML', type: 'boolean', value: true, description: 'Use libxml2')
option('buildDemos', type: 'boolean', value: true, description: 'Build demo applications')
option('qtVersion', type: 'integer', value: 5, min: 5, max: 6, description: 'QT version to use (5 or 6)')

0 comments on commit 18d43ee

Please sign in to comment.