Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 38 additions & 0 deletions c++/examples/meson.build
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
executable(
'mdns',
'mdns.cc',
link_with: [
libgensiomdnscpp,
libgensiooshcpp,
libgensioosh,
libgensio,
],
include_directories: [top_inc, inc_inc, cpp_inc],
install: false,
)

executable(
'telnet_client',
'telnet_client.cc',
link_with: [
libgensiooshcpp,
libgensioosh,
libgensiocpp,
libgensio,
],
include_directories: [top_inc, inc_inc, cpp_inc],
install: false,
)

executable(
'telnet_server',
'telnet_server.cc',
link_with: [
libgensiooshcpp,
libgensioosh,
libgensiocpp,
libgensio,
],
include_directories: [top_inc, inc_inc, cpp_inc],
install: false,
)
8 changes: 8 additions & 0 deletions c++/include/gensio/meson.build
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
install_headers(
'gensio',
'gensio_dllvisibility',
'gensiomdns',
'gensioosh',
'gensioosh_dllvisibility',
subdir: meson.project_name()
)
52 changes: 52 additions & 0 deletions c++/lib/meson.build
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
libgensiooshcpp = library(
'gensiooshcpp',
sources: ['gensioosh.cc'],
include_directories: [top_inc, inc_inc, cplusplus_inc],
cpp_args: [
'-DBUILDING_GENSIOOSHCPP_DLL',
],
install: true,
soversion: soversion,
link_with: [libgensioosh],
)

pkg.generate(
libgensiooshcpp,
name: 'libgensiooshcpp',
description: 'A C++ wrapper for the gensio library',
)

libgensiocpp = library(
'gensiocpp',
sources: ['gensio.cc'],
include_directories: [top_inc, inc_inc, cplusplus_inc],
cpp_args: [
'-DBUILDING_GENSIOCPP_DLL',
],
install: true,
soversion: soversion,
link_with: [libgensiooshcpp, libgensioosh, libgensio],
)

pkg.generate(
libgensiocpp,
name: 'libgensiocpp',
description: 'A C++ wrapper for the OS handler library for gensio',
)

libgensiomdnscpp = library(
'gensiomdnscpp',
sources: ['gensiomdns.cc'],
include_directories: [top_inc, inc_inc, cplusplus_inc],
cpp_args: [
'-DBUILDING_GENSIOMDNSCPP_DLL',
],
install: true,
soversion: soversion,
link_with: [libgensiomdns, libgensiooshcpp, libgensioosh, libgensiocpp],
)
pkg.generate(
libgensiomdnscpp,
name: 'libgensiomdnscpp',
description: 'A C++ wrapper for the gensiolibrary to abstract MDNS interfaces',
)
8 changes: 8 additions & 0 deletions c++/meson.build
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
add_languages('cpp')

cpp_inc = include_directories('include')

subdir('lib')
subdir('examples')
subdir('tests')
subdir('include/gensio')
25 changes: 25 additions & 0 deletions c++/tests/meson.build
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
executable(
'basic_cpp_test',
'basic_cpp_test.cc',
link_with: [
libgensiooshcpp,
libgensiocpp,
libgensioosh,
libgensio,
],
include_directories: [top_inc, inc_inc, cpp_inc],
install: false,
)

executable(
'serial_test',
'serial_test.cc',
link_with: [
libgensiooshcpp,
libgensiocpp,
libgensioosh,
libgensio,
],
include_directories: [top_inc, inc_inc, cpp_inc],
install: false,
)
Empty file added examples/meson.build
Empty file.
4 changes: 4 additions & 0 deletions glib/include/gensio/meson.build
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
install_headers(
'gensio_glib_dllvisibility.h',
'gensio_glib.h',
)
19 changes: 19 additions & 0 deletions glib/meson.build
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
libgensioglib = library(
'gensioglib',
sources: ['gensio_glib.c'],
include_directories: [top_inc, glib_inc, inc_inc],
link_with: [libgensioosh, libgensio],
dependencies: [found_deps['glib-2.0'], found_deps['openssl']],
install: true,
soversion: soversion,
)

pkg.generate(
libgensioglib,
name: 'libgensioglib',
description: 'Glib bindings for gensio',
)

install_man('gensio_glib_funcs_alloc.3')

subdir('include/gensio')
42 changes: 42 additions & 0 deletions include/gensio/meson.build
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
configure_file(input : 'gensio_version.h.in',
output : 'gensio_version.h',
configuration : version_conf,
install : true,
install_dir : gensio_includedir)

install_headers(
'argvutils.h',
'gensio_acc_gensio.h',
'gensio_addr.h',
'gensio_ax25_addr.h',
'gensio_base.h',
'gensio_buffer.h',
'gensio_circbuf.h',
'gensio_class.h',
'gensio_control.h',
'gensio_deprecated.h',
'gensio_dllvisibility.h',
'gensio_err.h',
'gensio_list.h',
'gensio_ll_fd.h',
'gensio_ll_gensio.h',
'gensio_mdns.h',
'gensio_os_funcs_public.h',
'gensio_os_funcs.h',
'gensio_osops_addrinfo.h',
'gensio_osops_env.h',
'gensio_osops_stdsock.h',
'gensio_osops.h',
'gensio_selector.h',
'gensio_time.h',
'gensio_types.h',
'gensio_unix.h',
'gensio_utils.h',
'gensio_win.h',
'gensio.h',
'gensioosh_dllvisibility.h',
'netif.h',
'selector.h',
'sergensio_class.h',
'sergensio.h',
)
1 change: 1 addition & 0 deletions include/meson.build
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
subdir('gensio')
Loading