mirror of
https://codeberg.org/dnkl/yambar.git
synced 2025-04-20 03:35:41 +02:00
meson: install plugins
This commit is contained in:
parent
ded98baa4e
commit
e563761093
4 changed files with 19 additions and 6 deletions
|
@ -5,7 +5,9 @@ foreach deco : ['background', 'stack', 'underline']
|
|||
if get_option('core-plugins-as-shared-libraries')
|
||||
shared_module('@0@'.format(deco), '@0@.c'.format(deco),
|
||||
dependencies: deco_sdk,
|
||||
name_prefix: 'decoration_')
|
||||
name_prefix: 'decoration_',
|
||||
install: true,
|
||||
install_dir: get_option('libdir') + '/f00bar')
|
||||
else
|
||||
lib = static_library(
|
||||
'decoration_@0@'.format(deco), '@0@.c'.format(deco), dependencies: deco_sdk)
|
||||
|
|
|
@ -81,4 +81,6 @@ executable(
|
|||
dependencies: [bar, cairo, cairo_ft, fontconfig, yaml, threads, dl] +
|
||||
decorations + particles + modules,
|
||||
build_rpath: '$ORIGIN/modules:$ORIGIN/decorations:$ORIGIN/particles',
|
||||
export_dynamic: true)
|
||||
export_dynamic: true,
|
||||
install: true,
|
||||
install_rpath: '$ORIGIN/../' + get_option('libdir') + '/f00bar')
|
||||
|
|
|
@ -35,7 +35,9 @@ foreach mod, data : deps
|
|||
if get_option('core-plugins-as-shared-libraries')
|
||||
shared_module(mod, '@0@.c'.format(mod), sources,
|
||||
dependencies: [module_sdk] + dep,
|
||||
name_prefix: 'module_')
|
||||
name_prefix: 'module_',
|
||||
install: true,
|
||||
install_dir: get_option('libdir') + '/f00bar')
|
||||
else
|
||||
modules += [declare_dependency(
|
||||
sources: ['@0@.c'.format(mod)] + sources,
|
||||
|
@ -52,7 +54,9 @@ if enable_x11
|
|||
if get_option('core-plugins-as-shared-libraries')
|
||||
shared_module(mod, '@0@.c'.format(mod), sources,
|
||||
dependencies: [module_sdk] + dep,
|
||||
name_prefix: 'module_')
|
||||
name_prefix: 'module_',
|
||||
install: true,
|
||||
install_dir: get_option('libdir') + '/f00bar')
|
||||
else
|
||||
modules += [declare_dependency(
|
||||
sources: ['@0@.c'.format(mod)] + sources,
|
||||
|
|
|
@ -5,7 +5,9 @@ foreach particle : ['empty', 'list', 'map', 'progress-bar', 'ramp', 'string']
|
|||
if get_option('core-plugins-as-shared-libraries')
|
||||
shared_module('@0@'.format(particle), '@0@.c'.format(particle),
|
||||
dependencies: particle_sdk,
|
||||
name_prefix: 'particle_')
|
||||
name_prefix: 'particle_',
|
||||
install: true,
|
||||
install_dir: get_option('libdir') + '/f00bar')
|
||||
else
|
||||
lib = static_library(
|
||||
'particle_@0@'.format(particle), '@0@.c'.format(particle),
|
||||
|
@ -21,6 +23,9 @@ dynlist_lib = build_target(
|
|||
'dynlist', 'dynlist.c', 'dynlist.h', dependencies: particle_sdk,
|
||||
target_type: (get_option('core-plugins-as-shared-libraries')
|
||||
? 'shared_library' : 'static_library'),
|
||||
override_options : ['b_lundef=false'])
|
||||
override_options : ['b_lundef=false'],
|
||||
install: get_option('core-plugins-as-shared-libraries'),
|
||||
install_dir: get_option('libdir') + '/f00bar',
|
||||
)
|
||||
|
||||
dynlist = declare_dependency(link_with: dynlist_lib)
|
||||
|
|
Loading…
Add table
Reference in a new issue