[vte] lib: Add glue for public types
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vte] lib: Add glue for public types
- Date: Thu, 29 Apr 2021 19:32:26 +0000 (UTC)
commit a248b8741a8144287b2d65effd3d859460008971
Author: Christian Persch <chpe src gnome org>
Date: Thu Apr 29 21:32:12 2021 +0200
lib: Add glue for public types
src/app/app.cc | 5 +----
src/app/meson.build | 2 +-
src/meson.build | 6 +++++-
src/vte-glue.hh | 28 ++++++++++++++++++++++++++++
4 files changed, 35 insertions(+), 6 deletions(-)
---
diff --git a/src/app/app.cc b/src/app/app.cc
index 35f72379..620410c4 100644
--- a/src/app/app.cc
+++ b/src/app/app.cc
@@ -45,10 +45,7 @@
#include "pango-glue.hh"
#include "pcre2-glue.hh"
#include "refptr.hh"
-
-namespace vte {
-VTE_DECLARE_FREEABLE(VteRegex, vte_regex_unref);
-} // namespace vte
+#include "vte-glue.hh"
/* options */
diff --git a/src/app/meson.build b/src/app/meson.build
index e719d9f0..4485d619 100644
--- a/src/app/meson.build
+++ b/src/app/meson.build
@@ -14,7 +14,7 @@
# You should have received a copy of the GNU Lesser General Public License
# along with this library. If not, see <https://www.gnu.org/licenses/>.
-app_sources = config_sources + glib_glue_sources + libc_glue_sources + pango_glue_sources +
pcre2_glue_sources + refptr_sources + std_glue_sources + files(
+app_sources = config_sources + glib_glue_sources + libc_glue_sources + pango_glue_sources +
pcre2_glue_sources + refptr_sources + std_glue_sources + vte_glue_sources + files(
'app.cc',
)
diff --git a/src/meson.build b/src/meson.build
index 2efaa21f..a1440da5 100644
--- a/src/meson.build
+++ b/src/meson.build
@@ -155,7 +155,11 @@ utf8_sources = files(
'utf8.hh',
)
-libvte_common_sources = config_sources + debug_sources + glib_glue_sources + gtk_glue_sources +
libc_glue_sources + modes_sources + pango_glue_sources + parser_sources + pcre2_glue_sources + pty_sources +
refptr_sources + regex_sources + std_glue_sources + utf8_sources + files(
+vte_glue_sources = files(
+ 'vte-glue.hh',
+)
+
+libvte_common_sources = config_sources + debug_sources + glib_glue_sources + gtk_glue_sources +
libc_glue_sources + modes_sources + pango_glue_sources + parser_sources + pcre2_glue_sources + pty_sources +
refptr_sources + regex_sources + std_glue_sources + utf8_sources + vte_glue_sources + files(
'attr.hh',
'bidi.cc',
'bidi.hh',
diff --git a/src/vte-glue.hh b/src/vte-glue.hh
new file mode 100644
index 00000000..f7a994bb
--- /dev/null
+++ b/src/vte-glue.hh
@@ -0,0 +1,28 @@
+/*
+ * Copyright © 2020 Christian Persch
+ *
+ * This library is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser General Public License as published
+ * by the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this library. If not, see <https://www.gnu.org/licenses/>.
+ */
+
+#pragma once
+
+#include "vteregex.h"
+
+#include "std-glue.hh"
+
+namespace vte {
+
+VTE_DECLARE_FREEABLE(VteRegex, vte_regex_unref);
+
+} // namespace vte
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]