| OLD | NEW |
| 1 #!/usr/bin/python | 1 #!/usr/bin/env python |
| 2 # | |
| 3 # Copyright (c) 2011 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 4 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
| 5 # found in the LICENSE file. | 4 # found in the LICENSE file. |
| 6 | 5 |
| 7 """code generator for GLES2 command buffers.""" | 6 """code generator for GLES2 command buffers.""" |
| 8 | 7 |
| 9 import os | 8 import os |
| 10 import os.path | 9 import os.path |
| 11 import sys | 10 import sys |
| 12 import re | 11 import re |
| (...skipping 5964 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5977 gen.WriteCommonUtilsImpl("common/gles2_cmd_utils_implementation_autogen.h") | 5976 gen.WriteCommonUtilsImpl("common/gles2_cmd_utils_implementation_autogen.h") |
| 5978 | 5977 |
| 5979 if options.generate_command_id_tests: | 5978 if options.generate_command_id_tests: |
| 5980 gen.WriteCommandIdTest("common/gles2_cmd_id_test_autogen.h") | 5979 gen.WriteCommandIdTest("common/gles2_cmd_id_test_autogen.h") |
| 5981 | 5980 |
| 5982 if options.generate_docs: | 5981 if options.generate_docs: |
| 5983 gen.WriteDocs("docs/gles2_cmd_format_docs_autogen.h") | 5982 gen.WriteDocs("docs/gles2_cmd_format_docs_autogen.h") |
| 5984 | 5983 |
| 5985 if gen.errors > 0: | 5984 if gen.errors > 0: |
| 5986 print "%d errors" % gen.errors | 5985 print "%d errors" % gen.errors |
| 5987 sys.exit(1) | 5986 return 1 |
| 5987 return 0 |
| 5988 |
| 5988 | 5989 |
| 5989 if __name__ == '__main__': | 5990 if __name__ == '__main__': |
| 5990 main(sys.argv[1:]) | 5991 sys.exit(main(sys.argv[1:])) |
| OLD | NEW |