diff --git a/Makefile.am b/Makefile.am index 8ee5f016..1512c12a 100644 --- a/Makefile.am +++ b/Makefile.am @@ -142,6 +142,7 @@ rofi_CFLAGS=\ -I$(top_srcdir)/include/\ -I$(top_builddir)/lexer/\ -I$(top_srcdir)/lexer/\ + -I$(top_builddir)/resources/\ -I$(top_srcdir)/config/\ -I$(top_builddir)/\ -Werror=missing-prototypes\ diff --git a/meson.build b/meson.build index 62fd1c3a..f17fe7eb 100644 --- a/meson.build +++ b/meson.build @@ -195,9 +195,14 @@ theme_parser_sources = files('lexer/theme-parser.y') theme_lexer = flex.process(theme_lexer_sources) theme_parser = bison.process(theme_parser_sources) + +gnome = import('gnome') +default_theme = gnome.compile_resources('resources', files('resources/resources.xml')) + rofi = executable('rofi', rofi_sources + [ theme_lexer, theme_parser, + default_theme, ], dependencies: deps, install: true, diff --git a/source/rofi.c b/source/rofi.c index 85ad95d2..e81fa724 100644 --- a/source/rofi.c +++ b/source/rofi.c @@ -52,7 +52,7 @@ #endif #endif -#include "resources/resources.h" +#include "resources.h" #include "rofi.h" #include "display.h"