Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-85243

qtquickcompiler ignores QTQUICK_COMPILER_SKIPPED_RESOURCES

    XMLWordPrintable

Details

    • All
    • 41890402db086f4c61e052cef7659eb6b003dc77 (qt/qtdeclarative/dev) b92a4558aa56c25a9a766ec0cc97699892a672e2 (qt/qtdeclarative/5.15)

    Description

      Hi,

      It seems that qmake from Qt 5.15.0 doesn't respect QTQUICK_COMPILER_SKIPPED_RESOURCES 

      I took 'recipe browser' example and added the following function to custom.js:

      async function test() {} // 'async' keyword requires ES2017

      and qtquickcompiler recipebrowser.pro:

      CONFIG += qtquickcompiler 

      (see attached archive)

      This example compiles without errors with Qt5.14.2, but fails on Qt5.15.0.

      qmlcachegen is called regardless of 'QTQUICK_COMPILER_SKIPPED_RESOURCES = resources/resources.qrc':

      /Users/andrey/Qt/5.15.0/clang_64/bin/qmlcachegen --resource=/Users/andrey/Qt/Examples/Qt-5.15.0/webengine/recipebrowser/resources/resources.qrc -o resources_pages_assets_custom_js.cpp ../recipebrowser/resources/pages/assets/custom.js 
      
      /Users/andrey/Qt/5.15.0/clang_64/bin/rcc -name resources_resources_qmlcache resources_resources_qmlcache.qrc -o qrc_resources_resources_qmlcache.cpp
      
      Error compiling js file: ../recipebrowser/resources/pages/assets/custom.js:69:7: error: Expected token `,'

      Disabling qtquickcompiler helps.

      Expected: qmlcachegen should exclude resources from QTQUICK_COMPILER_SKIPPED_RESOURCES

      Thanks!

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            ulherman Ulf Hermann
            ricko Andrey Bocharnikov
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes