diff options
author | L. E. Segovia <amy@amyspark.me> | 2022-12-03 11:27:08 -0300 |
---|---|---|
committer | L. E. Segovia <amy@amyspark.me> | 2022-12-06 17:53:16 +0000 |
commit | aef041f9f0362ce9b3fa266935aa3691c1a70eb2 (patch) | |
tree | 884d2d1de8422d35fce0a879188a4c210c8f5891 | |
parent | 6e5a884018d659eb40414963330cec2586a88943 (diff) | |
download | lcms2-aef041f9f0362ce9b3fa266935aa3691c1a70eb2.tar.gz |
meson: Add the DLL metadata for the fast float plugin
-rw-r--r-- | plugins/fast_float/src/lcms2_fast_float.rc.in | 52 | ||||
-rw-r--r-- | plugins/fast_float/src/meson.build | 10 |
2 files changed, 62 insertions, 0 deletions
diff --git a/plugins/fast_float/src/lcms2_fast_float.rc.in b/plugins/fast_float/src/lcms2_fast_float.rc.in new file mode 100644 index 0000000..18554dc --- /dev/null +++ b/plugins/fast_float/src/lcms2_fast_float.rc.in @@ -0,0 +1,52 @@ +//--------------------------------------------------------------------------------- +// +// Little Color Management System, multithread extensions +// Copyright (c) 1998-2022 Marti Maria Saguer, all rights reserved +// +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see <http://www.gnu.org/licenses/>. +// +//--------------------------------------------------------------------------------- + +#include <Windows.h> + +1 VERSIONINFO +FILEVERSION @LCMS2_VERSION_MAJOR@, @LCMS2_VERSION_MINOR@, @LCMS2_VERSION_MICRO@, 0 +PRODUCTVERSION @LCMS2_VERSION_MAJOR@, @LCMS2_VERSION_MINOR@, @LCMS2_VERSION_MICRO@, 0 +FILEFLAGSMASK 0x0L +#ifdef _DEBUG +FILEFLAGS VS_FF_DEBUG +#endif +FILEOS VOS_NT_WINDOWS32 +FILETYPE VFT_DLL +{ + BLOCK "StringFileInfo" + { + BLOCK "040904e4" + { + VALUE "CompanyName", "Marti Maria" + VALUE "FileDescription", "Fast Float plugin" + VALUE "FileVersion", @LCMS2_VERSION@ + VALUE "InternalName", "lcms2_fast_float" + VALUE "LegalCopyright", "Copyright (C) Marti Maria 2022, GPL-3.0-or-later" + VALUE "OriginalFilename", "lcms2_fast_float.dll" + VALUE "ProductName", "LittleCMS color engine" + VALUE "ProductVersion", @LCMS2_VERSION@ + } + } + BLOCK "VarFileInfo" + { + VALUE "Translation", 0x409, 1252 + } +} diff --git a/plugins/fast_float/src/meson.build b/plugins/fast_float/src/meson.build index 0e15039..e67475b 100644 --- a/plugins/fast_float/src/meson.build +++ b/plugins/fast_float/src/meson.build @@ -18,6 +18,16 @@ lcms2_fast_float_sources = files( lcms2_fast_float_incdir = include_directories('../include', '.') +if host_machine.system() == 'windows' + lcms2_fast_float_rc = configure_file( + input: 'lcms2_fast_float.rc.in', + configuration: version_cfg, + output: 'lcms2_fast_float.rc', + ) + + lcms2_fast_float_sources += win.compile_resources(lcms2_fast_float_rc) +endif + liblcms2_fast_float = library( 'lcms2_fast_float', lcms2_fast_float_sources, |