Remove CXX03 Build
[platform/core/uifw/dali-core.git] / build / tizen / configure.ac
index f61fcd0..05a7465 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (c) 2014 Samsung Electronics Co., Ltd.
+# Copyright (c) 2019 Samsung Electronics Co., Ltd.
 
 # Licensed under the Apache License, Version 2.0 (the "License");
 # you may not use this file except in compliance with the License.
@@ -30,6 +30,9 @@ AC_SUBST(DALI_VERSION)
 
 DALI_CFLAGS=-DPLATFORM_TIZEN
 
+# Use C++ 11
+DALI_CFLAGS="$DALI_CFLAGS -std=c++11 -Wnon-virtual-dtor -Woverloaded-virtual -Wold-style-cast -Werror -Wall -Wextra -Wno-unused-parameter -Wfloat-equal -Wconversion"
+
 AC_ARG_ENABLE(exportall,
               [AC_HELP_STRING([--enable-exportall],
                               [enables the exporting of all the symbols in the library])],
@@ -42,44 +45,46 @@ AC_ARG_ENABLE([debug],
               [enable_debug=$enableval],
               [enable_debug=no])
 
-AC_ARG_ENABLE([emscripten],
-              [AC_HELP_STRING([--enable-emscripten],
-                              [Emscripten builds])],
-              [enable_emscripten=$enableval],
-              [enable_emscripten=no])
+AC_ARG_ENABLE([backtrace],
+              [AC_HELP_STRING([--enable-backtrace],
+                              [Backtrace for exceptions])],
+              [enable_backtrace=$enableval],
+              [enable_backtrace=yes])
+
+AC_ARG_ENABLE([lock_backtrace],
+              [AC_HELP_STRING([--enable-lock-backtrace],
+                              [Backtrace for when more than 1 lock is held on the same thread])],
+              [enable_lock_backtrace=$enableval],
+              [enable_lock_backtrace=no])
+
+AC_ARG_ENABLE([rename_so],
+              [AC_HELP_STRING([--enable-rename-so],
+                              [Specify whether so file is renamed or not])],
+              [enable_rename_so=$enableval],
+              [enable_rename_so=yes])
 
-AC_ARG_ENABLE([dynamics],
-              [AC_HELP_STRING([--enable-dynamics],
-                              [Builds with dynamics support])],
-              [dynamics_support=$enableval],
-              [dynamics_support=no])
+AM_CONDITIONAL([ENABLE_RENAME_SO], [test x$enable_rename_so = xyes])
 
 if test "x$enable_debug" = "xyes"; then
-  DALI_CFLAGS="$DALI_CFLAGS -DDEBUG_ENABLED -DDEBUG_BACKTRACE"
+  DALI_CFLAGS="$DALI_CFLAGS -DDEBUG_ENABLED"
 fi
 
-if test "x$enable_debug" = "xno" -a "x$enable_exportall" = "xno"; then
-  DALI_CFLAGS="$DALI_CFLAGS -fvisibility=hidden -DHIDE_DALI_INTERNALS"
+if test "x$enable_trace" = "xyes"; then
+  DALI_CFLAGS="$DALI_CFLAGS -DTRACE_ENABLED"
 fi
 
-if test "x$enable_emscripten" = "xyes"; then
-  DALI_CFLAGS="$DALI_CFLAGS -DEMSCRIPTEN -std=c++11"
+if test "x$enable_debug" = "xno" -a "x$enable_exportall" = "xno"; then
+  DALI_CFLAGS="$DALI_CFLAGS -fvisibility=hidden -DHIDE_DALI_INTERNALS"
 fi
 
-if test "x$dynamics_support" = "xyes"; then
-  DALI_CFLAGS="$DALI_CFLAGS -DDYNAMICS_SUPPORT"
+if test "x$enable_lock_backtrace" = "xyes"; then
+  DALI_CFLAGS="$DALI_CFLAGS -DLOCK_BACKTRACE_ENABLED"
+  enable_backtrace="yes"
 fi
 
-AM_CONDITIONAL([DYNAMICS_SUPPORT], [test x$dynamics_support = xyes])
-
-AC_ARG_ENABLE([performance-monitor],
-              [AC_HELP_STRING([--enable-performance-monitor],
-                              [Enables the performance monitor output])],
-              [enable_performance_monitor=$enableval],
-              [enable_performance_monitor=no])
-
-if test "x$enable_performance_monitor" = "xyes"; then
-  DALI_CFLAGS="$DALI_CFLAGS -DPERFORMANCE_MONITOR_ENABLED"
+# Must come after locks backtrace feature test
+if test "x$enable_backtrace" = "xyes"; then
+  DALI_CFLAGS="$DALI_CFLAGS -DBACKTRACE_ENABLED"
 fi
 
 if test x$DALI_DATA_RW_DIR != x; then
@@ -107,9 +112,9 @@ devincludepath=${includedir}
 AC_SUBST(devincludepath)
 
 AC_CONFIG_FILES([
- Makefile
- dali-core/Makefile
- dali-core.pc
 Makefile
 dali-core/Makefile
 dali-core.pc
 ])
 
 AC_OUTPUT
@@ -119,8 +124,10 @@ Configuration
 -------------
   Prefix:                           $prefix
   Debug Build:                      $enable_debug
-  Performance Monitor:              $enable_performance_monitor
+  Trace Build:                      $enable_trace
   Data Dir (Read/Write):            $dataReadWriteDir
   Data Dir (Read Only):             $dataReadOnlyDir
-  Emscripten:                       $enable_emscripten
+  Backtrace:                        $enable_backtrace
+  ScopedLock Backtrace:             $enable_lock_backtrace
+  Rename so file:                   $enable_rename_so
 "