Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cxx-qt-build: Export .qmltypes and qmldir for use with external tooling #982

Draft
wants to merge 20 commits into
base: main
Choose a base branch
from

Commits on Jun 19, 2024

  1. Configuration menu
    Copy the full SHA
    aaad741 View commit details
    Browse the repository at this point in the history
  2. WIP: Add cxxqt_import_qml_module to CMake

    This allows us to get away without whole-archive in CMake by declaring
    an OBJECT library instead.
    LeonMatthes authored and LeonMatthesKDAB committed Jun 19, 2024
    Configuration menu
    Copy the full SHA
    9a05ead View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    a78e677 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    814003c View commit details
    Browse the repository at this point in the history
  5. CMake: Add fake target to build required obj file

    Otherwise, Ninja will complain, as it needs **some** rule to build the
    target, even if that rule does nothing.
    LeonMatthesKDAB committed Jun 19, 2024
    Configuration menu
    Copy the full SHA
    99f0bc0 View commit details
    Browse the repository at this point in the history
  6. cxx-qt-build: Do not use -bins suffix of -link-arg

    This caused a build failure when not building a binary.
    Linking the object file in shouldn't produce issues.
    LeonMatthesKDAB committed Jun 19, 2024
    Configuration menu
    Copy the full SHA
    0269983 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    7d1edee View commit details
    Browse the repository at this point in the history
  8. Enable -x in scripts/check_cargo_build_rerun.sh

    And don't redirect the first build output to /dev/null
    
    This should allow us to see what exactly is failing in CI.
    LeonMatthesKDAB committed Jun 19, 2024
    Configuration menu
    Copy the full SHA
    76f1eeb View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    9aa28be View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    b6d6ad3 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    b118006 View commit details
    Browse the repository at this point in the history

Commits on Jun 20, 2024

  1. Configuration menu
    Copy the full SHA
    f30e3bc View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    17e0e76 View commit details
    Browse the repository at this point in the history
  3. cxx-qt-build: specify -l to the staticlib manually

    Otherwise the linker order doesn't work out and the linker cannot
    resolve the qt_static_plugin_*** functions
    LeonMatthesKDAB committed Jun 20, 2024
    Configuration menu
    Copy the full SHA
    91689e5 View commit details
    Browse the repository at this point in the history
  4. qt-build-utils: Refactor to use std::fs::write

    It's much more concise than using File::create followed by write!
    LeonMatthesKDAB committed Jun 20, 2024
    Configuration menu
    Copy the full SHA
    a4939a1 View commit details
    Browse the repository at this point in the history
  5. cxx-qt-build: Allow custom initializers in opts

    This can be used to e.g. register custom types, import plugins, declare
    modules, etc.
    LeonMatthesKDAB committed Jun 20, 2024
    Configuration menu
    Copy the full SHA
    5451dae View commit details
    Browse the repository at this point in the history
  6. Revert "fix: CI: Force use of Rust 1.77 (KDAB#957)"

    This reverts commit 40f5ad1.
    
    We are now building and linking object files directly, which works
    nicely with CMake and seems to work for Rust as well.
    LeonMatthesKDAB committed Jun 20, 2024
    Configuration menu
    Copy the full SHA
    213902a View commit details
    Browse the repository at this point in the history

Commits on Jun 21, 2024

  1. clippy: Allow missing_safety_doc in nested_qobjects

    This may be a clippy bug, as `cargo expand` tells me the generated
    functions do indeed have a `# Safety` section in their documentation.
    
    The `# Safety` sections also show up in the output of `cargo doc`.
    So it's unclear why clippy is complaining.
    LeonMatthesKDAB committed Jun 21, 2024
    Configuration menu
    Copy the full SHA
    1757f09 View commit details
    Browse the repository at this point in the history
  2. cxx-qt-build: Include Qt5 support in initializers

    This way we don't need a separate object file and CMake target for this.
    LeonMatthesKDAB committed Jun 21, 2024
    Configuration menu
    Copy the full SHA
    193bb66 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    c9d2c5d View commit details
    Browse the repository at this point in the history