export LD_LIBRARY_PATH="@CMAKE_BINARY_DIR@/lib"
export QTDIR="@CMAKE_SOURCE_DIR@"
export QT_PLUGIN_PATH="@CMAKE_BINARY_DIR@/plugins"
+export QML_IMPORT_PATH="@CMAKE_BINARY_DIR@/imports"
cd "$(dirname "$1")"
exec "./$(basename "$1")"
# Maintainer: Ivailo Monev <xakepa10@gmail.com>
pkgname=katie-git
-pkgver=4.9.0.6f7d8c4f
+pkgver=4.9.0.d56802c3
pkgrel=1
pkgdesc='C++ toolkit derived from the Qt 4.8 framework'
arch=('i686' 'x86_64')
${CMAKE_BINARY_DIR}/privateinclude/QtDeclarative
${CMAKE_BINARY_DIR}/include/QtScript
${CMAKE_BINARY_DIR}/privateinclude/QtScript
- ${CMAKE_CURRENT_SOURCE_DIR}/folderlistmodel
- ${CMAKE_CURRENT_SOURCE_DIR}/particles
- ${CMAKE_CURRENT_SOURCE_DIR}/gestures
- ${CMAKE_CURRENT_BINARY_DIR}/folderlistmodel
- ${CMAKE_CURRENT_BINARY_DIR}/particles
- ${CMAKE_CURRENT_BINARY_DIR}/gestures
)
-include(folderlistmodel/folderlistmodel.cmake)
-include(particles/particles.cmake)
-include(gestures/gestures.cmake)
+# place the imports in a sub-directory the leading of which can be used as imports path,
+# this makes testing without installation possible and is relied upon in the test script
+set(CMAKE_LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/imports/Qt/labs/folderlistmodel")
+set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/imports/Qt/labs/folderlistmodel")
+configure_file(
+ "${CMAKE_CURRENT_SOURCE_DIR}/folderlistmodel/qmldir"
+ "${CMAKE_BINARY_DIR}/imports/Qt/labs/folderlistmodel/qmldir"
+)
+add_subdirectory(folderlistmodel)
+
+
+set(CMAKE_LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/imports/Qt/labs/particles")
+set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/imports/Qt/labs/particles")
+configure_file(
+ "${CMAKE_CURRENT_SOURCE_DIR}/particles/qmldir"
+ "${CMAKE_BINARY_DIR}/imports/Qt/labs/particles/qmldir"
+)
+add_subdirectory(particles)
+
+
+set(CMAKE_LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/imports/Qt/labs/gestures")
+set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/imports/Qt/labs/gestures")
+configure_file(
+ "${CMAKE_CURRENT_SOURCE_DIR}/gestures/qmldir"
+ "${CMAKE_BINARY_DIR}/imports/Qt/labs/gestures/qmldir"
+)
+add_subdirectory(gestures)
set(EXTRA_FOLDERLISTMODEL_LIBS KtDeclarative)
set(FOLDERLISTMODEL_SOURCES
- ${CMAKE_CURRENT_SOURCE_DIR}/folderlistmodel/qdeclarativefolderlistmodel.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/folderlistmodel/folderlistmodel.cpp
+ ${CMAKE_CURRENT_SOURCE_DIR}/qdeclarativefolderlistmodel.cpp
+ ${CMAKE_CURRENT_SOURCE_DIR}/folderlistmodel.cpp
)
set(FOLDERLISTMODEL_HEADERS
- ${CMAKE_CURRENT_SOURCE_DIR}/folderlistmodel/qdeclarativefolderlistmodel.h
+ ${CMAKE_CURRENT_SOURCE_DIR}/qdeclarativefolderlistmodel.h
)
katie_setup_target(qmlfolderlistmodelplugin ${FOLDERLISTMODEL_SOURCES} ${FOLDERLISTMODEL_HEADERS})
DESTINATION ${KATIE_IMPORTS_RELATIVE}/Qt/labs/folderlistmodel
)
install(
- FILES ${CMAKE_CURRENT_SOURCE_DIR}/folderlistmodel/qmldir
+ FILES ${CMAKE_CURRENT_SOURCE_DIR}/qmldir
DESTINATION ${KATIE_IMPORTS_RELATIVE}/Qt/labs/folderlistmodel
)
set(EXTRA_GESTURES_LIBS KtDeclarative)
set(GESTURES_SOURCES
- ${CMAKE_CURRENT_SOURCE_DIR}/gestures/qdeclarativegesturearea.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/gestures/gestures.cpp
+ ${CMAKE_CURRENT_SOURCE_DIR}/qdeclarativegesturearea.cpp
+ ${CMAKE_CURRENT_SOURCE_DIR}/gestures.cpp
)
set(GESTURES_HEADERS
- ${CMAKE_CURRENT_SOURCE_DIR}/gestures/qdeclarativegesturearea_p.h
+ ${CMAKE_CURRENT_SOURCE_DIR}/qdeclarativegesturearea_p.h
)
katie_setup_target(qmlgesturesplugin ${GESTURES_SOURCES} ${GESTURES_HEADERS})
DESTINATION ${KATIE_IMPORTS_RELATIVE}/Qt/labs/gestures
)
install(
- FILES ${CMAKE_CURRENT_SOURCE_DIR}/gestures/qmldir
+ FILES ${CMAKE_CURRENT_SOURCE_DIR}/qmldir
DESTINATION ${KATIE_IMPORTS_RELATIVE}/Qt/labs/gestures
)
set(EXTRA_PARTICLES_LIBS KtDeclarative)
set(PARTICLES_SOURCES
- ${CMAKE_CURRENT_SOURCE_DIR}/particles/qdeclarativeparticles.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/particles/particles.cpp
+ ${CMAKE_CURRENT_SOURCE_DIR}/qdeclarativeparticles.cpp
+ ${CMAKE_CURRENT_SOURCE_DIR}/particles.cpp
)
set(PARTICLES_HEADERS
- ${CMAKE_CURRENT_SOURCE_DIR}/particles/qdeclarativeparticles_p.h
+ ${CMAKE_CURRENT_SOURCE_DIR}/qdeclarativeparticles_p.h
)
katie_setup_target(qmlparticlesplugin ${PARTICLES_SOURCES} ${PARTICLES_HEADERS})
DESTINATION ${KATIE_IMPORTS_RELATIVE}/Qt/labs/particles
)
install(
- FILES ${CMAKE_CURRENT_SOURCE_DIR}/particles/qmldir
+ FILES ${CMAKE_CURRENT_SOURCE_DIR}/qmldir
DESTINATION ${KATIE_IMPORTS_RELATIVE}/Qt/labs/particles
)