mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-01 07:05:48 +00:00
fix: qdbusxml2cpp-fix not generate cpp code after dtkcore update
use DtkTools and DTK_XML2CPP var instead of qdbusxml2cpp-fix binary direct log:
This commit is contained in:
parent
f48785876e
commit
ec4637a430
@ -6,6 +6,8 @@ endif()
|
||||
|
||||
project(dde-dock)
|
||||
|
||||
find_package(DtkTools REQUIRED)
|
||||
|
||||
set(CMAKE_THREAD_LIBS_INIT "-lpthread")
|
||||
set(CMAKE_HAVE_THREADS_LIBRARY 1)
|
||||
set(CMAKE_USE_PTHREADS_INIT 1)
|
||||
@ -68,7 +70,7 @@ function(generation_dbus_interface xmldir outdir)
|
||||
string(REPLACE "." "_" classname ${classname})
|
||||
string(TOLOWER ${classname} filename)
|
||||
|
||||
execute_process(COMMAND qdbusxml2cpp-fix -c ${classname} -p ${outdir}/${filename} ${XMLFILE}
|
||||
execute_process(COMMAND ${DTK_XML2CPP} -c ${classname} -p ${outdir}/${filename} ${XMLFILE}
|
||||
WORKING_DIRECTORY ${outdir})
|
||||
endforeach()
|
||||
endfunction(generation_dbus_interface)
|
||||
|
Loading…
x
Reference in New Issue
Block a user