Changeset 148586 in webkit
- Timestamp:
- Apr 16, 2013 6:01:49 PM (11 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/CMakeLists.txt
r148463 r148586 2967 2967 MAIN_DEPENDENCY inspector/Inspector.json 2968 2968 DEPENDS ${WEBCORE_DIR}/inspector/CodeGeneratorInspector.py 2969 COMMAND ${PYTHON_EXECUTABLE} ${WEBCORE_DIR}/inspector/CodeGeneratorInspector.py ${WEBCORE_DIR}/inspector/Inspector.json --output_h_dir "${DERIVED_SOURCES_WEBCORE_DIR}" --output_cpp_dir "${DERIVED_SOURCES_WEBCORE_DIR}" 2969 COMMAND ${PYTHON_EXECUTABLE} ${WEBCORE_DIR}/inspector/CodeGeneratorInspector.py ${WEBCORE_DIR}/inspector/Inspector.json --output_h_dir "${DERIVED_SOURCES_WEBCORE_DIR}" --output_cpp_dir "${DERIVED_SOURCES_WEBCORE_DIR}" --write_always 2970 2970 VERBATIM) 2971 2971 list(APPEND WebCore_SOURCES ${DERIVED_SOURCES_WEBCORE_DIR}/InspectorBackendDispatcher.cpp ${DERIVED_SOURCES_WEBCORE_DIR}/InspectorFrontend.cpp ${DERIVED_SOURCES_WEBCORE_DIR}/InspectorTypeBuilder.cpp) -
trunk/Source/WebCore/ChangeLog
r148585 r148586 1 2013-04-16 Patrick Gansterer <paroga@webkit.org> 2 3 [CMake] Fix dependecy calculation for generated inspector files 4 https://bugs.webkit.org/show_bug.cgi?id=114092 5 6 Reviewed by Brent Fulgham. 7 8 At least in a generated Visual Studio solution the files generated via 9 CodeGeneratorInspector.py are considered outdated all the time because 10 the code generator only touches the file when the content changed. 11 Add an --write_always parameter to the script to touch the file always. 12 13 * CMakeLists.txt: 14 * inspector/CodeGeneratorInspector.py: 15 1 16 2013-04-16 Anders Carlsson <andersca@apple.com> 2 17 -
trunk/Source/WebCore/inspector/CodeGeneratorInspector.py
r144265 r148586 77 77 cmdline_parser.add_option("--output_h_dir") 78 78 cmdline_parser.add_option("--output_cpp_dir") 79 cmdline_parser.add_option("--write_always", action="store_true") 79 80 80 81 try: … … 85 86 output_header_dirname = arg_options.output_h_dir 86 87 output_cpp_dirname = arg_options.output_cpp_dir 88 write_always = arg_options.write_always 87 89 if not output_header_dirname: 88 90 raise Exception("Output .h directory must be specified") … … 93 95 exc = sys.exc_info()[1] 94 96 sys.stderr.write("Failed to parse command-line arguments: %s\n\n" % exc) 95 sys.stderr.write("Usage: <script> Inspector.json --output_h_dir <output_header_dir> --output_cpp_dir <output_cpp_dir> \n")97 sys.stderr.write("Usage: <script> Inspector.json --output_h_dir <output_header_dir> --output_cpp_dir <output_cpp_dir> [--write_always]\n") 96 98 exit(1) 97 99 … … 2344 2346 pass 2345 2347 2346 if text_changed :2348 if text_changed or write_always: 2347 2349 out_file = open(self.file_name_, "w") 2348 2350 out_file.write(self.output_)
Note: See TracChangeset
for help on using the changeset viewer.