47deeea77c
* discovered QByteArrays were completely opaque to the runtime, obviously not good seeing how many things use them. fortunately, Qt has bindings for them ... in the examples! so just pulled those over (license compatible, thankfully) and now that works * implement the remaining security hooks so it knows the difference between different kinds of urls * export KIO::Job into the runtime; i really wish we could have had more time to do something more elegant than just pushing the object wholesale into the runtime as it exposes a LOT of API, but this works, should be safe (security wise) and as we are in feature freeze there's really nothing better that can be done to replace it at this point in time * move some of the utility bindings (i18n, DataEngine) into simplebindings/ for consistency * break out the qvariant stuff that is used outside of the DataEngine bindings for clarity * brea out a bunch of the bookkeeping setup stuff from simplejavascriptapplet.cpp (it was getting messy) and put it into a separate .cpp file svn path=/trunk/KDE/kdebase/runtime/; revision=1063070
84 lines
2.7 KiB
CMake
84 lines
2.7 KiB
CMake
# APPLET
|
|
|
|
set(simple_javascript_engine_SRCS
|
|
simplejavascriptapplet.cpp
|
|
simplebindings/animationgroup.cpp
|
|
simplebindings/appletinterface.cpp
|
|
simplebindings/anchorlayout.cpp
|
|
simplebindings/bytearrayclass.cpp
|
|
simplebindings/bytearrayprototype.cpp
|
|
simplebindings/color.cpp
|
|
simplebindings/dataengine.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/qscriptbookkeeping.cpp
|
|
simplebindings/size.cpp
|
|
simplebindings/timer.cpp
|
|
simplebindings/uiloader.cpp
|
|
simplebindings/url.cpp
|
|
simplebindings/variant.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
|
|
simplebindings/dataengine.cpp
|
|
simplebindings/variant.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})
|
|
|