2 # Copyright (c) 2014 Samsung Electronics Co., Ltd.
4 # Licensed under the Flora License, Version 1.0 (the License);
5 # you may not use this file except in compliance with the License.
6 # You may obtain a copy of the License at
8 # http://floralicense.org/license/
11 # Unless required by applicable law or agreed to in writing, software
12 # distributed under the License is distributed on an AS IS BASIS,
13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 # See the License for the specific language governing permissions and
15 # limitations under the License.
18 m4_define([dali_version],[0.1.1])
19 AC_INIT([dali], [dali_version])
20 AM_INIT_AUTOMAKE([-Wall foreign])
26 m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
30 DALI_VERSION=dali_version
31 AC_SUBST(DALI_VERSION)
33 DALI_CFLAGS=-DPLATFORM_SLP
35 AC_ARG_ENABLE(exportall,
36 [AC_HELP_STRING([--enable-exportall],
37 [enables the exporting of all the symbols in the library])],
38 [enable_exportall=yes],
39 [enable_exportall=no])
41 AC_ARG_ENABLE([debug],
42 [AC_HELP_STRING([--enable-debug],
43 [Turns on debugging])],
44 [enable_debug=$enableval],
47 AC_ARG_ENABLE([emscripten],
48 [AC_HELP_STRING([--enable-emscripten],
49 [Emscripten builds])],
50 [enable_emscripten=$enableval],
51 [enable_emscripten=no])
53 AC_ARG_ENABLE([dynamics],
54 [AC_HELP_STRING([--enable-dynamics],
55 [Builds with dynamics support])],
56 [dynamics_support=$enableval],
57 [dynamics_support=no])
59 if test "x$enable_debug" = "xyes"; then
60 DALI_CFLAGS="$DALI_CFLAGS -DDEBUG_ENABLED -DDEBUG_BACKTRACE"
63 if test "x$enable_debug" = "xno" -a "x$enable_exportall" = "xno"; then
64 DALI_CFLAGS="$DALI_CFLAGS -fvisibility=hidden -DHIDE_DALI_INTERNALS"
67 if test "x$enable_emscripten" = "xyes"; then
68 DALI_CFLAGS="$DALI_CFLAGS -DEMSCRIPTEN -std=c++11"
71 if test "x$dynamics_support" = "xyes"; then
72 DALI_CFLAGS="$DALI_CFLAGS -DDYNAMICS_SUPPORT"
75 AM_CONDITIONAL([DYNAMICS_SUPPORT], [test x$dynamics_support = xyes])
77 AC_ARG_ENABLE([performance-monitor],
78 [AC_HELP_STRING([--enable-performance-monitor],
79 [Enables the performance monitor output])],
80 [enable_performance_monitor=$enableval],
81 [enable_performance_monitor=no])
83 if test "x$enable_performance_monitor" = "xyes"; then
84 DALI_CFLAGS="$DALI_CFLAGS -DPERFORMANCE_MONITOR_ENABLED"
87 if test x$DALI_DATA_RW_DIR != x; then
88 dataReadWriteDir=$DALI_DATA_RW_DIR
90 dataReadWriteDir=${prefix}/share/dali/
93 if test x$DALI_DATA_RO_DIR != x; then
94 dataReadOnlyDir=$DALI_DATA_RO_DIR
96 dataReadOnlyDir=${prefix}/share/dali/
99 DALI_CFLAGS="$DALI_CFLAGS -I${includedir}"
100 DALI_LDFLAGS="-L${libdir}"
102 AC_SUBST(dataReadWriteDir)
103 AC_SUBST(dataReadOnlyDir)
104 AC_SUBST(DALI_CFLAGS)
105 AC_SUBST(DALI_LDFLAGS)
107 # Specify the include directory for development headers
108 devincludepath=${includedir}
109 AC_SUBST(devincludepath)
115 dali-test-suite-utils.pc
124 Debug Build: $enable_debug
125 Performance Monitor: $enable_performance_monitor
126 Data Dir (Read/Write): $dataReadWriteDir
127 Data Dir (Read Only): $dataReadOnlyDir
128 Emscripten: $enable_emscripten