diff options
76 files changed, 2707 insertions, 10 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 00000000..6016c51e --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,25 @@ +# Generated from qtconnectivity.pro. + +cmake_minimum_required(VERSION 3.15.0) + +project(QtConnectivity # special case + VERSION 6.0.0 + DESCRIPTION "Qt Connectivity Libraries" # special case + HOMEPAGE_URL "https://qt.io/" + LANGUAGES CXX C +) + +# special case begin +find_package(Qt6 ${PROJECT_VERSION} CONFIG REQUIRED COMPONENTS BuildInternals Core Gui Network + Concurrent Widgets) +# special case end + +if(NOT TARGET Qt::Network) + message(NOTICE "Skipping the build as the condition \"TARGET Qt::Network\" is not met.") + return() +endif() +if(ANDROID AND NOT TARGET Qt::AndroidExtras) + message(NOTICE "Skipping the build as the condition \"TARGET Qt::AndroidExtras OR NOT ANDROID\" is not met.") + return() +endif() +qt_build_repo() diff --git a/cmake/FindBlueZ.cmake b/cmake/FindBlueZ.cmake new file mode 100644 index 00000000..abebfb93 --- /dev/null +++ b/cmake/FindBlueZ.cmake @@ -0,0 +1,7 @@ +include(FindPkgConfig) + +pkg_check_modules(BLUEZ bluez IMPORTED_TARGET) + +if (NOT TARGET PkgConfig::BLUEZ) + set(BLUEZ_FOUND 0) +endif() diff --git a/coin/module_config.yaml b/coin/module_config.yaml new file mode 100644 index 00000000..9f29e113 --- /dev/null +++ b/coin/module_config.yaml @@ -0,0 +1,13 @@ +version: 1 +accept_configuration: + condition: property + property: host.os + equals_property: target.os + +build_instructions: + - !include "{{qt/qtbase}}/prepare_building_env.yaml" + - !include "{{qt/qtbase}}/cmake_module_build_instructions.yaml" + - !include "{{qt/qtbase}}/cmake_build_and_upload_test_artifacts.yaml" + +test_instructions: + - !include "{{qt/qtbase}}/cmake_regular_test_instructions.yaml" diff --git a/config.tests/bluez/CMakeLists.txt b/config.tests/bluez/CMakeLists.txt new file mode 100644 index 00000000..7b6ab85b --- /dev/null +++ b/config.tests/bluez/CMakeLists.txt @@ -0,0 +1,11 @@ +# Generated from bluez.pro. + +cmake_minimum_required(VERSION 3.14.0) +project(config_test_bluez LANGUAGES CXX) + +add_executable(${PROJECT_NAME} + main.cpp +) +target_compile_options(${PROJECT_NAME} + -fpermissive +) diff --git a/config.tests/bluez_le/CMakeLists.txt b/config.tests/bluez_le/CMakeLists.txt new file mode 100644 index 00000000..28c13451 --- /dev/null +++ b/config.tests/bluez_le/CMakeLists.txt @@ -0,0 +1,8 @@ +# Generated from bluez_le.pro. + +cmake_minimum_required(VERSION 3.14.0) +project(config_test_bluez_le LANGUAGES CXX) + +add_executable(${PROJECT_NAME} + main.cpp +) diff --git a/config.tests/linux_crypto_api/CMakeLists.txt b/config.tests/linux_crypto_api/CMakeLists.txt new file mode 100644 index 00000000..6474aecb --- /dev/null +++ b/config.tests/linux_crypto_api/CMakeLists.txt @@ -0,0 +1,8 @@ +# Generated from linux_crypto_api.pro. + +cmake_minimum_required(VERSION 3.14.0) +project(config_test_linux_crypto_api LANGUAGES CXX) + +add_executable(${PROJECT_NAME} + main.cpp +) diff --git a/config.tests/winrt_bt/CMakeLists.txt b/config.tests/winrt_bt/CMakeLists.txt new file mode 100644 index 00000000..c9484aa9 --- /dev/null +++ b/config.tests/winrt_bt/CMakeLists.txt @@ -0,0 +1,14 @@ +# Generated from winrt.pro. + +cmake_minimum_required(VERSION 3.14.0) +project(config_test_winrt LANGUAGES CXX) + +add_executable(${PROJECT_NAME} + main.cpp +) + +if(NOT WINRT) + target_link_libraries(${PROJECT_NAME} PUBLIC + runtimeobject.lib + ) +endif() diff --git a/config.tests/winrt_btle_no_pairing/CMakeLists.txt b/config.tests/winrt_btle_no_pairing/CMakeLists.txt new file mode 100644 index 00000000..c9484aa9 --- /dev/null +++ b/config.tests/winrt_btle_no_pairing/CMakeLists.txt @@ -0,0 +1,14 @@ +# Generated from winrt.pro. + +cmake_minimum_required(VERSION 3.14.0) +project(config_test_winrt LANGUAGES CXX) + +add_executable(${PROJECT_NAME} + main.cpp +) + +if(NOT WINRT) + target_link_libraries(${PROJECT_NAME} PUBLIC + runtimeobject.lib + ) +endif() diff --git a/dependencies.yaml b/dependencies.yaml deleted file mode 100644 index fabb9905..00000000 --- a/dependencies.yaml +++ /dev/null @@ -1,10 +0,0 @@ -dependencies: - ../qtandroidextras: - ref: cb0356bfde28db89dbdd62931251167e07ffd503 - required: false - ../qtbase: - ref: 721a0e807881e4d00e752e3c3cf62427eb681dd2 - required: true - ../qtdeclarative: - ref: c441e5316437dfa3517306992ce810c99f20eed4 - required: false diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt new file mode 100644 index 00000000..43e2a22a --- /dev/null +++ b/examples/CMakeLists.txt @@ -0,0 +1,12 @@ +# Generated from examples.pro. + +qt_examples_build_begin() + +if(TARGET Qt::Bluetooth) + add_subdirectory(bluetooth) +endif() +if(TARGET Qt::Nfc) + add_subdirectory(nfc) +endif() + +qt_examples_build_end() diff --git a/examples/bluetooth/CMakeLists.txt b/examples/bluetooth/CMakeLists.txt new file mode 100644 index 00000000..7cf02601 --- /dev/null +++ b/examples/bluetooth/CMakeLists.txt @@ -0,0 +1,16 @@ +# Generated from bluetooth.pro. + +add_subdirectory(heartrate-server) +if(TARGET Qt::Widgets) + add_subdirectory(btchat) + add_subdirectory(btscanner) + add_subdirectory(btfiletransfer) +endif() +if(TARGET Qt::Quick) + add_subdirectory(scanner) + add_subdirectory(picturetransfer) + add_subdirectory(pingpong) + add_subdirectory(lowenergyscanner) + add_subdirectory(heartrate-game) + add_subdirectory(chat) +endif() diff --git a/examples/bluetooth/btchat/CMakeLists.txt b/examples/bluetooth/btchat/CMakeLists.txt new file mode 100644 index 00000000..554920fd --- /dev/null +++ b/examples/bluetooth/btchat/CMakeLists.txt @@ -0,0 +1,41 @@ +# Generated from btchat.pro. + +cmake_minimum_required(VERSION 3.14) +project(btchat LANGUAGES CXX) + +set(CMAKE_INCLUDE_CURRENT_DIR ON) + +set(CMAKE_AUTOMOC ON) +set(CMAKE_AUTORCC ON) +set(CMAKE_AUTOUIC ON) + +set(INSTALL_EXAMPLEDIR "examples/bluetooth/btchat") + +find_package(Qt6 COMPONENTS Core) +find_package(Qt6 COMPONENTS Bluetooth) +find_package(Qt6 COMPONENTS Widgets) + +add_qt_gui_executable(btchat + chat.cpp chat.h chat.ui + chatclient.cpp chatclient.h + chatserver.cpp chatserver.h + main.cpp + remoteselector.cpp remoteselector.h remoteselector.ui +) +target_link_libraries(btchat PUBLIC + Qt::Bluetooth + Qt::Core + Qt::Widgets +) + +if(ANDROID) + target_link_libraries(btchat PUBLIC + Qt::AndroidExtras + ) +endif() + +install(TARGETS btchat + RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}" + BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}" + LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}" +) diff --git a/examples/bluetooth/btfiletransfer/CMakeLists.txt b/examples/bluetooth/btfiletransfer/CMakeLists.txt new file mode 100644 index 00000000..973d89c7 --- /dev/null +++ b/examples/bluetooth/btfiletransfer/CMakeLists.txt @@ -0,0 +1,48 @@ +# Generated from btfiletransfer.pro. + +cmake_minimum_required(VERSION 3.14) +project(btfiletransfer LANGUAGES CXX) + +set(CMAKE_INCLUDE_CURRENT_DIR ON) + +set(CMAKE_AUTOMOC ON) +set(CMAKE_AUTORCC ON) +set(CMAKE_AUTOUIC ON) + +set(INSTALL_EXAMPLEDIR "examples/bluetooth/btfiletransfer") + +find_package(Qt6 COMPONENTS Core) +find_package(Qt6 COMPONENTS Bluetooth) +find_package(Qt6 COMPONENTS Widgets) + +add_qt_gui_executable(btfiletransfer + main.cpp + pindisplay.cpp pindisplay.h pindisplay.ui + progress.cpp progress.h progress.ui + remoteselector.cpp remoteselector.h remoteselector.ui +) +target_link_libraries(btfiletransfer PUBLIC + Qt::Bluetooth + Qt::Core + Qt::Widgets +) + + +# Resources: +set(btfiletransfer_resource_files + "busy.gif" + "pairing.gif" +) + +qt6_add_resources(btfiletransfer "btfiletransfer" + PREFIX + "/icons" + FILES + ${btfiletransfer_resource_files} +) + +install(TARGETS btfiletransfer + RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}" + BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}" + LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}" +) diff --git a/examples/bluetooth/btscanner/CMakeLists.txt b/examples/bluetooth/btscanner/CMakeLists.txt new file mode 100644 index 00000000..c9718cd6 --- /dev/null +++ b/examples/bluetooth/btscanner/CMakeLists.txt @@ -0,0 +1,33 @@ +# Generated from btscanner.pro. + +cmake_minimum_required(VERSION 3.14) +project(btscanner LANGUAGES CXX) + +set(CMAKE_INCLUDE_CURRENT_DIR ON) + +set(CMAKE_AUTOMOC ON) +set(CMAKE_AUTORCC ON) +set(CMAKE_AUTOUIC ON) + +set(INSTALL_EXAMPLEDIR "examples/bluetooth/btscanner") + +find_package(Qt6 COMPONENTS Core) +find_package(Qt6 COMPONENTS Bluetooth) +find_package(Qt6 COMPONENTS Widgets) + +add_qt_gui_executable(btscanner + device.cpp device.h device.ui + main.cpp + service.cpp service.h service.ui +) +target_link_libraries(btscanner PUBLIC + Qt::Bluetooth + Qt::Core + Qt::Widgets +) + +install(TARGETS btscanner + RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}" + BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}" + LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}" +) diff --git a/examples/bluetooth/chat/CMakeLists.txt b/examples/bluetooth/chat/CMakeLists.txt new file mode 100644 index 00000000..b344d237 --- /dev/null +++ b/examples/bluetooth/chat/CMakeLists.txt @@ -0,0 +1,56 @@ +# Generated from chat.pro. + +cmake_minimum_required(VERSION 3.14) +project(qml_chat LANGUAGES CXX) + +set(CMAKE_INCLUDE_CURRENT_DIR ON) + +set(CMAKE_AUTOMOC ON) +set(CMAKE_AUTORCC ON) +set(CMAKE_AUTOUIC ON) + +set(INSTALL_EXAMPLEDIR "examples/bluetooth/chat") + +find_package(Qt6 COMPONENTS Core) +find_package(Qt6 COMPONENTS Bluetooth) +find_package(Qt6 COMPONENTS Quick) + +add_qt_gui_executable(qml_chat + qmlchat.cpp +) +target_link_libraries(qml_chat PUBLIC + Qt::Bluetooth + Qt::Core + Qt::Quick +) + + +# Resources: +set(chat_resource_files + "Button.qml" + "InputBox.qml" + "Search.qml" + "chat.qml" + "images/clear.png" + "images/default.png" + "images/lineedit-bg.png" +) + +qt6_add_resources(qml_chat "chat" + PREFIX + "/" + FILES + ${chat_resource_files} +) + +if(ANDROID) + target_link_libraries(qml_chat PUBLIC + Qt::AndroidExtras + ) +endif() + +install(TARGETS qml_chat + RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}" + BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}" + LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}" +) diff --git a/examples/bluetooth/heartrate-game/CMakeLists.txt b/examples/bluetooth/heartrate-game/CMakeLists.txt new file mode 100644 index 00000000..8d82dfb1 --- /dev/null +++ b/examples/bluetooth/heartrate-game/CMakeLists.txt @@ -0,0 +1,79 @@ +# Generated from heartrate-game.pro. + +cmake_minimum_required(VERSION 3.14) +project(heartrate-game LANGUAGES CXX) + +set(CMAKE_INCLUDE_CURRENT_DIR ON) + +set(CMAKE_AUTOMOC ON) +set(CMAKE_AUTORCC ON) +set(CMAKE_AUTOUIC ON) + +set(INSTALL_EXAMPLEDIR "examples/bluetooth/heartrate-game") + +find_package(Qt6 COMPONENTS Core) +find_package(Qt6 COMPONENTS Gui) +find_package(Qt6 COMPONENTS Qml) +find_package(Qt6 COMPONENTS Quick) +find_package(Qt6 COMPONENTS Bluetooth) + +add_qt_gui_executable(heartrate-game + bluetoothbaseclass.cpp bluetoothbaseclass.h + connectionhandler.cpp connectionhandler.h + devicefinder.cpp devicefinder.h + devicehandler.cpp devicehandler.h + deviceinfo.cpp deviceinfo.h + heartrate-global.h + main.cpp +) +target_link_libraries(heartrate-game PUBLIC + Qt::Bluetooth + Qt::Core + Qt::Gui + Qt::Qml + Qt::Quick +) + + +# Resources: +set(qml_resource_files + "qml/App.qml" + "qml/BluetoothAlarmDialog.qml" + "qml/BottomLine.qml" + "qml/Connect.qml" + "qml/GameButton.qml" + "qml/GamePage.qml" + "qml/GameSettings.qml" + "qml/Measure.qml" + "qml/SplashScreen.qml" + "qml/Stats.qml" + "qml/StatsLabel.qml" + "qml/TitleBar.qml" + "qml/main.qml" + "qml/qmldir" +) + +qt6_add_resources(heartrate-game "qml" + PREFIX + "/" + FILES + ${qml_resource_files} +) +set(images_resource_files + "qml/images/bt_off_to_on.png" + "qml/images/heart.png" + "qml/images/logo.png" +) + +qt6_add_resources(heartrate-game "images" + PREFIX + "/" + FILES + ${images_resource_files} +) + +install(TARGETS heartrate-game + RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}" + BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}" + LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}" +) diff --git a/examples/bluetooth/heartrate-server/CMakeLists.txt b/examples/bluetooth/heartrate-server/CMakeLists.txt new file mode 100644 index 00000000..0fbdec79 --- /dev/null +++ b/examples/bluetooth/heartrate-server/CMakeLists.txt @@ -0,0 +1,29 @@ +# Generated from heartrate-server.pro. + +cmake_minimum_required(VERSION 3.14) +project(heartrate-server LANGUAGES CXX) + +set(CMAKE_INCLUDE_CURRENT_DIR ON) + +set(CMAKE_AUTOMOC ON) +set(CMAKE_AUTORCC ON) +set(CMAKE_AUTOUIC ON) + +set(INSTALL_EXAMPLEDIR "examples/bluetooth/heartrate-server") + +find_package(Qt6 COMPONENTS Core) +find_package(Qt6 COMPONENTS Bluetooth) + +add_qt_gui_executable(heartrate-server + main.cpp +) +target_link_libraries(heartrate-server PUBLIC + Qt::Bluetooth + Qt::Core +) + +install(TARGETS heartrate-server + RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}" + BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}" + LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}" +) diff --git a/examples/bluetooth/lowenergyscanner/CMakeLists.txt b/examples/bluetooth/lowenergyscanner/CMakeLists.txt new file mode 100644 index 00000000..6c1ddd7a --- /dev/null +++ b/examples/bluetooth/lowenergyscanner/CMakeLists.txt @@ -0,0 +1,61 @@ +# Generated from lowenergyscanner.pro. + +cmake_minimum_required(VERSION 3.14) +project(lowenergyscanner LANGUAGES CXX) + +set(CMAKE_INCLUDE_CURRENT_DIR ON) + +set(CMAKE_AUTOMOC ON) +set(CMAKE_AUTORCC ON) +set(CMAKE_AUTOUIC ON) + +set(INSTALL_EXAMPLEDIR "examples/bluetooth/lowenergyscanner") + +find_package(Qt6 COMPONENTS Core) +find_package(Qt6 COMPONENTS Gui) +find_package(Qt6 COMPONENTS Quick) +find_package(Qt6 COMPONENTS Bluetooth) + +add_qt_gui_executable(lowenergyscanner + characteristicinfo.cpp characteristicinfo.h + device.cpp device.h + deviceinfo.cpp deviceinfo.h + main.cpp + serviceinfo.cpp serviceinfo.h +) +target_include_directories(lowenergyscanner PUBLIC + . +) + +target_link_libraries(lowenergyscanner PUBLIC + Qt::Bluetooth + Qt::Core + Qt::Gui + Qt::Quick +) + + +# Resources: +set(resources_resource_files + "assets/Characteristics.qml" + "assets/Dialog.qml" + "assets/Header.qml" + "assets/Label.qml" + "assets/Menu.qml" + "assets/Services.qml" + "assets/busy_dark.png" + "assets/main.qml" +) + +qt6_add_resources(lowenergyscanner "resources" + PREFIX + "/" + FILES + ${resources_resource_files} +) + +install(TARGETS lowenergyscanner + RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}" + BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}" + LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}" +) diff --git a/examples/bluetooth/picturetransfer/CMakeLists.txt b/examples/bluetooth/picturetransfer/CMakeLists.txt new file mode 100644 index 00000000..d7ec6620 --- /dev/null +++ b/examples/bluetooth/picturetransfer/CMakeLists.txt @@ -0,0 +1,52 @@ +# Generated from picturetransfer.pro. + +cmake_minimum_required(VERSION 3.14) +project(qml_picturetransfer LANGUAGES CXX) + +set(CMAKE_INCLUDE_CURRENT_DIR ON) + +set(CMAKE_AUTOMOC ON) +set(CMAKE_AUTORCC ON) +set(CMAKE_AUTOUIC ON) + +set(INSTALL_EXAMPLEDIR "examples/bluetooth/picturetransfer") + +find_package(Qt6 COMPONENTS Core) +find_package(Qt6 COMPONENTS Gui) +find_package(Qt6 COMPONENTS Quick) +find_package(Qt6 COMPONENTS Bluetooth) + +add_qt_gui_executable(qml_picturetransfer + filetransfer.cpp filetransfer.h + main.cpp +) +target_link_libraries(qml_picturetransfer PUBLIC + Qt::Bluetooth + Qt::Core + Qt::Gui + Qt::Quick +) + + +# Resources: +set(qmltransfer_resource_files + "Button.qml" + "DeviceDiscovery.qml" + "FileSending.qml" + "PictureSelector.qml" + "background.png" + "bttransfer.qml" +) + +qt6_add_resources(qml_picturetransfer "qmltransfer" + PREFIX + "/" + FILES + ${qmltransfer_resource_files} +) + +install(TARGETS qml_picturetransfer + RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}" + BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}" + LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}" +) diff --git a/examples/bluetooth/pingpong/CMakeLists.txt b/examples/bluetooth/pingpong/CMakeLists.txt new file mode 100644 index 00000000..1c3ee43e --- /dev/null +++ b/examples/bluetooth/pingpong/CMakeLists.txt @@ -0,0 +1,56 @@ +# Generated from pingpong.pro. + +cmake_minimum_required(VERSION 3.14) +project(pingpong LANGUAGES CXX) + +set(CMAKE_INCLUDE_CURRENT_DIR ON) + +set(CMAKE_AUTOMOC ON) +set(CMAKE_AUTORCC ON) +set(CMAKE_AUTOUIC ON) + +set(INSTALL_EXAMPLEDIR "examples/bluetooth/pingpong") + +find_package(Qt6 COMPONENTS Core) +find_package(Qt6 COMPONENTS Gui) +find_package(Qt6 COMPONENTS Quick) +find_package(Qt6 COMPONENTS Bluetooth) + +add_qt_gui_executable(pingpong + main.cpp + pingpong.cpp pingpong.h +) +target_link_libraries(pingpong PUBLIC + Qt::Bluetooth + Qt::Core + Qt::Gui + Qt::Quick +) + + +# Resources: +set(resource_resource_files + "assets/Board.qml" + "assets/Dialog.qml" + "assets/Menu.qml" + "assets/main.qml" +) + +qt6_add_resources(pingpong "resource" + PREFIX + "/" + FILES + ${resource_resource_files} +) + +if(ANDROID) + target_link_libraries(pingpong PUBLIC + Qt::AndroidExtras + ) +endif() + +install(TARGETS pingpong + RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}" + BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}" + LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}" +) diff --git a/examples/bluetooth/scanner/CMakeLists.txt b/examples/bluetooth/scanner/CMakeLists.txt new file mode 100644 index 00000000..653574d3 --- /dev/null +++ b/examples/bluetooth/scanner/CMakeLists.txt @@ -0,0 +1,46 @@ +# Generated from scanner.pro. + +cmake_minimum_required(VERSION 3.14) +project(qml_scanner LANGUAGES CXX) + +set(CMAKE_INCLUDE_CURRENT_DIR ON) + +set(CMAKE_AUTOMOC ON) +set(CMAKE_AUTORCC ON) +set(CMAKE_AUTOUIC ON) + +set(INSTALL_EXAMPLEDIR "examples/bluetooth/scanner") + +find_package(Qt6 COMPONENTS Core) +find_package(Qt6 COMPONENTS Bluetooth) +find_package(Qt6 COMPONENTS Quick) + +add_qt_gui_executable(qml_scanner + qmlscanner.cpp +) +target_link_libraries(qml_scanner PUBLIC + Qt::Bluetooth + Qt::Core + Qt::Quick +) + + +# Resources: +set(scanner_resource_files + "Button.qml" + "default.png" + "scanner.qml" +) + +qt6_add_resources(qml_scanner "scanner" + PREFIX + "/" + FILES + ${scanner_resource_files} +) + +install(TARGETS qml_scanner + RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}" + BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}" + LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}" +) diff --git a/examples/nfc/CMakeLists.txt b/examples/nfc/CMakeLists.txt new file mode 100644 index 00000000..f7534f8f --- /dev/null +++ b/examples/nfc/CMakeLists.txt @@ -0,0 +1,10 @@ +# Generated from nfc.pro. + +if(TARGET Qt::Widgets) + add_subdirectory(annotatedurl) + add_subdirectory(ndefeditor) +endif() +if(TARGET Qt::Quick) + add_subdirectory(poster) + add_subdirectory(corkboard) +endif() diff --git a/examples/nfc/annotatedurl/CMakeLists.txt b/examples/nfc/annotatedurl/CMakeLists.txt new file mode 100644 index 00000000..a68d33d6 --- /dev/null +++ b/examples/nfc/annotatedurl/CMakeLists.txt @@ -0,0 +1,35 @@ +# Generated from annotatedurl.pro. + +cmake_minimum_required(VERSION 3.14) +project(annotatedurl LANGUAGES CXX) + +set(CMAKE_INCLUDE_CURRENT_DIR ON) + +set(CMAKE_AUTOMOC ON) +set(CMAKE_AUTORCC ON) +set(CMAKE_AUTOUIC ON) + +set(INSTALL_EXAMPLEDIR "examples/nfc/annotatedurl") + +find_package(Qt6 COMPONENTS Core) +find_package(Qt6 COMPONENTS Gui) +find_package(Qt6 COMPONENTS Nfc) +find_package(Qt6 COMPONENTS Widgets) + +add_qt_gui_executable(annotatedurl + annotatedurl.cpp annotatedurl.h + main.cpp + mainwindow.cpp mainwindow.h mainwindow.ui +) +target_link_libraries(annotatedurl PUBLIC + Qt::Core + Qt::Gui + Qt::Nfc + Qt::Widgets +) + +install(TARGETS annotatedurl + RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}" + BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}" + LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}" +) diff --git a/examples/nfc/corkboard/CMakeLists.txt b/examples/nfc/corkboard/CMakeLists.txt new file mode 100644 index 00000000..e94e6d7f --- /dev/null +++ b/examples/nfc/corkboard/CMakeLists.txt @@ -0,0 +1,51 @@ +# Generated from corkboard.pro. + +cmake_minimum_required(VERSION 3.14) +project(qml_corkboard LANGUAGES CXX) + +set(CMAKE_INCLUDE_CURRENT_DIR ON) + +set(CMAKE_AUTOMOC ON) +set(CMAKE_AUTORCC ON) +set(CMAKE_AUTOUIC ON) + +set(INSTALL_EXAMPLEDIR "examples/nfc/corkboard") + +find_package(Qt6 COMPONENTS Core) +find_package(Qt6 COMPONENTS Gui) +find_package(Qt6 COMPONENTS Quick) +find_package(Qt6 COMPONENTS Nfc) + +add_qt_gui_executable(qml_corkboard + main.cpp +) +target_link_libraries(qml_corkboard PUBLIC + Qt::Core + Qt::Gui + Qt::Nfc + Qt::Quick +) + + +# Resources: +set(corkboard_resource_files + "Mode.qml" + "NfcFlag.png" + "cork.jpg" + "corkboards.qml" + "note-yellow.png" + "tack.png" +) + +qt6_add_resources(qml_corkboard "corkboard" + PREFIX + "/" + FILES + ${corkboard_resource_files} +) + +install(TARGETS qml_corkboard + RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}" + BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}" + LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}" +) diff --git a/examples/nfc/ndefeditor/CMakeLists.txt b/examples/nfc/ndefeditor/CMakeLists.txt new file mode 100644 index 00000000..196d0360 --- /dev/null +++ b/examples/nfc/ndefeditor/CMakeLists.txt @@ -0,0 +1,37 @@ +# Generated from ndefeditor.pro. + +cmake_minimum_required(VERSION 3.14) +project(ndefeditor LANGUAGES CXX) + +set(CMAKE_INCLUDE_CURRENT_DIR ON) + +set(CMAKE_AUTOMOC ON) +set(CMAKE_AUTORCC ON) +set(CMAKE_AUTOUIC ON) + +set(INSTALL_EXAMPLEDIR "examples/nfc/ndefeditor") + +find_package(Qt6 COMPONENTS Core) +find_package(Qt6 COMPONENTS Gui) +find_package(Qt6 COMPONENTS Nfc) +find_package(Qt6 COMPONENTS Widgets) + +add_qt_gui_executable(ndefeditor + main.cpp + mainwindow.cpp mainwindow.h mainwindow.ui + mimeimagerecordeditor.cpp mimeimagerecordeditor.h mimeimagerecordeditor.ui + textrecordeditor.cpp textrecordeditor.h textrecordeditor.ui + urirecordeditor.cpp urirecordeditor.h urirecordeditor.ui +) +target_link_libraries(ndefeditor PUBLIC + Qt::Core + Qt::Gui + Qt::Nfc + Qt::Widgets +) + +install(TARGETS ndefeditor + RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}" + BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}" + LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}" +) diff --git a/examples/nfc/poster/CMakeLists.txt b/examples/nfc/poster/CMakeLists.txt new file mode 100644 index 00000000..137eebf2 --- /dev/null +++ b/examples/nfc/poster/CMakeLists.txt @@ -0,0 +1,50 @@ +# Generated from poster.pro. + +cmake_minimum_required(VERSION 3.14) +project(qml_poster LANGUAGES CXX) + +set(CMAKE_INCLUDE_CURRENT_DIR ON) + +set(CMAKE_AUTOMOC ON) +set(CMAKE_AUTORCC ON) +set(CMAKE_AUTOUIC ON) + +set(INSTALL_EXAMPLEDIR "examples") + +find_package(Qt6 COMPONENTS Core) +find_package(Qt6 COMPONENTS Gui) +find_package(Qt6 COMPONENTS Qml) +find_package(Qt6 COMPONENTS Quick) +find_package(Qt6 COMPONENTS Network) +find_package(Qt6 COMPONENTS Nfc) + +add_qt_gui_executable(qml_poster + qmlposter.cpp +) +target_link_libraries(qml_poster PUBLIC + Qt::Core + Qt::Gui + Qt::Network + Qt::Nfc + Qt::Qml + Qt::Quick +) + +# Resources: +set(poster_resource_files + "poster.qml" +) + +qt6_add_resources(qml_poster "poster" + PREFIX + "/" + FILES + ${poster_resource_files} +) + + +install(TARGETS qml_poster + RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}" + BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}" + LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}" +) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt new file mode 100644 index 00000000..6d250b72 --- /dev/null +++ b/src/CMakeLists.txt @@ -0,0 +1,10 @@ +# Generated from src.pro. + +add_subdirectory(bluetooth) +add_subdirectory(nfc) +if(ANDROID) + add_subdirectory(android) +endif() +if(TARGET Qt::Quick) + add_subdirectory(imports) +endif() diff --git a/src/android/CMakeLists.txt b/src/android/CMakeLists.txt new file mode 100644 index 00000000..aa82c9bc --- /dev/null +++ b/src/android/CMakeLists.txt @@ -0,0 +1,8 @@ +# Generated from android.pro. + +if(TARGET Qt::Bluetooth) + add_subdirectory(bluetooth) +endif() +if(TARGET Qt::Nfc) + add_subdirectory(nfc) +endif() diff --git a/src/android/bluetooth/.prev_CMakeLists.txt b/src/android/bluetooth/.prev_CMakeLists.txt new file mode 100644 index 00000000..2b5ed3a4 --- /dev/null +++ b/src/android/bluetooth/.prev_CMakeLists.txt @@ -0,0 +1,22 @@ +# Generated from bluetooth.pro. + +qt_get_android_sdk_jar_for_api("android-21" android_sdk) + +set(java_sources + src/org/qtproject/qt5/android/bluetooth/QtBluetoothBroadcastReceiver.java + src/org/qtproject/qt5/android/bluetooth/QtBluetoothInputStreamThread.java + src/org/qtproject/qt5/android/bluetooth/QtBluetoothLE.java + src/org/qtproject/qt5/android/bluetooth/QtBluetoothLEServer.java + src/org/qtproject/qt5/android/bluetooth/QtBluetoothSocketServer.java +) + +add_jar(QtAndroidBluetooth + INCLUDE_JARS ${android_sdk} + SOURCES ${java_sources} +) + +install_jar(QtAndroidBluetooth + DESTINATION jar + COMPONENT Devel +) + diff --git a/src/android/bluetooth/CMakeLists.txt b/src/android/bluetooth/CMakeLists.txt new file mode 100644 index 00000000..fca1abaa --- /dev/null +++ b/src/android/bluetooth/CMakeLists.txt @@ -0,0 +1,21 @@ +# Generated from bluetooth.pro. + +qt_get_android_sdk_jar_for_api("android-21" android_sdk) + +set(java_sources + src/org/qtproject/qt5/android/bluetooth/QtBluetoothBroadcastReceiver.java + src/org/qtproject/qt5/android/bluetooth/QtBluetoothInputStreamThread.java + src/org/qtproject/qt5/android/bluetooth/QtBluetoothLE.java + src/org/qtproject/qt5/android/bluetooth/QtBluetoothLEServer.java + src/org/qtproject/qt5/android/bluetooth/QtBluetoothSocketServer.java +) + +add_jar(QtAndroidBluetooth + INCLUDE_JARS ${android_sdk} + SOURCES ${java_sources} +) + +install_jar(QtAndroidBluetooth + DESTINATION jar + COMPONENT Devel +) diff --git a/src/android/nfc/CMakeLists.txt b/src/android/nfc/CMakeLists.txt new file mode 100644 index 00000000..54bb0445 --- /dev/null +++ b/src/android/nfc/CMakeLists.txt @@ -0,0 +1,20 @@ +# special case begin +# This is a manually edited file + +set(path_prefix ${CMAKE_CURRENT_SOURCE_DIR}/src/org/qtproject/qt5/android/nfc) + +set(java_sources + ${path_prefix}/src/org/qtproject/qt5/android/nfc/QtNfc.java + ${path_prefix}/src/org/qtproject/qt5/android/nfc/QtNfcBroadcastReceiver.java +) + +add_jar(QtAndroidNfc + INCLUDE_JARS ${QT_ANDROID_JAR} + SOURCES ${java_sources} + ) + +install_jar(QtAndroidNfc + DESTINATION jar + COMPONENT Devel) + +# special case end diff --git a/src/bluetooth/.prev_CMakeLists.txt b/src/bluetooth/.prev_CMakeLists.txt new file mode 100644 index 00000000..d5f7a426 --- /dev/null +++ b/src/bluetooth/.prev_CMakeLists.txt @@ -0,0 +1,301 @@ +# Generated from bluetooth.pro. + +##################################################################### +## Bluetooth Module: +##################################################################### + +add_qt_module(Bluetooth + SOURCES + lecmaccalculator_p.h + qbluetooth.cpp qbluetooth.h + qbluetoothaddress.cpp qbluetoothaddress.h qbluetoothaddress_p.h + qbluetoothdevicediscoveryagent.cpp qbluetoothdevicediscoveryagent.h qbluetoothdevicediscoveryagent_p.h + qbluetoothdeviceinfo.cpp qbluetoothdeviceinfo.h qbluetoothdeviceinfo_p.h + qbluetoothhostinfo.cpp qbluetoothhostinfo.h qbluetoothhostinfo_p.h + qbluetoothlocaldevice.cpp qbluetoothlocaldevice.h qbluetoothlocaldevice_p.h + qbluetoothserver.cpp qbluetoothserver.h qbluetoothserver_p.h + qbluetoothservicediscoveryagent.cpp qbluetoothservicediscoveryagent.h qbluetoothservicediscoveryagent_p.h + qbluetoothserviceinfo.cpp qbluetoothserviceinfo.h qbluetoothserviceinfo_p.h + qbluetoothsocket.cpp qbluetoothsocket.h + qbluetoothsocketbase.cpp qbluetoothsocketbase_p.h + qbluetoothtransfermanager.cpp qbluetoothtransfermanager.h + qbluetoothtransferreply.cpp qbluetoothtransferreply.h qbluetoothtransferreply_p.h + qbluetoothtransferrequest.cpp qbluetoothtransferrequest.h qbluetoothtransferrequest_p.h + qbluetoothuuid.cpp qbluetoothuuid.h + qleadvertiser_p.h + qlowenergyadvertisingdata.cpp qlowenergyadvertisingdata.h + qlowenergyadvertisingparameters.cpp qlowenergyadvertisingparameters.h + qlowenergycharacteristic.cpp qlowenergycharacteristic.h + qlowenergycharacteristicdata.cpp qlowenergycharacteristicdata.h + qlowenergyconnectionparameters.cpp qlowenergyconnectionparameters.h + qlowenergycontroller.cpp qlowenergycontroller.h + qlowenergycontrollerbase.cpp qlowenergycontrollerbase_p.h + qlowenergydescriptor.cpp qlowenergydescriptor.h + qlowenergydescriptordata.cpp qlowenergydescriptordata.h + qlowenergyservice.cpp qlowenergyservice.h + qlowenergyservicedata.cpp qlowenergyservicedata.h + qlowenergyserviceprivate.cpp qlowenergyserviceprivate_p.h + qprivatelinearbuffer_p.h + qtbluetoothglobal.h qtbluetoothglobal_p.h + DEFINES + QT_NO_FOREACH + LIBRARIES + Qt::CorePrivate + PUBLIC_LIBRARIES + Qt::Core +) + +#### Keys ignored in scope 1:.:.:bluetooth.pro:<TRUE>: +# OTHER_FILES = "doc/src/*.qdoc" +# _LOADED = "qt_module" + +## Scopes: +##################################################################### + +#### Keys ignored in scope 2:.:.:bluetooth.pro:WIN32: +# WINDOWS_SDK_VERSION = "$$member($$list $$split WINDOWS_SDK_VERSION_STRING, . , 2)" +# WINDOWS_SDK_VERSION_STRING = "$$(WindowsSDKVersion)" + +extend_target(Bluetooth CONDITION QT_FEATURE_bluez + SOURCES + bluez/adapter.cpp bluez/adapter_p.h + bluez/adapter1_bluez5.cpp bluez/adapter1_bluez5_p.h + bluez/agent.cpp bluez/agent_p.h + bluez/battery1.cpp bluez/battery1_p.h + bluez/bluetoothmanagement.cpp bluez/bluetoothmanagement_p.h + bluez/bluez5_helper.cpp bluez/bluez5_helper_p.h + bluez/bluez_data_p.h + bluez/device.cpp bluez/device_p.h + bluez/device1_bluez5.cpp bluez/device1_bluez5_p.h + bluez/gattchar1.cpp bluez/gattchar1_p.h + bluez/gattdesc1.cpp bluez/gattdesc1_p.h + bluez/gattservice1.cpp bluez/gattservice1_p.h + bluez/hcimanager.cpp bluez/hcimanager_p.h + bluez/manager.cpp bluez/manager_p.h + bluez/obex_agent.cpp bluez/obex_agent_p.h + bluez/obex_client.cpp bluez/obex_client_p.h + bluez/obex_client1_bluez5.cpp bluez/obex_client1_bluez5_p.h + bluez/obex_manager.cpp bluez/obex_manager_p.h + bluez/obex_objectpush1_bluez5.cpp bluez/obex_objectpush1_bluez5_p.h + bluez/obex_transfer.cpp bluez/obex_transfer_p.h + bluez/obex_transfer1_bluez5.cpp bluez/obex_transfer1_bluez5_p.h + bluez/objectmanager.cpp bluez/objectmanager_p.h + bluez/profile1.cpp bluez/profile1_p.h + bluez/profile1context.cpp bluez/profile1context_p.h + bluez/profilemanager1.cpp bluez/profilemanager1_p.h + bluez/properties.cpp bluez/properties_p.h + bluez/remotedevicemanager.cpp bluez/remotedevicemanager_p.h + bluez/service.cpp bluez/service_p.h + bluez/servicemap.cpp bluez/servicemap_p.h + qbluetoothdevicediscoveryagent_bluez.cpp + qbluetoothlocaldevice_bluez.cpp + qbluetoothserver_bluez.cpp + qbluetoothservicediscoveryagent_bluez.cpp + qbluetoothserviceinfo_bluez.cpp + qbluetoothsocket_bluez.cpp qbluetoothsocket_bluez_p.h + qbluetoothsocket_bluezdbus.cpp qbluetoothsocket_bluezdbus_p.h + qbluetoothtransferreply_bluez.cpp qbluetoothtransferreply_bluez_p.h + INCLUDE_DIRECTORIES + core.network_private.includes + LIBRARIES + Qt::Concurrent + Qt::DBus + Qt::Network +) + +extend_target(Bluetooth CONDITION QT_FEATURE_bluez AND QT_FEATURE_bluez_le + SOURCES + lecmaccalculator.cpp + qleadvertiser_bluez.cpp + qlowenergycontroller_bluez.cpp qlowenergycontroller_bluez_p.h + qlowenergycontroller_bluezdbus.cpp qlowenergycontroller_bluezdbus_p.h +) + +extend_target(Bluetooth CONDITION QT_FEATURE_bluez AND QT_FEATURE_bluez_le AND QT_FEATURE_linux_crypto_api + DEFINES + CONFIG_LINUX_CRYPTO_API +) + +extend_target(Bluetooth CONDITION QT_FEATURE_bluez AND NOT QT_FEATURE_bluez_le + SOURCES + dummy/dummy_helper.cpp dummy/dummy_helper_p.h + qlowenergycontroller_dummy.cpp qlowenergycontroller_dummy_p.h + DEFINES + QT_BLUEZ_NO_BTLE +) + +if(ANDROID AND (ANDROID AND NOT ANDROID_EMBEDDED)) + set_property(TARGET Bluetooth APPEND PROPERTY QT_ANDROID_BUNDLED_JAR_DEPENDENCIES + jar/QtAndroidBluetooth.jar:org.qtproject.qt5.android.bluetooth.QtBluetoothBroadcastReceiver + ) + set_property(TARGET Bluetooth APPEND PROPERTY QT_ANDROID_PERMISSIONS + android.permission.ACCESS_COARSE_LOCATION android.permission.BLUETOOTH android.permission.BLUETOOTH_ADMIN + ) +endif() + +extend_target(Bluetooth CONDITION ANDROID AND NOT ANDROID_EMBEDDED AND NOT QT_FEATURE_bluez + SOURCES + android/androidbroadcastreceiver.cpp android/androidbroadcastreceiver_p.h + android/devicediscoverybroadcastreceiver.cpp android/devicediscoverybroadcastreceiver_p.h + android/inputstreamthread.cpp android/inputstreamthread_p.h + android/jni_android.cpp android/jni_android_p.h + android/localdevicebroadcastreceiver.cpp android/localdevicebroadcastreceiver_p.h + android/lowenergynotificationhub.cpp android/lowenergynotificationhub_p.h + android/serveracceptancethread.cpp android/serveracceptancethread_p.h + android/servicediscoverybroadcastreceiver.cpp android/servicediscoverybroadcastreceiver_p.h + qbluetoothdevicediscoveryagent_android.cpp + qbluetoothlocaldevice_android.cpp + qbluetoothserver_android.cpp + qbluetoothservicediscoveryagent_android.cpp + qbluetoothserviceinfo_android.cpp + qbluetoothsocket_android.cpp qbluetoothsocket_android_p.h + qlowenergycontroller_android.cpp qlowenergycontroller_android_p.h + DEFINES + QT_ANDROID_BLUETOOTH + LIBRARIES + Qt::AndroidExtras + Qt::CorePrivate +) + +extend_target(Bluetooth CONDITION APPLE_OSX AND NOT QT_FEATURE_bluez AND (ANDROID_EMBEDDED OR NOT ANDROID) + SOURCES + darwin/btcentralmanager.mm darwin/btcentralmanager_p.h + darwin/btconnectionmonitor.mm darwin/btconnectionmonitor_p.h + darwin/btdelegates.cpp darwin/btdelegates_p.h + darwin/btdeviceinquiry.mm darwin/btdeviceinquiry_p.h + darwin/btdevicepair.mm darwin/btdevicepair_p.h + darwin/btgcdtimer.mm darwin/btgcdtimer_p.h + darwin/btl2capchannel.mm darwin/btl2capchannel_p.h + darwin/btledeviceinquiry.mm darwin/btledeviceinquiry_p.h + darwin/btnotifier.cpp darwin/btnotifier_p.h + darwin/btobexsession.mm darwin/btobexsession_p.h + darwin/btperipheralmanager.mm darwin/btperipheralmanager_p.h + darwin/btraii.mm darwin/btraii_p.h + darwin/btrfcommchannel.mm darwin/btrfcommchannel_p.h + darwin/btsdpinquiry.mm darwin/btsdpinquiry_p.h + darwin/btservicerecord.mm darwin/btservicerecord_p.h + darwin/btsocketlistener.mm darwin/btsocketlistener_p.h + darwin/btutility.mm darwin/btutility_p.h + darwin/uistrings.cpp darwin/uistrings_p.h + qbluetoothdevicediscoveryagent_darwin.mm + qbluetoothlocaldevice_macos.mm + qbluetoothserver_macos.mm + qbluetoothservicediscoveryagent_macos.mm + qbluetoothserviceinfo_macos.mm + qbluetoothsocket_macos.mm qbluetoothsocket_macos_p.h + qbluetoothtransferreply_macos.mm qbluetoothtransferreply_macos_p.h + qlowenergycontroller_darwin.mm qlowenergycontroller_darwin_p.h + DEFINES + QT_OSX_BLUETOOTH + LIBRARIES + ${FWFoundation} + ${FWIOBluetooth} + Qt::Concurrent +) + +extend_target(Bluetooth CONDITION NOT APPLE_OSX AND NOT QT_FEATURE_bluez AND (APPLE_IOS OR APPLE_TVOS) AND (ANDROID_EMBEDDED OR NOT ANDROID) + SOURCES + darwin/btcentralmanager.mm darwin/btcentralmanager_p.h + darwin/btdelegates.cpp darwin/btdelegates_p.h + darwin/btgcdtimer.mm darwin/btgcdtimer_p.h + darwin/btledeviceinquiry.mm darwin/btledeviceinquiry_p.h + darwin/btnotifier.cpp darwin/btnotifier_p.h + darwin/btraii.mm darwin/btraii_p.h + darwin/btutility.mm darwin/btutility_p.h + darwin/uistrings.cpp darwin/uistrings_p.h + qbluetoothdevicediscoveryagent_darwin.mm + qbluetoothlocaldevice_p.cpp + qbluetoothserver_p.cpp + qbluetoothservicediscoveryagent_p.cpp + qbluetoothserviceinfo_p.cpp + qbluetoothsocket_dummy.cpp qbluetoothsocket_dummy_p.h + qlowenergycontroller_darwin.mm qlowenergycontroller_darwin_p.h + DEFINES + QT_IOS_BLUETOOTH + LIBRARIES + ${FWCoreBluetooth} + ${FWFoundation} +) + +extend_target(Bluetooth CONDITION APPLE_IOS AND NOT APPLE_OSX AND NOT QT_FEATURE_bluez AND (ANDROID_EMBEDDED OR NOT ANDROID) + SOURCES + darwin/btperipheralmanager.mm darwin/btperipheralmanager_p.h +) + +extend_target(Bluetooth CONDITION QT_FEATURE_winrt_bt AND NOT APPLE_IOS AND NOT APPLE_OSX AND NOT APPLE_TVOS AND NOT QT_FEATURE_bluez AND (ANDROID_EMBEDDED OR NOT ANDROID) + SOURCES + qbluetoothdevicediscoveryagent_winrt.cpp + qbluetoothlocaldevice_winrt.cpp + qbluetoothserver_winrt.cpp + qbluetoothservicediscoveryagent_winrt.cpp + qbluetoothserviceinfo_winrt.cpp + qbluetoothsocket_winrt.cpp qbluetoothsocket_winrt_p.h + qbluetoothutils_winrt.cpp qbluetoothutils_winrt_p.h + qlowenergycontroller_winrt.cpp qlowenergycontroller_winrt_p.h + DEFINES + QT_WINRT_BLUETOOTH + LIBRARIES + Qt::CorePrivate + PUBLIC_LIBRARIES + Qt::Core +) + +extend_target(Bluetooth CONDITION QT_FEATURE_winrt_bt AND NOT APPLE_IOS AND NOT APPLE_OSX AND NOT APPLE_TVOS AND NOT QT_FEATURE_bluez AND NOT WINRT AND (ANDROID_EMBEDDED OR NOT ANDROID) + SOURCES + qbluetoothutils_win.cpp + DEFINES + CLASSIC_APP_BUILD + PUBLIC_LIBRARIES + runtimeobject.lib + user32.lib +) + +extend_target(Bluetooth CONDITION QT_FEATURE_winrt_bt AND QT_FEATURE_winrt_btle_no_pairing AND NOT APPLE_IOS AND NOT APPLE_OSX AND NOT APPLE_TVOS AND NOT QT_FEATURE_bluez AND (ANDROID_EMBEDDED OR NOT ANDROID) + SOURCES + qlowenergycontroller_winrt_new.cpp qlowenergycontroller_winrt_new_p.h +) + +extend_target(Bluetooth CONDITION QT_FEATURE_winrt_bt AND QT_WINDOWS_SDK_VERSION STRLESS 14393 AND NOT APPLE_IOS AND NOT APPLE_OSX AND NOT APPLE_TVOS AND NOT QT_FEATURE_bluez AND (ANDROID_EMBEDDED OR NOT ANDROID) + DEFINES + QT_UCRTVERSION= + QT_WINRT_LIMITED_SERVICEDISCOVERY +) + +extend_target(Bluetooth CONDITION WIN32 AND NOT QT_FEATURE_bluez AND NOT QT_FEATURE_winrt_bt AND (ANDROID_EMBEDDED OR NOT ANDROID) + SOURCES + qbluetoothdevicediscoveryagent_win.cpp + qbluetoothlocaldevice_win.cpp + qbluetoothserver_win.cpp + qbluetoothservicediscoveryagent_win.cpp + qbluetoothserviceinfo_win.cpp + qbluetoothsocket_win.cpp qbluetoothsocket_win_p.h + qlowenergycontroller_win.cpp qlowenergycontroller_win_p.h + windows/qwinlowenergybluetooth_p.h + DEFINES + QT_WIN_BLUETOOTH + LIBRARIES + Qt::Concurrent + PUBLIC_LIBRARIES + bthprops + setupapi + ws2_32 +) + +extend_target(Bluetooth CONDITION UNIX AND NOT APPLE_IOS AND NOT APPLE_OSX AND NOT APPLE_TVOS AND NOT QT_FEATURE_bluez AND NOT QT_FEATURE_winrt_bt AND (ANDROID_EMBEDDED OR NOT ANDROID) + SOURCES + dummy/dummy_helper.cpp dummy/dummy_helper_p.h + qbluetoothdevicediscoveryagent_p.cpp + qbluetoothlocaldevice_p.cpp + qbluetoothserver_p.cpp + qbluetoothservicediscoveryagent_p.cpp + qbluetoothserviceinfo_p.cpp + qbluetoothsocket_dummy.cpp qbluetoothsocket_dummy_p.h + qlowenergycontroller_dummy.cpp qlowenergycontroller_dummy_p.h +) + +#### Keys ignored in scope 21:.:.:bluetooth.pro:WINRT: +# MODULE_WINRT_CAPABILITIES_DEVICE = "bluetooth.genericAttributeProfile" "bluetooth.rfcomm" +add_qt_docs(Bluetooth + doc/qtbluetooth.qdocconf +) + diff --git a/src/bluetooth/CMakeLists.txt b/src/bluetooth/CMakeLists.txt new file mode 100644 index 00000000..b9015cc6 --- /dev/null +++ b/src/bluetooth/CMakeLists.txt @@ -0,0 +1,321 @@ +# Generated from bluetooth.pro. + +##################################################################### +## Bluetooth Module: +##################################################################### + +add_qt_module(Bluetooth + SOURCES + lecmaccalculator_p.h + qbluetooth.cpp qbluetooth.h + qbluetoothaddress.cpp qbluetoothaddress.h qbluetoothaddress_p.h + qbluetoothdevicediscoveryagent.cpp qbluetoothdevicediscoveryagent.h qbluetoothdevicediscoveryagent_p.h + qbluetoothdeviceinfo.cpp qbluetoothdeviceinfo.h qbluetoothdeviceinfo_p.h + qbluetoothhostinfo.cpp qbluetoothhostinfo.h qbluetoothhostinfo_p.h + qbluetoothlocaldevice.cpp qbluetoothlocaldevice.h qbluetoothlocaldevice_p.h + qbluetoothserver.cpp qbluetoothserver.h qbluetoothserver_p.h + qbluetoothservicediscoveryagent.cpp qbluetoothservicediscoveryagent.h qbluetoothservicediscoveryagent_p.h + qbluetoothserviceinfo.cpp qbluetoothserviceinfo.h qbluetoothserviceinfo_p.h + qbluetoothsocket.cpp qbluetoothsocket.h + qbluetoothsocketbase.cpp qbluetoothsocketbase_p.h + qbluetoothtransfermanager.cpp qbluetoothtransfermanager.h + qbluetoothtransferreply.cpp qbluetoothtransferreply.h qbluetoothtransferreply_p.h + qbluetoothtransferrequest.cpp qbluetoothtransferrequest.h qbluetoothtransferrequest_p.h + qbluetoothuuid.cpp qbluetoothuuid.h + qleadvertiser_p.h + qlowenergyadvertisingdata.cpp qlowenergyadvertisingdata.h + qlowenergyadvertisingparameters.cpp qlowenergyadvertisingparameters.h + qlowenergycharacteristic.cpp qlowenergycharacteristic.h + qlowenergycharacteristicdata.cpp qlowenergycharacteristicdata.h + qlowenergyconnectionparameters.cpp qlowenergyconnectionparameters.h + qlowenergycontroller.cpp qlowenergycontroller.h + qlowenergycontrollerbase.cpp qlowenergycontrollerbase_p.h + qlowenergydescriptor.cpp qlowenergydescriptor.h + qlowenergydescriptordata.cpp qlowenergydescriptordata.h + qlowenergyservice.cpp qlowenergyservice.h + qlowenergyservicedata.cpp qlowenergyservicedata.h + qlowenergyserviceprivate.cpp qlowenergyserviceprivate_p.h + qprivatelinearbuffer_p.h + qtbluetoothglobal.h qtbluetoothglobal_p.h + DEFINES + QT_NO_FOREACH + LIBRARIES + Qt::CorePrivate + PUBLIC_LIBRARIES + Qt::Core +) + +#### Keys ignored in scope 1:.:.:bluetooth.pro:<TRUE>: +# OTHER_FILES = "doc/src/*.qdoc" +# _LOADED = "qt_module" + +## Scopes: +##################################################################### + +#### Keys ignored in scope 2:.:.:bluetooth.pro:WIN32: +# WINDOWS_SDK_VERSION = "$$member($$list $$split WINDOWS_SDK_VERSION_STRING, . , 2)" +# WINDOWS_SDK_VERSION_STRING = "$$(WindowsSDKVersion)" + +# special case begin +if (WIN32) + string(REGEX MATCHALL "[0-9]+\\.|[0-9]+$" VERSIONLIST $ENV{WindowsSDKVersion}) + list(GET VERSIONLIST 2 WINDOWS_SDK_VERSION_PATCH) +endif() + +extend_target(Bluetooth CONDITION WIN32 + DEFINES + QT_UCRTVERSION="${WINDOWS_SDK_VERSION_PATCH}" +) + +extend_target(Bluetooth CONDITION WIN32 AND WINDOWS_SDK_VERSION LESS 14393 + DEFINES + QT_WINRT_LIMITED_SERVICEDISCOVERY +) +# special case end + +extend_target(Bluetooth CONDITION QT_FEATURE_bluez + SOURCES + bluez/adapter.cpp bluez/adapter_p.h + bluez/adapter1_bluez5.cpp bluez/adapter1_bluez5_p.h + bluez/agent.cpp bluez/agent_p.h + bluez/battery1.cpp bluez/battery1_p.h + bluez/bluetoothmanagement.cpp bluez/bluetoothmanagement_p.h + bluez/bluez5_helper.cpp bluez/bluez5_helper_p.h + bluez/bluez_data_p.h + bluez/device.cpp bluez/device_p.h + bluez/device1_bluez5.cpp bluez/device1_bluez5_p.h + bluez/gattchar1.cpp bluez/gattchar1_p.h + bluez/gattdesc1.cpp bluez/gattdesc1_p.h + bluez/gattservice1.cpp bluez/gattservice1_p.h + bluez/hcimanager.cpp bluez/hcimanager_p.h + bluez/manager.cpp bluez/manager_p.h + bluez/obex_agent.cpp bluez/obex_agent_p.h + bluez/obex_client.cpp bluez/obex_client_p.h + bluez/obex_client1_bluez5.cpp bluez/obex_client1_bluez5_p.h + bluez/obex_manager.cpp bluez/obex_manager_p.h + bluez/obex_objectpush1_bluez5.cpp bluez/obex_objectpush1_bluez5_p.h + bluez/obex_transfer.cpp bluez/obex_transfer_p.h + bluez/obex_transfer1_bluez5.cpp bluez/obex_transfer1_bluez5_p.h + bluez/objectmanager.cpp bluez/objectmanager_p.h + bluez/profile1.cpp bluez/profile1_p.h + bluez/profile1context.cpp bluez/profile1context_p.h + bluez/profilemanager1.cpp bluez/profilemanager1_p.h + bluez/properties.cpp bluez/properties_p.h + bluez/remotedevicemanager.cpp bluez/remotedevicemanager_p.h + bluez/service.cpp bluez/service_p.h + bluez/servicemap.cpp bluez/servicemap_p.h + qbluetoothdevicediscoveryagent_bluez.cpp + qbluetoothlocaldevice_bluez.cpp + qbluetoothserver_bluez.cpp + qbluetoothservicediscoveryagent_bluez.cpp + qbluetoothserviceinfo_bluez.cpp + qbluetoothsocket_bluez.cpp qbluetoothsocket_bluez_p.h + qbluetoothsocket_bluezdbus.cpp qbluetoothsocket_bluezdbus_p.h + qbluetoothtransferreply_bluez.cpp qbluetoothtransferreply_bluez_p.h + INCLUDE_DIRECTORIES + core.network_private.includes + LIBRARIES + Qt::Concurrent + Qt::DBus + Qt::Network +) + +extend_target(Bluetooth CONDITION QT_FEATURE_bluez AND QT_FEATURE_bluez_le + SOURCES + lecmaccalculator.cpp + qleadvertiser_bluez.cpp + qlowenergycontroller_bluez.cpp qlowenergycontroller_bluez_p.h + qlowenergycontroller_bluezdbus.cpp qlowenergycontroller_bluezdbus_p.h +) + +extend_target(Bluetooth CONDITION QT_FEATURE_bluez AND QT_FEATURE_bluez_le AND QT_FEATURE_linux_crypto_api + DEFINES + CONFIG_LINUX_CRYPTO_API +) + +extend_target(Bluetooth CONDITION QT_FEATURE_bluez AND NOT QT_FEATURE_bluez_le + SOURCES + dummy/dummy_helper.cpp dummy/dummy_helper_p.h + qlowenergycontroller_dummy.cpp qlowenergycontroller_dummy_p.h + DEFINES + QT_BLUEZ_NO_BTLE +) + +if(ANDROID AND (ANDROID AND NOT ANDROID_EMBEDDED)) + set_property(TARGET Bluetooth APPEND PROPERTY QT_ANDROID_BUNDLED_JAR_DEPENDENCIES + jar/QtAndroidBluetooth.jar:org.qtproject.qt5.android.bluetooth.QtBluetoothBroadcastReceiver + ) + set_property(TARGET Bluetooth APPEND PROPERTY QT_ANDROID_PERMISSIONS + android.permission.ACCESS_COARSE_LOCATION android.permission.BLUETOOTH android.permission.BLUETOOTH_ADMIN + ) +endif() + +extend_target(Bluetooth CONDITION ANDROID AND NOT ANDROID_EMBEDDED AND NOT QT_FEATURE_bluez + SOURCES + android/androidbroadcastreceiver.cpp android/androidbroadcastreceiver_p.h + android/devicediscoverybroadcastreceiver.cpp android/devicediscoverybroadcastreceiver_p.h + android/inputstreamthread.cpp android/inputstreamthread_p.h + android/jni_android.cpp android/jni_android_p.h + android/localdevicebroadcastreceiver.cpp android/localdevicebroadcastreceiver_p.h + android/lowenergynotificationhub.cpp android/lowenergynotificationhub_p.h + android/serveracceptancethread.cpp android/serveracceptancethread_p.h + android/servicediscoverybroadcastreceiver.cpp android/servicediscoverybroadcastreceiver_p.h + qbluetoothdevicediscoveryagent_android.cpp + qbluetoothlocaldevice_android.cpp + qbluetoothserver_android.cpp + qbluetoothservicediscoveryagent_android.cpp + qbluetoothserviceinfo_android.cpp + qbluetoothsocket_android.cpp qbluetoothsocket_android_p.h + qlowenergycontroller_android.cpp qlowenergycontroller_android_p.h + DEFINES + QT_ANDROID_BLUETOOTH + LIBRARIES + Qt::AndroidExtras + Qt::CorePrivate +) + +extend_target(Bluetooth CONDITION APPLE_OSX AND NOT QT_FEATURE_bluez AND (ANDROID_EMBEDDED OR NOT ANDROID) + SOURCES + darwin/btcentralmanager.mm darwin/btcentralmanager_p.h + darwin/btconnectionmonitor.mm darwin/btconnectionmonitor_p.h + darwin/btdelegates.cpp darwin/btdelegates_p.h + darwin/btdeviceinquiry.mm darwin/btdeviceinquiry_p.h + darwin/btdevicepair.mm darwin/btdevicepair_p.h + darwin/btgcdtimer.mm darwin/btgcdtimer_p.h + darwin/btl2capchannel.mm darwin/btl2capchannel_p.h + darwin/btledeviceinquiry.mm darwin/btledeviceinquiry_p.h + darwin/btnotifier.cpp darwin/btnotifier_p.h + darwin/btobexsession.mm darwin/btobexsession_p.h + darwin/btperipheralmanager.mm darwin/btperipheralmanager_p.h + darwin/btraii.mm darwin/btraii_p.h + darwin/btrfcommchannel.mm darwin/btrfcommchannel_p.h + darwin/btsdpinquiry.mm darwin/btsdpinquiry_p.h + darwin/btservicerecord.mm darwin/btservicerecord_p.h + darwin/btsocketlistener.mm darwin/btsocketlistener_p.h + darwin/btutility.mm darwin/btutility_p.h + darwin/uistrings.cpp darwin/uistrings_p.h + qbluetoothdevicediscoveryagent_darwin.mm + qbluetoothlocaldevice_macos.mm + qbluetoothserver_macos.mm + qbluetoothservicediscoveryagent_macos.mm + qbluetoothserviceinfo_macos.mm + qbluetoothsocket_macos.mm qbluetoothsocket_macos_p.h + qbluetoothtransferreply_macos.mm qbluetoothtransferreply_macos_p.h + qlowenergycontroller_darwin.mm qlowenergycontroller_darwin_p.h + DEFINES + QT_OSX_BLUETOOTH + LIBRARIES + ${FWFoundation} + ${FWIOBluetooth} + Qt::Concurrent +) + +extend_target(Bluetooth CONDITION NOT APPLE_OSX AND NOT QT_FEATURE_bluez AND (APPLE_IOS OR APPLE_TVOS) AND (ANDROID_EMBEDDED OR NOT ANDROID) + SOURCES + darwin/btcentralmanager.mm darwin/btcentralmanager_p.h + darwin/btdelegates.cpp darwin/btdelegates_p.h + darwin/btgcdtimer.mm darwin/btgcdtimer_p.h + darwin/btledeviceinquiry.mm darwin/btledeviceinquiry_p.h + darwin/btnotifier.cpp darwin/btnotifier_p.h + darwin/btraii.mm darwin/btraii_p.h + darwin/btutility.mm darwin/btutility_p.h + darwin/uistrings.cpp darwin/uistrings_p.h + qbluetoothdevicediscoveryagent_darwin.mm + qbluetoothlocaldevice_p.cpp + qbluetoothserver_p.cpp + qbluetoothservicediscoveryagent_p.cpp + qbluetoothserviceinfo_p.cpp + qbluetoothsocket_dummy.cpp qbluetoothsocket_dummy_p.h + qlowenergycontroller_darwin.mm qlowenergycontroller_darwin_p.h + DEFINES + QT_IOS_BLUETOOTH + LIBRARIES + ${FWCoreBluetooth} + ${FWFoundation} +) + +extend_target(Bluetooth CONDITION APPLE_IOS AND NOT APPLE_OSX AND NOT QT_FEATURE_bluez AND (ANDROID_EMBEDDED OR NOT ANDROID) + SOURCES + darwin/btperipheralmanager.mm darwin/btperipheralmanager_p.h +) + +extend_target(Bluetooth CONDITION QT_FEATURE_winrt_bt AND NOT APPLE_IOS AND NOT APPLE_OSX AND NOT APPLE_TVOS AND NOT QT_FEATURE_bluez AND (ANDROID_EMBEDDED OR NOT ANDROID) + SOURCES + qbluetoothdevicediscoveryagent_winrt.cpp + qbluetoothlocaldevice_winrt.cpp + qbluetoothserver_winrt.cpp + qbluetoothservicediscoveryagent_winrt.cpp + qbluetoothserviceinfo_winrt.cpp + qbluetoothsocket_winrt.cpp qbluetoothsocket_winrt_p.h + qbluetoothutils_winrt.cpp qbluetoothutils_winrt_p.h + qlowenergycontroller_winrt.cpp qlowenergycontroller_winrt_p.h + DEFINES + QT_WINRT_BLUETOOTH + LIBRARIES + Qt::CorePrivate + PUBLIC_LIBRARIES + Qt::Core +) + +extend_target(Bluetooth CONDITION QT_FEATURE_winrt_bt AND NOT APPLE_IOS AND NOT APPLE_OSX AND NOT APPLE_TVOS AND NOT QT_FEATURE_bluez AND NOT WINRT AND (ANDROID_EMBEDDED OR NOT ANDROID) + SOURCES + qbluetoothutils_win.cpp + DEFINES + CLASSIC_APP_BUILD + PUBLIC_LIBRARIES + runtimeobject.lib + user32.lib +) + +extend_target(Bluetooth CONDITION QT_FEATURE_winrt_bt AND QT_FEATURE_winrt_btle_no_pairing AND NOT APPLE_IOS AND NOT APPLE_OSX AND NOT APPLE_TVOS AND NOT QT_FEATURE_bluez AND (ANDROID_EMBEDDED OR NOT ANDROID) + SOURCES + qlowenergycontroller_winrt_new.cpp qlowenergycontroller_winrt_new_p.h +) + + +# special case begin +# extend_target(Bluetooth CONDITION (((((NOT (QT_FEATURE_bluez)) AND (NOT (ANDROID AND NOT ANDROID_EMBEDDED))) AND (NOT (APPLE_OSX))) AND (NOT (APPLE_IOS OR APPLE_TVOS))) AND (QT_FEATURE_winrt_bt)) AND (lessThan(WINDOWS_SDK_VERSION, 14393)) +# DEFINES +# QT_UCRTVERSION= +# QT_WINRT_LIMITED_SERVICEDISCOVERY +#) +# special case end + +extend_target(Bluetooth CONDITION WIN32 AND NOT QT_FEATURE_bluez AND NOT QT_FEATURE_winrt_bt AND (ANDROID_EMBEDDED OR NOT ANDROID) + SOURCES + qbluetoothdevicediscoveryagent_win.cpp + qbluetoothlocaldevice_win.cpp + qbluetoothserver_win.cpp + qbluetoothservicediscoveryagent_win.cpp + qbluetoothserviceinfo_win.cpp + qbluetoothsocket_win.cpp qbluetoothsocket_win_p.h + qlowenergycontroller_win.cpp qlowenergycontroller_win_p.h + windows/qwinlowenergybluetooth_p.h + DEFINES + QT_WIN_BLUETOOTH + LIBRARIES + Qt::Concurrent + PUBLIC_LIBRARIES + bthprops + setupapi + ws2_32 +) + +extend_target(Bluetooth CONDITION UNIX AND NOT APPLE_IOS AND NOT APPLE_OSX AND NOT APPLE_TVOS AND NOT QT_FEATURE_bluez AND NOT QT_FEATURE_winrt_bt AND (ANDROID_EMBEDDED OR NOT ANDROID) + SOURCES + dummy/dummy_helper.cpp dummy/dummy_helper_p.h + qbluetoothdevicediscoveryagent_p.cpp + qbluetoothlocaldevice_p.cpp + qbluetoothserver_p.cpp + qbluetoothservicediscoveryagent_p.cpp + qbluetoothserviceinfo_p.cpp + qbluetoothsocket_dummy.cpp qbluetoothsocket_dummy_p.h + qlowenergycontroller_dummy.cpp qlowenergycontroller_dummy_p.h +) + +#### Keys ignored in scope 19:.:.:bluetooth.pro:WINRT: +# MODULE_WINRT_CAPABILITIES_DEVICE = "bluetooth.genericAttributeProfile" "bluetooth.rfcomm" +add_qt_docs(Bluetooth + doc/qtbluetooth.qdocconf +) + diff --git a/src/bluetooth/configure.cmake b/src/bluetooth/configure.cmake new file mode 100644 index 00000000..97400f78 --- /dev/null +++ b/src/bluetooth/configure.cmake @@ -0,0 +1,61 @@ + + +#### Inputs + + + +#### Libraries + +qt_find_package(BlueZ PROVIDED_TARGETS PkgConfig::BlueZ) + + +#### Tests + + +if(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/../../config.tests/bluez_le/CMakeLists.txt") + qt_config_compile_test("bluez_le" + LABEL "BlueZ Low Energy" + PROJECT_PATH "${CMAKE_CURRENT_SOURCE_DIR}/../../config.tests/bluez_le") +endif() + +if(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/../../config.tests/linux_crypto_api/CMakeLists.txt") + qt_config_compile_test("linux_crypto_api" + LABEL "Linux Crypto API" + PROJECT_PATH "${CMAKE_CURRENT_SOURCE_DIR}/../../config.tests/linux_crypto_api") +endif() + +if(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/../../config.tests/winrt_bt/CMakeLists.txt") + qt_config_compile_test("winrt_bt" + LABEL "WinRT Bluetooth API" + PROJECT_PATH "${CMAKE_CURRENT_SOURCE_DIR}/../../config.tests/winrt_bt") +endif() + +if(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/../../config.tests/winrt_btle_no_pairing/CMakeLists.txt") + qt_config_compile_test("winrt_btle_no_pairing" + LABEL "WinRT extended bluetooth low energy API" + PROJECT_PATH "${CMAKE_CURRENT_SOURCE_DIR}/../../config.tests/winrt_btle_no_pairing") +endif() + + +#### Features + +qt_feature("bluez" PUBLIC + LABEL "BlueZ" + CONDITION BlueZ_FOUND AND QT_FEATURE_concurrent AND QT_FEATURE_dbus +) +qt_feature("bluez_le" PRIVATE + LABEL "BlueZ Low Energy" + CONDITION QT_FEATURE_bluez AND TEST_bluez_le +) +qt_feature("linux_crypto_api" PRIVATE + LABEL "Linux Crypto API" + CONDITION QT_FEATURE_bluez_le AND TEST_linux_crypto_api +) +qt_feature("winrt_bt" PRIVATE + LABEL "WinRT Bluetooth API (desktop & UWP)" + CONDITION WIN32 AND TEST_winrt_bt +) +qt_feature("winrt_btle_no_pairing" PRIVATE + LABEL "WinRT advanced bluetooth low energy API (desktop & UWP)" + CONDITION WIN32 AND QT_FEATURE_winrt_bt AND TEST_winrt_btle_no_pairing +) diff --git a/src/imports/CMakeLists.txt b/src/imports/CMakeLists.txt new file mode 100644 index 00000000..a59e2ae2 --- /dev/null +++ b/src/imports/CMakeLists.txt @@ -0,0 +1,8 @@ +# Generated from imports.pro. + +if(TARGET Qt::Bluetooth) + add_subdirectory(bluetooth) +endif() +if(TARGET Qt::Nfc) + add_subdirectory(nfc) +endif() diff --git a/src/imports/bluetooth/.prev_CMakeLists.txt b/src/imports/bluetooth/.prev_CMakeLists.txt new file mode 100644 index 00000000..bd37eb54 --- /dev/null +++ b/src/imports/bluetooth/.prev_CMakeLists.txt @@ -0,0 +1,26 @@ +# Generated from bluetooth.pro. + +##################################################################### +## bluetooth Plugin: +##################################################################### + +add_qml_module(bluetooth + URI "QtBluetooth" + CLASSNAME QBluetoothQmlPlugin + SKIP_TYPE_REGISTRATION + SOURCES + plugin.cpp + qdeclarativebluetoothdiscoverymodel.cpp qdeclarativebluetoothdiscoverymodel_p.h + qdeclarativebluetoothservice.cpp qdeclarativebluetoothservice_p.h + qdeclarativebluetoothsocket.cpp qdeclarativebluetoothsocket_p.h + DEFINES + QT_DISABLE_DEPRECATED_BEFORE=0 + PUBLIC_LIBRARIES + Qt::Bluetooth + Qt::Core + Qt::Quick +) + +#### Keys ignored in scope 1:.:.:bluetooth.pro:<TRUE>: +# TARGETPATH = "QtBluetooth" +# _LOADED = "qml_plugin" diff --git a/src/imports/bluetooth/CMakeLists.txt b/src/imports/bluetooth/CMakeLists.txt new file mode 100644 index 00000000..4663368d --- /dev/null +++ b/src/imports/bluetooth/CMakeLists.txt @@ -0,0 +1,26 @@ +# Generated from bluetooth.pro. + +##################################################################### +## bluetooth Plugin: +##################################################################### + +add_qml_module(declarative_bluetooth # special case + URI "QtBluetooth" + CLASSNAME QBluetoothQmlPlugin + SKIP_TYPE_REGISTRATION + SOURCES + plugin.cpp + qdeclarativebluetoothdiscoverymodel.cpp qdeclarativebluetoothdiscoverymodel_p.h + qdeclarativebluetoothservice.cpp qdeclarativebluetoothservice_p.h + qdeclarativebluetoothsocket.cpp qdeclarativebluetoothsocket_p.h + DEFINES + QT_DISABLE_DEPRECATED_BEFORE=0 + PUBLIC_LIBRARIES + Qt::Bluetooth + Qt::Core + Qt::Quick +) + +#### Keys ignored in scope 1:.:.:bluetooth.pro:<TRUE>: +# TARGETPATH = "QtBluetooth" +# _LOADED = "qml_plugin" diff --git a/src/imports/nfc/.prev_CMakeLists.txt b/src/imports/nfc/.prev_CMakeLists.txt new file mode 100644 index 00000000..549747cd --- /dev/null +++ b/src/imports/nfc/.prev_CMakeLists.txt @@ -0,0 +1,26 @@ +# Generated from nfc.pro. + +##################################################################### +## nfc Plugin: +##################################################################### + +add_qml_module(nfc + URI "QtNfc" + CLASSNAME QNfcQmlPlugin + SKIP_TYPE_REGISTRATION + SOURCES + plugin.cpp + qdeclarativendeffilter.cpp qdeclarativendeffilter_p.h + qdeclarativendefmimerecord.cpp qdeclarativendefmimerecord_p.h + qdeclarativendeftextrecord.cpp qdeclarativendeftextrecord_p.h + qdeclarativendefurirecord.cpp qdeclarativendefurirecord_p.h + qdeclarativenearfield.cpp qdeclarativenearfield_p.h + PUBLIC_LIBRARIES + Qt::Core + Qt::Nfc + Qt::Qml +) + +#### Keys ignored in scope 1:.:.:nfc.pro:<TRUE>: +# TARGETPATH = "QtNfc" +# _LOADED = "qml_plugin" diff --git a/src/imports/nfc/CMakeLists.txt b/src/imports/nfc/CMakeLists.txt new file mode 100644 index 00000000..af93521e --- /dev/null +++ b/src/imports/nfc/CMakeLists.txt @@ -0,0 +1,26 @@ +# Generated from nfc.pro. + +##################################################################### +## nfc Plugin: +##################################################################### + +add_qml_module(declarative_nfc # special case + URI "QtNfc" + CLASSNAME QNfcQmlPlugin + SKIP_TYPE_REGISTRATION + SOURCES + plugin.cpp + qdeclarativendeffilter.cpp qdeclarativendeffilter_p.h + qdeclarativendefmimerecord.cpp qdeclarativendefmimerecord_p.h + qdeclarativendeftextrecord.cpp qdeclarativendeftextrecord_p.h + qdeclarativendefurirecord.cpp qdeclarativendefurirecord_p.h + qdeclarativenearfield.cpp qdeclarativenearfield_p.h + PUBLIC_LIBRARIES + Qt::Core + Qt::Nfc + Qt::Qml +) + +#### Keys ignored in scope 1:.:.:nfc.pro:<TRUE>: +# TARGETPATH = "QtNfc" +# _LOADED = "qml_plugin" diff --git a/src/nfc/.prev_CMakeLists.txt b/src/nfc/.prev_CMakeLists.txt new file mode 100644 index 00000000..a8c05e36 --- /dev/null +++ b/src/nfc/.prev_CMakeLists.txt @@ -0,0 +1,113 @@ +# Generated from nfc.pro. + +##################################################################### +## Nfc Module: +##################################################################### + +add_qt_module(Nfc + SOURCES + qllcpserver.cpp qllcpserver_p.h + qllcpsocket.cpp qllcpsocket_p.h + qndeffilter.cpp qndeffilter.h + qndefmessage.cpp qndefmessage.h + qndefnfcsmartposterrecord.cpp qndefnfcsmartposterrecord.h qndefnfcsmartposterrecord_p.h + qndefnfctextrecord.cpp qndefnfctextrecord.h + qndefnfcurirecord.cpp qndefnfcurirecord.h + qndefrecord.cpp qndefrecord.h qndefrecord_p.h + qnearfieldmanager.cpp qnearfieldmanager.h qnearfieldmanager_p.h + qnearfieldsharemanager.cpp qnearfieldsharemanager.h qnearfieldsharemanager_p.h + qnearfieldsharetarget.cpp qnearfieldsharetarget.h qnearfieldsharetarget_p.h + qnearfieldtagtype1.cpp qnearfieldtagtype1_p.h + qnearfieldtagtype2.cpp qnearfieldtagtype2_p.h + qnearfieldtagtype3.cpp qnearfieldtagtype3_p.h + qnearfieldtagtype4.cpp qnearfieldtagtype4_p.h + qnearfieldtarget.cpp qnearfieldtarget.h qnearfieldtarget_p.h + qnfc.cpp + qqmlndefrecord.cpp qqmlndefrecord.h + qtlv.cpp qtlv_p.h + qtnfcglobal.h qtnfcglobal_p.h + DEFINES + QT_NO_FOREACH + PUBLIC_LIBRARIES + Qt::Core +) + +#### Keys ignored in scope 1:.:.:nfc.pro:<TRUE>: +# OTHER_FILES = "doc/src/*.qdoc" +# _LOADED = "qt_module" + +## Scopes: +##################################################################### + +extend_target(Nfc CONDITION LINUX AND TARGET Qt::DBus + SOURCES + neard/adapter.cpp neard/adapter_p.h + neard/agent.cpp neard/agent_p.h + neard/dbusobjectmanager.cpp neard/dbusobjectmanager_p.h + neard/dbusproperties.cpp neard/dbusproperties_p.h + neard/manager.cpp neard/manager_p.h + neard/neard_helper.cpp neard/neard_helper_p.h + neard/tag.cpp neard/tag_p.h + qllcpserver_p.cpp + qllcpserver_p_p.h + qllcpsocket_p.cpp + qllcpsocket_p_p.h + qnearfieldmanager_neard.cpp qnearfieldmanager_neard_p.h + qnearfieldsharemanagerimpl_p.cpp qnearfieldsharemanagerimpl_p.h + qnearfieldsharetargetimpl_p.cpp qnearfieldsharetargetimpl_p.h + qnearfieldtarget_neard_p.cpp qnearfieldtarget_neard_p.h + DEFINES + NEARD_NFC + LIBRARIES + Qt::DBus +) + +#### Keys ignored in scope 2:.:.:nfc.pro:LINUX AND NOT ANDROID AND TARGET Qt::DBus: +# NFC_BACKEND_AVAILABLE = "yes" + +if(ANDROID AND (ANDROID AND NOT ANDROID_EMBEDDED)) + set_property(TARGET Nfc APPEND PROPERTY QT_ANDROID_BUNDLED_JAR_DEPENDENCIES + jar/QtNfc.jar:org.qtproject.qt5.android.nfc.QtNfc + ) + set_property(TARGET Nfc APPEND PROPERTY QT_ANDROID_PERMISSIONS + android.permission.NFC + ) +endif() + +extend_target(Nfc CONDITION ANDROID AND NOT ANDROID_EMBEDDED + SOURCES + android/androidjninfc.cpp android/androidjninfc_p.h + android/androidmainnewintentlistener.cpp android/androidmainnewintentlistener_p.h + qllcpserver_android_p.cpp qllcpserver_android_p.h + qllcpsocket_android_p.cpp qllcpsocket_android_p.h + qnearfieldmanager_android.cpp qnearfieldmanager_android_p.h + qnearfieldsharemanagerimpl_p.cpp qnearfieldsharemanagerimpl_p.h + qnearfieldsharetargetimpl_p.cpp qnearfieldsharetargetimpl_p.h + qnearfieldtarget_android.cpp qnearfieldtarget_android_p.cpp qnearfieldtarget_android_p.h + DEFINES + ANDROID_NFC + QT_ANDROID_NFC + LIBRARIES + Qt::AndroidExtras + Qt::CorePrivate + Qt::Gui +) + +#### Keys ignored in scope 4:.:.:nfc.pro:ANDROID AND NOT ANDROID_EMBEDDED: +# NFC_BACKEND_AVAILABLE = "yes" + +extend_target(Nfc CONDITION NFC_BACKEND_AVAILABLE_ISEMPTY + SOURCES + qllcpserver_p.cpp + qllcpserver_p_p.h + qllcpsocket_p.cpp + qllcpsocket_p_p.h + qnearfieldmanagerimpl_p.cpp qnearfieldmanagerimpl_p.h + qnearfieldsharemanagerimpl_p.cpp qnearfieldsharemanagerimpl_p.h + qnearfieldsharetargetimpl_p.cpp qnearfieldsharetargetimpl_p.h + qnearfieldtarget_p.cpp +) +add_qt_docs(Nfc + doc/qtnfc.qdocconf +) + diff --git a/src/nfc/CMakeLists.txt b/src/nfc/CMakeLists.txt new file mode 100644 index 00000000..6ab92cda --- /dev/null +++ b/src/nfc/CMakeLists.txt @@ -0,0 +1,123 @@ +# Generated from nfc.pro. + +##################################################################### +## Nfc Module: +##################################################################### + +add_qt_module(Nfc + SOURCES + qllcpserver.cpp qllcpserver_p.h + qllcpsocket.cpp qllcpsocket_p.h + qndeffilter.cpp qndeffilter.h + qndefmessage.cpp qndefmessage.h + qndefnfcsmartposterrecord.cpp qndefnfcsmartposterrecord.h qndefnfcsmartposterrecord_p.h + qndefnfctextrecord.cpp qndefnfctextrecord.h + qndefnfcurirecord.cpp qndefnfcurirecord.h + qndefrecord.cpp qndefrecord.h qndefrecord_p.h + qnearfieldmanager.cpp qnearfieldmanager.h qnearfieldmanager_p.h + qnearfieldsharemanager.cpp qnearfieldsharemanager.h qnearfieldsharemanager_p.h + qnearfieldsharetarget.cpp qnearfieldsharetarget.h qnearfieldsharetarget_p.h + qnearfieldtagtype1.cpp qnearfieldtagtype1_p.h + qnearfieldtagtype2.cpp qnearfieldtagtype2_p.h + qnearfieldtagtype3.cpp qnearfieldtagtype3_p.h + qnearfieldtagtype4.cpp qnearfieldtagtype4_p.h + qnearfieldtarget.cpp qnearfieldtarget.h qnearfieldtarget_p.h + qnfc.cpp + qqmlndefrecord.cpp qqmlndefrecord.h + qtlv.cpp qtlv_p.h + qtnfcglobal.h qtnfcglobal_p.h + DEFINES + QT_NO_FOREACH + PUBLIC_LIBRARIES + Qt::Core +) + +#### Keys ignored in scope 1:.:.:nfc.pro:<TRUE>: +# OTHER_FILES = "doc/src/*.qdoc" +# _LOADED = "qt_module" + +## Scopes: +##################################################################### + +extend_target(Nfc CONDITION LINUX AND TARGET Qt::DBus + SOURCES + neard/adapter.cpp neard/adapter_p.h + neard/agent.cpp neard/agent_p.h + neard/dbusobjectmanager.cpp neard/dbusobjectmanager_p.h + neard/dbusproperties.cpp neard/dbusproperties_p.h + neard/manager.cpp neard/manager_p.h + neard/neard_helper.cpp neard/neard_helper_p.h + neard/tag.cpp neard/tag_p.h + qllcpserver_p.cpp + qllcpserver_p_p.h + qllcpsocket_p.cpp + qllcpsocket_p_p.h + qnearfieldmanager_neard.cpp qnearfieldmanager_neard_p.h + qnearfieldsharemanagerimpl_p.cpp qnearfieldsharemanagerimpl_p.h + qnearfieldsharetargetimpl_p.cpp qnearfieldsharetargetimpl_p.h + qnearfieldtarget_neard_p.cpp qnearfieldtarget_neard_p.h + DEFINES + NEARD_NFC + LIBRARIES + Qt::DBus +) + +# special case begin +if(LINUX AND TARGET Qt::DBus) + set(NFC_BACKEND_AVAILABLE ON) +endif() +# special case end + +#### Keys ignored in scope 2:.:.:nfc.pro:LINUX AND NOT ANDROID AND TARGET Qt::DBus: +# NFC_BACKEND_AVAILABLE = "yes" + +if(ANDROID AND (ANDROID AND NOT ANDROID_EMBEDDED)) + set_property(TARGET Nfc APPEND PROPERTY QT_ANDROID_BUNDLED_JAR_DEPENDENCIES + jar/QtNfc.jar:org.qtproject.qt5.android.nfc.QtNfc + ) + set_property(TARGET Nfc APPEND PROPERTY QT_ANDROID_PERMISSIONS + android.permission.NFC + ) + set(NFC_BACKEND_AVAILABLE ON) # special case +endif() + +extend_target(Nfc CONDITION ANDROID AND NOT ANDROID_EMBEDDED + SOURCES + android/androidjninfc.cpp android/androidjninfc_p.h + android/androidmainnewintentlistener.cpp android/androidmainnewintentlistener_p.h + qllcpserver_android_p.cpp qllcpserver_android_p.h + qllcpsocket_android_p.cpp qllcpsocket_android_p.h + qnearfieldmanager_android.cpp qnearfieldmanager_android_p.h + qnearfieldsharemanagerimpl_p.cpp qnearfieldsharemanagerimpl_p.h + qnearfieldsharetargetimpl_p.cpp qnearfieldsharetargetimpl_p.h + qnearfieldtarget_android.cpp qnearfieldtarget_android_p.cpp qnearfieldtarget_android_p.h + DEFINES + ANDROID_NFC + QT_ANDROID_NFC + LIBRARIES + Qt::AndroidExtras + Qt::CorePrivate + Qt::Gui +) + +#### Keys ignored in scope 4:.:.:nfc.pro:ANDROID AND NOT ANDROID_EMBEDDED: +# NFC_BACKEND_AVAILABLE = "yes" + +# special case begin +# extend_target(Nfc CONDITION NFC_BACKEND_AVAILABLE_ISEMPTY +extend_target(Nfc CONDITION NOT NFC_BACKEND_AVAILABLE +# special case end + SOURCES + qllcpserver_p.cpp + qllcpserver_p_p.h + qllcpsocket_p.cpp + qllcpsocket_p_p.h + qnearfieldmanagerimpl_p.cpp qnearfieldmanagerimpl_p.h + qnearfieldsharemanagerimpl_p.cpp qnearfieldsharemanagerimpl_p.h + qnearfieldsharetargetimpl_p.cpp qnearfieldsharetargetimpl_p.h + qnearfieldtarget_p.cpp +) +add_qt_docs(Nfc + doc/qtnfc.qdocconf +) + diff --git a/src/tools/sdpscanner/.prev_CMakeLists.txt b/src/tools/sdpscanner/.prev_CMakeLists.txt new file mode 100644 index 00000000..d9cd9843 --- /dev/null +++ b/src/tools/sdpscanner/.prev_CMakeLists.txt @@ -0,0 +1,20 @@ +# Generated from sdpscanner.pro. + +##################################################################### +## sdpscanner Tool: +##################################################################### + +add_qt_tool(sdpscanner + SOURCES + main.cpp + PUBLIC_LIBRARIES + PkgConfig::BlueZ +) + +#### Keys ignored in scope 1:.:.:sdpscanner.pro:<TRUE>: +# QT_FOR_CONFIG = "bluetooth-private" +# TEMPLATE = "app" +# _LOADED = "qt_tool" + +## Scopes: +##################################################################### diff --git a/src/tools/sdpscanner/CMakeLists.txt b/src/tools/sdpscanner/CMakeLists.txt new file mode 100644 index 00000000..71bc3c77 --- /dev/null +++ b/src/tools/sdpscanner/CMakeLists.txt @@ -0,0 +1,21 @@ +# Generated from sdpscanner.pro. + +##################################################################### +## sdpscanner Tool: +##################################################################### + +add_qt_tool(sdpscanner + TOOLS_TARGET Bluetooth # special case + SOURCES + main.cpp + PUBLIC_LIBRARIES + PkgConfig::BlueZ +) + +#### Keys ignored in scope 1:.:.:sdpscanner.pro:<TRUE>: +# QT_FOR_CONFIG = "bluetooth-private" +# TEMPLATE = "app" +# _LOADED = "qt_tool" + +## Scopes: +##################################################################### diff --git a/tests/.prev_CMakeLists.txt b/tests/.prev_CMakeLists.txt new file mode 100644 index 00000000..eb16fa4c --- /dev/null +++ b/tests/.prev_CMakeLists.txt @@ -0,0 +1,10 @@ +# Generated from tests.pro. + +if(NOT TARGET Qt::Test) + cmake_minimum_required(VERSION 3.15.0) + project(connectivityTests_FIXME VERSION 6.0.0 LANGUAGES C CXX) + find_package(Qt6 ${PROJECT_VERSION} REQUIRED COMPONENTS BuildInternals Core SET_ME_TO_SOMETHING_USEFUL) + find_package(Qt6 ${PROJECT_VERSION} OPTIONAL_COMPONENTS SET_ME_TO_SOMETHING_USEFUL) + qt_set_up_standalone_tests_build() +endif() +qt_build_tests() diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt new file mode 100644 index 00000000..05373e1d --- /dev/null +++ b/tests/CMakeLists.txt @@ -0,0 +1,10 @@ +# special case begin +if(NOT TARGET Qt::Test) + cmake_minimum_required(VERSION 3.15.0) + project(QtConnectivityTests VERSION 6.0.0 LANGUAGES C CXX) + find_package(Qt6 REQUIRED COMPONENTS BuildInternals Core Gui Concurrent Bluetooth Nfc Test + Network Widgets) + qt_set_up_standalone_tests_build() +endif() +# special case end +qt_build_tests() diff --git a/tests/auto/.prev_CMakeLists.txt b/tests/auto/.prev_CMakeLists.txt new file mode 100644 index 00000000..99e0496f --- /dev/null +++ b/tests/auto/.prev_CMakeLists.txt @@ -0,0 +1,30 @@ +# Generated from auto.pro. + +add_subdirectory(cmake) +if(TARGET Qt::Bluetooth) + add_subdirectory(qbluetoothaddress) + add_subdirectory(qbluetoothdevicediscoveryagent) + add_subdirectory(qbluetoothdeviceinfo) + add_subdirectory(qbluetoothlocaldevice) + add_subdirectory(qbluetoothhostinfo) + add_subdirectory(qbluetoothservicediscoveryagent) + add_subdirectory(qbluetoothserviceinfo) + add_subdirectory(qbluetoothsocket) + add_subdirectory(qbluetoothtransfermanager) + add_subdirectory(qbluetoothtransferrequest) + add_subdirectory(qbluetoothuuid) + add_subdirectory(qbluetoothserver) + add_subdirectory(qlowenergycharacteristic) + add_subdirectory(qlowenergydescriptor) + add_subdirectory(qlowenergycontroller) + add_subdirectory(qlowenergycontroller-gattserver) + add_subdirectory(qlowenergyservice) +endif() +if(TARGET Qt::Nfc) + add_subdirectory(qndefmessage) + add_subdirectory(qndefrecord) + add_subdirectory(qnearfieldmanager) + add_subdirectory(qnearfieldtagtype1) + add_subdirectory(qnearfieldtagtype2) + add_subdirectory(qndefnfcsmartposterrecord) +endif() diff --git a/tests/auto/CMakeLists.txt b/tests/auto/CMakeLists.txt new file mode 100644 index 00000000..ace903f8 --- /dev/null +++ b/tests/auto/CMakeLists.txt @@ -0,0 +1,30 @@ +# Generated from auto.pro. + +# add_subdirectory(cmake) # special case +if(TARGET Qt::Bluetooth) + add_subdirectory(qbluetoothaddress) + add_subdirectory(qbluetoothdevicediscoveryagent) + add_subdirectory(qbluetoothdeviceinfo) + add_subdirectory(qbluetoothlocaldevice) + add_subdirectory(qbluetoothhostinfo) + add_subdirectory(qbluetoothservicediscoveryagent) + add_subdirectory(qbluetoothserviceinfo) + add_subdirectory(qbluetoothsocket) + add_subdirectory(qbluetoothtransfermanager) + add_subdirectory(qbluetoothtransferrequest) + add_subdirectory(qbluetoothuuid) + add_subdirectory(qbluetoothserver) + add_subdirectory(qlowenergycharacteristic) + add_subdirectory(qlowenergydescriptor) + add_subdirectory(qlowenergycontroller) + add_subdirectory(qlowenergycontroller-gattserver) + add_subdirectory(qlowenergyservice) +endif() +if(TARGET Qt::Nfc) + add_subdirectory(qndefmessage) + add_subdirectory(qndefrecord) + add_subdirectory(qnearfieldmanager) + add_subdirectory(qnearfieldtagtype1) + add_subdirectory(qnearfieldtagtype2) + add_subdirectory(qndefnfcsmartposterrecord) +endif() diff --git a/tests/auto/qbluetoothaddress/CMakeLists.txt b/tests/auto/qbluetoothaddress/CMakeLists.txt new file mode 100644 index 00000000..d68c7175 --- /dev/null +++ b/tests/auto/qbluetoothaddress/CMakeLists.txt @@ -0,0 +1,13 @@ +# Generated from qbluetoothaddress.pro. + +##################################################################### +## tst_qbluetoothaddress Test: +##################################################################### + +add_qt_test(tst_qbluetoothaddress + SOURCES + tst_qbluetoothaddress.cpp + PUBLIC_LIBRARIES + Qt::Bluetooth + Qt::Concurrent +) diff --git a/tests/auto/qbluetoothdevicediscoveryagent/CMakeLists.txt b/tests/auto/qbluetoothdevicediscoveryagent/CMakeLists.txt new file mode 100644 index 00000000..c4abae38 --- /dev/null +++ b/tests/auto/qbluetoothdevicediscoveryagent/CMakeLists.txt @@ -0,0 +1,23 @@ +# Generated from qbluetoothdevicediscoveryagent.pro. + +##################################################################### +## tst_qbluetoothdevicediscoveryagent Test: +##################################################################### + +add_qt_test(tst_qbluetoothdevicediscoveryagent + SOURCES + tst_qbluetoothdevicediscoveryagent.cpp + LIBRARIES + Qt::BluetoothPrivate + PUBLIC_LIBRARIES + Qt::Bluetooth + Qt::Concurrent +) + +## Scopes: +##################################################################### + +extend_target(tst_qbluetoothdevicediscoveryagent CONDITION APPLE_OSX + PUBLIC_LIBRARIES + Qt::Widgets +) diff --git a/tests/auto/qbluetoothdeviceinfo/CMakeLists.txt b/tests/auto/qbluetoothdeviceinfo/CMakeLists.txt new file mode 100644 index 00000000..b5e1b806 --- /dev/null +++ b/tests/auto/qbluetoothdeviceinfo/CMakeLists.txt @@ -0,0 +1,13 @@ +# Generated from qbluetoothdeviceinfo.pro. + +##################################################################### +## tst_qbluetoothdeviceinfo Test: +##################################################################### + +add_qt_test(tst_qbluetoothdeviceinfo + SOURCES + tst_qbluetoothdeviceinfo.cpp + PUBLIC_LIBRARIES + Qt::Bluetooth + Qt::Concurrent +) diff --git a/tests/auto/qbluetoothhostinfo/CMakeLists.txt b/tests/auto/qbluetoothhostinfo/CMakeLists.txt new file mode 100644 index 00000000..f179b509 --- /dev/null +++ b/tests/auto/qbluetoothhostinfo/CMakeLists.txt @@ -0,0 +1,13 @@ +# Generated from qbluetoothhostinfo.pro. + +##################################################################### +## tst_qbluetoothhostinfo Test: +##################################################################### + +add_qt_test(tst_qbluetoothhostinfo + SOURCES + tst_qbluetoothhostinfo.cpp + PUBLIC_LIBRARIES + Qt::Bluetooth + Qt::Concurrent +) diff --git a/tests/auto/qbluetoothlocaldevice/CMakeLists.txt b/tests/auto/qbluetoothlocaldevice/CMakeLists.txt new file mode 100644 index 00000000..4ecba8fc --- /dev/null +++ b/tests/auto/qbluetoothlocaldevice/CMakeLists.txt @@ -0,0 +1,23 @@ +# Generated from qbluetoothlocaldevice.pro. + +##################################################################### +## tst_qbluetoothlocaldevice Test: +##################################################################### + +add_qt_test(tst_qbluetoothlocaldevice + SOURCES + tst_qbluetoothlocaldevice.cpp + LIBRARIES + Qt::BluetoothPrivate + PUBLIC_LIBRARIES + Qt::Bluetooth + Qt::Concurrent +) + +## Scopes: +##################################################################### + +extend_target(tst_qbluetoothlocaldevice CONDITION APPLE_OSX + PUBLIC_LIBRARIES + Qt::Widgets +) diff --git a/tests/auto/qbluetoothserver/CMakeLists.txt b/tests/auto/qbluetoothserver/CMakeLists.txt new file mode 100644 index 00000000..1f1cc14e --- /dev/null +++ b/tests/auto/qbluetoothserver/CMakeLists.txt @@ -0,0 +1,26 @@ +# Generated from qbluetoothserver.pro. + +##################################################################### +## tst_qbluetoothserver Test: +##################################################################### + +add_qt_test(tst_qbluetoothserver + SOURCES + tst_qbluetoothserver.cpp + LIBRARIES + Qt::BluetoothPrivate + PUBLIC_LIBRARIES + Qt::Bluetooth + Qt::Concurrent +) + +#### Keys ignored in scope 1:.:.:qbluetoothserver.pro:<TRUE>: +# OTHER_FILES = "README.txt" + +## Scopes: +##################################################################### + +extend_target(tst_qbluetoothserver CONDITION APPLE_OSX + PUBLIC_LIBRARIES + Qt::Widgets +) diff --git a/tests/auto/qbluetoothservicediscoveryagent/CMakeLists.txt b/tests/auto/qbluetoothservicediscoveryagent/CMakeLists.txt new file mode 100644 index 00000000..81a8d769 --- /dev/null +++ b/tests/auto/qbluetoothservicediscoveryagent/CMakeLists.txt @@ -0,0 +1,21 @@ +# Generated from qbluetoothservicediscoveryagent.pro. + +##################################################################### +## tst_qbluetoothservicediscoveryagent Test: +##################################################################### + +add_qt_test(tst_qbluetoothservicediscoveryagent + SOURCES + tst_qbluetoothservicediscoveryagent.cpp + PUBLIC_LIBRARIES + Qt::Bluetooth + Qt::Concurrent +) + +## Scopes: +##################################################################### + +extend_target(tst_qbluetoothservicediscoveryagent CONDITION APPLE_OSX + PUBLIC_LIBRARIES + Qt::Widgets +) diff --git a/tests/auto/qbluetoothserviceinfo/CMakeLists.txt b/tests/auto/qbluetoothserviceinfo/CMakeLists.txt new file mode 100644 index 00000000..afdf580a --- /dev/null +++ b/tests/auto/qbluetoothserviceinfo/CMakeLists.txt @@ -0,0 +1,26 @@ +# Generated from qbluetoothserviceinfo.pro. + +##################################################################### +## tst_qbluetoothserviceinfo Test: +##################################################################### + +add_qt_test(tst_qbluetoothserviceinfo + SOURCES + tst_qbluetoothserviceinfo.cpp + PUBLIC_LIBRARIES + Qt::Bluetooth + Qt::Concurrent +) + +## Scopes: +##################################################################### + +extend_target(tst_qbluetoothserviceinfo CONDITION APPLE_OSX + PUBLIC_LIBRARIES + Qt::Widgets +) + +extend_target(tst_qbluetoothserviceinfo CONDITION ANDROID AND NOT ANDROID_EMBEDDED + DEFINES + QT_ANDROID_BLUETOOTH +) diff --git a/tests/auto/qbluetoothsocket/CMakeLists.txt b/tests/auto/qbluetoothsocket/CMakeLists.txt new file mode 100644 index 00000000..3f6cba5f --- /dev/null +++ b/tests/auto/qbluetoothsocket/CMakeLists.txt @@ -0,0 +1,35 @@ +# Generated from qbluetoothsocket.pro. + +##################################################################### +## tst_qbluetoothsocket Test: +##################################################################### + +add_qt_test(tst_qbluetoothsocket + SOURCES + tst_qbluetoothsocket.cpp + LIBRARIES + Qt::BluetoothPrivate + PUBLIC_LIBRARIES + Qt::Bluetooth + Qt::Concurrent + Qt::Network +) + +#### Keys ignored in scope 1:.:.:qbluetoothsocket.pro:<TRUE>: +# OTHER_FILES = "README.txt" +# testcase.timeout = "250" + +## Scopes: +##################################################################### + +extend_target(tst_qbluetoothsocket CONDITION APPLE_OSX + DEFINES + QT_OSX_BLUETOOTH + PUBLIC_LIBRARIES + Qt::Widgets +) + +extend_target(tst_qbluetoothsocket CONDITION ANDROID AND NOT ANDROID_EMBEDDED + DEFINES + QT_ANDROID_BLUETOOTH +) diff --git a/tests/auto/qbluetoothtransfermanager/CMakeLists.txt b/tests/auto/qbluetoothtransfermanager/CMakeLists.txt new file mode 100644 index 00000000..24a05742 --- /dev/null +++ b/tests/auto/qbluetoothtransfermanager/CMakeLists.txt @@ -0,0 +1,23 @@ +# Generated from qbluetoothtransfermanager.pro. + +##################################################################### +## tst_qbluetoothtransfermanager Test: +##################################################################### + +# Collect test data +file(GLOB_RECURSE test_data_glob + RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} + *.txt) +list(APPEND test_data ${test_data_glob}) + +add_qt_test(tst_qbluetoothtransfermanager + SOURCES + tst_qbluetoothtransfermanager.cpp + PUBLIC_LIBRARIES + Qt::Bluetooth + Qt::Concurrent + TESTDATA ${test_data} +) + +#### Keys ignored in scope 1:.:.:qbluetoothtransfermanager.pro:<TRUE>: +# testcase.timeout = "250" diff --git a/tests/auto/qbluetoothtransferrequest/CMakeLists.txt b/tests/auto/qbluetoothtransferrequest/CMakeLists.txt new file mode 100644 index 00000000..a3ad2a4a --- /dev/null +++ b/tests/auto/qbluetoothtransferrequest/CMakeLists.txt @@ -0,0 +1,13 @@ +# Generated from qbluetoothtransferrequest.pro. + +##################################################################### +## tst_qbluetoothtransferrequest Test: +##################################################################### + +add_qt_test(tst_qbluetoothtransferrequest + SOURCES + tst_qbluetoothtransferrequest.cpp + PUBLIC_LIBRARIES + Qt::Bluetooth + Qt::Concurrent +) diff --git a/tests/auto/qbluetoothuuid/CMakeLists.txt b/tests/auto/qbluetoothuuid/CMakeLists.txt new file mode 100644 index 00000000..f69d8418 --- /dev/null +++ b/tests/auto/qbluetoothuuid/CMakeLists.txt @@ -0,0 +1,13 @@ +# Generated from qbluetoothuuid.pro. + +##################################################################### +## tst_qbluetoothuuid Test: +##################################################################### + +add_qt_test(tst_qbluetoothuuid + SOURCES + tst_qbluetoothuuid.cpp + PUBLIC_LIBRARIES + Qt::Bluetooth + Qt::Concurrent +) diff --git a/tests/auto/qlowenergycharacteristic/CMakeLists.txt b/tests/auto/qlowenergycharacteristic/CMakeLists.txt new file mode 100644 index 00000000..da1381f9 --- /dev/null +++ b/tests/auto/qlowenergycharacteristic/CMakeLists.txt @@ -0,0 +1,12 @@ +# Generated from qlowenergycharacteristic.pro. + +##################################################################### +## tst_qlowenergycharacteristic Test: +##################################################################### + +add_qt_test(tst_qlowenergycharacteristic + SOURCES + tst_qlowenergycharacteristic.cpp + PUBLIC_LIBRARIES + Qt::Bluetooth +) diff --git a/tests/auto/qlowenergycontroller-gattserver/CMakeLists.txt b/tests/auto/qlowenergycontroller-gattserver/CMakeLists.txt new file mode 100644 index 00000000..84f9d1ac --- /dev/null +++ b/tests/auto/qlowenergycontroller-gattserver/CMakeLists.txt @@ -0,0 +1,4 @@ +# Generated from qlowenergycontroller-gattserver.pro. + +add_subdirectory(server) +add_subdirectory(test) diff --git a/tests/auto/qlowenergycontroller-gattserver/server/.prev_CMakeLists.txt b/tests/auto/qlowenergycontroller-gattserver/server/.prev_CMakeLists.txt new file mode 100644 index 00000000..d19f54cb --- /dev/null +++ b/tests/auto/qlowenergycontroller-gattserver/server/.prev_CMakeLists.txt @@ -0,0 +1,13 @@ +# Generated from server.pro. + +##################################################################### +## server Binary: +##################################################################### + +add_qt_executable(server + GUI + SOURCES + qlowenergycontroller-gattserver.cpp + PUBLIC_LIBRARIES + Qt::Bluetooth +) diff --git a/tests/auto/qlowenergycontroller-gattserver/server/CMakeLists.txt b/tests/auto/qlowenergycontroller-gattserver/server/CMakeLists.txt new file mode 100644 index 00000000..567a6cda --- /dev/null +++ b/tests/auto/qlowenergycontroller-gattserver/server/CMakeLists.txt @@ -0,0 +1,14 @@ +# Generated from server.pro. + +##################################################################### +## server Binary: +##################################################################### + +add_qt_executable(server + GUI + OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} # special case + SOURCES + qlowenergycontroller-gattserver.cpp + PUBLIC_LIBRARIES + Qt::Bluetooth +) diff --git a/tests/auto/qlowenergycontroller-gattserver/test/CMakeLists.txt b/tests/auto/qlowenergycontroller-gattserver/test/CMakeLists.txt new file mode 100644 index 00000000..373a888d --- /dev/null +++ b/tests/auto/qlowenergycontroller-gattserver/test/CMakeLists.txt @@ -0,0 +1,32 @@ +# Generated from test.pro. + +##################################################################### +## tst_qlowenergycontroller-gattserver Test: +##################################################################### + +add_qt_test(tst_qlowenergycontroller-gattserver + SOURCES + tst_qlowenergycontroller-gattserver.cpp + LIBRARIES + Qt::BluetoothPrivate + PUBLIC_LIBRARIES + Qt::Bluetooth +) + +## Scopes: +##################################################################### + +extend_target(tst_qlowenergycontroller-gattserver CONDITION QT_FEATURE_linux_crypto_api + DEFINES + CONFIG_LINUX_CRYPTO_API +) + +extend_target(tst_qlowenergycontroller-gattserver CONDITION QT_FEATURE_bluez_le + DEFINES + CONFIG_BLUEZ_LE +) + +extend_target(tst_qlowenergycontroller-gattserver CONDITION boot2qt + DEFINES + CHECK_CMAC_SUPPORT +) diff --git a/tests/auto/qlowenergycontroller/CMakeLists.txt b/tests/auto/qlowenergycontroller/CMakeLists.txt new file mode 100644 index 00000000..908a7783 --- /dev/null +++ b/tests/auto/qlowenergycontroller/CMakeLists.txt @@ -0,0 +1,27 @@ +# Generated from qlowenergycontroller.pro. + +##################################################################### +## tst_qlowenergycontroller Test: +##################################################################### + +add_qt_test(tst_qlowenergycontroller + SOURCES + tst_qlowenergycontroller.cpp + LIBRARIES + Qt::BluetoothPrivate + PUBLIC_LIBRARIES + Qt::Bluetooth +) + +## Scopes: +##################################################################### + +extend_target(tst_qlowenergycontroller CONDITION ANDROID + PUBLIC_LIBRARIES + Qt::Widgets +) + +extend_target(tst_qlowenergycontroller CONDITION APPLE_IOS OR APPLE_OSX + PUBLIC_LIBRARIES + Qt::Widgets +) diff --git a/tests/auto/qlowenergydescriptor/CMakeLists.txt b/tests/auto/qlowenergydescriptor/CMakeLists.txt new file mode 100644 index 00000000..0f5d2a1e --- /dev/null +++ b/tests/auto/qlowenergydescriptor/CMakeLists.txt @@ -0,0 +1,12 @@ +# Generated from qlowenergydescriptor.pro. + +##################################################################### +## tst_qlowenergydescriptor Test: +##################################################################### + +add_qt_test(tst_qlowenergydescriptor + SOURCES + tst_qlowenergydescriptor.cpp + PUBLIC_LIBRARIES + Qt::Bluetooth +) diff --git a/tests/auto/qlowenergyservice/CMakeLists.txt b/tests/auto/qlowenergyservice/CMakeLists.txt new file mode 100644 index 00000000..350b5825 --- /dev/null +++ b/tests/auto/qlowenergyservice/CMakeLists.txt @@ -0,0 +1,12 @@ +# Generated from qlowenergyservice.pro. + +##################################################################### +## tst_qlowenergyservice Test: +##################################################################### + +add_qt_test(tst_qlowenergyservice + SOURCES + tst_qlowenergyservice.cpp + PUBLIC_LIBRARIES + Qt::Bluetooth +) diff --git a/tests/auto/qndefmessage/CMakeLists.txt b/tests/auto/qndefmessage/CMakeLists.txt new file mode 100644 index 00000000..c237cd05 --- /dev/null +++ b/tests/auto/qndefmessage/CMakeLists.txt @@ -0,0 +1,12 @@ +# Generated from qndefmessage.pro. + +##################################################################### +## tst_qndefmessage Test: +##################################################################### + +add_qt_test(tst_qndefmessage + SOURCES + tst_qndefmessage.cpp + PUBLIC_LIBRARIES + Qt::Nfc +) diff --git a/tests/auto/qndefnfcsmartposterrecord/CMakeLists.txt b/tests/auto/qndefnfcsmartposterrecord/CMakeLists.txt new file mode 100644 index 00000000..b804462a --- /dev/null +++ b/tests/auto/qndefnfcsmartposterrecord/CMakeLists.txt @@ -0,0 +1,12 @@ +# Generated from qndefnfcsmartposterrecord.pro. + +##################################################################### +## tst_qndefnfcsmartposterrecord Test: +##################################################################### + +add_qt_test(tst_qndefnfcsmartposterrecord + SOURCES + tst_qndefnfcsmartposterrecord.cpp + PUBLIC_LIBRARIES + Qt::Nfc +) diff --git a/tests/auto/qndefrecord/CMakeLists.txt b/tests/auto/qndefrecord/CMakeLists.txt new file mode 100644 index 00000000..b9e0fed1 --- /dev/null +++ b/tests/auto/qndefrecord/CMakeLists.txt @@ -0,0 +1,12 @@ +# Generated from qndefrecord.pro. + +##################################################################### +## tst_qndefrecord Test: +##################################################################### + +add_qt_test(tst_qndefrecord + SOURCES + tst_qndefrecord.cpp + PUBLIC_LIBRARIES + Qt::Nfc +) diff --git a/tests/auto/qnearfieldmanager/.prev_CMakeLists.txt b/tests/auto/qnearfieldmanager/.prev_CMakeLists.txt new file mode 100644 index 00000000..529bbe42 --- /dev/null +++ b/tests/auto/qnearfieldmanager/.prev_CMakeLists.txt @@ -0,0 +1,42 @@ +# Generated from qnearfieldmanager.pro. + +if(NOT QT_CONFIG___contains___private_tests) + return() +endif() + +##################################################################### +## tst_qnearfieldmanager Test: +##################################################################### + +# Collect test data +list(APPEND test_data "${CMAKE_CURRENT_SOURCE_DIR}/../nfcdata/Qt Labs Website Tag Type1.nfc") +list(APPEND test_data "${CMAKE_CURRENT_SOURCE_DIR}/../nfcdata/Qt Website Tag Type1.nfc") + +add_qt_test(tst_qnearfieldmanager + SOURCES + ../../../src/nfc/qnearfieldmanager_emulator.cpp ../../../src/nfc/qnearfieldmanager_emulator_p.h + ../../../src/nfc/qnearfieldmanagervirtualbase.cpp ../../../src/nfc/qnearfieldmanagervirtualbase_p.h + ../../../src/nfc/qnearfieldtarget_emulator.cpp ../../../src/nfc/qnearfieldtarget_emulator_p.h + ../../../src/nfc/targetemulator.cpp ../../../src/nfc/targetemulator_p.h + tst_qnearfieldmanager.cpp + DEFINES + SRCDIR=\\\"${CMAKE_CURRENT_SOURCE_DIR}/../nfcdata\\\" + INCLUDE_DIRECTORIES + ../../../src/nfc + LIBRARIES + Qt::NfcPrivate + PUBLIC_LIBRARIES + Qt::Nfc + TESTDATA ${test_data} +) + +#### Keys ignored in scope 1:.:.:qnearfieldmanager.pro:<TRUE>: +# _REQUIREMENTS = "contains(QT_CONFIG, private_tests)" + +## Scopes: +##################################################################### + +extend_target(tst_qnearfieldmanager CONDITION builtin_testdata + DEFINES + BUILTIN_TESTDATA +) diff --git a/tests/auto/qnearfieldmanager/CMakeLists.txt b/tests/auto/qnearfieldmanager/CMakeLists.txt new file mode 100644 index 00000000..65bafcb2 --- /dev/null +++ b/tests/auto/qnearfieldmanager/CMakeLists.txt @@ -0,0 +1,44 @@ +# Generated from qnearfieldmanager.pro. + +# special case begin +if (NOT QT_FEATURE_private_tests) + return() +endif() +# special case end + +##################################################################### +## tst_qnearfieldmanager Test: +##################################################################### + +# Collect test data +list(APPEND test_data "../nfcdata/Qt Labs Website Tag Type1.nfc") # special case +list(APPEND test_data "../nfcdata/Qt Website Tag Type1.nfc") # special case + +add_qt_test(tst_qnearfieldmanager + SOURCES + ../../../src/nfc/qnearfieldmanager_emulator.cpp ../../../src/nfc/qnearfieldmanager_emulator_p.h + ../../../src/nfc/qnearfieldmanagervirtualbase.cpp ../../../src/nfc/qnearfieldmanagervirtualbase_p.h + ../../../src/nfc/qnearfieldtarget_emulator.cpp ../../../src/nfc/qnearfieldtarget_emulator_p.h + ../../../src/nfc/targetemulator.cpp ../../../src/nfc/targetemulator_p.h + tst_qnearfieldmanager.cpp + DEFINES + SRCDIR=\\\"${CMAKE_CURRENT_SOURCE_DIR}/../nfcdata\\\" + INCLUDE_DIRECTORIES + ../../../src/nfc + LIBRARIES + Qt::NfcPrivate + PUBLIC_LIBRARIES + Qt::Nfc + TESTDATA ${test_data} +) + +#### Keys ignored in scope 1:.:.:qnearfieldmanager.pro:<TRUE>: +# _REQUIREMENTS = "contains(QT_CONFIG, private_tests)" + +## Scopes: +##################################################################### + +extend_target(tst_qnearfieldmanager CONDITION builtin_testdata + DEFINES + BUILTIN_TESTDATA +) diff --git a/tests/auto/qnearfieldtagtype1/.prev_CMakeLists.txt b/tests/auto/qnearfieldtagtype1/.prev_CMakeLists.txt new file mode 100644 index 00000000..960de318 --- /dev/null +++ b/tests/auto/qnearfieldtagtype1/.prev_CMakeLists.txt @@ -0,0 +1,42 @@ +# Generated from qnearfieldtagtype1.pro. + +if(NOT QT_CONFIG___contains___private_tests) + return() +endif() + +##################################################################### +## tst_qnearfieldtagtype1 Test: +##################################################################### + +# Collect test data +list(APPEND test_data "${CMAKE_CURRENT_SOURCE_DIR}/../nfcdata/Qt Labs Website Tag Type1.nfc") +list(APPEND test_data "${CMAKE_CURRENT_SOURCE_DIR}/../nfcdata/Qt Website Tag Type1.nfc") + +add_qt_test(tst_qnearfieldtagtype1 + SOURCES + ../../../src/nfc/qnearfieldmanager_emulator.cpp ../../../src/nfc/qnearfieldmanager_emulator_p.h + ../../../src/nfc/qnearfieldmanagervirtualbase.cpp ../../../src/nfc/qnearfieldmanagervirtualbase_p.h + ../../../src/nfc/qnearfieldtarget_emulator.cpp ../../../src/nfc/qnearfieldtarget_emulator_p.h + ../../../src/nfc/targetemulator.cpp ../../../src/nfc/targetemulator_p.h + tst_qnearfieldtagtype1.cpp + DEFINES + SRCDIR=\\\"${CMAKE_CURRENT_SOURCE_DIR}/../nfcdata\\\" + INCLUDE_DIRECTORIES + ../../../src/nfc + LIBRARIES + Qt::NfcPrivate + PUBLIC_LIBRARIES + Qt::Nfc + TESTDATA ${test_data} +) + +#### Keys ignored in scope 1:.:.:qnearfieldtagtype1.pro:<TRUE>: +# _REQUIREMENTS = "contains(QT_CONFIG, private_tests)" + +## Scopes: +##################################################################### + +extend_target(tst_qnearfieldtagtype1 CONDITION builtin_testdata + DEFINES + BUILTIN_TESTDATA +) diff --git a/tests/auto/qnearfieldtagtype1/CMakeLists.txt b/tests/auto/qnearfieldtagtype1/CMakeLists.txt new file mode 100644 index 00000000..a97eafaf --- /dev/null +++ b/tests/auto/qnearfieldtagtype1/CMakeLists.txt @@ -0,0 +1,44 @@ +# Generated from qnearfieldtagtype1.pro. + +# special case begin +if (NOT QT_FEATURE_private_tests) + return() +endif() +# special case end + +##################################################################### +## tst_qnearfieldtagtype1 Test: +##################################################################### + +# Collect test data +list(APPEND test_data "../nfcdata/Qt Labs Website Tag Type1.nfc") # special case +list(APPEND test_data "../nfcdata/Qt Website Tag Type1.nfc") # special case + +add_qt_test(tst_qnearfieldtagtype1 + SOURCES + ../../../src/nfc/qnearfieldmanager_emulator.cpp ../../../src/nfc/qnearfieldmanager_emulator_p.h + ../../../src/nfc/qnearfieldmanagervirtualbase.cpp ../../../src/nfc/qnearfieldmanagervirtualbase_p.h + ../../../src/nfc/qnearfieldtarget_emulator.cpp ../../../src/nfc/qnearfieldtarget_emulator_p.h + ../../../src/nfc/targetemulator.cpp ../../../src/nfc/targetemulator_p.h + tst_qnearfieldtagtype1.cpp + DEFINES + SRCDIR=\\\"${CMAKE_CURRENT_SOURCE_DIR}/../nfcdata\\\" + INCLUDE_DIRECTORIES + ../../../src/nfc + LIBRARIES + Qt::NfcPrivate + PUBLIC_LIBRARIES + Qt::Nfc + TESTDATA ${test_data} +) + +#### Keys ignored in scope 1:.:.:qnearfieldtagtype1.pro:<TRUE>: +# _REQUIREMENTS = "contains(QT_CONFIG, private_tests)" + +## Scopes: +##################################################################### + +extend_target(tst_qnearfieldtagtype1 CONDITION builtin_testdata + DEFINES + BUILTIN_TESTDATA +) diff --git a/tests/auto/qnearfieldtagtype2/.prev_CMakeLists.txt b/tests/auto/qnearfieldtagtype2/.prev_CMakeLists.txt new file mode 100644 index 00000000..53324e32 --- /dev/null +++ b/tests/auto/qnearfieldtagtype2/.prev_CMakeLists.txt @@ -0,0 +1,42 @@ +# Generated from qnearfieldtagtype2.pro. + +if(NOT QT_CONFIG___contains___private_tests) + return() +endif() + +##################################################################### +## tst_qnearfieldtagtype2 Test: +##################################################################### + +# Collect test data +list(APPEND test_data "${CMAKE_CURRENT_SOURCE_DIR}/nfcdata/Dynamic Empty Tag.nfc") +list(APPEND test_data "${CMAKE_CURRENT_SOURCE_DIR}/nfcdata/Empty Tag.nfc") + +add_qt_test(tst_qnearfieldtagtype2 + SOURCES + ../../../src/nfc/qnearfieldmanager_emulator.cpp ../../../src/nfc/qnearfieldmanager_emulator_p.h + ../../../src/nfc/qnearfieldmanagervirtualbase.cpp ../../../src/nfc/qnearfieldmanagervirtualbase_p.h + ../../../src/nfc/qnearfieldtarget_emulator.cpp ../../../src/nfc/qnearfieldtarget_emulator_p.h + ../../../src/nfc/targetemulator.cpp ../../../src/nfc/targetemulator_p.h + tst_qnearfieldtagtype2.cpp + DEFINES + SRCDIR=\\\"${CMAKE_CURRENT_SOURCE_DIR}/nfcdata\\\" + INCLUDE_DIRECTORIES + ../../../src/nfc + LIBRARIES + Qt::NfcPrivate + PUBLIC_LIBRARIES + Qt::Nfc + TESTDATA ${test_data} +) + +#### Keys ignored in scope 1:.:.:qnearfieldtagtype2.pro:<TRUE>: +# _REQUIREMENTS = "contains(QT_CONFIG, private_tests)" + +## Scopes: +##################################################################### + +extend_target(tst_qnearfieldtagtype2 CONDITION builtin_testdata + DEFINES + BUILTIN_TESTDATA +) diff --git a/tests/auto/qnearfieldtagtype2/CMakeLists.txt b/tests/auto/qnearfieldtagtype2/CMakeLists.txt new file mode 100644 index 00000000..785ac1d4 --- /dev/null +++ b/tests/auto/qnearfieldtagtype2/CMakeLists.txt @@ -0,0 +1,44 @@ +# Generated from qnearfieldtagtype2.pro. + +# special case begin +if (NOT QT_FEATURE_private_tests) + return() +endif() +# special case end + +##################################################################### +## tst_qnearfieldtagtype2 Test: +##################################################################### + +# Collect test data +list(APPEND test_data "nfcdata/Dynamic Empty Tag.nfc") # special case +list(APPEND test_data "nfcdata/Empty Tag.nfc") # special case + +add_qt_test(tst_qnearfieldtagtype2 + SOURCES + ../../../src/nfc/qnearfieldmanager_emulator.cpp ../../../src/nfc/qnearfieldmanager_emulator_p.h + ../../../src/nfc/qnearfieldmanagervirtualbase.cpp ../../../src/nfc/qnearfieldmanagervirtualbase_p.h + ../../../src/nfc/qnearfieldtarget_emulator.cpp ../../../src/nfc/qnearfieldtarget_emulator_p.h + ../../../src/nfc/targetemulator.cpp ../../../src/nfc/targetemulator_p.h + tst_qnearfieldtagtype2.cpp + DEFINES + SRCDIR=\\\"${CMAKE_CURRENT_SOURCE_DIR}/nfcdata\\\" + INCLUDE_DIRECTORIES + ../../../src/nfc + LIBRARIES + Qt::NfcPrivate + PUBLIC_LIBRARIES + Qt::Nfc + TESTDATA ${test_data} +) + +#### Keys ignored in scope 1:.:.:qnearfieldtagtype2.pro:<TRUE>: +# _REQUIREMENTS = "contains(QT_CONFIG, private_tests)" + +## Scopes: +##################################################################### + +extend_target(tst_qnearfieldtagtype2 CONDITION builtin_testdata + DEFINES + BUILTIN_TESTDATA +) |