[retro-gtk] demo: Only include toplevel header file
- From: Adrien Plazas <aplazas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [retro-gtk] demo: Only include toplevel header file
- Date: Sat, 11 Jan 2020 12:56:05 +0000 (UTC)
commit 602d9123b5937af3c1e4cb619b587aa325ed4e9f
Author: Alexander Mikhaylenko <alexm gnome org>
Date: Mon Jan 6 20:27:39 2020 +0500
demo: Only include toplevel header file
Avoid issues later after directory layout changes.
demos/meson.build | 1 -
demos/retro-demo.c | 3 +--
retro-gtk/meson.build | 4 +++-
3 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/demos/meson.build b/demos/meson.build
index 075373d..64676b8 100644
--- a/demos/meson.build
+++ b/demos/meson.build
@@ -7,7 +7,6 @@ executable(
'retro-demo.c',
c_args: retro_demo_c_args,
dependencies: retro_gtk_dep,
- include_directories: [ confinc, srcinc ],
gui_app: true,
install: true,
)
diff --git a/demos/retro-demo.c b/demos/retro-demo.c
index 28170cf..16372cd 100644
--- a/demos/retro-demo.c
+++ b/demos/retro-demo.c
@@ -1,7 +1,6 @@
// This file is part of retro-gtk. License: GPL-3.0+.
-#include <retro-gtk/retro-gtk.h>
-#include <retro-gtk/retro-core-view.h>
+#include <retro-gtk.h>
#define RETRO_TYPE_DEMO_APPLICATION (retro_demo_application_get_type())
diff --git a/retro-gtk/meson.build b/retro-gtk/meson.build
index 96d979f..1c7655d 100644
--- a/retro-gtk/meson.build
+++ b/retro-gtk/meson.build
@@ -162,10 +162,12 @@ if get_option('introspection')
retro_gtk_dep_sources += retro_gtk_gir
endif
+retro_gtk_inc = include_directories('.')
+
retro_gtk_dep = declare_dependency(
link_with: retro_gtk_lib,
sources: retro_gtk_dep_sources,
- include_directories: confinc,
+ include_directories: [ confinc, retro_gtk_inc ],
dependencies: retro_gtk_deps,
)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]