OLD | NEW |
1 #!/usr/bin/python | 1 #!/usr/bin/python |
2 # | 2 # |
3 # Copyright (C) 2009 Google Inc. All rights reserved. | 3 # Copyright (C) 2009 Google Inc. All rights reserved. |
4 # | 4 # |
5 # Redistribution and use in source and binary forms, with or without | 5 # Redistribution and use in source and binary forms, with or without |
6 # modification, are permitted provided that the following conditions are | 6 # modification, are permitted provided that the following conditions are |
7 # met: | 7 # met: |
8 # | 8 # |
9 # * Redistributions of source code must retain the above copyright | 9 # * Redistributions of source code must retain the above copyright |
10 # notice, this list of conditions and the following disclaimer. | 10 # notice, this list of conditions and the following disclaimer. |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 import re | 47 import re |
48 import subprocess | 48 import subprocess |
49 import sys | 49 import sys |
50 | 50 |
51 # A regexp for finding Conditional attributes in interface definitions. | 51 # A regexp for finding Conditional attributes in interface definitions. |
52 conditionalPattern = re.compile('interface[\s]*\[[^\]]*Conditional=([\_0-9a-zA-Z
&|]*)') | 52 conditionalPattern = re.compile('interface[\s]*\[[^\]]*Conditional=([\_0-9a-zA-Z
&|]*)') |
53 | 53 |
54 copyrightTemplate = """/* | 54 copyrightTemplate = """/* |
55 * THIS FILE WAS AUTOMATICALLY GENERATED, DO NOT EDIT. | 55 * THIS FILE WAS AUTOMATICALLY GENERATED, DO NOT EDIT. |
56 * | 56 * |
57 * This file was generated by the make_jni_lists.py script. | 57 * This file was generated by the action_derivedsourcesallinone.py script. |
58 * | 58 * |
59 * Copyright (C) 2009 Google Inc. All rights reserved. | 59 * Copyright (C) 2009 Google Inc. All rights reserved. |
60 * | 60 * |
61 * Redistribution and use in source and binary forms, with or without | 61 * Redistribution and use in source and binary forms, with or without |
62 * modification, are permitted provided that the following conditions | 62 * modification, are permitted provided that the following conditions |
63 * are met: | 63 * are met: |
64 * 1. Redistributions of source code must retain the above copyright | 64 * 1. Redistributions of source code must retain the above copyright |
65 * notice, this list of conditions and the following disclaimer. | 65 * notice, this list of conditions and the following disclaimer. |
66 * 2. Redistributions in binary form must reproduce the above copyright | 66 * 2. Redistributions in binary form must reproduce the above copyright |
67 * notice, this list of conditions and the following disclaimer in the | 67 * notice, this list of conditions and the following disclaimer in the |
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
216 for fileName in outputFileNames: | 216 for fileName in outputFileNames: |
217 partition = outputFileNames.index(fileName) | 217 partition = outputFileNames.index(fileName) |
218 fileContents = generateContent(filesMetaData, partition, len(outputFileN
ames)) | 218 fileContents = generateContent(filesMetaData, partition, len(outputFileN
ames)) |
219 writeContent(fileContents, fileName) | 219 writeContent(fileContents, fileName) |
220 | 220 |
221 return 0 | 221 return 0 |
222 | 222 |
223 | 223 |
224 if __name__ == '__main__': | 224 if __name__ == '__main__': |
225 sys.exit(main(sys.argv)) | 225 sys.exit(main(sys.argv)) |
OLD | NEW |