1 ################################################################################
5 ################################################################################
7 QT5CONNECTIVITY_VERSION
= $(QT5_VERSION
)
8 QT5CONNECTIVITY_SITE
= $(QT5_SITE
)
9 QT5CONNECTIVITY_SOURCE
= qtconnectivity-opensource-src-
$(QT5CONNECTIVITY_VERSION
).
tar.xz
10 QT5CONNECTIVITY_DEPENDENCIES
= qt5base
11 QT5CONNECTIVITY_INSTALL_STAGING
= YES
13 ifeq ($(BR2_PACKAGE_QT5BASE_LICENSE_APPROVED
),y
)
14 QT5CONNECTIVITY_LICENSE
= GPLv2 or GPLv3 or LGPLv2.1 with exception or LGPLv3
, GFDLv1.3
(docs
)
15 QT5CONNECTIVITY_LICENSE_FILES
= LICENSE.GPLv2 LICENSE.GPLv3 LICENSE.LGPLv21 LGPL_EXCEPTION.txt LICENSE.LGPLv3 LICENSE.FDL
17 QT5CONNECTIVITY_LICENSE
= Commercial license
18 QT5CONNECTIVITY_REDISTRIBUTE
= NO
21 QT5CONNECTIVITY_DEPENDENCIES
+= $(if
$(BR2_PACKAGE_QT5DECLARATIVE
),qt5declarative
)
22 QT5CONNECTIVITY_DEPENDENCIES
+= $(if
$(BR2_PACKAGE_BLUEZ_UTILS
),bluez_utils
)
23 QT5CONNECTIVITY_DEPENDENCIES
+= $(if
$(BR2_PACKAGE_BLUEZ5_UTILS
),bluez5_utils
)
24 QT5CONNECTIVITY_DEPENDENCIES
+= $(if
$(BR2_PACKAGE_NEARD
),neard
)
26 define QT5CONNECTIVITY_CONFIGURE_CMDS
27 (cd
$(@D
); $(TARGET_MAKE_ENV
) $(HOST_DIR
)/usr
/bin
/qmake
)
30 define QT5CONNECTIVITY_BUILD_CMDS
31 $(TARGET_MAKE_ENV
) $(MAKE
) -C
$(@D
)
34 define QT5CONNECTIVITY_INSTALL_STAGING_CMDS
35 $(TARGET_MAKE_ENV
) $(MAKE
) -C
$(@D
) install
36 $(QT5_LA_PRL_FILES_FIXUP
)
39 ifeq ($(BR2_PACKAGE_QT5DECLARATIVE_QUICK
),y
)
40 ifneq ($(BR2_PACKAGE_BLUEZ_UTILS
)$(BR2_PACKAGE_BLUEZ5_UTILS
),)
41 define QT5CONNECTIVITY_INSTALL_TARGET_BLUETOOTH_QMLS
42 cp
-dpfr
$(STAGING_DIR
)/usr
/qml
/QtBluetooth
$(TARGET_DIR
)/usr
/qml
/
45 ifeq ($(BR2_PACKAGE_NEARD
),y
)
46 define QT5CONNECTIVITY_INSTALL_TARGET_NFC_QMLS
47 cp
-dpfr
$(STAGING_DIR
)/usr
/qml
/QtNfc
$(TARGET_DIR
)/usr
/qml
/
52 ifneq ($(BR2_PACKAGE_BLUEZ_UTILS
)$(BR2_PACKAGE_BLUEZ5_UTILS
),)
53 define QT5CONNECTIVITY_INSTALL_TARGET_BLUETOOTH
54 cp
-dpf
$(STAGING_DIR
)/usr
/lib
/libQt5Bluetooth.so.
* $(TARGET_DIR
)/usr
/lib
55 cp
-dpf
$(STAGING_DIR
)/usr
/bin
/sdpscanner
$(TARGET_DIR
)/usr
/bin
57 ifeq ($(BR2_PACKAGE_QT5BASE_EXAMPLES
),y
)
58 define QT5CONNECTIVITY_INSTALL_TARGET_BLUETOOTH_EXAMPLES
59 cp
-dpfr
$(STAGING_DIR
)/usr
/lib
/qt
/examples
/bluetooth
$(TARGET_DIR
)/usr
/lib
/qt
/examples
/
64 ifeq ($(BR2_PACKAGE_NEARD
),y
)
65 define QT5CONNECTIVITY_INSTALL_TARGET_NFC
66 cp
-dpf
$(STAGING_DIR
)/usr
/lib
/libQt5Nfc.so.
* $(TARGET_DIR
)/usr
/lib
68 ifeq ($(BR2_PACKAGE_QT5BASE_EXAMPLES
),y
)
69 define QT5CONNECTIVITY_INSTALL_TARGET_NFC_EXAMPLES
70 cp
-dpfr
$(STAGING_DIR
)/usr
/lib
/qt
/examples
/nfc
$(TARGET_DIR
)/usr
/lib
/qt
/examples
/
75 define QT5CONNECTIVITY_INSTALL_TARGET_CMDS
76 $(QT5CONNECTIVITY_INSTALL_TARGET_BLUETOOTH
)
77 $(QT5CONNECTIVITY_INSTALL_TARGET_NFC
)
78 $(QT5CONNECTIVITY_INSTALL_TARGET_BLUETOOTH_QMLS
)
79 $(QT5CONNECTIVITY_INSTALL_TARGET_NFC_QMLS
)
80 $(QT5CONNECTIVITY_INSTALL_TARGET_BLUETOOTH_EXAMPLES
)
81 $(QT5CONNECTIVITY_INSTALL_TARGET_NFC_EXAMPLES
)
84 $(eval
$(generic-package
))