| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # | 2 # |
| 3 # Copyright 2014 PDFium Authors. All rights reserved. | 3 # Copyright 2014 PDFium Authors. All rights reserved. |
| 4 # Use of this source code is governed by a BSD-style license that can be | 4 # Use of this source code is governed by a BSD-style license that can be |
| 5 # found in the LICENSE file. | 5 # found in the LICENSE file. |
| 6 | 6 |
| 7 # This script is wrapper for PDFium that adds some support for how GYP | 7 # This script is wrapper for PDFium that adds some support for how GYP |
| 8 # is invoked by PDFium beyond what can be done in the gclient hooks. | 8 # is invoked by PDFium beyond what can be done in the gclient hooks. |
| 9 | 9 |
| 10 import os | 10 import os |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 args.extend(['-D', 'gyp_output_dir=out']) | 35 args.extend(['-D', 'gyp_output_dir=out']) |
| 36 | 36 |
| 37 # Set the GYP DEPTH variable to the root of the PDFium project. | 37 # Set the GYP DEPTH variable to the root of the PDFium project. |
| 38 args.append('--depth=' + os.path.relpath(pdfium_root)) | 38 args.append('--depth=' + os.path.relpath(pdfium_root)) |
| 39 | 39 |
| 40 print 'Updating projects from gyp files...' | 40 print 'Updating projects from gyp files...' |
| 41 sys.stdout.flush() | 41 sys.stdout.flush() |
| 42 | 42 |
| 43 run_gyp(args) | 43 run_gyp(args) |
| 44 | 44 |
| 45 |
| 45 if __name__ == '__main__': | 46 if __name__ == '__main__': |
| 46 sys.exit(main()) | 47 sys.exit(main()) |
| OLD | NEW |