diff options
author | Simon Ser <contact@emersion.fr> | 2021-07-19 13:16:38 +0200 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2021-07-19 13:16:38 +0200 |
commit | 33bfdf9adb269ec5912420803812f660b724adf5 (patch) | |
tree | 3e500011fa3c579945e8b05bea63bdbed050c69e /meson.build | |
parent | 7df581dd4c8f369c426c1a688b4a126e59c19799 (diff) | |
download | swaybg-33bfdf9adb269ec5912420803812f660b724adf5.tar.gz swaybg-33bfdf9adb269ec5912420803812f660b724adf5.tar.bz2 |
build: use add_project_arguments instead of configuration_data
No need to include config.h anymore.
Diffstat (limited to 'meson.build')
-rw-r--r-- | meson.build | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/meson.build b/meson.build index a06afeb..19c74f9 100644 --- a/meson.build +++ b/meson.build @@ -43,7 +43,11 @@ if git.found() version = '"@0@ (" __DATE__ ", branch \'@1@\')"'.format(git_commit_hash.stdout().strip(), git_branch.stdout().strip()) endif endif -add_project_arguments('-DSWAYBG_VERSION=@0@'.format(version), language: 'c') + +add_project_arguments([ + '-DSWAYBG_VERSION=@0@'.format(version), + '-DHAVE_GDK_PIXBUF=@0@'.format(gdk_pixbuf.found().to_int()), +], language: 'c') wl_protocol_dir = wayland_protos.get_pkgconfig_variable('pkgdatadir') @@ -91,11 +95,6 @@ client_protos = declare_dependency( sources: client_protos_headers, ) -conf_data = configuration_data() -conf_data.set10('HAVE_GDK_PIXBUF', gdk_pixbuf.found()) - -subdir('include') - dependencies = [ cairo, client_protos, |