[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[freetype2] master b4ca23bed: * meson.build: Define DLL_EXPORT for share
From: |
Werner Lemberg |
Subject: |
[freetype2] master b4ca23bed: * meson.build: Define DLL_EXPORT for shared library only. |
Date: |
Sat, 12 Oct 2024 07:03:09 -0400 (EDT) |
branch: master
commit b4ca23bed171ec8ed19b0e1b8d139ef617147729
Author: Marian Klymov <nekto1989@gmail.com>
Commit: Alexei Podtelezhnikov (Алексей Подтележников) <apodtele@gmail.com>
* meson.build: Define DLL_EXPORT for shared library only.
Fixes #1298.
---
meson.build | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/meson.build b/meson.build
index 8fe11bb21..cfbb5b9f5 100644
--- a/meson.build
+++ b/meson.build
@@ -383,7 +383,8 @@ ftoption_h = custom_target('ftoption.h',
ft2_sources += ftoption_h
ft2_defines += ['-DFT_CONFIG_OPTIONS_H=<ftoption.h>']
-if host_machine.system() == 'windows'
+if host_machine.system() == 'windows' and \
+ get_option('default_library') == 'shared'
ft2_defines += ['-DDLL_EXPORT=1']
endif
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [freetype2] master b4ca23bed: * meson.build: Define DLL_EXPORT for shared library only.,
Werner Lemberg <=