cmake: Build the generic bearer plugin
Change-Id: I3ab356e23e22499be98a626d043e2cfb9fc51105 Reviewed-by: Liang Qi <liang.qi@qt.io>
This commit is contained in:
parent
0a14d13b30
commit
1126485a57
@ -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)
|
||||
|
9
src/plugins/bearer/CMakeLists.txt
Normal file
9
src/plugins/bearer/CMakeLists.txt
Normal 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()
|
29
src/plugins/bearer/generic/CMakeLists.txt
Normal file
29
src/plugins/bearer/generic/CMakeLists.txt
Normal 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
|
||||
)
|
Loading…
Reference in New Issue
Block a user