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

WASM: Consider OUTPUT_NAME of target for naming the html file

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2: Important P2: Important
    • 6.4
    • 6.4.0 Beta4
    • Build System: CMake
    • None
    • cmake 3.23.1
      emsdk 3.1.14
    • WebAssembly
    • 0f80b65a01fcb12ec44e337191273ecf4d7e12c1

       

      If the OUTPUT_NAME of a target is changed like this:

      qt_add_executable( App MANUAL_FINALIZATION qml.qrc )
      set_target_properties( App PROPERTIES OUTPUT_NAME "RenamedApp" )
      
      qt_import_qml_plugins( App )
      qt_finalize_executable( App )
      

      The wasm and js file are named RenamedApp.js + RenamedApp.wasm.

      But the html file is named App.html and it loads: qtLoader.loadEmscriptenModule("App");

       

      If you need a complete example project please write me.

       

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

            lpotter Lorn Potter
            Marscho Marscho
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes