Skip to content

Commit ebffb3a

Browse files
committed
meson: build a shared library for the standalone version
More and more users want a shared library of the standalone version. Here we go and finally add it to our build. Suggested-by: Stefan Lehmann <stlm@posteo.de> Signed-off-by: Patrick Bruenn <p.bruenn@beckhoff.com>
1 parent 8d137b8 commit ebffb3a

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

meson.build

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,15 @@ adslib = static_library('AdsLib',
9595
install: true,
9696
)
9797

98-
install_libs = [ adslib ]
98+
adslib_so = shared_library('adslib',
99+
[common_files, router_files],
100+
cpp_args: '-DBHF_ADS_EXPORT_C',
101+
include_directories: inc,
102+
install: true,
103+
dependencies: libs,
104+
)
105+
106+
install_libs = [ adslib, adslib_so ]
99107

100108
adslib_dep = declare_dependency(
101109
include_directories : inc,

0 commit comments

Comments
 (0)