yambar/particles/meson.build
Daniel Eklöf c11fee4ce3
cairo: replace cairo with pixman in decos, particles and modules
All decoration, particle and module interfaces now takes a
pixman_image_t parameter, and all drawing is done using pixman APIs.

The wayland/xcb backends implement a new interface functions,
get_pixman_image(), that should return a pixman image instance that is
suitable for rendering.

In the wayland backend, the image uses the same backing data as the
cairo surface.

In the XCB backend, we create a new image each time, and then blit it
to the cairo surface at commit time.
2019-09-22 01:56:58 +02:00

27 lines
1,008 B
Meson

particle_sdk = declare_dependency(dependencies: [freetype, fontconfig, pixman])
particles = []
foreach particle : ['empty', 'list', 'map', 'progress-bar', 'ramp', 'string']
if plugs_as_libs
shared_module('@0@'.format(particle), '@0@.c'.format(particle),
dependencies: particle_sdk,
name_prefix: 'particle_',
install: true,
install_dir: join_paths(get_option('libdir'), 'f00bar'))
else
particles += [declare_dependency(
sources: '@0@.c'.format(particle),
dependencies: particle_sdk,
compile_args: '-DHAVE_PLUGIN_@0@'.format(particle.underscorify()))]
endif
endforeach
dynlist_lib = build_target(
'dynlist', 'dynlist.c', 'dynlist.h', dependencies: particle_sdk,
target_type: plugs_as_libs ? 'shared_library' : 'static_library',
override_options : ['b_lundef=false'],
install: plugs_as_libs,
install_dir: get_option('libdir') + '/f00bar',
)
dynlist = declare_dependency(link_with: dynlist_lib)