Support ZynAddSubFx with MSVC (#6561)

This commit is contained in:
Dominic Clark
2023-01-02 23:42:46 +00:00
committed by GitHub
parent 79def0c3b5
commit d95c89760a
10 changed files with 120 additions and 135 deletions

View File

@@ -77,7 +77,9 @@ exclude_files = re.compile(
'plugins/MidiExport/MidiFile.hpp|'
'plugins/ReverbSC/[a-z]|'
'plugins/Sf2Player/fluidsynthshims.h|'
'/portsmf/'
'/portsmf/|'
# only forward to headers that are not ours:
'plugins/ZynAddSubFx/ThreadShims.h'
)
files = [Path(f) for f in result.stdout.splitlines() if not exclude_files.search(f)]
@@ -131,7 +133,7 @@ for cur_file in files:
if cur_file.is_file():
cur_text = cur_file.read_text(errors='replace')
if str(cur_file) not in known_no_namespace_lmms:
if cur_file.as_posix() not in known_no_namespace_lmms:
namespace_pattern.search(cur_text) or error(cur_file, None, f'File has no namespace lmms')
header_guard = str(cur_file).endswith('.h')