a356b3d452
We should definetely have a common header for the layout bindings so we avoid duplicating the "layoutItem" function with different names all around. I created some macros to help creating the binding for GridLayout that may be helpful in other scenarious. Maybe put this macros on this shared header too ? Anyway, the bindings for this class are ready if I didn't forget any important functions and the code for layout item was a little bit simplified trying to qscriptvalue_cast to QGraphicsLayout* instead of each implementation of it. svn path=/trunk/KDE/kdebase/runtime/; revision=1055930
76 lines
2.4 KiB
CMake
76 lines
2.4 KiB
CMake
# APPLET
|
|
|
|
set(simple_javascript_engine_SRCS
|
|
simplejavascriptapplet.cpp
|
|
simplebindings/appletinterface.cpp
|
|
simplebindings/anchorlayout.cpp
|
|
simplebindings/color.cpp
|
|
simplebindings/font.cpp
|
|
simplebindings/filedialogproxy.cpp
|
|
simplebindings/graphicsitem.cpp
|
|
simplebindings/linearlayout.cpp
|
|
simplebindings/gridlayout.cpp
|
|
simplebindings/painter.cpp
|
|
simplebindings/pen.cpp
|
|
simplebindings/pixmap.cpp
|
|
simplebindings/point.cpp
|
|
simplebindings/rect.cpp
|
|
simplebindings/size.cpp
|
|
simplebindings/timer.cpp
|
|
simplebindings/uiloader.cpp
|
|
simplebindings/url.cpp
|
|
)
|
|
|
|
include_directories(${PHONON_INCLUDES})
|
|
|
|
|
|
kde4_add_plugin(plasma_appletscript_simple_javascript ${simple_javascript_engine_SRCS})
|
|
|
|
target_link_libraries(plasma_appletscript_simple_javascript
|
|
${KDE4_KDECORE_LIBS}
|
|
${KDE4_KIO_LIBS}
|
|
${KDE4_PLASMA_LIBS}
|
|
${QT_QTSCRIPT_LIBRARY}
|
|
${QT_QTUITOOLS_LIBRARY}
|
|
${QT_QTXML_LIBRARY}
|
|
)
|
|
|
|
install(TARGETS plasma_appletscript_simple_javascript DESTINATION ${PLUGIN_INSTALL_DIR})
|
|
install(FILES plasma-scriptengine-applet-simple-javascript.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
|
|
|
|
# RUNNER
|
|
|
|
set(javascript_runner_engine_SRCS
|
|
javascriptrunner.cpp
|
|
)
|
|
|
|
kde4_add_plugin(plasma_runnerscript_javascript ${javascript_runner_engine_SRCS})
|
|
|
|
target_link_libraries(plasma_runnerscript_javascript
|
|
${KDE4_KDECORE_LIBS}
|
|
${KDE4_PLASMA_LIBS}
|
|
${QT_QTSCRIPT_LIBRARY}
|
|
${QT_QTUITOOLS_LIBRARY}
|
|
${QT_QTXML_LIBRARY}
|
|
)
|
|
|
|
install(TARGETS plasma_runnerscript_javascript DESTINATION ${PLUGIN_INSTALL_DIR})
|
|
install(FILES plasma-scriptengine-runner-javascript.desktop DESTINATION ${SERVICES_INSTALL_DIR})
|
|
|
|
|
|
# DATAENGINE
|
|
|
|
set(javascript_dataengine_engine_SRCS
|
|
javascriptdataengine.cpp
|
|
)
|
|
kde4_add_plugin(plasma_dataenginescript_javascript ${javascript_dataengine_engine_SRCS})
|
|
|
|
target_link_libraries(plasma_dataenginescript_javascript
|
|
${KDE4_KDECORE_LIBS}
|
|
${KDE4_PLASMA_LIBS}
|
|
${QT_QTSCRIPT_LIBRARY})
|
|
|
|
install(TARGETS plasma_dataenginescript_javascript DESTINATION ${PLUGIN_INSTALL_DIR})
|
|
install(FILES plasma-scriptengine-dataengine-javascript.desktop DESTINATION ${SERVICES_INSTALL_DIR})
|
|
|