qt_get_android_sdk_jar_for_api("android-18" android_sdk)

set(java_sources
    src/org/qtproject/qt/android/nfc/QtNfc.java
    src/org/qtproject/qt/android/nfc/QtNfcBroadcastReceiver.java
)

qt_internal_add_jar(Qt${QtConnectivity_VERSION_MAJOR}AndroidNfc
    INCLUDE_JARS ${android_sdk}
    SOURCES ${java_sources}
    OUTPUT_DIR "${QT_BUILD_DIR}/jar"
)

install_jar(Qt${QtConnectivity_VERSION_MAJOR}AndroidNfc
    DESTINATION jar
    COMPONENT Devel
)
