Skip to content

Commit

Permalink
chore: use new target link of dde-control-center
Browse files Browse the repository at this point in the history
Log:
  • Loading branch information
Decodetalkers committed Dec 7, 2023
1 parent 2d29b90 commit 67d7722
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 13 deletions.
2 changes: 1 addition & 1 deletion archlinux/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ pkgdesc='the library of network libdde-network-core module'
arch=('x86_64' 'aarch64')
url="https://github.com/linuxdeepin/dde-network-core"
license=('GPL3')
depends=('deepin-qt-dbus-factory-git' 'gio-qt' 'gsettings-qt' 'networkmanager-qt' 'deepin-session-shell-git' 'deepin-dock-git'
depends=('deepin-qt-dbus-factory-git' 'gio-qt' 'gsettings-qt' 'networkmanager-qt5' 'deepin-session-shell-git' 'deepin-dock-git'
'deepin-control-center-git')
makedepends=('qt5-tools' 'cmake' 'ninja' 'gtest' 'dtkcommon-git')
conflicts=('deepin-network-core' 'deepin-network-utils-git')
Expand Down
18 changes: 6 additions & 12 deletions dcc-network-plugin/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -57,27 +57,21 @@ add_library(${PLUGIN_NAME} SHARED ${SRCS})
target_include_directories(${PLUGIN_NAME} PUBLIC
window
operation
${Qt5Widgets_INCLUDE_DIRS}
${DtkWidget_INCLUDE_DIRS}
${DdeControlCenter_INCLUDE_DIR}
${Qt5DBus_INCLUDE_DIRS}
${KF5_QT_INCLUDE_DIRS}
${Qt5Network_INCLUDE_DIRS}
${NETINTERFACEINCLUDE}
${DDE-Network-Core_INCLUDE_DIRS}
)
# 设置目标要使用的链接库
# 变量 ${DtkWidget_LIBRARIES} 和 ${Qt5Widgets_LIBRARIES} 是在前面执行 find_package 命令时引入的
# 当出现运行时错误提示某些符号没有定义时应该检查此处是否将所有用的库都写在了这里
target_link_libraries(${PLUGIN_NAME} PRIVATE
${Qt5Widgets_LIBRARIES}
${DtkWidget_LIBRARIES}
${DdeControlCenter_LIBRARIES}
${Qt5DBus_LIBRARIES}
${KF5_QT_LIBRARIES}
${Qt5Network_LIBRARIES}
${DCC_WIDGETS_LIBRARIES}
${DCC_INTERFACE_LIBRARIES}
Dtk::Widget
Qt5::Widgets
Qt5::Network
Qt5::DBus
Dde::DCCWidget
Dde::DCCInterface
${DDE-Network-Core_LIBRARIES}
)

Expand Down

0 comments on commit 67d7722

Please sign in to comment.