Changeset 184856 in webkit
- Timestamp:
- May 26, 2015 4:26:51 AM (9 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit2/ChangeLog
r184853 r184856 1 2015-05-26 Milan Crha <mcrha@redhat.com> 2 3 [GTK] Expand wildcards inside generate-inspector-gresource-manifest.py 4 https://bugs.webkit.org/show_bug.cgi?id=138134 5 6 Reviewed by Žan Doberšek. 7 8 * PlatformGTK.cmake: Command line with expanded resources exceeds 32KB, which 9 is a limit on Windows. It's better to expand wildcards inside the python script. 10 1 11 2015-05-25 Dan Bernstein <mitz@apple.com> 2 12 -
trunk/Source/WebKit2/PlatformGTK.cmake
r184536 r184856 412 412 ) 413 413 414 file(GLOBInspectorFiles414 set(InspectorFiles 415 415 ${CMAKE_SOURCE_DIR}/Source/WebInspectorUI/UserInterface/*.html 416 416 ${CMAKE_SOURCE_DIR}/Source/WebInspectorUI/UserInterface/Base/*.js … … 427 427 ${CMAKE_SOURCE_DIR}/Source/WebInspectorUI/UserInterface/Images/gtk/*.png 428 428 ${CMAKE_SOURCE_DIR}/Source/WebInspectorUI/UserInterface/Images/gtk/*.svg 429 ${CMAKE_SOURCE_DIR}/Source/WebInspectorUI/Localizations/en.lproj/localizedStrings.js 430 ${DERIVED_SOURCES_WEBINSPECTORUI_DIR}/UserInterface/Protocol/InspectorBackendCommands.js 431 ) 432 433 file(GLOB InspectorFilesDependencies 434 ${InspectorFiles} 429 435 ) 430 436 … … 435 441 DEPENDS ${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}/inspector/InspectorBackendCommands.js 436 442 COMMAND cp ${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}/inspector/InspectorBackendCommands.js ${DERIVED_SOURCES_WEBINSPECTORUI_DIR}/UserInterface/Protocol/InspectorBackendCommands.js 437 )438 439 list(APPEND InspectorFiles440 ${CMAKE_SOURCE_DIR}/Source/WebInspectorUI/Localizations/en.lproj/localizedStrings.js441 ${DERIVED_SOURCES_WEBINSPECTORUI_DIR}/UserInterface/Protocol/InspectorBackendCommands.js442 443 ) 443 444 … … 580 581 add_custom_command( 581 582 OUTPUT ${DERIVED_SOURCES_WEBKIT2GTK_DIR}/InspectorGResourceBundle.xml 582 DEPENDS ${InspectorFiles }583 DEPENDS ${InspectorFilesDependencies} 583 584 ${TOOLS_DIR}/gtk/generate-inspector-gresource-manifest.py 584 585 COMMAND ${TOOLS_DIR}/gtk/generate-inspector-gresource-manifest.py --output=${DERIVED_SOURCES_WEBKIT2GTK_DIR}/InspectorGResourceBundle.xml ${InspectorFiles} -
trunk/Tools/ChangeLog
r184851 r184856 1 2015-05-26 Milan Crha <mcrha@redhat.com> 2 3 [GTK] Expand wildcards inside generate-inspector-gresource-manifest.py 4 https://bugs.webkit.org/show_bug.cgi?id=138134 5 6 Reviewed by Žan Doberšek. 7 8 * gtk/generate-inspector-gresource-manifest.py: 9 (get_filenames): Command line with expanded resources exceeds 32KB, which 10 is a limit on Windows. It's better to expand wildcards inside the python script. 11 1 12 2015-05-25 Carlos Garcia Campos <cgarcia@igalia.com> 2 13 -
trunk/Tools/gtk/generate-inspector-gresource-manifest.py
r173753 r184856 17 17 18 18 import argparse 19 import glob 19 20 import os 20 21 import sys … … 27 28 filenames = [] 28 29 29 for filename in args: 30 base_dir_index = filename.rfind(BASE_DIR) 31 if base_dir_index != -1: 32 filenames.append(filename[base_dir_index + len(BASE_DIR):]) 30 for pattern in args: 31 paths = glob.glob(pattern) 32 for filename in paths: 33 base_dir_index = filename.rfind(BASE_DIR) 34 if base_dir_index != -1: 35 name = filename[base_dir_index + len(BASE_DIR):] 36 # The result should use forward slashes, thus make sure any os-specific 37 # separator, added by the glob.glob() call, is properly replaced 38 if os.sep != '/': 39 name = name.replace(os.sep, '/') 40 filenames.append(name) 33 41 return filenames 34 42
Note: See TracChangeset
for help on using the changeset viewer.