2019-04-27 09:12:53 +00:00
|
|
|
# This file is part of Telegram Desktop,
|
|
|
|
# the official desktop application for the Telegram messaging service.
|
|
|
|
#
|
|
|
|
# For license and copyright information please follow this link:
|
|
|
|
# https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|
|
|
|
|
|
|
{
|
|
|
|
'includes': [
|
|
|
|
'common.gypi',
|
|
|
|
],
|
|
|
|
'targets': [{
|
|
|
|
'target_name': 'lib_lottie',
|
|
|
|
'type': 'static_library',
|
|
|
|
'includes': [
|
|
|
|
'common.gypi',
|
|
|
|
'openssl.gypi',
|
|
|
|
'qt.gypi',
|
|
|
|
'telegram_linux.gypi',
|
|
|
|
'pch.gypi',
|
|
|
|
],
|
|
|
|
'variables': {
|
|
|
|
'src_loc': '../SourceFiles',
|
|
|
|
'res_loc': '../Resources',
|
|
|
|
'libs_loc': '../../../Libraries',
|
|
|
|
'official_build_target%': '',
|
|
|
|
'submodules_loc': '../ThirdParty',
|
|
|
|
'lottie_loc': '<(submodules_loc)/qtlottie/src',
|
|
|
|
'lottie_helper_loc': '<(submodules_loc)/qtlottie_helper',
|
|
|
|
'pch_source': '<(src_loc)/lottie/lottie_pch.cpp',
|
|
|
|
'pch_header': '<(src_loc)/lottie/lottie_pch.h',
|
|
|
|
},
|
|
|
|
'dependencies': [
|
|
|
|
'crl.gyp:crl',
|
|
|
|
'lib_base.gyp:lib_base',
|
|
|
|
],
|
|
|
|
'export_dependent_settings': [
|
|
|
|
'crl.gyp:crl',
|
|
|
|
'lib_base.gyp:lib_base',
|
|
|
|
],
|
|
|
|
'defines': [
|
|
|
|
'BODYMOVIN_LIBRARY',
|
|
|
|
],
|
|
|
|
'include_dirs': [
|
|
|
|
'<(src_loc)',
|
|
|
|
'<(SHARED_INTERMEDIATE_DIR)',
|
|
|
|
'<(libs_loc)/range-v3/include',
|
2019-05-16 15:44:52 +00:00
|
|
|
'<(libs_loc)/zlib',
|
2019-04-27 09:12:53 +00:00
|
|
|
'<(lottie_loc)',
|
|
|
|
'<(lottie_loc)/bodymovin',
|
|
|
|
'<(lottie_loc)/imports',
|
|
|
|
'<(lottie_helper_loc)',
|
|
|
|
'<(submodules_loc)/GSL/include',
|
|
|
|
'<(submodules_loc)/variant/include',
|
|
|
|
'<(submodules_loc)/crl/src',
|
2019-05-15 09:09:09 +00:00
|
|
|
'<(submodules_loc)/rapidjson/include',
|
2019-04-27 09:12:53 +00:00
|
|
|
],
|
|
|
|
'sources': [
|
2019-05-01 18:53:08 +00:00
|
|
|
# interface for tdesktop
|
2019-04-27 09:12:53 +00:00
|
|
|
'<(src_loc)/lottie/lottie_animation.cpp',
|
|
|
|
'<(src_loc)/lottie/lottie_animation.h',
|
2019-05-13 21:57:59 +00:00
|
|
|
'<(src_loc)/lottie/lottie_common.h',
|
2019-04-27 09:12:53 +00:00
|
|
|
'<(src_loc)/lottie/lottie_frame_renderer.cpp',
|
|
|
|
'<(src_loc)/lottie/lottie_frame_renderer.h',
|
|
|
|
|
2019-05-01 18:53:08 +00:00
|
|
|
# taken from qtlottie/src/bodymovin/bodymovin.pro
|
2019-04-27 09:12:53 +00:00
|
|
|
'<(lottie_loc)/bodymovin/bmbase.cpp',
|
|
|
|
'<(lottie_loc)/bodymovin/bmlayer.cpp',
|
|
|
|
'<(lottie_loc)/bodymovin/bmshape.cpp',
|
|
|
|
'<(lottie_loc)/bodymovin/bmshapelayer.cpp',
|
|
|
|
'<(lottie_loc)/bodymovin/bmrect.cpp',
|
|
|
|
'<(lottie_loc)/bodymovin/bmfill.cpp',
|
|
|
|
'<(lottie_loc)/bodymovin/bmgfill.cpp',
|
|
|
|
'<(lottie_loc)/bodymovin/bmgroup.cpp',
|
|
|
|
'<(lottie_loc)/bodymovin/bmstroke.cpp',
|
|
|
|
'<(lottie_loc)/bodymovin/bmbasictransform.cpp',
|
|
|
|
'<(lottie_loc)/bodymovin/bmshapetransform.cpp',
|
|
|
|
'<(lottie_loc)/bodymovin/bmellipse.cpp',
|
|
|
|
'<(lottie_loc)/bodymovin/bmround.cpp',
|
|
|
|
'<(lottie_loc)/bodymovin/bmfreeformshape.cpp',
|
|
|
|
'<(lottie_loc)/bodymovin/bmtrimpath.cpp',
|
|
|
|
'<(lottie_loc)/bodymovin/bmpathtrimmer.cpp',
|
2019-05-16 10:00:22 +00:00
|
|
|
'<(lottie_loc)/bodymovin/freeformshape.cpp',
|
2019-05-15 16:54:08 +00:00
|
|
|
'<(lottie_loc)/bodymovin/renderer.cpp',
|
2019-04-27 09:12:53 +00:00
|
|
|
'<(lottie_loc)/bodymovin/trimpath.cpp',
|
|
|
|
'<(lottie_loc)/bodymovin/bmfilleffect.cpp',
|
|
|
|
'<(lottie_loc)/bodymovin/bmrepeater.cpp',
|
|
|
|
'<(lottie_loc)/bodymovin/bmrepeatertransform.cpp',
|
|
|
|
'<(lottie_loc)/bodymovin/beziereasing.cpp',
|
|
|
|
|
2019-05-15 16:19:04 +00:00
|
|
|
'<(lottie_loc)/bodymovin/beziereasing.h',
|
|
|
|
'<(lottie_loc)/bodymovin/bmbase.h',
|
|
|
|
'<(lottie_loc)/bodymovin/bmbasictransform.h',
|
|
|
|
'<(lottie_loc)/bodymovin/bmellipse.h',
|
|
|
|
'<(lottie_loc)/bodymovin/bmfill.h',
|
|
|
|
'<(lottie_loc)/bodymovin/bmfilleffect.h',
|
|
|
|
'<(lottie_loc)/bodymovin/bmfreeformshape.h',
|
|
|
|
'<(lottie_loc)/bodymovin/bmgfill.h',
|
|
|
|
'<(lottie_loc)/bodymovin/bmgroup.h',
|
|
|
|
'<(lottie_loc)/bodymovin/bmlayer.h',
|
|
|
|
'<(lottie_loc)/bodymovin/bmproperty.h',
|
|
|
|
'<(lottie_loc)/bodymovin/bmrect.h',
|
|
|
|
'<(lottie_loc)/bodymovin/bmrepeater.h',
|
|
|
|
'<(lottie_loc)/bodymovin/bmrepeatertransform.h',
|
|
|
|
'<(lottie_loc)/bodymovin/bmround.h',
|
|
|
|
'<(lottie_loc)/bodymovin/bmshape.h',
|
|
|
|
'<(lottie_loc)/bodymovin/bmshapelayer.h',
|
|
|
|
'<(lottie_loc)/bodymovin/bmshapetransform.h',
|
|
|
|
'<(lottie_loc)/bodymovin/bmstroke.h',
|
|
|
|
'<(lottie_loc)/bodymovin/bmtrimpath.h',
|
2019-05-16 10:00:22 +00:00
|
|
|
'<(lottie_loc)/bodymovin/freeformshape.h',
|
2019-05-15 16:19:04 +00:00
|
|
|
'<(lottie_loc)/bodymovin/trimpath.h',
|
2019-05-15 16:54:08 +00:00
|
|
|
'<(lottie_loc)/bodymovin/renderer.h',
|
2019-05-15 16:19:04 +00:00
|
|
|
'<(lottie_loc)/bodymovin/bmpathtrimmer.h',
|
2019-04-27 09:12:53 +00:00
|
|
|
|
2019-05-01 18:53:08 +00:00
|
|
|
# taken from qtlottie/src/imports/imports.pro
|
2019-05-15 16:54:08 +00:00
|
|
|
'<(lottie_loc)/imports/rasterrenderer/rasterrenderer.cpp',
|
2019-04-27 09:12:53 +00:00
|
|
|
|
2019-05-15 16:54:08 +00:00
|
|
|
'<(lottie_loc)/imports/rasterrenderer/rasterrenderer.h',
|
2019-05-01 18:53:08 +00:00
|
|
|
|
|
|
|
# added to qtlottie/src/bodymovin/bodymovin.pro
|
2019-05-02 07:23:32 +00:00
|
|
|
'<(lottie_loc)/bodymovin/bmasset.cpp',
|
|
|
|
'<(lottie_loc)/bodymovin/bmprecompasset.cpp',
|
2019-05-01 18:53:08 +00:00
|
|
|
'<(lottie_loc)/bodymovin/bmnulllayer.cpp',
|
2019-05-02 11:08:32 +00:00
|
|
|
'<(lottie_loc)/bodymovin/bmprecomplayer.cpp',
|
2019-05-09 12:11:38 +00:00
|
|
|
'<(lottie_loc)/bodymovin/bmscene.cpp',
|
2019-05-12 19:48:15 +00:00
|
|
|
'<(lottie_loc)/bodymovin/bmmasks.cpp',
|
|
|
|
'<(lottie_loc)/bodymovin/bmmaskshape.cpp',
|
2019-05-01 18:53:08 +00:00
|
|
|
|
2019-05-15 16:19:04 +00:00
|
|
|
'<(lottie_loc)/bodymovin/bmasset.h',
|
|
|
|
'<(lottie_loc)/bodymovin/bmprecompasset.h',
|
|
|
|
'<(lottie_loc)/bodymovin/bmnulllayer.h',
|
|
|
|
'<(lottie_loc)/bodymovin/bmprecomplayer.h',
|
|
|
|
'<(lottie_loc)/bodymovin/bmscene.h',
|
|
|
|
'<(lottie_loc)/bodymovin/bmmasks.h',
|
|
|
|
'<(lottie_loc)/bodymovin/bmmaskshape.h',
|
2019-05-16 13:56:00 +00:00
|
|
|
|
|
|
|
'<(lottie_loc)/bodymovin/json.h',
|
2019-04-27 09:12:53 +00:00
|
|
|
],
|
|
|
|
'conditions': [[ 'build_macold', {
|
|
|
|
'xcode_settings': {
|
|
|
|
'OTHER_CPLUSPLUSFLAGS': [ '-nostdinc++' ],
|
|
|
|
},
|
|
|
|
'include_dirs': [
|
|
|
|
'/usr/local/macold/include/c++/v1',
|
|
|
|
],
|
|
|
|
}]],
|
|
|
|
}],
|
|
|
|
}
|