Warning, /frameworks/kservice/KF5ServiceMacros.cmake is written in an unsupported language. File is not indexed.

0001 #
0002 # kservice_desktop_to_json(target desktopfile)
0003 #
0004 # This macro uses desktoptojson to generate a json file from a plugin
0005 # description in a .desktop file. The generated file can be compiled
0006 # into the plugin using the K_PLUGIN_FACTORY_WITH_JSON (cpp) macro.
0007 #
0008 # Example:
0009 #
0010 #  kservice_desktop_to_json(plasma_engine_time plasma-dataengine-time.desktop)
0011 
0012 function(kservice_desktop_to_json)
0013   message(AUTHOR_WARNING "kservice_desktop_to_json() is deprecated, use kcoreaddons_desktop_to_json instead")
0014   if(${ARGC} EQUAL 1)
0015     message(FATAL_ERROR "Calling kservice_desktop_to_json with only one argument is no longer possible. The code should be changed to pass the target which depends on the json file as first argument.")
0016   endif()
0017   set(target ${ARGV0})
0018   set(desktop ${ARGV1})
0019   kcoreaddons_desktop_to_json(${target} ${desktop} COMPAT_MODE)
0020 endfunction()