Changeset 275262 in webkit for trunk/Source/JavaScriptCore/Scripts
- Timestamp:
- Mar 30, 2021, 8:01:11 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/Scripts/make-js-file-arrays.py
r274607 r275262 71 71 72 72 for inputFileName in inputPaths: 73 variableName = os.path.splitext(os.path.basename(inputFileName))[0] 74 sourceURLDirective = "//# sourceURL=__InjectedScript_" + variableName + ".js\n" 73 75 74 76 if is_3: … … 80 82 81 83 if not options.no_minify: 82 characters = jsmin(data)84 characters = sourceURLDirective + jsmin(data) 83 85 else: 84 characters = data86 characters = sourceURLDirective + data 85 87 86 88 if options.fail_if_non_ascii: … … 98 100 size = len(codepoints) 99 101 100 variableName = os.path.splitext(os.path.basename(inputFileName))[0]101 102 102 print('extern const char {0:s}JavaScript[{1:d}];'.format(variableName, size), file=headerFile) 103 103 print('const char {0:s}JavaScript[{1:d}] = {{'.format(variableName, size), file=sourceFile)
Note:
See TracChangeset
for help on using the changeset viewer.