Revert "Add a hack to export auto generated interfaces"

This reverts commit 1501090b41.
This commit is contained in:
Aleix Pol 2015-09-12 22:12:38 +02:00
parent 50b9d331d1
commit f6cb042000

View file

@ -9,17 +9,7 @@ function(geninterface source_h output_h)
get_filename_component(basename ${output_h} NAME_WE)
qt5_add_dbus_interface(libkdeconnect_SRC ${xml_file} ${basename})
#qdbusxml2cpp cannot add an export attribute to a class
#we need this as we export our generated classes
#this adds it in with a not ideal find and replace
add_custom_command(COMMAND
TARGET ${CMAKE_CURRENT_BINARY_DIR}/${output_h}.h
COMMAND sed -i "s/class/class Q_DECL_EXPORT/" ${CMAKE_CURRENT_BINARY_DIR}/${output_h}.h
)
set(libkdeconnect_SRC ${libkdeconnect_SRC} PARENT_SCOPE)
set(libkdeconnect_HEADERS ${libkdeconnect_HEADERS} PARENT_SCOPE)
endfunction()
@ -54,6 +44,7 @@ geninterface(${CMAKE_SOURCE_DIR}/plugins/mprisremote/mprisremoteplugin.h mprisre
geninterface(${CMAKE_SOURCE_DIR}/plugins/remotecontrol/remotecontrolplugin.h remotecontrolinterface)
geninterface(${CMAKE_SOURCE_DIR}/plugins/lockdevice/lockdeviceplugin.h lockdeviceinterface)
add_library(kdeconnectinterfaces SHARED ${libkdeconnect_SRC})
set_target_properties(kdeconnectinterfaces PROPERTIES
VERSION ${KDECONNECT_VERSION}