From 961e5711835552e67edf49e5f3bb58144034e514 Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Mon, 3 Apr 2023 15:38:32 +0300 Subject: [PATCH] wip [skip build] --- aedi/target/base.py | 4 ++-- aedi/target/library_tier1.py | 4 ++++ .../lib/cmake/fluidsynth/FluidSynthTargets-release.cmake | 2 -- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/aedi/target/base.py b/aedi/target/base.py index 40ace6dc..3cd2206b 100644 --- a/aedi/target/base.py +++ b/aedi/target/base.py @@ -462,8 +462,8 @@ class CMakeStaticDependencyTarget(CMakeTarget): def keep_module_target(self, state: BuildState, target: str): import_patterns = ( - r'list\s*\(APPEND\s+_IMPORT_CHECK_TARGETS\s+(?P\w+::[\w-]+)[\s)]', - r'list\s*\(APPEND\s+_IMPORT_CHECK_FILES_FOR_(?P\w+::[\w-]+)\s', + r'list\s*\(APPEND\s+_cmake_import_check_targets\s+(?P\w+::[\w-]+)[\s)]', + r'list\s*\(APPEND\s+_cmake_import_check_files_for_(?P\w+::[\w-]+)\s', ) import_regexes = [re.compile(regex, re.IGNORECASE) for regex in import_patterns] diff --git a/aedi/target/library_tier1.py b/aedi/target/library_tier1.py index 887f6156..9486199c 100644 --- a/aedi/target/library_tier1.py +++ b/aedi/target/library_tier1.py @@ -113,6 +113,10 @@ class FluidSynthTarget(base.CMakeStaticDependencyTarget): super().configure(state) + def post_build(self, state: BuildState): + super().prepare_source(state) + self.keep_module_target(state, 'FluidSynth::libfluidsynth') + class GettextTarget(base.ConfigureMakeStaticDependencyTarget): def __init__(self, name='gettext'): diff --git a/deps/fluidsynth/lib/cmake/fluidsynth/FluidSynthTargets-release.cmake b/deps/fluidsynth/lib/cmake/fluidsynth/FluidSynthTargets-release.cmake index b82fd09a..a940dea3 100644 --- a/deps/fluidsynth/lib/cmake/fluidsynth/FluidSynthTargets-release.cmake +++ b/deps/fluidsynth/lib/cmake/fluidsynth/FluidSynthTargets-release.cmake @@ -11,8 +11,6 @@ set_target_properties(FluidSynth::fluidsynth PROPERTIES IMPORTED_LOCATION_RELEASE "${_IMPORT_PREFIX}/bin/fluidsynth" ) -#list(APPEND _cmake_import_check_targets FluidSynth::fluidsynth ) -#list(APPEND _cmake_import_check_files_for_FluidSynth::fluidsynth "${_IMPORT_PREFIX}/bin/fluidsynth" ) # Import target "FluidSynth::libfluidsynth" for configuration "Release" set_property(TARGET FluidSynth::libfluidsynth APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE)