[gedit] build: small simplification



commit e01a0671f6db99cfecd43868d23f0097bf541ee9
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Fri May 8 19:16:49 2020 +0200

    build: small simplification

 docs/reference/meson.build |  1 -
 gedit/meson.build          | 17 ++++-------------
 2 files changed, 4 insertions(+), 14 deletions(-)
---
diff --git a/docs/reference/meson.build b/docs/reference/meson.build
index 176e77e89..93a2f59b3 100644
--- a/docs/reference/meson.build
+++ b/docs/reference/meson.build
@@ -14,7 +14,6 @@ gedit_doc_dep = declare_dependency(
   link_with: libgedit_sha,
   include_directories: root_include_dir,
   dependencies: deps_basic_list,
-  sources: libgedit_dep_sources,
 )
 
 gnome.gtkdoc(
diff --git a/gedit/meson.build b/gedit/meson.build
index 376c0cae6..9d5620878 100644
--- a/gedit/meson.build
+++ b/gedit/meson.build
@@ -140,11 +140,6 @@ elif host_machine.system() == 'windows'
   ]
 endif
 
-libgedit_sources = [
-  libgedit_public_sources,
-  libgedit_private_sources
-]
-
 libgedit_public_enum_types = gnome.mkenums_simple(
   'gedit-enum-types',
   sources: libgedit_public_headers,
@@ -159,14 +154,14 @@ libgedit_private_headers += 'gedit-enum-types-private.h'
 
 subdir('resources')
 
-libgedit_sources += [
+libgedit_sources = [
+  libgedit_public_sources,
+  libgedit_private_sources,
   libgedit_public_enum_types[0],
   libgedit_private_enum_types[0],
   libgedit_gresources[0],
 ]
 
-libgedit_dep_sources = []
-
 install_headers(
   libgedit_public_headers,
   subdir: 'gedit-@0@'.format(api_version) / 'gedit'
@@ -216,10 +211,6 @@ python3.install_sources(
   )
 )
 
-libgedit_dep_sources += [
-  libgedit_gir,
-]
-
 # Vala API
 libgedit_vapi_packages = [
   'gio-2.0',
@@ -241,7 +232,7 @@ libgedit_dep = declare_dependency(
   link_with: libgedit_sha,
   include_directories: root_include_dir,
   dependencies: libgedit_deps,
-  sources: libgedit_dep_sources,
+  sources: libgedit_gir,
 )
 
 libgedit_pc = pkg.generate(


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