<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>280561</bug_id>
          
          <creation_ts>2024-09-28 00:16:48 -0700</creation_ts>
          <short_desc>REGRESSION(284269@main) [CMake][WPE] Missing generation of inspector.gresource</short_desc>
          <delta_ts>2024-09-30 04:03:20 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>CMake</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=280512</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>186594</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Lauro Moura">lmoura</reporter>
          <assigned_to name="Lauro Moura">lmoura</assigned_to>
          <cc>aperez</cc>
    
    <cc>bugs-noreply</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2063975</commentid>
    <comment_count>0</comment_count>
    <who name="Lauro Moura">lmoura</who>
    <bug_when>2024-09-28 00:16:48 -0700</bug_when>
    <thetext>After https://commits.webkit.org/284269@main, I&apos;m getting errors installing WebKit, even after a clean build:

```
CMake Error at Source/WebKit/cmake_install.cmake:59 (file):
  file INSTALL cannot find
  &quot;/home/lauro/wkdev-shared/dev/wk-webdriver/WebKit-WebDriver/WebKitBuild/WPE/Release/WebInspectorUI/DerivedSources/inspector.gresource&quot;:
  No such file or directory.
Call Stack (most recent call first):
  Source/cmake_install.cmake:92 (include)
  cmake_install.cmake:47 (include)
FAILED: CMakeFiles/install.util
```

(cmakeargs == &quot;-DENABLE_DEVELOPER_MODE=1 -DENABLE_MINIBROWSER=1 -DENABLE_THUNDER=0 -DENABLE_WEBXR=0 -DENABLE_COG=0 -DENABLE_SPEECH_SYNTHESIS=0 -DENABLE_WEBDRIVER_BIDI=1 -DCMAKE_INSTALL_PREFIX=/home/lauro/opt/wpe-webdriver&quot;)

Checking `build.ninja`, there&apos;s no mention to the new `inspector.gresource`. After becoming a regular file instead of a library, somehow it was being left out of the dependency tree in my scenario.

What worked for me was the following patch, but I&apos;m not sure if it&apos;s the right approach (i.e. the target would go inside the macro instead of where the macro is called).

```
diff --git a/Source/WebKit/PlatformWPE.cmake b/Source/WebKit/PlatformWPE.cmake
index e1d7d2a9e635..d250ced25155 100644
--- a/Source/WebKit/PlatformWPE.cmake
+++ b/Source/WebKit/PlatformWPE.cmake
@@ -536,6 +536,12 @@ endif ()
 
 WEBKIT_BUILD_INSPECTOR_GRESOURCES(${WebInspectorUI_DERIVED_SOURCES_DIR} &quot;inspector.gresource&quot;)
 
+# Make sure we add the inspector.gresource target to the WebKit target so it gets built.
+add_custom_target(inspector_gresource_target
+    DEPENDS ${WebInspectorUI_DERIVED_SOURCES_DIR}/inspector.gresource
+)
+add_dependencies(WebKit inspector_gresource_target)
+
 install(FILES ${WebInspectorUI_DERIVED_SOURCES_DIR}/inspector.gresource DESTINATION &quot;${CMAKE_INSTALL_FULL_DATADIR}/wpe-webkit-${WPE_API_VERSION}&quot;)
```</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2064012</commentid>
    <comment_count>1</comment_count>
    <who name="Lauro Moura">lmoura</who>
    <bug_when>2024-09-28 11:11:32 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/34409</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2064171</commentid>
    <comment_count>2</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2024-09-30 02:14:06 -0700</bug_when>
    <thetext>Committed 284443@main (1fe32d327a6c): &lt;https://commits.webkit.org/284443@main&gt;

Reviewed commits have been landed. Closing PR #34409 and removing active labels.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>