~sircmpwn/public-inbox

fdicons: Expose only fd_icon_* functions to library v1 PROPOSED

Tom Lebreux
Tom Lebreux: 1
 Expose only fd_icon_* functions to library

 2 files changed, 10 insertions(+), 0 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~sircmpwn/public-inbox/patches/9827/mbox | git am -3
Learn more about email & git

[PATCH fdicons] Expose only fd_icon_* functions to library Export this patch

Tom Lebreux
Make sure we don't export unwanted symbols (eg: ini_* functions)
---
Feel free to ignore that one, but I think it's cleaner to just export fd_icon_*
symbols.
 fdicons.syms | 6 ++++++
 meson.build  | 4 ++++
 2 files changed, 10 insertions(+)
 create mode 100644 fdicons.syms

diff --git a/fdicons.syms b/fdicons.syms
new file mode 100644
index 000000000000..37a031217bab
--- /dev/null
+++ b/fdicons.syms
@@ -0,0 +1,6 @@
{
	global:
		fd_icon_*;
	local:
		*;
};
diff --git a/meson.build b/meson.build
index 6e5cbb5fd0e0..ffd3d3633c12 100644
--- a/meson.build
+++ b/meson.build
@@ -43,6 +43,9 @@ fdi_inc = include_directories('.', 'include')

subdir('include')

symbols_file = 'fdicons.syms'
symbols_flag = '-Wl,--version-script,@0@/@1@'.format(meson.current_source_dir(), symbols_file)

libfdicons = library(
	'libfdicons',
	sources: files(
@@ -53,6 +56,7 @@ libfdicons = library(
	version: '.'.join(so_version),
	include_directories: fdi_inc,
	install: true,
	link_args: symbols_flag,
)

pkgconfig = import('pkgconfig')
-- 
2.25.0
View this thread in the archives