build: allow installing examples to be disabled
In Nixpkgs, sysconfdir is not writeable in the sandbox in which packages are built, so it's important for us to be able to disable installing example files. (We create configuration files and install them into /etc separately through our "module system".) Signed-off-by: Alyssa Ross <hi@alyssa.is>
This commit is contained in:
@@ -390,8 +390,10 @@ version_conf = {
|
||||
|
||||
subdir('po')
|
||||
subdir('data')
|
||||
if get_option('examples')
|
||||
subdir('data/dispatcher-connection')
|
||||
subdir('data/dispatcher-fcc-unlock')
|
||||
endif
|
||||
subdir('introspection')
|
||||
subdir('include')
|
||||
|
||||
|
@@ -4,6 +4,7 @@
|
||||
option('udev', type: 'boolean', value: true, description: 'enable udev support')
|
||||
option('udevdir', type: 'string', value: '', description: 'udev base directory')
|
||||
|
||||
option('examples', type: 'boolean', value: true, description: 'install examples')
|
||||
option('tests', type: 'boolean', value: true, description: 'enable tests')
|
||||
|
||||
option('dbus_policy_dir', type: 'string', value: '', description: 'd-bus system policy directory')
|
||||
|
Reference in New Issue
Block a user