| OLD | NEW |
| 1 #!/usr/bin/python | 1 #!/usr/bin/python |
| 2 | 2 |
| 3 # This script is wrapper for O3D when compiling independently of chromium. | 3 # Copyright (c) 2009 The Chromium Authors. All rights reserved. |
| 4 # Like in chromium, the gyp_chromium.gypi include is forced in. | 4 # Use of this source code is governed by a BSD-style license that can be |
| 5 # found in the LICENSE file. |
| 5 | 6 |
| 6 import glob | 7 # This script is wrapper for O3D when compiling independently of Chromium. |
| 8 # Like in Chromium, the common.gypi include is forced in. |
| 9 |
| 7 import os | 10 import os |
| 8 import shlex | |
| 9 import sys | 11 import sys |
| 10 | 12 |
| 13 chrome_src = os.path.join(os.path.dirname(sys.argv[0]), os.pardir, os.pardir) |
| 14 |
| 11 try: | 15 try: |
| 12 import gyp | 16 import gyp |
| 13 except ImportError, e: | 17 except ImportError, e: |
| 14 sys.path.append(os.path.join(os.path.dirname(sys.argv[0]), '../../tools/gyp/py
lib')) | 18 sys.path.append(os.path.join(chrome_src, 'tools', 'gyp', 'pylib')) |
| 15 import gyp | 19 import gyp |
| 16 | 20 |
| 17 if __name__ == '__main__': | 21 if __name__ == '__main__': |
| 18 args = sys.argv[1:] | 22 args = sys.argv[1:] |
| 19 | 23 |
| 20 # Always include gyp_chromium.gypi | 24 # Always include common.gypi |
| 21 args += ['-I', os.path.join(os.path.dirname(sys.argv[0]),'../../build/gyp_chro
mium.gypi')] | 25 args += ['--depth', '.', |
| 26 '-I', os.path.join(chrome_src, 'build', 'common.gypi'), |
| 27 '-D', 'mac_deployment_target=10.4'] |
| 22 | 28 |
| 23 # Off we go... | 29 # Off we go... |
| 24 sys.exit(gyp.main(args)) | 30 sys.exit(gyp.main(args)) |
| OLD | NEW |