build: add meson build instructions
Add the build instructions for the actual source files and tests.
+#
+# target: libdbus-broker.so
+# We build an internal, shared library with all the bits used by the broker.
+# This library is then linked into the real broker, but also all our internal
+# tests.
+#
+
+libdbus_broker_private = static_library('dbus-broker-private',
+ [
+ 'dbus-message.c'
+ ],
+ c_args: [
+ '-fvisibility=hidden',
+ '-fno-common'
+ ],
+ dependencies: [
+ dep_clist,
+ dep_crbtree,
+ dep_csundry
+ ],
+ pic: true)
+libdbus_broker_dep = declare_dependency(include_directories: include_directories('.'),
+ link_with: libdbus_broker_private,
+ dependencies: [
+ dep_clist,
+ dep_crbtree,
+ dep_csundry
+ ],
+ version: meson.project_version())
+
+#
+# target: test-*
+# Bunch of tests for broker internals. They all link against the static broker
+# library so they get access to all internal functions and state.
+#
+
+test_message = executable('test-message', ['test-message.c'], dependencies: libdbus_broker_dep)
+test('D-Bus Message Abstraction', test_message)
