projects
/
platform
/
core
/
uifw
/
dali-adaptor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[Tizen] Support asan build option
[platform/core/uifw/dali-adaptor.git]
/
packaging
/
dali-adaptor.spec
diff --git
a/packaging/dali-adaptor.spec
b/packaging/dali-adaptor.spec
index
ef33b04
..
03591d3
100644
(file)
--- a/
packaging/dali-adaptor.spec
+++ b/
packaging/dali-adaptor.spec
@@
-17,7
+17,7
@@
Name: dali2-adaptor
Summary: The DALi Tizen Adaptor
Name: dali2-adaptor
Summary: The DALi Tizen Adaptor
-Version: 2.
2.50
+Version: 2.
3.8
Release: 1
Group: System/Libraries
License: Apache-2.0 and BSD-3-Clause and MIT
Release: 1
Group: System/Libraries
License: Apache-2.0 and BSD-3-Clause and MIT
@@
-117,6
+117,13
@@
BuildRequires: pkgconfig(component-based-core-base)
BuildRequires: pkgconfig(thorvg)
%endif
BuildRequires: pkgconfig(thorvg)
%endif
+# For ASAN test
+%if "%{vd_asan}" == "1" || "%{asan}" == "1"
+BuildRequires: asan-force-options
+BuildRequires: asan-build-env
+BuildRequires: libasan
+%endif
+
# for multiprofile
Requires: %{name}-compat = %{version}-%{release}
Recommends: %{name}-profile_common = %{version}-%{release}
# for multiprofile
Requires: %{name}-compat = %{version}-%{release}
Recommends: %{name}-profile_common = %{version}-%{release}
@@
-292,6
+299,12
@@
CXXFLAGS+=" -DOVER_TIZEN_VERSION_7"
CXXFLAGS+=" -DOVER_TIZEN_VERSION_8"
%endif
CXXFLAGS+=" -DOVER_TIZEN_VERSION_8"
%endif
+%if "%{vd_asan}" == "1" || "%{asan}" == "1"
+CFLAGS+=" -fsanitize=address"
+CXXFLAGS+=" -fsanitize=address"
+LDFLAGS+=" -fsanitize=address"
+%endif
+
%if 0%{?enable_debug}
cmake_flags+=" -DCMAKE_BUILD_TYPE=Debug"
%endif
%if 0%{?enable_debug}
cmake_flags+=" -DCMAKE_BUILD_TYPE=Debug"
%endif