blob: fb59626816b609c860e99c97e7a45f3172852e46 [file] [log] [blame]
# Copyright (c) 2013 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import os
from tracing_build import check_common
GYPI_FILE = os.path.abspath(os.path.join(os.path.dirname(__file__),
'..', 'trace_viewer.gypi'))
def GypiCheck():
f = open(GYPI_FILE, 'r')
gyp = f.read()
f.close()
data = eval(gyp) # pylint: disable=eval-used
listed_files = []
error = ''
for group in check_common.FILE_GROUPS:
filenames = map(os.path.normpath, data['variables'][group])
error += check_common.CheckListedFilesSorted(GYPI_FILE, group, filenames)
listed_files.extend(filenames)
return error + check_common.CheckCommon(GYPI_FILE, listed_files)
if __name__ == '__main__':
print GypiCheck()