From 3ce0df52e2bba8a8f788a05c705b90fd10275665 Mon Sep 17 00:00:00 2001 From: Werner Lemberg Date: Tue, 22 Sep 2020 20:05:37 +0200 Subject: [PATCH] [meson] Move auxiliary scripts to `builds/meson`. Suggested by Alexei. * scripts/*.py: Move meson scripts to... * builds/meson/*.py: ... this new location. * meson.build: Updated. --- ChangeLog | 11 +++++++++++ .../meson}/extract_freetype_version.py | 0 .../meson}/extract_libtool_version.py | 0 .../meson}/generate_reference_docs.py | 0 {scripts => builds/meson}/parse_modules_cfg.py | 0 {scripts => builds/meson}/process_ftoption_h.py | 0 meson.build | 16 ++++++++-------- 7 files changed, 19 insertions(+), 8 deletions(-) rename {scripts => builds/meson}/extract_freetype_version.py (100%) rename {scripts => builds/meson}/extract_libtool_version.py (100%) rename {scripts => builds/meson}/generate_reference_docs.py (100%) rename {scripts => builds/meson}/parse_modules_cfg.py (100%) rename {scripts => builds/meson}/process_ftoption_h.py (100%) diff --git a/ChangeLog b/ChangeLog index 574e818f2..9982953e1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,14 @@ +2020-09-22 Werner Lemberg + + [meson] Move auxiliary scripts to `builds/meson`. + + Suggested by Alexei. + + * scripts/*.py: Move meson scripts to... + * builds/meson/*.py: ... this new location. + + * meson.build: Updated. + 2020-09-21 David Turner Add python script for building tarballs. diff --git a/scripts/extract_freetype_version.py b/builds/meson/extract_freetype_version.py similarity index 100% rename from scripts/extract_freetype_version.py rename to builds/meson/extract_freetype_version.py diff --git a/scripts/extract_libtool_version.py b/builds/meson/extract_libtool_version.py similarity index 100% rename from scripts/extract_libtool_version.py rename to builds/meson/extract_libtool_version.py diff --git a/scripts/generate_reference_docs.py b/builds/meson/generate_reference_docs.py similarity index 100% rename from scripts/generate_reference_docs.py rename to builds/meson/generate_reference_docs.py diff --git a/scripts/parse_modules_cfg.py b/builds/meson/parse_modules_cfg.py similarity index 100% rename from scripts/parse_modules_cfg.py rename to builds/meson/parse_modules_cfg.py diff --git a/scripts/process_ftoption_h.py b/builds/meson/process_ftoption_h.py similarity index 100% rename from scripts/process_ftoption_h.py rename to builds/meson/process_ftoption_h.py diff --git a/meson.build b/meson.build index 35254093a..ea304954e 100644 --- a/meson.build +++ b/meson.build @@ -29,11 +29,11 @@ python = import('python') python_exe = python.find_installation(required: true) ft2_version = run_command(python_exe, - files('scripts/extract_freetype_version.py'), + files('builds/meson/extract_freetype_version.py'), files('include/freetype/freetype.h')).stdout().strip() ft2_libtool_version = run_command(python_exe, - files('scripts/extract_libtool_version.py'), + files('builds/meson/extract_libtool_version.py'), '--soversion', files('builds/unix/configure.raw')).stdout().strip() @@ -46,7 +46,7 @@ ft2_includes = include_directories('include') ftmodule_h = custom_target('ftmodule.h', output: 'ftmodule.h', input: 'modules.cfg', - command: [python_exe, files('scripts/parse_modules_cfg.py'), + command: [python_exe, files('builds/meson/parse_modules_cfg.py'), '--format=ftmodule.h', '@INPUT@', '--output', '@OUTPUT@'], install: true, install_dir: 'include/freetype2/freetype/config', @@ -57,7 +57,7 @@ ft2_sources = [ftmodule_h] # FreeType 2 modules. ft_main_modules = run_command(python_exe, - files('scripts/parse_modules_cfg.py'), + files('builds/meson/parse_modules_cfg.py'), '--format=main-modules', files('modules.cfg')).stdout().strip().split() @@ -78,7 +78,7 @@ endforeach # NOTE: The `gzip` and `bzip2` aux modules are handled through options. ft_aux_modules = run_command(python_exe, - files('scripts/parse_modules_cfg.py'), + files('builds/meson/parse_modules_cfg.py'), '--format=aux-modules', files('modules.cfg')).stdout().strip().split() @@ -102,7 +102,7 @@ endforeach # Normally configured through `modules.cfg`. base_extensions = run_command(python_exe, - files('scripts/parse_modules_cfg.py'), + files('builds/meson/parse_modules_cfg.py'), '--format=base-extensions-list', files('modules.cfg')).stdout().split() @@ -223,7 +223,7 @@ ft2_deps = [] # Generate `ftoption.h` based on available dependencies. ftoption_command = [python_exe, - files('scripts/process_ftoption_h.py'), + files('builds/meson/process_ftoption_h.py'), '@INPUT@', '--output=@OUTPUT@'] # GZip support @@ -358,7 +358,7 @@ gen_docs = custom_target('freetype2 reference documentation', output: 'docs', input: ft2_public_headers + ft2_config_headers, command: [python_exe, - files('scripts/generate_reference_docs.py'), + files('builds/meson/generate_reference_docs.py'), '--version=' + ft2_version, '--input-dir=' + meson.source_root(), '--output-dir=@OUTPUT@'