summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMarti Maria <marti.maria@littlecms.com>2022-12-06 20:38:09 +0100
committerMarti Maria <marti.maria@littlecms.com>2022-12-06 20:38:09 +0100
commitef7bd0de652e2a3295026093225c7820611ee0c8 (patch)
treea56fd1bc129195e2eb654646ddb29751267c3f25 /src
parent9e910fd3af8522a73106c962804143c80d6b89cf (diff)
parent9bb6117aecf2889058c5deb3d876afd8302ca680 (diff)
downloadlcms2-ef7bd0de652e2a3295026093225c7820611ee0c8.tar.gz
Merge branch 'master' of https://github.com/mm2/Little-CMS
Diffstat (limited to 'src')
-rw-r--r--src/lcms2.def2
-rw-r--r--src/lcms2.rc.in52
-rw-r--r--src/meson.build56
3 files changed, 108 insertions, 2 deletions
diff --git a/src/lcms2.def b/src/lcms2.def
index f3e4779..9bf2a4f 100644
--- a/src/lcms2.def
+++ b/src/lcms2.def
@@ -1,5 +1,3 @@
-LIBRARY LCMS2.DLL
-
EXPORTS
_cms15Fixed16toDouble = _cms15Fixed16toDouble
diff --git a/src/lcms2.rc.in b/src/lcms2.rc.in
new file mode 100644
index 0000000..ae82d9e
--- /dev/null
+++ b/src/lcms2.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", "lcms color engine"
+ VALUE "FileVersion", @LCMS2_VERSION@
+ VALUE "InternalName", "lcms2"
+ VALUE "LegalCopyright", "Copyright (C) Marti Maria 2022"
+ VALUE "OriginalFilename", "lcms2.dll"
+ VALUE "ProductName", "LittleCMS color engine"
+ VALUE "ProductVersion", @LCMS2_VERSION@
+ }
+ }
+ BLOCK "VarFileInfo"
+ {
+ VALUE "Translation", 0x409, 1252
+ }
+}
diff --git a/src/meson.build b/src/meson.build
new file mode 100644
index 0000000..236294b
--- /dev/null
+++ b/src/meson.build
@@ -0,0 +1,56 @@
+lcms2_srcs = files(
+ 'cmsalpha.c',
+ 'cmscam02.c',
+ 'cmscgats.c',
+ 'cmscnvrt.c',
+ 'cmserr.c',
+ 'cmsgamma.c',
+ 'cmsgmt.c',
+ 'cmshalf.c',
+ 'cmsintrp.c',
+ 'cmsio0.c',
+ 'cmsio1.c',
+ 'cmslut.c',
+ 'cmsmd5.c',
+ 'cmsmtrx.c',
+ 'cmsnamed.c',
+ 'cmsopt.c',
+ 'cmspack.c',
+ 'cmspcs.c',
+ 'cmsplugin.c',
+ 'cmsps2.c',
+ 'cmssamp.c',
+ 'cmssm.c',
+ 'cmstypes.c',
+ 'cmsvirt.c',
+ 'cmswtpnt.c',
+ 'cmsxform.c',
+)
+
+if host_machine.system() == 'windows'
+ lcms2_rc = configure_file(
+ input: 'lcms2.rc.in',
+ configuration: version_cfg,
+ output: 'lcms2.rc',
+ )
+
+ lcms2_srcs += win.compile_resources(lcms2_rc)
+ cargs += '-DCMS_DLL_BUILD=1'
+endif
+
+liblcms2_lib = library(
+ 'lcms2',
+ lcms2_srcs,
+ include_directories: inc_dirs,
+ gnu_symbol_visibility: 'hidden',
+ dependencies: deps,
+ c_args: cargs,
+ version: library_version,
+ vs_module_defs: 'lcms2.def',
+ install: true,
+)
+
+liblcms2_dep = declare_dependency(
+ link_with: liblcms2_lib,
+ include_directories: [inc_dirs, include_directories('.')],
+)