Browse Source

move gresource files into separate directory

sisyphus
Dustin Falgout 8 years ago
parent
commit
fe88bee331
  1. 2
      src/greeter.c
  2. 0
      src/gresource/greeter-style-css.c
  3. 0
      src/gresource/greeter-style-css.h
  4. 7
      src/gresource/meson.build
  5. 12
      src/meson.build

2
src/greeter.c

@ -48,7 +48,7 @@
#include <config.h>
#include "greeter-style-css.h"
#include "gresource/greeter-style-css.h"
static GtkWidget *web_view;
static GtkWidget *window;

0
src/greeter-style-css.c → src/gresource/greeter-style-css.c

0
src/greeter-style-css.h → src/gresource/greeter-style-css.h

7
src/gresource/meson.build

@ -0,0 +1,7 @@
# =============================== #
# ------->>> GRESOURCE <<<------- #
# =============================== #
gresource_headers = ['greeter-style-css.h']
install_headers(gresource_headers, subdir : 'lightdm-webkit2-greeter')

12
src/meson.build

@ -22,6 +22,7 @@ webext = shared_library(
greeter_headers = ['greeter-style-css.h']
greeter_sources = ['greeter-style-css.c', 'greeter.c']
gresource_sources = include_directories('gresource')
extdir = '"@0@/@1@"'.format(get_option('libdir'), 'lightdm-webkit2-greeter')
@ -37,3 +38,14 @@ greeter = executable(
dependencies: deps,
c_args: greeter_cargs,
install: true)
# ===================================== #
# ------->>> Sub Directories <<<------- #
# ===================================== #
subdirs = ['gresource']
foreach s : subdirs
subdir(s)
endforeach

Loading…
Cancel
Save