diff options
Diffstat (limited to 'src/tools')
5 files changed, 0 insertions, 336 deletions
diff --git a/src/tools/ivigenerator/ivigenerator.pri b/src/tools/ivigenerator/ivigenerator.pri deleted file mode 100644 index 0e11202..0000000 --- a/src/tools/ivigenerator/ivigenerator.pri +++ /dev/null @@ -1,5 +0,0 @@ -# TODO: Turn this into a proper target so we can build it? -QFACE_SOURCES = $$PWD/example/com.pelagicore.ivi.climate.qface -QFACE_MODULE_NAME = "climate" - -include(ivigenerator.prf) diff --git a/src/tools/ivigenerator/ivigenerator.pro b/src/tools/ivigenerator/ivigenerator.pro deleted file mode 100644 index 6a3ec0d..0000000 --- a/src/tools/ivigenerator/ivigenerator.pro +++ /dev/null @@ -1,175 +0,0 @@ -TEMPLATE = aux - -# We need the include here as we don't have a hard build dependency against ivicore, but we still -# need to have the config, so we just include that, even if ivicore itself is not build. -include($$OUT_PWD/../../ivicore/qtivicore-config.pri) -QT_FOR_CONFIG += ivicore - -!qtConfig(system-qface): include(qface_internal_build.pri) - -# Make sure to only build this once in a debug_and_release config -# This needs to be the last step as it unsets other configs and may have side effects -CONFIG -= debug_and_release - -common.files += \ - templates/common/generated_comment.cpp.tpl \ - templates/common/qtivi_macros.j2 \ - templates/common/simulation.qmltypes.tpl \ - templates/common/plugins.qmltypes.tpl \ - templates/common/designer.metainfo.tpl \ - templates/common/qmldir.tpl \ - templates/common/interface.rep.tpl \ - templates/common/simulation_data.json.tpl \ - templates/common/simulation.qrc.tpl \ - templates/common/module_simulation.qml.tpl \ - templates/common/backend_simulation.cpp.tpl \ - templates/common/backend_simulation.h.tpl \ - templates/common/backend_simulation.qml.tpl \ - templates/common/pagingmodel_simulation.h.tpl \ - templates/common/pagingmodel_simulation.cpp.tpl -common.path = $$[QT_HOST_BINS]/ivigenerator/templates/common - -templates_frontend.files += \ - templates/frontend/backendinterface.cpp.tpl \ - templates/frontend/backendinterface.h.tpl \ - templates/frontend/global.h.tpl \ - templates/frontend/interface.cpp.tpl \ - templates/frontend/interface.h.tpl \ - templates/frontend/interface_p.h.tpl \ - templates/frontend/module.cpp.tpl \ - templates/frontend/module.h.tpl \ - templates/frontend/module_qml_enum.qdocinc.tpl \ - templates/frontend/module.pri.tpl \ - templates/frontend/modulefactory.cpp.tpl \ - templates/frontend/modulefactory.h.tpl \ - templates/frontend/struct.cpp.tpl \ - templates/frontend/struct.h.tpl -templates_frontend.path = $$[QT_HOST_BINS]/ivigenerator/templates/frontend - -templates_qmlplugin.files += \ - templates/qmlplugin/module.pri.tpl \ - templates/qmlplugin/plugin.cpp.tpl \ - templates/qmlplugin/qmldir_plugin.tpl -templates_qmlplugin.path = $$[QT_HOST_BINS]/ivigenerator/templates/qmlplugin - -templates_backend_simulator.files += \ - templates/backend_simulator/plugin.cpp.tpl \ - templates/backend_simulator/plugin.h.tpl \ - templates/backend_simulator/plugin.json \ - templates/backend_simulator/plugin.pri.tpl \ - templates/backend_simulator/plugin.pro -templates_backend_simulator.path = $$[QT_HOST_BINS]/ivigenerator/templates/backend_simulator - -templates_backend_qtro.files += \ - templates/backend_qtro/backend.cpp.tpl \ - templates/backend_qtro/backend.h.tpl \ - templates/backend_qtro/pagingmodel.h.tpl \ - templates/backend_qtro/pagingmodel.cpp.tpl \ - templates/backend_qtro/plugin.cpp.tpl \ - templates/backend_qtro/plugin.h.tpl \ - templates/backend_qtro/plugin.json \ - templates/backend_qtro/plugin.pri.tpl -templates_backend_qtro.path = $$[QT_HOST_BINS]/ivigenerator/templates/backend_qtro - -templates_server_qtro.files += \ - templates/server_qtro/core.cpp.tpl \ - templates/server_qtro/core.h.tpl \ - templates/server_qtro/server.pri.tpl -templates_server_qtro.path = $$[QT_HOST_BINS]/ivigenerator/templates/server_qtro - -templates_server_qtro_simulator.files += \ - templates/server_qtro_simulator/core.cpp.tpl \ - templates/server_qtro_simulator/core.h.tpl \ - templates/server_qtro_simulator/adapter.cpp.tpl \ - templates/server_qtro_simulator/adapter.h.tpl \ - templates/server_qtro_simulator/main.cpp.tpl \ - templates/server_qtro_simulator/server.pri.tpl -templates_server_qtro_simulator.path = $$[QT_HOST_BINS]/ivigenerator/templates/server_qtro_simulator - -templates_test.files += \ - templates/test/tst_test.h.tpl \ - templates/test/tst_test.cpp.tpl \ - templates/test/module.pri.tpl \ - templates/test/main.cpp.tpl \ - templates/test/pagingmodel.h.tpl -templates_test.path = $$[QT_HOST_BINS]/ivigenerator/templates/test - -templates_yaml.files += \ - templates/frontend.yaml \ - templates/qmlplugin.yaml \ - templates/backend_simulator.yaml \ - templates/test.yaml -templates_yaml.path = $$[QT_HOST_BINS]/ivigenerator/templates - -generator_module.files += \ - generator/global_functions.py \ - generator/builtin_config.py \ - generator/filters.py \ - generator/rule_generator.py -generator_module.path = $$[QT_HOST_BINS]/ivigenerator/generator - -generator.files += \ - generate.py \ - $$OUT_PWD/.config -generator.path = $$[QT_HOST_BINS]/ivigenerator - -qtConfig(remoteobjects) { - templates_yaml.files += templates/backend_qtro.yaml \ - templates/server_qtro.yaml \ - templates/server_qtro_simulator.yaml \ - - INSTALLS += templates_backend_qtro \ - templates_server_qtro \ - templates_server_qtro_simulator \ - -} - -INSTALLS += generator \ - generator_module \ - templates_yaml \ - common \ - templates_frontend \ - templates_qmlplugin \ - templates_backend_simulator \ - templates_test \ - -OTHER_FILES += deploy-virtualenv.bat \ - deploy-virtualenv.sh \ - deploy-virtualenv-files.txt \ - -# Ensure files are installed to qtbase for non-prefixed builds -!force_independent:if(!debug_and_release|!build_all|CONFIG(release, debug|release)) { - for (install_target, INSTALLS) { - path = $$eval($${install_target}.path) - depends = $$eval($${install_target}.depends) - $${install_target}_copy.input = $${install_target}.files - $${install_target}_copy.output = $$path/${QMAKE_FILE_IN_BASE}${QMAKE_FILE_EXT} - !isEmpty(depends) { - $${install_target}_copy.depends = $$eval($${depends}.target) - } - $${install_target}_copy.commands = $$sprintf($$QMAKE_MKDIR_CMD, "$$path") $$escape_expand(\n\t) - contains($${install_target}.CONFIG, directory): $${install_target}_copy.commands += $$QMAKE_COPY_DIR ${QMAKE_FILE_IN} ${QMAKE_FILE_OUT} - else: $${install_target}_copy.commands += $$QMAKE_COPY ${QMAKE_FILE_IN} ${QMAKE_FILE_OUT} - $${install_target}_copy.name = COPY ${QMAKE_FILE_IN} - $${install_target}_copy.CONFIG = no_link target_predeps no_clean - QMAKE_EXTRA_COMPILERS += $${install_target}_copy - } -} - -defineTest(createConfig) { - write_file($$OUT_PWD/.config, $$list("---")) - for(var, ARGS) { - isEmpty($$var):out = "$$var: ~" - else:count($$var, 1):out = "$$var: \"$$first($$var)\"" - else { - out = "$$var:" - for(val, $$var):out += " - \"$$val\"" - out=$$join(out, "$$escape_expand(\\n)") - } - write_file($$OUT_PWD/.config, out, append) - } -} - -VERSION = $$MODULE_VERSION -FEATURES = $${QT.ivicore.enabled_features} -createConfig(VERSION, FEATURES) diff --git a/src/tools/ivigenerator/qface_internal_build.pri b/src/tools/ivigenerator/qface_internal_build.pri deleted file mode 100644 index 8bfc183..0000000 --- a/src/tools/ivigenerator/qface_internal_build.pri +++ /dev/null @@ -1,107 +0,0 @@ -QFACE_SOURCE_DIR = $$QTIVI_ROOT/src/3rdparty/qface - -# only create the environment once -debug_and_release:build_pass:CONFIG(release, debug|release) { - return(); -} - -!exists($$QFACE_SOURCE_DIR/setup.py): error("Couldn't find $$QFACE_SOURCE_DIR: Please make sure all submodules are initialized") - -include($$shadowed($$PWD/../../ivicore/qtivicore-config.pri)) - -VIRTUALENV_EXE = $$system_quote($$QMAKE_PYTHON3_LOCATION) -m virtualenv -# virtualenv is always using the default interpreter, which is python2 on many systems" -# by adding -p we enforce that the python3 interpreter is used and make sure python3 is installed in the virtualenv -VIRTUALENV_EXE += " -p $$system_quote($$QMAKE_PYTHON3_LOCATION)" - -RELOCATE_VIRTUALENV = $$system_path($$QTIVI_ROOT/src/3rdparty/virtualenv/relocate_virtualenv.py) - -# Use a Python virtualenv for installing qface, so we don't pollute the user environment -# On some systems virtualenv --always-copy doesn't work (https://github.com/pypa/virtualenv/issues/565). -# To workaround the problem, we need to manually create the folder and create the virtualenv from -# inside -equals(QMAKE_HOST.os, Windows): qtivi_qface_virtualenv.target = qtivi_qface_virtualenv/Scripts/python.exe -else: qtivi_qface_virtualenv.target = qtivi_qface_virtualenv/bin/python -qtivi_qface_virtualenv.commands = \ - $(MKDIR) qtivi_qface_virtualenv $$escape_expand(\n\t) \ - cd qtivi_qface_virtualenv && $$VIRTUALENV_EXE --always-copy . $$escape_expand(\n\t) \ - cd qtivi_qface_virtualenv && $$system_quote($$QMAKE_PYTHON3_LOCATION) $$RELOCATE_VIRTUALENV . $$escape_expand(\n\t) \ - @echo "Set up virtualenv for qface, name: qtivi_qface_virtualenv" -QMAKE_EXTRA_TARGETS += qtivi_qface_virtualenv - -# This helper adds a target for the qtivi_qface_virtualenv folder -# This target is needed for any target which has the folder as a dependency but not the python executable -qtivi_qface_virtualenv_helper.target = qtivi_qface_virtualenv -qtivi_qface_virtualenv_helper.depends = $${qtivi_qface_virtualenv.target} -QMAKE_EXTRA_TARGETS += qtivi_qface_virtualenv_helper - -equals(QMAKE_HOST.os, Windows): VIRTUALENV_ACTIVATION = qtivi_qface_virtualenv\Scripts\activate && -else: VIRTUALENV_ACTIVATION = . qtivi_qface_virtualenv/bin/activate && - -# Create the forceRebuild file during the qmake run. -# This file is used as a dependency in other Makefiles. -# Once the virtualenv is created and setup the file will -# be touched to recreate theses Makefiles. -write_file($$OUT_PWD/forceRebuild) - -PYTHON3_SHORT_VERSION_SPLITTED = $$split(QMAKE_PYTHON3_VERSION, .) -PYTHON3_SHORT_VERSION = $$member(PYTHON3_SHORT_VERSION_SPLITTED, 0).$$member(PYTHON3_SHORT_VERSION_SPLITTED, 1) - -# On the CI we use the special wheel folder when available to not download all packages again on each build -PYTHON3_WHEEL_CACHE=$$(PYTHON3_WHEEL_CACHE) -!isEmpty(PYTHON3_WHEEL_CACHE): PIP3_INSTALL_COMMAND = pip3 install --no-index --find-links=$$system_path($$PYTHON3_WHEEL_CACHE) $$system_path($$QFACE_SOURCE_DIR) --verbose -else: PIP3_INSTALL_COMMAND = pip3 install --upgrade $$system_path($$QFACE_SOURCE_DIR) - -# Always run this target -equals(QMAKE_HOST.os, Windows): qtivi_qface_install.target = qtivi_qface_virtualenv/Lib/site-packages/qface -else: qtivi_qface_install.target = qtivi_qface_virtualenv/lib/python$${PYTHON3_SHORT_VERSION}/site-packages/qface -qtivi_qface_install.depends = $${qtivi_qface_virtualenv.target} -qtivi_qface_install.depends += $$QFACE_SOURCE_DIR/setup.py -qtivi_qface_install.depends += $$QFACE_SOURCE_DIR/requirements.txt -qtivi_qface_install.depends += $$QFACE_SOURCE_DIR/qface/__about__.py -qtivi_qface_install.commands = $$VIRTUALENV_ACTIVATION \ - $$PIP3_INSTALL_COMMAND $$escape_expand(\n\t) \ - @echo "Installed qface development version into qtivi_qface_virtualenv" $$escape_expand(\n\t) -equals(QMAKE_HOST.os, Windows): qtivi_qface_install.commands += @COPY /B $$system_path($$OUT_PWD/forceRebuild)+,, $$system_path($$OUT_PWD/forceRebuild) >NUL -else: qtivi_qface_install.commands += @touch $$OUT_PWD/forceRebuild -QMAKE_EXTRA_TARGETS += qtivi_qface_install - -# We need to make the virtualenv first deployable -# Otherwise it still needs some modules from the system -deploy_virtualenv.target = .stamp-deploy_virtualenv -equals(QMAKE_HOST.os, Windows) { - deploy_virtualenv.commands = $$system_path($$PWD/deploy-virtualenv.bat) qtivi_qface_virtualenv $$escape_expand(\n\t) - deploy_virtualenv.commands += @type nul > $$system_path($$OUT_PWD/.stamp-deploy_virtualenv) -} else { - deploy_virtualenv.commands = $$PWD/deploy-virtualenv.sh qtivi_qface_virtualenv $$escape_expand(\n\t) - deploy_virtualenv.commands += @touch $$OUT_PWD/.stamp-deploy_virtualenv -} -deploy_virtualenv.depends = $${qtivi_qface_install.target} -QMAKE_EXTRA_TARGETS += deploy_virtualenv -PRE_TARGETDEPS += $${deploy_virtualenv.target} - -virtualenv.files = $$OUT_PWD/qtivi_qface_virtualenv -virtualenv.path = $$[QT_HOST_BINS]/ivigenerator -virtualenv.depends = deploy_virtualenv -virtualenv.CONFIG = no_check_exist directory no_build - -INSTALLS += virtualenv - -# On osx the hidden .Python file is needed in the installed virtualenv as well -# this file is not installed by the directory config, so we need to install it manually -equals(QMAKE_HOST.os, Darwin) { - virtualenv-python.files = $$OUT_PWD/qtivi_qface_virtualenv/.Python - virtualenv-python.path = $$[QT_HOST_BINS]/ivigenerator/qtivi_qface_virtualenv - # In case the file doesn't exist, touch creates it and fixes the install target - virtualenv-python.extra = @touch $$OUT_PWD/qtivi_qface_virtualenv/.Python - virtualenv-python.CONFIG = no_check_exist - virtualenv-python.depends = install_virtualenv - INSTALLS += virtualenv-python -} - -# Create the ivigenerator when the prepare_docs target is run, to generate the code -# and have it ready when qdoc parses it for the documentation -prepare_docs { - prepare_docs.depends += $${deploy_virtualenv.target} - QMAKE_EXTRA_TARGETS += prepare_docs -} diff --git a/src/tools/media-simulation-server/media-simulation-server.pro b/src/tools/media-simulation-server/media-simulation-server.pro deleted file mode 100644 index a8ac1fa..0000000 --- a/src/tools/media-simulation-server/media-simulation-server.pro +++ /dev/null @@ -1,31 +0,0 @@ -TARGET = ivimedia-simulation-server -TEMPLATE = app - -include($$PWD/../../plugins/ivimedia/media_simulator/media_simulator.pri) - -QT += remoteobjects iviremoteobjects_helper_private -CONFIG += c++11 - -load(qt_tool) - - -HEADERS += \ - core.h \ - qivimediaindexerqtroadapter.h \ - qivimediaplayerqtroadapter.h \ - qivimediadiscoveryqtroadapter.h \ - qivisearchandbrowsemodelqtroadapter.h - -SOURCES += \ - main.cpp \ - core.cpp \ - qivimediaindexerqtroadapter.cpp \ - qivimediaplayerqtroadapter.cpp \ - qivimediadiscoveryqtroadapter.cpp \ - qivisearchandbrowsemodelqtroadapter.cpp - -REPC_SOURCE += \ - $$PWD/qivimediaindexer.rep \ - $$PWD/qivimediaplayer.rep \ - $$PWD/qivimediadiscoverymodel.rep \ - $$PWD/qivisearchandbrowsemodel.rep \ diff --git a/src/tools/vehiclefunctions-simulation-server/vehiclefunctions-simulation-server.pro b/src/tools/vehiclefunctions-simulation-server/vehiclefunctions-simulation-server.pro deleted file mode 100644 index 2443871..0000000 --- a/src/tools/vehiclefunctions-simulation-server/vehiclefunctions-simulation-server.pro +++ /dev/null @@ -1,18 +0,0 @@ -TARGET = ivivehiclefunctions-simulation-server -TEMPLATE = app -QT = core ivicore ivivehiclefunctions -QT -= gui -CONFIG += c++11 ivigenerator - -QT_FOR_CONFIG += ivicore -!qtConfig(ivigenerator): error("No ivigenerator available") - -load(qt_tool) - -QFACE_FORMAT = server_qtro_simulator -QFACE_MODULE_NAME = QtIviVehicleFunctions -QFACE_SOURCES += ../../ivivehiclefunctions/ivivehiclefunctions.qface - -RESOURCES += ../../plugins/ivivehiclefunctions/vehiclefunctions_simulator/qml.qrc - -QML_IMPORT_PATH = $$OUT_PWD/qml |