The Meson Build System
http://mesonbuild.com/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
465 B
22 lines
465 B
4 years ago
|
#! /usr/bin/env python3
|
||
|
|
||
|
import json
|
||
|
import sys
|
||
|
import os
|
||
|
|
||
|
cc = None
|
||
|
output = None
|
||
|
|
||
|
# Only the ninja backend produces compile_commands.json
|
||
|
if sys.argv[1] == 'ninja':
|
||
|
with open('compile_commands.json', 'r') as f:
|
||
|
cc = json.load(f)
|
||
|
output = set((x['output'] for x in cc))
|
||
|
|
||
|
for obj in sys.argv[2:]:
|
||
|
if not os.path.exists(obj):
|
||
|
sys.exit(1)
|
||
|
if sys.argv[1] == 'ninja' and obj not in output:
|
||
|
sys.exit(1)
|
||
|
print('Verified', obj)
|