lottie: Enable compiler Optimization on library.

Change-Id: I4edee092788670e5438139ea60a8daa9998c6575
This commit is contained in:
subhransu mohanty
2018-07-30 13:44:09 +09:00
parent e527a3d7c0
commit 21867e1bd1
3 changed files with 3 additions and 3 deletions

View File

@@ -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 )

View File

@@ -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']

View File

@@ -29,7 +29,7 @@ lottie player library (devel)
%build
export CFLAGS+=" -fvisibility=hidden -fPIC -Wall"
export CFLAGS+=" -fvisibility=hidden -fPIC -Wall -O2"
export LDFLAGS+=" "