[TV] eina: disable ttrace to be called 71/77471/3
authorShinwoo Kim <cinoo.kim@samsung.com>
Thu, 30 Jun 2016 02:31:51 +0000 (11:31 +0900)
committerGerrit Code Review <gerrit@review.vlan103.tizen.org>
Fri, 1 Jul 2016 06:21:45 +0000 (23:21 -0700)
Change-Id: Ia4bbf665a21ee90aefdcf9909ddc79dfd546a9f3

packaging/efl.spec
src/lib/eina/eina_evlog.c

index 3ea1798..41d9b69 100755 (executable)
@@ -674,6 +674,10 @@ cp %{SOURCE1001} .
 
 %build
 
+%if "%{profile}" == "tv"
+        export CFLAGS+=" -DEFL_FEATURE_TV"
+%endif
+
 %if ! %{with x}
 CFLAGS+=" -DMESA_EGL_NO_X11_HEADERS "
 %endif
index 1a38307..c3a0d7d 100644 (file)
@@ -179,11 +179,13 @@ eina_evlog(const char *event, void *obj, double srctime, const char *detail)
 
 // TIZEN_ONLY(160401): TTRACE
 #ifdef ENABLE_TTRACE
+#ifndef EFL_FEATURE_TV
    if(!strncmp(event, "+", 1))
      traceBegin(TTRACE_TAG_GRAPHICS, event + 1);
    else if(!strncmp(event, "-", 1))
      traceEnd(TTRACE_TAG_GRAPHICS);
 #endif
+#endif
 // TIZEN_ONLY(160401): TTRACE
 
 }
@@ -261,11 +263,13 @@ eina_evlog(const char *event EINA_UNUSED, void *obj EINA_UNUSED, double srctime
 {
 // TIZEN_ONLY(160401): TTRACE
 #ifdef ENABLE_TTRACE
+#ifndef EFL_FEATURE_TV
    if(!strncmp(event, "+", 1))
      traceBegin(TTRACE_TAG_GRAPHICS, event + 1);
    else if(!strncmp(event, "-", 1))
      traceEnd(TTRACE_TAG_GRAPHICS);
 #endif
+#endif
 // TIZEN_ONLY(160401): TTRACE
 }