Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .reuse/dep5
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ Copyright: UnionTech Software Technology Co., Ltd.
License: LGPL-3.0-or-later

# project config files(pkla in cc)
Files: dss-network-plugin/50-dss-network-plugin.rules src/dde-network-core.pc.in try-compile/networkmanagerqt.cc *.pc.in
Files: dss-network-plugin/50-dss-network-plugin.rules src/dde-network-core.pc.in try-compile/networkmanagerqt.cc *.pc.in *.pkla
Copyright: UnionTech Software Technology Co., Ltd.
License: LGPL-3.0-or-later

Expand Down
3 changes: 3 additions & 0 deletions dcc-network/translations/network_en.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.1"/>
3 changes: 3 additions & 0 deletions dcc-network/translations/network_en_US.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.1"/>
12 changes: 8 additions & 4 deletions dock-network-plugin/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,18 @@ find_package(DdeDock REQUIRED)
# set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g -fsanitize=address -O0")
#endif()

file(GLOB TS_FILES "translations/*.ts")
qt_add_translation(QM_FILES ${TS_FILES})
add_custom_target(language ALL DEPENDS ${QM_FILES})

add_definitions("${QT_DEFINITIONS} -DQT_PLUGIN")
add_library(${PLUGIN_NAME} SHARED ${SRCS} ../net-view/window/qrc/network.qrc)
set_target_properties(${PLUGIN_NAME} PROPERTIES LIBRARY_OUTPUT_DIRECTORY ../../dde-dock)

file(GLOB TS_FILES "translations/*.ts")
qt_add_translations(${PLUGIN_NAME}_language
TS_FILES ${TS_FILES}
SOURCES ${SRCS}
LUPDATE_OPTIONS -no-obsolete -no-ui-lines -locations none
QM_FILES_OUTPUT_VARIABLE QM_FILES
)
add_custom_target(${PLUGIN_NAME}_language ALL DEPENDS ${QM_FILES})
# get_target_property(KF6_QT_INCLUDE_DIRS KF6::NetworkManagerQt INTERFACE_INCLUDE_DIRECTORIES)

target_include_directories(${PLUGIN_NAME} PUBLIC
Expand Down
Loading
Loading