1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
#!/usr/bin/python
# Copyright (c) 2009 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.
# This script is wrapper for O3D when compiling independently of Chromium.
# Like in Chromium, the common.gypi include is forced in.
import os
import sys
chrome_src = os.path.join(os.path.dirname(sys.argv[0]), os.pardir, os.pardir)
o3d_src = os.path.join(os.path.dirname(sys.argv[0]), os.pardir)
try:
import gyp
except ImportError, e:
sys.path.append(os.path.join(chrome_src, 'tools', 'gyp', 'pylib'))
import gyp
if __name__ == '__main__':
args = sys.argv[1:]
# Always include common.gypi
args += ['--depth', '.',
'-I', os.path.join(chrome_src, 'build', 'common.gypi'),
'-I', os.path.join(o3d_src, 'build', 'common_global.gypi'),
'-D', 'mac_deployment_target=10.4']
# Off we go...
sys.exit(gyp.main(args))
|