summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2020-03-07 01:33:56 +0200
committerJussi Pakkanen <jpakkane@gmail.com>2020-03-07 01:33:56 +0200
commitc3ae6cdaa13c2081dff4cc7d5c23aea8e8e4b00d (patch)
treec8bc398d4ebce0e1d1a67c203fe87e518bfc6dd9
parentedd47e4d5e5564a511d3521c10848e3b800d2ea3 (diff)
Build vclplug.
Change-Id: Icd90d47ae3b9cf31a06da03777fe20f174c980a4
-rw-r--r--config_host/config_dconf.h.meson17
-rw-r--r--config_host/meson.build4
-rw-r--r--configmgr/meson.build48
-rw-r--r--meson.build5
-rw-r--r--vcl/meson.build80
5 files changed, 154 insertions, 0 deletions
diff --git a/config_host/config_dconf.h.meson b/config_host/config_dconf.h.meson
new file mode 100644
index 000000000000..c508bb450818
--- /dev/null
+++ b/config_host/config_dconf.h.meson
@@ -0,0 +1,17 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
+/*
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ */
+
+#ifndef INCLUDED_CONFIG_DCONF_H
+#define INCLUDED_CONFIG_DCONF_H
+
+#mesondefine ENABLE_DCONF
+
+#endif
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/config_host/meson.build b/config_host/meson.build
index bcda0032c495..becbfc01c4bd 100644
--- a/config_host/meson.build
+++ b/config_host/meson.build
@@ -241,3 +241,7 @@ configure_file(input: 'config_cxxabi.h.meson',
configure_file(input: 'config_dconf.h.meson',
output: 'config_dconf.h',
configuration: cdata)
+
+configure_file(input: 'config_skia.h.in',
+ output: 'config_skia.h',
+ configuration: cdata)
diff --git a/configmgr/meson.build b/configmgr/meson.build
new file mode 100644
index 000000000000..c6751f99c082
--- /dev/null
+++ b/configmgr/meson.build
@@ -0,0 +1,48 @@
+configmgr_lib = shared_library('configmgrlo',
+ 'source/access.cxx',
+ 'source/broadcaster.cxx',
+ 'source/childaccess.cxx',
+ 'source/components.cxx',
+ 'source/configurationprovider.cxx',
+ 'source/configurationregistry.cxx',
+ 'source/data.cxx',
+ 'source/defaultprovider.cxx',
+ 'source/groupnode.cxx',
+ 'source/localizedpropertynode.cxx',
+ 'source/localizedvaluenode.cxx',
+ 'source/lock.cxx',
+ 'source/modifications.cxx',
+ 'source/node.cxx',
+ 'source/nodemap.cxx',
+ 'source/parsemanager.cxx',
+ 'source/partial.cxx',
+ 'source/propertynode.cxx',
+ 'source/readonlyaccess.cxx',
+ 'source/readwriteaccess.cxx',
+ 'source/rootaccess.cxx',
+ 'source/rootnode.cxx',
+ 'source/services.cxx',
+ 'source/setnode.cxx',
+ 'source/type.cxx',
+ 'source/update.cxx',
+ 'source/valueparser.cxx',
+ 'source/writemodfile.cxx',
+ 'source/xcdparser.cxx',
+ 'source/xcsparser.cxx',
+ 'source/xcuparser.cxx',
+ 'source/xmldata.cxx',
+ udk_fake_h, off_fake_h,
+ cpp_args: ['-DLIBO_INTERNAL_ONLY'],
+ include_directories: [main_inc, udkh_inc, offapi_inc, 'inc'],
+ link_with: [comphelper_lib,
+ cppu_lib,
+ cppuhelper_lib,
+ sal_lib,
+ salhelper_lib,
+ tl_lib,
+ xmlreader_lib,
+ i18nlangtag_lib,
+ ],
+ install: true,
+ dependencies: [libxml_dep, zlib_dep],
+)
diff --git a/meson.build b/meson.build
index c29a2e99d3fb..ffd1ebd37ab7 100644
--- a/meson.build
+++ b/meson.build
@@ -101,6 +101,7 @@ expat_dep = dependency('expat')
boost_locale_dep = dependency('boost', modules: 'locale')
boost_datetime_dep = dependency('boost', modules: 'date_time')
dl_dep = cpp.find_library('dl', required: false)
+freetype_dep = dependency('freetype2')
harfbuzz_dep = dependency('harfbuzz')
harfbuzz_icu_dep = dependency('harfbuzz-icu')
glm_dep = dependency('glm')
@@ -117,6 +118,10 @@ dbus_dep = dependency('dbus-1')
gio_dep = dependency('gio-2.0')
xext_dep = dependency('xext')
x11_dep = dependency('x11')
+xrandr_dep = dependency('xrandr')
+xrender_dep = dependency('xrender')
+sm_dep = dependency('sm')
+ice_dep = dependency('ice')
fc_dep = dependency('fontconfig')
cairo_dep = dependency('cairo')
orcus_dep = dependency('liborcus-0.14')
diff --git a/vcl/meson.build b/vcl/meson.build
index ea1d68374a9b..fb0009cd9dd0 100644
--- a/vcl/meson.build
+++ b/vcl/meson.build
@@ -474,6 +474,66 @@ vclplug_gtk3 = shared_library('vclplug_gtk3lo',
install: true,
)
+vclplug_gen = shared_library('vclplug_genlo',
+ 'unx/generic/app/i18n_cb.cxx',
+ 'unx/generic/app/i18n_ic.cxx',
+ 'unx/generic/app/i18n_im.cxx',
+ 'unx/generic/app/i18n_keysym.cxx',
+ 'unx/generic/app/i18n_xkb.cxx',
+ 'unx/generic/app/keysymnames.cxx',
+ 'unx/generic/app/randrwrapper.cxx',
+ 'unx/generic/app/saldata.cxx',
+ 'unx/generic/app/saldisp.cxx',
+ 'unx/generic/app/salinst.cxx',
+ 'unx/generic/app/saltimer.cxx',
+ 'unx/generic/app/sm.cxx',
+ 'unx/generic/app/wmadaptor.cxx',
+ 'unx/generic/dtrans/bmp.cxx',
+ 'unx/generic/dtrans/config.cxx',
+ 'unx/generic/dtrans/X11_clipboard.cxx',
+ 'unx/generic/dtrans/X11_dndcontext.cxx',
+ 'unx/generic/dtrans/X11_droptarget.cxx',
+ 'unx/generic/dtrans/X11_selection.cxx',
+ 'unx/generic/dtrans/X11_service.cxx',
+ 'unx/generic/dtrans/X11_transferable.cxx',
+ 'unx/generic/gdi/cairo_xlib_cairo.cxx',
+ 'unx/generic/gdi/x11cairotextrender.cxx',
+ 'unx/generic/gdi/gdiimpl.cxx',
+ 'unx/generic/gdi/salbmp.cxx',
+ 'unx/generic/gdi/salgdi2.cxx',
+ 'unx/generic/gdi/font.cxx',
+ 'unx/generic/gdi/salgdi.cxx',
+ 'unx/generic/gdi/salvd.cxx',
+ 'unx/generic/gdi/xrender_peer.cxx',
+ 'unx/generic/window/salframe.cxx',
+ 'unx/generic/window/salobj.cxx',
+ 'unx/x11/x11sys.cxx',
+ 'unx/x11/xlimits.cxx',
+ 'opengl/x11/cairotextrender.cxx',
+ 'opengl/x11/gdiimpl.cxx',
+ 'opengl/x11/salvd.cxx',
+ udk_fake_h, off_fake_h,
+ cpp_args: ['-DVCLPLUG_GEN_IMPLEMENTATION',
+ '-DLIBO_INTERNAL_ONLY',
+ '-DUSE_RANDR'],
+ include_directories: [main_inc, udkh_inc, offapi_inc, 'inc'],
+ link_with: [vcl_lib,
+ tl_lib,
+ utl_lib,
+ sot_lib,
+ ucbhelper_lib,
+ basegfx_lib,
+ comphelper_lib,
+ cppuhelper_lib,
+ i18nlangtag_lib,
+ i18nutil_lib,
+ cppu_lib,
+ sal_lib,
+ ],
+ dependencies: [harfbuzz_dep, freetype_dep, cairo_dep, epoxy_dep, xrender_dep, xrandr_dep, xext_dep, sm_dep, ice_dep, x11_dep],
+ install: true,
+)
+
executable('svdem',
'workben/svdem.cxx',
udk_fake_h, off_fake_h,
@@ -482,3 +542,23 @@ executable('svdem',
link_with: [tl_lib, sal_lib, vcl_lib, cppu_lib, cppuhelper_lib, comphelper_lib],
install: true,
)
+
+executable('vcldemo',
+ 'workben/vcldemo.cxx',
+ 'unx/glxtest.cxx',
+ 'source/salmain/salmain.cxx',
+ udk_fake_h, off_fake_h,
+ cpp_args: ['-DLIBO_INTERNAL_ONLY'],
+ include_directories: [main_inc, udkh_inc, offapi_inc, 'inc'],
+ link_with: [basegfx_lib,
+ comphelper_lib,
+ cppu_lib,
+ cppuhelper_lib,
+ tl_lib,
+ sal_lib,
+ salhelper_lib,
+ vcl_lib,
+ ],
+ install: true,
+ dependencies: [harfbuzz_dep, dl_dep, x11_dep],
+)