[gedit] build: better declare_dependency() for libgedit_dep



commit 2fb0736ccb23b9595a3458ddfbe9399a3cf8e00f
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Fri May 8 21:37:36 2020 +0200

    build: better declare_dependency() for libgedit_dep
    
    The generated *.h files need to be included in the sources, so that they
    are built before the targets that depend on libgedit_dep.

 gedit/meson.build | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gedit/meson.build b/gedit/meson.build
index d028b287b..522d171e6 100644
--- a/gedit/meson.build
+++ b/gedit/meson.build
@@ -212,10 +212,10 @@ libgedit_vapi = gnome.generate_vapi(
 )
 
 libgedit_dep = declare_dependency(
-  link_with: libgedit_shared_lib,
   include_directories: root_include_dir,
+  link_with: libgedit_shared_lib,
+  sources: [libgedit_public_enum_types[1], libgedit_private_enum_types[1]],
   dependencies: libgedit_deps,
-  sources: libgedit_gir,
 )
 
 libgedit_pc = pkg.generate(


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]