cmake: Build the generic bearer plugin

Change-Id: I3ab356e23e22499be98a626d043e2cfb9fc51105
Reviewed-by: Liang Qi <liang.qi@qt.io>
This commit is contained in:
Albert Astals Cid 2019-02-12 15:16:42 +01:00
parent 0a14d13b30
commit 1126485a57
3 changed files with 39 additions and 1 deletions

View File

@ -4,7 +4,7 @@ if (QT_FEATURE_sql)
endif()
if(QT_FEATURE_network AND QT_FEATURE_bearermanagement)
# TODO add_subdirectory(bearer)
add_subdirectory(bearer)
endif()
if(QT_FEATURE_gui)

View File

@ -0,0 +1,9 @@
if (NOT ANDROID AND LINUX AND QT_FEATURE_dbus)
add_subdirectory(generic)
# TODO add_subdirectory(connman)
# TODO add_subdirectory(networkmanager)
elseif(ANDROID AND NOT ANDROID_EMBEDDED)
# TODO add_subdirectory(android)
else()
add_subdirectory(generic)
endif()

View File

@ -0,0 +1,29 @@
# Generated from generic.pro.
#####################################################################
## qgenericbearer Plugin:
#####################################################################
add_qt_plugin(qgenericbearer
TYPE bearer
SOURCES
../platformdefs_win.h
../qbearerengine_impl.h
../qnetworksession_impl.cpp ../qnetworksession_impl.h
main.cpp
qgenericengine.cpp qgenericengine.h
LIBRARIES
Qt::CorePrivate
Qt::NetworkPrivate
# OTHER_FILES = "generic.json"
# PLUGIN_CLASS_NAME = "QGenericEnginePlugin"
# _LOADED = "qt_plugin"
)
## Scopes:
#####################################################################
extend_target(qgenericbearer CONDITION WIN32 AND NOT WINRT
LIBRARIES
iphlpapi
)