blob: f7f87b3c9acd71b954620d66bf8efd52255bf583 [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 sys
import os
tracing_path = os.path.abspath(os.path.join(os.path.dirname(__file__),
'..', '..'))
if tracing_path not in sys.path:
sys.path.append(tracing_path)
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)
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()