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 <karthik.188@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Karthik Nayak committed
Apr 23, 2025 at 10:15 UTC
7e873eb390204dbe55ec4101fb7ab737f5ae0bc6
2 files changed
+3
-4
contrib/coccinelle/meson.build
+1
-1
@@ -41,7 +41,7 @@ concatenated_rules = custom_target(
41
)
42
43
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()
45
coccinelle_sources += source
46
endforeach
47
meson.build
+2
-3
@@ -633,7 +633,7 @@ builtin_sources = [
633
'builtin/write-tree.c',
634
]
635
636
-third_party_sources = [
636
+third_party_excludes = [
637
':!contrib',
638
':!compat/inet_ntop.c',
639
':!compat/inet_pton.c',
@@ -644,13 +644,12 @@ third_party_sources = [
644
':!sha1collisiondetection',
645
':!sha1dc',
646
':!t/unit-tests/clar',
647
- ':!t/unit-tests/clar',
647
':!t/t[0-9][0-9][0-9][0-9]*',
648
]
649
650
headers_to_check = []
651
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()
653
headers_to_check += header
654
endforeach
655
endif