make lib and bin optional to only compile what is wanted
This commit is contained in:
parent
f6e93a1b67
commit
bf5033c70d
11
meson.build
11
meson.build
@ -29,5 +29,12 @@ if docs_enabled
|
||||
endif
|
||||
endif
|
||||
|
||||
subdir('lib')
|
||||
subdir('src')
|
||||
lib_enabled = get_option('lib')
|
||||
if lib_enabled
|
||||
subdir('lib')
|
||||
endif
|
||||
|
||||
bin_enabled = get_option('bin')
|
||||
if bin_enabled
|
||||
subdir('src')
|
||||
endif
|
||||
|
@ -1,3 +1,13 @@
|
||||
option('bin',
|
||||
type: 'boolean',
|
||||
value: true,
|
||||
description: 'Build the obelisk compiler'
|
||||
)
|
||||
option('lib',
|
||||
type: 'boolean',
|
||||
value: true,
|
||||
description: 'Build the obelisk library'
|
||||
)
|
||||
option('docs',
|
||||
type: 'boolean',
|
||||
value: true,
|
||||
|
Loading…
Reference in New Issue
Block a user