diff --git a/Cargo.toml b/Cargo.toml index 43ea1595a..85021f85a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -22,3 +22,7 @@ members = [ "tests/basic_cxx_qt/rust", "tests/qt_types_standalone/rust", ] + +[patch.crates-io] +cxx = { git = "https://github.com/Be-ing/cxx.git", branch = "cxxbuild_output_var" } +cxx-build = { git = "https://github.com/Be-ing/cxx.git", branch = "cxxbuild_output_var" } diff --git a/book/src/concepts/build_systems.md b/book/src/concepts/build_systems.md index 692f40c77..e7bee96cf 100644 --- a/book/src/concepts/build_systems.md +++ b/book/src/concepts/build_systems.md @@ -12,5 +12,5 @@ CXX-Qt can be integrated into existing CMake projects or built with only cargo. * [CMake Integration](../getting-started/5-cmake-integration.md) * [Cargo Integration](../getting-started/6-cargo-executable.md) -CXX-Qt could work with any C++ build system so long as the `QMAKE` and `CXXQT_EXPORT_DIR` environment variables are set before calling Cargo, +CXX-Qt could work with any C++ build system so long as the `QMAKE` and `GENERATED_HEADER_DIR` environment variables are set before calling Cargo, as documented in [CMake integration](../getting-started/5-cmake-integration.md). However, using C++ build systems besides CMake with CXX-Qt is untested. diff --git a/crates/cxx-qt-build/src/lib.rs b/crates/cxx-qt-build/src/lib.rs index 8aad7f723..32cd3fa00 100644 --- a/crates/cxx-qt-build/src/lib.rs +++ b/crates/cxx-qt-build/src/lib.rs @@ -221,7 +221,7 @@ fn generate_cxxqt_cpp_files( /// running `cargo build`. Otherwise [CxxQtBuilder] prefers the newer version by default. /// /// To use [CxxQtBuilder] for a library to link with a C++ application, specify a directory to output -/// cxx-qt's autogenerated headers by having the C++ build system set the `CXXQT_EXPORT_DIR` +/// cxx-qt's autogenerated headers by having the C++ build system set the `GENERATED_HEADER_DIR` /// environment variable before calling `cargo build`. Then, add the same directory path to the C++ /// include paths. Also, set the `QMAKE` environment variable to the path of the `qmake` executable /// for the Qt installation found by the C++ build system. This ensures that the C++ build system and @@ -350,12 +350,11 @@ impl CxxQtBuilder { // The include directory needs to be namespaced by crate name when exporting for a C++ build system, // but for using cargo build without a C++ build system, OUT_DIR is already namespaced by crate name. - let header_root = match env::var("CXXQT_EXPORT_DIR") { - Ok(export_dir) => format!("{}/{}", export_dir, env::var("CARGO_PKG_NAME").unwrap()), - Err(_) => env::var("OUT_DIR").unwrap(), - }; + let header_root = + env::var("GENERATED_HEADER_DIR").unwrap_or_else(|_| env::var("OUT_DIR").unwrap()); + let generated_header_dir = + format!("{}/{}", header_root, env::var("CARGO_PKG_NAME").unwrap()); self.cc_builder.include(&header_root); - let generated_header_dir = format!("{}/cxx-qt-gen", header_root); cxx_qt_lib_headers::write_headers(&format!("{}/cxx-qt-lib", header_root)); diff --git a/crates/cxx-qt-gen/src/generator/rust/mod.rs b/crates/cxx-qt-gen/src/generator/rust/mod.rs index 59fdba0d9..fab6254e6 100644 --- a/crates/cxx-qt-gen/src/generator/rust/mod.rs +++ b/crates/cxx-qt-gen/src/generator/rust/mod.rs @@ -48,7 +48,8 @@ impl GeneratedRustBlocks { /// Generate the include line for this parsed block fn generate_include(parser: &Parser) -> Result { - let import_path = format!("cxx-qt-gen/{}.cxxqt.h", parser.cxx_file_stem); + let crate_name = std::env::var("CARGO_PKG_NAME").unwrap(); + let import_path = format!("{}/{}.cxxqt.h", crate_name, parser.cxx_file_stem); syn::parse2(quote! { unsafe extern "C++" { diff --git a/crates/cxx-qt-gen/src/writer/cpp/header.rs b/crates/cxx-qt-gen/src/writer/cpp/header.rs index ff8691943..b5bcc84b3 100644 --- a/crates/cxx-qt-gen/src/writer/cpp/header.rs +++ b/crates/cxx-qt-gen/src/writer/cpp/header.rs @@ -129,12 +129,13 @@ pub fn write_cpp_header(generated: &GeneratedCppBlocks) -> String { }} {forward_declare} - #include "cxx-qt-gen/{cxx_file_stem}.cxx.h" + #include "{crate_name}/{cxx_file_stem}.cxx.h" {qobjects} "#, cxx_file_stem = generated.cxx_file_stem, forward_declare = forward_declare(generated).join("\n"), + crate_name = std::env::var("CARGO_PKG_NAME").unwrap(), qobjects = qobjects_header(generated).join("\n"), } } diff --git a/crates/cxx-qt-gen/src/writer/cpp/source.rs b/crates/cxx-qt-gen/src/writer/cpp/source.rs index 6cf3dc159..ac805e8ab 100644 --- a/crates/cxx-qt-gen/src/writer/cpp/source.rs +++ b/crates/cxx-qt-gen/src/writer/cpp/source.rs @@ -80,10 +80,11 @@ fn qobjects_source(generated: &GeneratedCppBlocks) -> Vec { /// For a given GeneratedCppBlocks write this into a C++ source pub fn write_cpp_source(generated: &GeneratedCppBlocks) -> String { formatdoc! {r#" - #include "cxx-qt-gen/{cxx_file_stem}.cxxqt.h" + #include "{crate_name}/{cxx_file_stem}.cxxqt.h" {qobjects} "#, + crate_name = std::env::var("CARGO_PKG_NAME").unwrap(), cxx_file_stem = generated.cxx_file_stem, qobjects = qobjects_source(generated).join("\n"), } diff --git a/examples/cargo_without_cmake/CMakeLists.txt b/examples/cargo_without_cmake/CMakeLists.txt index 593bff567..9f5ceedce 100644 --- a/examples/cargo_without_cmake/CMakeLists.txt +++ b/examples/cargo_without_cmake/CMakeLists.txt @@ -26,8 +26,8 @@ if(NOT Corrosion_FOUND) include(FetchContent) FetchContent_Declare( Corrosion - GIT_REPOSITORY https://github.com/corrosion-rs/corrosion.git - GIT_TAG v0.2.1 + GIT_REPOSITORY https://github.com/Be-ing/corrosion.git + GIT_TAG code_generators ) FetchContent_MakeAvailable(Corrosion) diff --git a/examples/cargo_without_cmake/src/cpp/run.cpp b/examples/cargo_without_cmake/src/cpp/run.cpp index 5a219c7fc..cd4aa3310 100644 --- a/examples/cargo_without_cmake/src/cpp/run.cpp +++ b/examples/cargo_without_cmake/src/cpp/run.cpp @@ -11,7 +11,7 @@ #include #include -#include "cxx-qt-gen/my_object.cxxqt.h" +#include "qml-minimal-no-cmake/my_object.cxxqt.h" // Include the C++ code generated by rcc from the .qrc file #include "qml.qrc.cpp" diff --git a/examples/demo_threading/CMakeLists.txt b/examples/demo_threading/CMakeLists.txt index e947f9ef5..02c345ba9 100644 --- a/examples/demo_threading/CMakeLists.txt +++ b/examples/demo_threading/CMakeLists.txt @@ -27,8 +27,8 @@ if(NOT Corrosion_FOUND) include(FetchContent) FetchContent_Declare( Corrosion - GIT_REPOSITORY https://github.com/corrosion-rs/corrosion.git - GIT_TAG v0.2.1 + GIT_REPOSITORY https://github.com/Be-ing/corrosion.git + GIT_TAG code_generators ) FetchContent_MakeAvailable(Corrosion) @@ -36,12 +36,8 @@ endif() set(CRATE demo-threading) corrosion_import_crate(MANIFEST_PATH rust/Cargo.toml CRATES ${CRATE}) -set(CXXQT_EXPORT_DIR "${CMAKE_CURRENT_BINARY_DIR}/cxxqt") -corrosion_set_env_vars(${CRATE} - "CXXQT_EXPORT_DIR=${CXXQT_EXPORT_DIR}" - "QMAKE=${QMAKE}" -) -target_include_directories(${CRATE} INTERFACE "${CXXQT_EXPORT_DIR}/${CRATE}") +corrosion_add_target_generated_headers(${CRATE}) +corrosion_set_env_vars(${CRATE} "QMAKE=${QMAKE}") target_link_libraries(${CRATE} INTERFACE Qt::Core Qt::Gui diff --git a/examples/demo_threading/cpp/helpers/energyusageproxymodel.h b/examples/demo_threading/cpp/helpers/energyusageproxymodel.h index 1aa8857f5..5321a6b3c 100644 --- a/examples/demo_threading/cpp/helpers/energyusageproxymodel.h +++ b/examples/demo_threading/cpp/helpers/energyusageproxymodel.h @@ -12,7 +12,7 @@ #include #include -#include "cxx-qt-gen/energy_usage.cxxqt.h" +#include "demo-threading/energy_usage.cxxqt.h" class EnergyUsageProxyModel : public QAbstractListModel { diff --git a/examples/demo_threading/cpp/main.cpp b/examples/demo_threading/cpp/main.cpp index 9adf3cf73..fb57abeb9 100644 --- a/examples/demo_threading/cpp/main.cpp +++ b/examples/demo_threading/cpp/main.cpp @@ -7,7 +7,7 @@ #include #include -#include "cxx-qt-gen/energy_usage.cxxqt.h" +#include "demo-threading/energy_usage.cxxqt.h" #include "helpers/energyusageproxymodel.h" #include "helpers/sensor.h" diff --git a/examples/qml_extension_plugin/plugin/CMakeLists.txt b/examples/qml_extension_plugin/plugin/CMakeLists.txt index acf087cf5..f23223e29 100644 --- a/examples/qml_extension_plugin/plugin/CMakeLists.txt +++ b/examples/qml_extension_plugin/plugin/CMakeLists.txt @@ -10,8 +10,8 @@ if(NOT Corrosion_FOUND) include(FetchContent) FetchContent_Declare( Corrosion - GIT_REPOSITORY https://github.com/corrosion-rs/corrosion.git - GIT_TAG v0.2.1 + GIT_REPOSITORY https://github.com/Be-ing/corrosion.git + GIT_TAG code_generators ) FetchContent_MakeAvailable(Corrosion) @@ -19,12 +19,8 @@ endif() set(CRATE qml-extension-plugin) corrosion_import_crate(MANIFEST_PATH rust/Cargo.toml CRATES ${CRATE}) -set(CXXQT_EXPORT_DIR "${CMAKE_CURRENT_BINARY_DIR}/cxxqt") -corrosion_set_env_vars(${CRATE} - "CXXQT_EXPORT_DIR=${CXXQT_EXPORT_DIR}" - "QMAKE=${QMAKE}" -) -target_include_directories(${CRATE} INTERFACE "${CXXQT_EXPORT_DIR}/${CRATE}") +corrosion_add_target_generated_headers(${CRATE}) +corrosion_set_env_vars(${CRATE} "QMAKE=${QMAKE}") set(QML_IMPORT_DIR ${CMAKE_CURRENT_BINARY_DIR}/../qml) set(PLUGIN_OUTPUT_DIR ${QML_IMPORT_DIR}/com/kdab/cxx_qt/demo) diff --git a/examples/qml_extension_plugin/plugin/cpp/plugin.cpp b/examples/qml_extension_plugin/plugin/cpp/plugin.cpp index ce2bd4c29..a3c5dd0b1 100644 --- a/examples/qml_extension_plugin/plugin/cpp/plugin.cpp +++ b/examples/qml_extension_plugin/plugin/cpp/plugin.cpp @@ -9,7 +9,7 @@ #include #include -#include "cxx-qt-gen/my_object.cxxqt.h" +#include "qml-extension-plugin/my_object.cxxqt.h" class CoreQmlpluginPlugin : public QQmlExtensionPlugin { diff --git a/examples/qml_features/CMakeLists.txt b/examples/qml_features/CMakeLists.txt index 1ab58f05e..b2fcdcbb7 100644 --- a/examples/qml_features/CMakeLists.txt +++ b/examples/qml_features/CMakeLists.txt @@ -28,8 +28,8 @@ if(NOT Corrosion_FOUND) include(FetchContent) FetchContent_Declare( Corrosion - GIT_REPOSITORY https://github.com/corrosion-rs/corrosion.git - GIT_TAG v0.2.1 + GIT_REPOSITORY https://github.com/Be-ing/corrosion.git + GIT_TAG code_generators ) FetchContent_MakeAvailable(Corrosion) @@ -37,12 +37,8 @@ endif() set(CRATE qml-features) corrosion_import_crate(MANIFEST_PATH rust/Cargo.toml CRATES ${CRATE}) -set(CXXQT_EXPORT_DIR "${CMAKE_CURRENT_BINARY_DIR}/cxxqt") -corrosion_set_env_vars(${CRATE} - "CXXQT_EXPORT_DIR=${CXXQT_EXPORT_DIR}" - "QMAKE=${QMAKE}" -) -target_include_directories(${CRATE} INTERFACE "${CXXQT_EXPORT_DIR}/${CRATE}") +corrosion_add_target_generated_headers(${CRATE}) +corrosion_set_env_vars(${CRATE} "QMAKE=${QMAKE}") target_link_libraries(${CRATE} INTERFACE Qt::Core Qt::Gui diff --git a/examples/qml_features/cpp/main.cpp b/examples/qml_features/cpp/main.cpp index 9dc0b7399..8a5f43088 100644 --- a/examples/qml_features/cpp/main.cpp +++ b/examples/qml_features/cpp/main.cpp @@ -8,13 +8,13 @@ #include #include -#include "cxx-qt-gen/custom_base_class.cxxqt.h" -#include "cxx-qt-gen/rust_invokables.cxxqt.h" -#include "cxx-qt-gen/rust_properties.cxxqt.h" -#include "cxx-qt-gen/rust_signals.cxxqt.h" -#include "cxx-qt-gen/serialisation.cxxqt.h" -#include "cxx-qt-gen/threading_website.cxxqt.h" -#include "cxx-qt-gen/types.cxxqt.h" +#include "qml-features/custom_base_class.cxxqt.h" +#include "qml-features/rust_invokables.cxxqt.h" +#include "qml-features/rust_properties.cxxqt.h" +#include "qml-features/rust_signals.cxxqt.h" +#include "qml-features/serialisation.cxxqt.h" +#include "qml-features/threading_website.cxxqt.h" +#include "qml-features/types.cxxqt.h" int main(int argc, char* argv[]) diff --git a/examples/qml_features/tests/main.cpp b/examples/qml_features/tests/main.cpp index f708bed92..873d9568a 100644 --- a/examples/qml_features/tests/main.cpp +++ b/examples/qml_features/tests/main.cpp @@ -8,13 +8,13 @@ #include #include -#include "cxx-qt-gen/custom_base_class.cxxqt.h" -#include "cxx-qt-gen/rust_invokables.cxxqt.h" -#include "cxx-qt-gen/rust_properties.cxxqt.h" -#include "cxx-qt-gen/rust_signals.cxxqt.h" -#include "cxx-qt-gen/serialisation.cxxqt.h" -#include "cxx-qt-gen/threading_website.cxxqt.h" -#include "cxx-qt-gen/types.cxxqt.h" +#include "qml-features/custom_base_class.cxxqt.h" +#include "qml-features/rust_invokables.cxxqt.h" +#include "qml-features/rust_properties.cxxqt.h" +#include "qml-features/rust_signals.cxxqt.h" +#include "qml-features/serialisation.cxxqt.h" +#include "qml-features/threading_website.cxxqt.h" +#include "qml-features/types.cxxqt.h" class Setup : public QObject { diff --git a/examples/qml_minimal/CMakeLists.txt b/examples/qml_minimal/CMakeLists.txt index 3ff85fb0f..16ea57c9e 100644 --- a/examples/qml_minimal/CMakeLists.txt +++ b/examples/qml_minimal/CMakeLists.txt @@ -36,8 +36,8 @@ if(NOT Corrosion_FOUND) include(FetchContent) FetchContent_Declare( Corrosion - GIT_REPOSITORY https://github.com/corrosion-rs/corrosion.git - GIT_TAG v0.2.1 + GIT_REPOSITORY https://github.com/Be-ing/corrosion.git + GIT_TAG code_generators ) FetchContent_MakeAvailable(Corrosion) @@ -49,22 +49,12 @@ set(CRATE qml-minimal) # Corrosion creates a CMake target with the same name as the crate. corrosion_import_crate(MANIFEST_PATH rust/Cargo.toml CRATES ${CRATE}) -# The Rust library's build script needs to be told where to output the -# generated headers so CMake can find them. To do this, tell Corrosion -# to set the CXXQT_EXPORT_DIR environment variable when calling `cargo build`. -# Also, set the QMAKE environment variable to ensure the Rust library uses -# the same installation of Qt as CMake. -set(CXXQT_EXPORT_DIR "${CMAKE_CURRENT_BINARY_DIR}/cxxqt") -corrosion_set_env_vars(${CRATE} - "CXXQT_EXPORT_DIR=${CXXQT_EXPORT_DIR}" - "QMAKE=${QMAKE}" -) +# Add the generated headers to the include path +corrosion_add_target_generated_headers(${CRATE}) -# Include the headers generated by the Rust library's build script. Each -# crate gets its own subdirectory under CXXQT_EXPORT_DIR. This allows you -# to include headers generated by multiple crates without risk of one crate -# overwriting another's files. -target_include_directories(${CRATE} INTERFACE "${CXXQT_EXPORT_DIR}/${CRATE}") +# Set the QMAKE environment variable to ensure the Rust library uses +# the same installation of Qt as CMake. +corrosion_set_env_vars(${CRATE} "QMAKE=${QMAKE}") # Link the Rust INTERFACE library target to Qt. Do this on the library target # rather than the main executable. This way, CMake targets besides the main diff --git a/examples/qml_minimal/cpp/main.cpp b/examples/qml_minimal/cpp/main.cpp index 984ae88f0..059e3e6ec 100644 --- a/examples/qml_minimal/cpp/main.cpp +++ b/examples/qml_minimal/cpp/main.cpp @@ -11,7 +11,7 @@ #include // ANCHOR: book_cpp_include -#include "cxx-qt-gen/my_object.cxxqt.h" +#include "qml-minimal/my_object.cxxqt.h" // ANCHOR_END: book_cpp_include int diff --git a/examples/qml_minimal/tests/myobject/tst_myobject.cpp b/examples/qml_minimal/tests/myobject/tst_myobject.cpp index 1529d896c..b30380986 100644 --- a/examples/qml_minimal/tests/myobject/tst_myobject.cpp +++ b/examples/qml_minimal/tests/myobject/tst_myobject.cpp @@ -9,7 +9,7 @@ #include #include -#include "cxx-qt-gen/my_object.cxxqt.h" +#include "qml-minimal/my_object.cxxqt.h" class Setup : public QObject { diff --git a/tests/basic_cxx_only/CMakeLists.txt b/tests/basic_cxx_only/CMakeLists.txt index 52b12c83c..d56b2d262 100644 --- a/tests/basic_cxx_only/CMakeLists.txt +++ b/tests/basic_cxx_only/CMakeLists.txt @@ -27,12 +27,8 @@ get_target_property(QMAKE Qt::qmake IMPORTED_LOCATION) set(CRATE basic-cxx-only) corrosion_import_crate(MANIFEST_PATH rust/Cargo.toml CRATES ${CRATE}) -set(CXXQT_EXPORT_DIR "${CMAKE_CURRENT_BINARY_DIR}/cxxqt") -corrosion_set_env_vars(${CRATE} - "CXXQT_EXPORT_DIR=${CXXQT_EXPORT_DIR}" - "QMAKE=${QMAKE}" -) -target_include_directories(${CRATE} INTERFACE "${CXXQT_EXPORT_DIR}/${CRATE}") +corrosion_add_target_generated_headers(${CRATE}) +corrosion_set_env_vars(${CRATE} "QMAKE=${QMAKE}") target_link_libraries(${CRATE} INTERFACE Qt::Core Qt::Gui diff --git a/tests/basic_cxx_only/cpp/main.cpp b/tests/basic_cxx_only/cpp/main.cpp index dbae5ca9b..23263418c 100644 --- a/tests/basic_cxx_only/cpp/main.cpp +++ b/tests/basic_cxx_only/cpp/main.cpp @@ -7,7 +7,7 @@ // SPDX-License-Identifier: MIT OR Apache-2.0 #include -#include "cxx-qt-gen/ffi.cxx.h" +#include "basic-cxx-only/ffi.cxx.h" int hidden_num = 100; diff --git a/tests/basic_cxx_qt/CMakeLists.txt b/tests/basic_cxx_qt/CMakeLists.txt index 029fb102d..194fefe5b 100644 --- a/tests/basic_cxx_qt/CMakeLists.txt +++ b/tests/basic_cxx_qt/CMakeLists.txt @@ -26,12 +26,8 @@ get_target_property(QMAKE Qt::qmake IMPORTED_LOCATION) set(CRATE basic-cxx-qt) corrosion_import_crate(MANIFEST_PATH rust/Cargo.toml CRATES ${CRATE}) -set(CXXQT_EXPORT_DIR "${CMAKE_CURRENT_BINARY_DIR}/cxxqt") -corrosion_set_env_vars(${CRATE} - "CXXQT_EXPORT_DIR=${CXXQT_EXPORT_DIR}" - "QMAKE=${QMAKE}" -) -target_include_directories(${CRATE} INTERFACE "${CXXQT_EXPORT_DIR}/${CRATE}") +corrosion_add_target_generated_headers(${CRATE}) +corrosion_set_env_vars(${CRATE} "QMAKE=${QMAKE}") target_link_libraries(${CRATE} INTERFACE Qt::Core Qt::Gui diff --git a/tests/basic_cxx_qt/cpp/main.cpp b/tests/basic_cxx_qt/cpp/main.cpp index 04b8b5bfc..20878f935 100644 --- a/tests/basic_cxx_qt/cpp/main.cpp +++ b/tests/basic_cxx_qt/cpp/main.cpp @@ -9,10 +9,10 @@ #include #include -#include "cxx-qt-gen/empty.cxxqt.h" -#include "cxx-qt-gen/my_data.cxxqt.h" -#include "cxx-qt-gen/my_object.cxxqt.h" -#include "cxx-qt-gen/my_types.cxxqt.h" +#include "basic-cxx-qt/empty.cxxqt.h" +#include "basic-cxx-qt/my_data.cxxqt.h" +#include "basic-cxx-qt/my_object.cxxqt.h" +#include "basic-cxx-qt/my_types.cxxqt.h" class CxxQtTest : public QObject { diff --git a/tests/qt_types_standalone/CMakeLists.txt b/tests/qt_types_standalone/CMakeLists.txt index 0fbfe6aef..e63a8003a 100644 --- a/tests/qt_types_standalone/CMakeLists.txt +++ b/tests/qt_types_standalone/CMakeLists.txt @@ -27,12 +27,8 @@ get_target_property(QMAKE Qt::qmake IMPORTED_LOCATION) set(CRATE qt-types-standalone) corrosion_import_crate(MANIFEST_PATH rust/Cargo.toml CRATES ${CRATE}) -set(CXXQT_EXPORT_DIR "${CMAKE_CURRENT_BINARY_DIR}/cxxqt") -corrosion_set_env_vars(${CRATE} - "CXXQT_EXPORT_DIR=${CXXQT_EXPORT_DIR}" - "QMAKE=${QMAKE}" -) -target_include_directories(${CRATE} INTERFACE "${CXXQT_EXPORT_DIR}/${CRATE}") +corrosion_add_target_generated_headers(${CRATE}) +corrosion_set_env_vars(${CRATE} "QMAKE=${QMAKE}") target_link_libraries(${CRATE} INTERFACE Qt::Core Qt::Gui diff --git a/tests/qt_types_standalone/cpp/qcolor.h b/tests/qt_types_standalone/cpp/qcolor.h index 599838076..ff1670b20 100644 --- a/tests/qt_types_standalone/cpp/qcolor.h +++ b/tests/qt_types_standalone/cpp/qcolor.h @@ -9,7 +9,7 @@ #include #include -#include "cxx-qt-gen/qcolor_cxx.cxx.h" +#include "qt-types-standalone/qcolor_cxx.cxx.h" class QColorTest : public QObject { diff --git a/tests/qt_types_standalone/cpp/qdate.h b/tests/qt_types_standalone/cpp/qdate.h index ad8f185c7..20151ef5a 100644 --- a/tests/qt_types_standalone/cpp/qdate.h +++ b/tests/qt_types_standalone/cpp/qdate.h @@ -9,7 +9,7 @@ #include #include -#include "cxx-qt-gen/qdate_cxx.cxx.h" +#include "qt-types-standalone/qdate_cxx.cxx.h" class QDateTest : public QObject { diff --git a/tests/qt_types_standalone/cpp/qdatetime.h b/tests/qt_types_standalone/cpp/qdatetime.h index 903dc4e41..781519731 100644 --- a/tests/qt_types_standalone/cpp/qdatetime.h +++ b/tests/qt_types_standalone/cpp/qdatetime.h @@ -9,7 +9,7 @@ #include #include -#include "cxx-qt-gen/qdatetime_cxx.cxx.h" +#include "qt-types-standalone/qdatetime_cxx.cxx.h" class QDateTimeTest : public QObject { diff --git a/tests/qt_types_standalone/cpp/qpoint.h b/tests/qt_types_standalone/cpp/qpoint.h index 04f8d2a74..0661774ec 100644 --- a/tests/qt_types_standalone/cpp/qpoint.h +++ b/tests/qt_types_standalone/cpp/qpoint.h @@ -9,7 +9,7 @@ #include #include -#include "cxx-qt-gen/qpoint_cxx.cxx.h" +#include "qt-types-standalone/qpoint_cxx.cxx.h" class QPointTest : public QObject { diff --git a/tests/qt_types_standalone/cpp/qpointf.h b/tests/qt_types_standalone/cpp/qpointf.h index aa1933c5f..d8eac4ff3 100644 --- a/tests/qt_types_standalone/cpp/qpointf.h +++ b/tests/qt_types_standalone/cpp/qpointf.h @@ -9,7 +9,7 @@ #include #include -#include "cxx-qt-gen/qpointf_cxx.cxx.h" +#include "qt-types-standalone/qpointf_cxx.cxx.h" class QPointFTest : public QObject { diff --git a/tests/qt_types_standalone/cpp/qrect.h b/tests/qt_types_standalone/cpp/qrect.h index 9a9ead35b..dfebcbdc8 100644 --- a/tests/qt_types_standalone/cpp/qrect.h +++ b/tests/qt_types_standalone/cpp/qrect.h @@ -9,7 +9,7 @@ #include #include -#include "cxx-qt-gen/qrect_cxx.cxx.h" +#include "qt-types-standalone/qrect_cxx.cxx.h" class QRectTest : public QObject { diff --git a/tests/qt_types_standalone/cpp/qrectf.h b/tests/qt_types_standalone/cpp/qrectf.h index 566f7ffe7..687a19751 100644 --- a/tests/qt_types_standalone/cpp/qrectf.h +++ b/tests/qt_types_standalone/cpp/qrectf.h @@ -9,7 +9,7 @@ #include #include -#include "cxx-qt-gen/qrectf_cxx.cxx.h" +#include "qt-types-standalone/qrectf_cxx.cxx.h" class QRectFTest : public QObject { diff --git a/tests/qt_types_standalone/cpp/qsize.h b/tests/qt_types_standalone/cpp/qsize.h index 030e1831d..880836ed4 100644 --- a/tests/qt_types_standalone/cpp/qsize.h +++ b/tests/qt_types_standalone/cpp/qsize.h @@ -9,7 +9,7 @@ #include #include -#include "cxx-qt-gen/qsize_cxx.cxx.h" +#include "qt-types-standalone/qsize_cxx.cxx.h" class QSizeTest : public QObject { diff --git a/tests/qt_types_standalone/cpp/qsizef.h b/tests/qt_types_standalone/cpp/qsizef.h index 3ae9883f2..9e2dbb6e0 100644 --- a/tests/qt_types_standalone/cpp/qsizef.h +++ b/tests/qt_types_standalone/cpp/qsizef.h @@ -9,7 +9,7 @@ #include #include -#include "cxx-qt-gen/qsizef_cxx.cxx.h" +#include "qt-types-standalone/qsizef_cxx.cxx.h" class QSizeFTest : public QObject { diff --git a/tests/qt_types_standalone/cpp/qstring.h b/tests/qt_types_standalone/cpp/qstring.h index 35301631b..cca4edd34 100644 --- a/tests/qt_types_standalone/cpp/qstring.h +++ b/tests/qt_types_standalone/cpp/qstring.h @@ -9,7 +9,7 @@ #include #include -#include "cxx-qt-gen/qstring_cxx.cxx.h" +#include "qt-types-standalone/qstring_cxx.cxx.h" class QStringTest : public QObject { diff --git a/tests/qt_types_standalone/cpp/qtime.h b/tests/qt_types_standalone/cpp/qtime.h index 3b776b364..4db964975 100644 --- a/tests/qt_types_standalone/cpp/qtime.h +++ b/tests/qt_types_standalone/cpp/qtime.h @@ -9,7 +9,7 @@ #include #include -#include "cxx-qt-gen/qtime_cxx.cxx.h" +#include "qt-types-standalone/qtime_cxx.cxx.h" class QTimeTest : public QObject { diff --git a/tests/qt_types_standalone/cpp/qurl.h b/tests/qt_types_standalone/cpp/qurl.h index e85e8eee6..6ccfd9a55 100644 --- a/tests/qt_types_standalone/cpp/qurl.h +++ b/tests/qt_types_standalone/cpp/qurl.h @@ -9,7 +9,7 @@ #include #include -#include "cxx-qt-gen/qurl_cxx.cxx.h" +#include "qt-types-standalone/qurl_cxx.cxx.h" class QUrlTest : public QObject { diff --git a/tests/qt_types_standalone/cpp/qvariant.h b/tests/qt_types_standalone/cpp/qvariant.h index 3a0f89712..106fac26b 100644 --- a/tests/qt_types_standalone/cpp/qvariant.h +++ b/tests/qt_types_standalone/cpp/qvariant.h @@ -9,7 +9,7 @@ #include #include -#include "cxx-qt-gen/qvariant_cxx.cxx.h" +#include "qt-types-standalone/qvariant_cxx.cxx.h" // We use VariantTest in data driven tests, so register to Qt metatype system Q_DECLARE_METATYPE(VariantTest)