forked from external/yambar
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')
|
if get_option('core-plugins-as-shared-libraries')
|
||||||
shared_module('@0@'.format(deco), '@0@.c'.format(deco),
|
shared_module('@0@'.format(deco), '@0@.c'.format(deco),
|
||||||
dependencies: deco_sdk,
|
dependencies: deco_sdk,
|
||||||
name_prefix: 'decoration_')
|
name_prefix: 'decoration_',
|
||||||
|
install: true,
|
||||||
|
install_dir: get_option('libdir') + '/f00bar')
|
||||||
else
|
else
|
||||||
lib = static_library(
|
lib = static_library(
|
||||||
'decoration_@0@'.format(deco), '@0@.c'.format(deco), dependencies: deco_sdk)
|
'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] +
|
dependencies: [bar, cairo, cairo_ft, fontconfig, yaml, threads, dl] +
|
||||||
decorations + particles + modules,
|
decorations + particles + modules,
|
||||||
build_rpath: '$ORIGIN/modules:$ORIGIN/decorations:$ORIGIN/particles',
|
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')
|
if get_option('core-plugins-as-shared-libraries')
|
||||||
shared_module(mod, '@0@.c'.format(mod), sources,
|
shared_module(mod, '@0@.c'.format(mod), sources,
|
||||||
dependencies: [module_sdk] + dep,
|
dependencies: [module_sdk] + dep,
|
||||||
name_prefix: 'module_')
|
name_prefix: 'module_',
|
||||||
|
install: true,
|
||||||
|
install_dir: get_option('libdir') + '/f00bar')
|
||||||
else
|
else
|
||||||
modules += [declare_dependency(
|
modules += [declare_dependency(
|
||||||
sources: ['@0@.c'.format(mod)] + sources,
|
sources: ['@0@.c'.format(mod)] + sources,
|
||||||
|
@ -52,7 +54,9 @@ if enable_x11
|
||||||
if get_option('core-plugins-as-shared-libraries')
|
if get_option('core-plugins-as-shared-libraries')
|
||||||
shared_module(mod, '@0@.c'.format(mod), sources,
|
shared_module(mod, '@0@.c'.format(mod), sources,
|
||||||
dependencies: [module_sdk] + dep,
|
dependencies: [module_sdk] + dep,
|
||||||
name_prefix: 'module_')
|
name_prefix: 'module_',
|
||||||
|
install: true,
|
||||||
|
install_dir: get_option('libdir') + '/f00bar')
|
||||||
else
|
else
|
||||||
modules += [declare_dependency(
|
modules += [declare_dependency(
|
||||||
sources: ['@0@.c'.format(mod)] + sources,
|
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')
|
if get_option('core-plugins-as-shared-libraries')
|
||||||
shared_module('@0@'.format(particle), '@0@.c'.format(particle),
|
shared_module('@0@'.format(particle), '@0@.c'.format(particle),
|
||||||
dependencies: particle_sdk,
|
dependencies: particle_sdk,
|
||||||
name_prefix: 'particle_')
|
name_prefix: 'particle_',
|
||||||
|
install: true,
|
||||||
|
install_dir: get_option('libdir') + '/f00bar')
|
||||||
else
|
else
|
||||||
lib = static_library(
|
lib = static_library(
|
||||||
'particle_@0@'.format(particle), '@0@.c'.format(particle),
|
'particle_@0@'.format(particle), '@0@.c'.format(particle),
|
||||||
|
@ -21,6 +23,9 @@ dynlist_lib = build_target(
|
||||||
'dynlist', 'dynlist.c', 'dynlist.h', dependencies: particle_sdk,
|
'dynlist', 'dynlist.c', 'dynlist.h', dependencies: particle_sdk,
|
||||||
target_type: (get_option('core-plugins-as-shared-libraries')
|
target_type: (get_option('core-plugins-as-shared-libraries')
|
||||||
? 'shared_library' : 'static_library'),
|
? '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)
|
dynlist = declare_dependency(link_with: dynlist_lib)
|
||||||
|
|
Loading…
Add table
Reference in a new issue