diff options
author | Dominik Holland <dominik.holland@qt.io> | 2019-10-07 16:38:48 +0200 |
---|---|---|
committer | Dominik Holland <dominik.holland@qt.io> | 2019-10-29 17:26:28 +0100 |
commit | 25ba2939cace6bfbc065f3c8ea8cfe6d72eb5c17 (patch) | |
tree | d2475a26e8ed1332ee9abd83f70b17d05f52234a /tests/auto/core/ivigenerator/projects/include-test/simulation_server_qtro/simulation_server_qtro.pro | |
parent | 25b1d344d1f5b5fe791f9c9893adfc59a8db60e5 (diff) | |
download | qtivi-25ba2939cace6bfbc065f3c8ea8cfe6d72eb5c17.tar.gz |
ivigenerator: Add support to import other modules
When importing another module from within a QFace file, the
generator now searches within the QFace import path. If this
module is found, the information is then used to generate
code that includes types from this module.
The QFace import path can be set in the autogenerator similar
to qmlscene by using the -I option; in qmake it can be set
using QFACE_IMPORT_PATH.
The generator makes sure to generate correct code, but the
developer still needs to setup the .pro files correctly to
add the imported module to the INCLUDEPATH and also link
to the generated library.
Fixes: AUTOSUITE-1158
Change-Id: I0e9fa714d4c893a4bf17c5f7db34c62d84932c94
Reviewed-by: Robert Griebl <robert.griebl@qt.io>
Diffstat (limited to 'tests/auto/core/ivigenerator/projects/include-test/simulation_server_qtro/simulation_server_qtro.pro')
-rw-r--r-- | tests/auto/core/ivigenerator/projects/include-test/simulation_server_qtro/simulation_server_qtro.pro | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/auto/core/ivigenerator/projects/include-test/simulation_server_qtro/simulation_server_qtro.pro b/tests/auto/core/ivigenerator/projects/include-test/simulation_server_qtro/simulation_server_qtro.pro new file mode 100644 index 0000000..2618076 --- /dev/null +++ b/tests/auto/core/ivigenerator/projects/include-test/simulation_server_qtro/simulation_server_qtro.pro @@ -0,0 +1,16 @@ +TEMPLATE = app +TARGET = org-example-echo-qtro-simulation-server +LIBS += -L$$OUT_PWD/.. -l$$qtLibraryTarget(include_test_frontend) -l$$qtLibraryTarget(include_test_common) + +DESTDIR = .. + +CONFIG += c++11 ivigenerator +CONFIG -= app_bundle + +INCLUDEPATH += $$OUT_PWD/../frontend $$OUT_PWD/../common + +QT += qml quick core ivicore + +QFACE_FORMAT = server_qtro_simulator +QFACE_SOURCES = ../../../include-test.qface +QFACE_IMPORT_PATH += "../../../qface imports" |