Warning, /graphics/glaxnimate/src/core/CMakeLists.txt is written in an unsupported language. File is not indexed.
0001 # SPDX-FileCopyrightText: 2019-2023 Mattia Basaglia <dev@dragon.best> 0002 # SPDX-License-Identifier: BSD-2-Clause 0003 0004 set(SOURCES 0005 0006 app_info.cpp 0007 0008 command/structure_commands.cpp 0009 command/shape_commands.cpp 0010 command/animation_commands.cpp 0011 0012 io/base.cpp 0013 io/binary_stream.cpp 0014 io/utils.cpp 0015 io/glaxnimate/glaxnimate_format.cpp 0016 io/glaxnimate/glaxnimate_importer.cpp 0017 io/glaxnimate/glaxnimate_mime.cpp 0018 io/lottie/cbor_write_json.cpp 0019 io/lottie/lottie_format.cpp 0020 io/lottie/lottie_html_format.cpp 0021 io/lottie/tgs_format.cpp 0022 io/lottie/validation.cpp 0023 io/mime/mime_serializer.cpp 0024 io/raster/raster_format.cpp 0025 io/raster/spritesheet_format.cpp 0026 io/rive/rive_format.cpp 0027 io/rive/rive_html_format.cpp 0028 io/rive/rive_loader.cpp 0029 io/rive/rive_serializer.cpp 0030 io/rive/type_def.cpp 0031 io/rive/type_system.cpp 0032 io/svg/detail.cpp 0033 io/svg/svg_format.cpp 0034 io/svg/svg_parser.cpp 0035 io/svg/svg_renderer.cpp 0036 io/avd/avd_parser.cpp 0037 io/avd/avd_format.cpp 0038 io/avd/avd_renderer.cpp 0039 io/aep/aep_format.cpp 0040 io/aep/aep_loader.cpp 0041 io/aep/string_decoder.cpp 0042 io/aep/gradient_xml.cpp 0043 0044 math/geom.cpp 0045 math/polynomial.cpp 0046 math/ellipse_solver.cpp 0047 math/bezier/bezier.cpp 0048 math/bezier/point.cpp 0049 math/bezier/operations.cpp 0050 math/bezier/cubic_struts.cpp 0051 math/bezier/meta.cpp 0052 math/bezier/bezier_length.cpp 0053 0054 model/document.cpp 0055 model/document_node.cpp 0056 model/object.cpp 0057 model/transform.cpp 0058 model/factory.cpp 0059 model/animation_container.cpp 0060 model/stretchable_time.cpp 0061 model/comp_graph.cpp 0062 model/mask_settings.cpp 0063 model/visitor.cpp 0064 model/custom_font.cpp 0065 0066 model/animation/keyframe_transition.cpp 0067 model/animation/animatable.cpp 0068 model/animation/animatable_path.cpp 0069 model/property/property.cpp 0070 model/property/reference_property.cpp 0071 model/property/option_list_property.cpp 0072 0073 model/assets/assets.cpp 0074 model/assets/brush_style.cpp 0075 model/assets/named_color.cpp 0076 model/assets/bitmap.cpp 0077 model/assets/gradient.cpp 0078 model/assets/asset_base.cpp 0079 model/assets/asset.cpp 0080 model/assets/composition.cpp 0081 model/assets/embedded_font.cpp 0082 model/assets/network_downloader.cpp 0083 0084 model/shapes/shape.cpp 0085 model/shapes/fill.cpp 0086 model/shapes/rect.cpp 0087 model/shapes/group.cpp 0088 model/shapes/ellipse.cpp 0089 model/shapes/path.cpp 0090 model/shapes/stroke.cpp 0091 model/shapes/polystar.cpp 0092 model/shapes/styler.cpp 0093 model/shapes/layer.cpp 0094 model/shapes/image.cpp 0095 model/shapes/precomp_layer.cpp 0096 model/shapes/text.cpp 0097 model/shapes/repeater.cpp 0098 model/shapes/trim.cpp 0099 model/shapes/inflate_deflate.cpp 0100 model/shapes/path_modifier.cpp 0101 model/shapes/round_corners.cpp 0102 model/shapes/offset_path.cpp 0103 model/shapes/zig_zag.cpp 0104 0105 plugin/plugin.cpp 0106 plugin/action.cpp 0107 plugin/io.cpp 0108 0109 utils/gzip.cpp 0110 utils/quantize.cpp 0111 utils/trace.cpp 0112 utils/trace_wrapper.cpp 0113 ) 0114 0115 if ( NOT ANDROID ) 0116 list(APPEND SOURCES 0117 io/video/video_format.cpp 0118 utils/tar.cpp 0119 ) 0120 find_package(Libav COMPONENTS codec util format swscale REQUIRED) 0121 include_directories(${Libav_INCLUDE_DIRS}) 0122 0123 find_package(LibArchive REQUIRED) 0124 include_directories(${LibArchive_INCLUDE_DIRS}) 0125 endif() 0126 0127 find_package(ZLIB REQUIRED) 0128 0129 configure_file( 0130 ${CMAKE_CURRENT_SOURCE_DIR}/application_info_generated.in.hpp 0131 ${CMAKE_CURRENT_BINARY_DIR}/application_info_generated.hpp 0132 ) 0133 0134 include_directories(${CMAKE_CURRENT_SOURCE_DIR}) 0135 include_directories(${CMAKE_SOURCE_DIR}/external/QtAppSetup/src) 0136 0137 if ( GLAXNIMATE_SYSTEM_POTRACE ) 0138 include_directories(${Potrace_INCLUDE_DIRS}) 0139 endif() 0140 0141 add_library(${LIB_NAME_CORE} OBJECT ${SOURCES}) 0142 kde_target_enable_exceptions(${LIB_NAME_CORE} PUBLIC) 0143 target_link_libraries(${LIB_NAME_CORE} PUBLIC 0144 QtAppSetup 0145 ZLIB::ZLIB 0146 Qt${QT_MAJOR_VERSION}::Xml 0147 Qt${QT_MAJOR_VERSION}::Network 0148 ${Potrace_LIBRARIES} 0149 KF${KF_MAJOR}::CoreAddons 0150 KF${KF_MAJOR}::Archive 0151 KF${KF_MAJOR}::I18n 0152 ) 0153 set_property(TARGET ${LIB_NAME_CORE} APPEND PROPERTY AUTOMOC_MACRO_NAMES "GLAXNIMATE_OBJECT") 0154 target_include_directories(${LIB_NAME_CORE} PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>) 0155 0156 if ( NOT ANDROID ) 0157 target_link_libraries(${LIB_NAME_CORE} PUBLIC ${Libav_LIBRARIES} ${LibArchive_LIBRARIES} ) 0158 endif()