Skip to content

Commit

Permalink
build: use add_project_arguments instead of configuration_data
Browse files Browse the repository at this point in the history
No need to include config.h anymore.
  • Loading branch information
emersion committed Jul 19, 2021
1 parent 7df581d commit 33bfdf9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 8 deletions.
1 change: 0 additions & 1 deletion include/cairo_util.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#ifndef _SWAY_CAIRO_UTIL_H
#define _SWAY_CAIRO_UTIL_H

#include "config.h"
#include <stdint.h>
#include <cairo.h>
#include <wayland-client.h>
Expand Down
1 change: 0 additions & 1 deletion include/meson.build

This file was deleted.

11 changes: 5 additions & 6 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -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')

Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 33bfdf9

Please sign in to comment.