OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 | 2 |
3 # Copyright 2014 The Crashpad Authors. All rights reserved. | 3 # Copyright 2014 The Crashpad Authors. All rights reserved. |
4 # | 4 # |
5 # Licensed under the Apache License, Version 2.0 (the "License"); | 5 # Licensed under the Apache License, Version 2.0 (the "License"); |
6 # you may not use this file except in compliance with the License. | 6 # you may not use this file except in compliance with the License. |
7 # You may obtain a copy of the License at | 7 # You may obtain a copy of the License at |
8 # | 8 # |
9 # http://www.apache.org/licenses/LICENSE-2.0 | 9 # http://www.apache.org/licenses/LICENSE-2.0 |
10 # | 10 # |
(...skipping 12 matching lines...) Expand all Loading... |
23 0, os.path.join(crashpad_dir, 'third_party', 'gyp', 'gyp', 'pylib')) | 23 0, os.path.join(crashpad_dir, 'third_party', 'gyp', 'gyp', 'pylib')) |
24 | 24 |
25 import gyp | 25 import gyp |
26 | 26 |
27 def main(args): | 27 def main(args): |
28 if 'GYP_GENERATORS' not in os.environ: | 28 if 'GYP_GENERATORS' not in os.environ: |
29 os.environ['GYP_GENERATORS'] = 'ninja' | 29 os.environ['GYP_GENERATORS'] = 'ninja' |
30 | 30 |
31 crashpad_dir_or_dot = crashpad_dir if crashpad_dir is not '' else '.' | 31 crashpad_dir_or_dot = crashpad_dir if crashpad_dir is not '' else '.' |
32 | 32 |
| 33 args.extend(['-D', 'crashpad_standalone=1']) |
33 args.extend(['--include', os.path.join(crashpad_dir, | 34 args.extend(['--include', os.path.join(crashpad_dir, |
34 'third_party', | 35 'third_party', |
35 'mini_chromium', | 36 'mini_chromium', |
36 'mini_chromium', | 37 'mini_chromium', |
37 'build', | 38 'build', |
38 'common.gypi')]) | 39 'common.gypi')]) |
39 args.extend(['--depth', crashpad_dir_or_dot]) | 40 args.extend(['--depth', crashpad_dir_or_dot]) |
40 args.append(os.path.join(crashpad_dir, 'crashpad.gyp')) | 41 args.append(os.path.join(crashpad_dir, 'crashpad.gyp')) |
41 | 42 |
42 return gyp.main(args) | 43 return gyp.main(args) |
43 | 44 |
44 if __name__ == '__main__': | 45 if __name__ == '__main__': |
45 sys.exit(main(sys.argv[1:])) | 46 sys.exit(main(sys.argv[1:])) |
OLD | NEW |