[M73 Dev][EFL] Fix errors to generate ninja files
[platform/framework/web/chromium-efl.git] / build / gyp_chromium.py
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
4
5 """This script is now only used by the closure_compilation builders."""
6
7 import gyp_environment
8 import os
9 import sys
10
11 script_dir = os.path.dirname(os.path.realpath(__file__))
12 chrome_src = os.path.abspath(os.path.join(script_dir, os.pardir))
13
14 sys.path.insert(0, os.path.join(chrome_src, 'tools', 'gyp', 'pylib'))
15 import gyp
16
17
18 def main():
19   gyp_environment.SetEnvironment()
20
21   print 'Updating projects from gyp files...'
22   sys.stdout.flush()
23   sys.exit(gyp.main(sys.argv[1:] + [
24       '--check',
25       '--no-circular-check',
26       '-I', os.path.join(script_dir, 'common.gypi'),
27       '-D', 'gyp_output_dir=out']))
28
29 if __name__ == '__main__':
30   sys.exit(main())