Commit 200a5869 authored by Ernestas Kulik's avatar Ernestas Kulik 🦑

build: Allow disabling GIR data generation

parent 74d3b200
...@@ -73,7 +73,8 @@ libnautilus_extension = shared_library( ...@@ -73,7 +73,8 @@ libnautilus_extension = shared_library(
install: true install: true
) )
gnome.generate_gir( if get_option('introspection')
gnome.generate_gir(
libnautilus_extension, libnautilus_extension,
extra_args: [ extra_args: [
'-DNAUTILUS_COMPILATION' '-DNAUTILUS_COMPILATION'
...@@ -88,7 +89,8 @@ gnome.generate_gir( ...@@ -88,7 +89,8 @@ gnome.generate_gir(
], ],
header: 'nautilus-extension.h', header: 'nautilus-extension.h',
install: true install: true
) )
endif
nautilus_extension = declare_dependency( nautilus_extension = declare_dependency(
sources: libnautilus_extension_enums[1], sources: libnautilus_extension_enums[1],
......
option('docs', type: 'boolean', value: false) ##############
option('profiling', type: 'boolean', value: false) # Extensions #
option('extensions', type: 'boolean', value: true) ##############
option('packagekit', type: 'boolean', value: true) option(
option('selinux', type: 'boolean', value: false) 'docs',
option('tests', type: 'combo', choices: ['none', 'headless', 'all'], value: 'headless') type: 'boolean',
option('profile', type : 'string', value : '', description : 'Profile to be used as app id') value: false,
\ No newline at end of file description: 'Build documentation for extension library',
)
option(
'extensions',
type: 'boolean',
value: true,
description: 'Build stock extensions',
)
option(
'introspection',
type: 'boolean',
value: true,
description: 'Build GObject introspection data for extension library',
)
##################
# End extensions #
##################
############
# Features #
############
option(
'packagekit',
type: 'boolean',
value: true,
description: 'Enable finding file type handlers using PackageKit',
)
option(
'selinux',
type: 'boolean',
value: false,
description: 'Enable SELinux context support in file properties dialog',
)
################
# End features #
################
###########
# Testing #
###########
option(
'profiling',
type: 'boolean',
value: false,
description: 'Enable performance profiling',
)
option(
'tests',
type: 'combo',
choices: [
'none',
'headless',
'all'
],
value: 'headless',
description: 'Build selected tests',
)
###############
# End testing #
###############
option(
'profile',
type: 'string',
value: '',
description: 'Build with specified application ID',
)
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