waf: ap_library: make headers whitelist portable

Otherwise it won't work for platforms that don't use Unix style paths.
This commit is contained in:
Gustavo Jose de Sousa 2016-08-26 11:45:42 -03:00 committed by Lucas De Marchi
parent 733786830d
commit 87862a08ab

View File

@ -134,6 +134,7 @@ class ap_library_check_headers(Task.Task):
whitelist = (
'libraries/AP_Vehicle/AP_Vehicle_Type.h',
)
whitelist = tuple(os.path.join(*p.split('/')) for p in whitelist)
def run(self):
for n in self.headers: