mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2026-02-04 02:15:47 +00:00
lottie: Enable compiler Optimization on library.
Change-Id: I4edee092788670e5438139ea60a8daa9998c6575
This commit is contained in:
@@ -24,7 +24,7 @@ target_compile_options(lottie-player
|
||||
PUBLIC
|
||||
-std=c++14
|
||||
PRIVATE
|
||||
-Wall -fvisibility=hidden)
|
||||
-Wall -fvisibility=hidden -O2)
|
||||
|
||||
#declare dependancy
|
||||
set( CMAKE_THREAD_PREFER_PTHREAD TRUE )
|
||||
|
||||
@@ -6,7 +6,7 @@ lottie_player_lib_version = '0.0.1'
|
||||
|
||||
add_global_arguments('-DDEMO_DIR="@0@/example/resource/"'.format(meson.current_source_dir()), language : 'cpp')
|
||||
|
||||
compiler_flags = ['-Wall','-std=c++14', '-fvisibility=hidden']
|
||||
compiler_flags = ['-Wall', '-O2', '-std=c++14', '-fvisibility=hidden']
|
||||
|
||||
if (build_machine.system() == 'linux')
|
||||
compiler_flags += ['-pthread']
|
||||
|
||||
@@ -29,7 +29,7 @@ lottie player library (devel)
|
||||
|
||||
|
||||
%build
|
||||
export CFLAGS+=" -fvisibility=hidden -fPIC -Wall"
|
||||
export CFLAGS+=" -fvisibility=hidden -fPIC -Wall -O2"
|
||||
export LDFLAGS+=" "
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user