shithub: freetype+ttf2subf

Download patch

ref: 1b69fb9bdb78265707b00e97ab274c42a2334670
parent: 947e47528345ab821b4d0fc7d3f0472fa236045e
author: Xavier Claessens <[email protected]>
date: Mon Oct 26 07:25:08 EDT 2020

* meson.build: Set project version.

git/fs: mount .git/fs: mount/attach disallowed
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2021-02-09  Xavier Claessens  <[email protected]>
+
+	* meson.build: Set project version.
+
 2021-02-04  Werner Lemberg  <[email protected]>
 
 	[base] Fix Netpbm tracing message.
--- a/meson.build
+++ b/meson.build
@@ -13,9 +13,10 @@
 
 
 project('freetype2', 'c',
-  version: '2.10.4',
   meson_version: '>= 0.55.0',
   default_options: ['default_library=both'],
+  version: run_command('builds/meson/extract_freetype_version.py',
+                       'include/freetype/freetype.h').stdout().strip(),
 )
 
 #
@@ -29,10 +30,6 @@
 python = import('python')
 python_exe = python.find_installation(required: true)
 
-ft2_version = run_command(python_exe,
-  files('builds/meson/extract_freetype_version.py'),
-  files('include/freetype/freetype.h')).stdout().strip()
-
 ft2_so_version = run_command(python_exe,
   files('builds/meson/extract_libtool_version.py'),
   '--soversion',
@@ -378,7 +375,7 @@
   input: ft2_public_headers + ft2_config_headers,
   command: [python_exe,
     files('builds/meson/generate_reference_docs.py'),
-    '--version=' + ft2_version,
+    '--version=' + meson.project_version(),
     '--input-dir=' + meson.source_root(),
     '--output-dir=@OUTPUT@'
   ],