mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-27 04:13:08 +00:00
112 lines
3.4 KiB
Text
112 lines
3.4 KiB
Text
![]() |
add_definitions(
|
||
|
-DQT_BUILD_DECLARATIVE_LIB
|
||
|
-DQT_NO_URL_CAST_FROM_STRING
|
||
|
-DQT_NO_OPENTYPE
|
||
|
)
|
||
|
# XXX: make QtSvg conditional?
|
||
|
set(EXTRA_DECLARATIVE_LIBS KtCore KtGui KtNetwork KtScript KtSvg KtXmlPatterns KtSql)
|
||
|
|
||
|
set(DECLARATIVE_PUBLIC_HEADERS
|
||
|
${DECLARATIVE_PUBLIC_HEADERS}
|
||
|
QDeclarativeAttachedPropertiesFunc
|
||
|
QDeclarativeComponent
|
||
|
QDeclarativeContext
|
||
|
QDeclarativeEngine
|
||
|
QDeclarativeError
|
||
|
QDeclarativeExpression
|
||
|
QDeclarativeExtensionInterface
|
||
|
QDeclarativeExtensionPlugin
|
||
|
QDeclarativeImageProvider
|
||
|
QDeclarativeInfo
|
||
|
QDeclarativeItem
|
||
|
QDeclarativeListProperty
|
||
|
QDeclarativeListReference
|
||
|
QDeclarativeNetworkAccessManagerFactory
|
||
|
QDeclarativeParserStatus
|
||
|
QDeclarativeProperties
|
||
|
QDeclarativeProperty
|
||
|
QDeclarativePropertyMap
|
||
|
QDeclarativePropertyValueInterceptor
|
||
|
QDeclarativePropertyValueSource
|
||
|
QDeclarativeScriptString
|
||
|
QDeclarativeTypeInfo
|
||
|
QDeclarativeView
|
||
|
)
|
||
|
|
||
|
include(util/util.cmake)
|
||
|
include(graphicsitems/graphicsitems.cmake)
|
||
|
include(qml/qml.cmake)
|
||
|
|
||
|
include_directories(
|
||
|
${CMAKE_BINARY_DIR}/include
|
||
|
${CMAKE_BINARY_DIR}/privateinclude
|
||
|
${CMAKE_BINARY_DIR}/include/QtCore
|
||
|
${CMAKE_BINARY_DIR}/privateinclude/QtCore
|
||
|
${CMAKE_BINARY_DIR}/include/QtGui
|
||
|
${CMAKE_BINARY_DIR}/privateinclude/QtGui
|
||
|
${CMAKE_BINARY_DIR}/include/QtNetwork
|
||
|
${CMAKE_BINARY_DIR}/privateinclude/QtNetwork
|
||
|
${CMAKE_BINARY_DIR}/include/QtScript
|
||
|
${CMAKE_BINARY_DIR}/privateinclude/QtScript
|
||
|
${CMAKE_BINARY_DIR}/include/QtSvg
|
||
|
${CMAKE_BINARY_DIR}/privateinclude/QtSvg
|
||
|
${CMAKE_BINARY_DIR}/include/QtXmlPatterns
|
||
|
${CMAKE_BINARY_DIR}/privateinclude/QtXmlPatterns
|
||
|
${CMAKE_BINARY_DIR}/include/QtDeclarative
|
||
|
${CMAKE_BINARY_DIR}/privateinclude/QtDeclarative
|
||
|
${CMAKE_CURRENT_SOURCE_DIR}
|
||
|
${CMAKE_CURRENT_SOURCE_DIR}/util
|
||
|
${CMAKE_CURRENT_SOURCE_DIR}/graphicsitems
|
||
|
${CMAKE_CURRENT_SOURCE_DIR}/qml
|
||
|
${CMAKE_CURRENT_SOURCE_DIR}/qml/parser
|
||
|
${CMAKE_CURRENT_SOURCE_DIR}/qml/rewriter
|
||
|
${CMAKE_CURRENT_BINARY_DIR}/util
|
||
|
${CMAKE_CURRENT_BINARY_DIR}/graphicsitems
|
||
|
${CMAKE_CURRENT_BINARY_DIR}/qml
|
||
|
${CMAKE_CURRENT_BINARY_DIR}/qml/parser
|
||
|
${CMAKE_CURRENT_BINARY_DIR}/qml/rewriter
|
||
|
${CMAKE_SOURCE_DIR}/src/3rdparty/harfbuzz/src
|
||
|
${CMAKE_SOURCE_DIR}/src/gui/painting
|
||
|
${CMAKE_SOURCE_DIR}/src/core/tools
|
||
|
)
|
||
|
|
||
|
if(KATIE_PLATFORM STREQUAL "maemo")
|
||
|
add_definitions(-DQDECLARATIVEVIEW_NOBACKGROUND)
|
||
|
endif()
|
||
|
|
||
|
katie_generate_misc("${DECLARATIVE_HEADERS}" QtDeclarative)
|
||
|
katie_generate_public("${DECLARATIVE_PUBLIC_HEADERS}" QtDeclarative)
|
||
|
katie_generate_map(QtDeclarative Q_DECLARATIVE_EXPORT)
|
||
|
katie_resources("${DECLARATIVE_SOURCES}")
|
||
|
katie_resources("${DECLARATIVE_HEADERS}")
|
||
|
katie_setup_flags()
|
||
|
|
||
|
add_library(KtDeclarative ${KATIE_TYPE} ${DECLARATIVE_SOURCES} ${DECLARATIVE_HEADERS})
|
||
|
target_link_libraries(KtDeclarative ${EXTRA_DECLARATIVE_LIBS})
|
||
|
set_target_properties(KtDeclarative PROPERTIES
|
||
|
VERSION ${KATIE_MAJOR}.${KATIE_MINOR}
|
||
|
SOVERSION ${KATIE_VERSION}
|
||
|
EXPORT_NAME Declarative
|
||
|
)
|
||
|
|
||
|
katie_generate_package(
|
||
|
KtDeclarative
|
||
|
""
|
||
|
"${EXTRA_DECLARATIVE_LIBS}"
|
||
|
"KtCore KtGui KtNetwork KtScript KtSvg KtXmlPatterns KtSql"
|
||
|
)
|
||
|
|
||
|
install(
|
||
|
TARGETS KtDeclarative
|
||
|
EXPORT KatieLibraryTargets ${INSTALL_TARGETS_DEFAULT_ARGS}
|
||
|
DESTINATION ${QT_LIBRARIES_PATH_INST}
|
||
|
)
|
||
|
|
||
|
install(
|
||
|
DIRECTORY ${CMAKE_BINARY_DIR}/include/QtDeclarative
|
||
|
DESTINATION ${QT_HEADERS_PATH_INST}
|
||
|
COMPONENT Devel
|
||
|
)
|
||
|
|
||
|
katie_optimize_headers(${QT_HEADERS_PATH}/QtDeclarative)
|