Skip to content

Commit 6916324

Browse files
committed
meson: rename 'third_party_sources' to 'third_party_excludes'
The 'third_party_sources' variable was moved to the root 'meson.build' file in the previous commit. The variable is actually used to exclude third party sources, so rename it accordingly to 'third_party_excludes' to avoid confusion. While here, remove a duplicate from the list. Signed-off-by: Karthik Nayak <[email protected]>
1 parent c2b8e7b commit 6916324

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

contrib/coccinelle/meson.build

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ concatenated_rules = custom_target(
4141
)
4242

4343
coccinelle_sources = []
44-
foreach source : run_command(git, '-C', meson.project_source_root(), 'ls-files', '--deduplicate', '*.c', third_party_sources, check: true).stdout().split()
44+
foreach source : run_command(git, '-C', meson.project_source_root(), 'ls-files', '--deduplicate', '*.c', third_party_excludes, check: true).stdout().split()
4545
coccinelle_sources += source
4646
endforeach
4747

meson.build

+2-3
Original file line numberDiff line numberDiff line change
@@ -633,7 +633,7 @@ builtin_sources = [
633633
'builtin/write-tree.c',
634634
]
635635

636-
third_party_sources = [
636+
third_party_excludes = [
637637
':!contrib',
638638
':!compat/inet_ntop.c',
639639
':!compat/inet_pton.c',
@@ -644,13 +644,12 @@ third_party_sources = [
644644
':!sha1collisiondetection',
645645
':!sha1dc',
646646
':!t/unit-tests/clar',
647-
':!t/unit-tests/clar',
648647
':!t/t[0-9][0-9][0-9][0-9]*',
649648
]
650649

651650
headers_to_check = []
652651
if git.found() and fs.exists(meson.project_source_root() / '.git')
653-
foreach header : run_command(git, '-C', meson.project_source_root(), 'ls-files', '--deduplicate', '*.h', third_party_sources, check: true).stdout().split()
652+
foreach header : run_command(git, '-C', meson.project_source_root(), 'ls-files', '--deduplicate', '*.h', third_party_excludes, check: true).stdout().split()
654653
headers_to_check += header
655654
endforeach
656655
endif

0 commit comments

Comments
 (0)