Controls no longer have property names.
[platform/core/uifw/dali-toolkit.git] / build / slp / configure.ac
1 #
2 # Copyright (c) 2014 Samsung Electronics Co., Ltd.
3 #
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
7 #
8 #     http://floralicense.org/license/
9 #
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an AS IS BASIS,
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 # See the License for the specific language governing permissions and
14 # limitations under the License.
15 #
16
17 m4_define([dali_version],[0.1.0])
18 AC_INIT([dali], [dali_version])
19 AM_INIT_AUTOMAKE([-Wall -Werror foreign])
20
21 AC_PROG_CXX
22 AC_PROG_LIBTOOL
23
24 m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
25
26 LT_INIT
27
28 DALI_TOOLKIT_VERSION=dali_version
29 AC_SUBST(DALI_TOOLKIT_VERSION)
30
31 PKG_CHECK_MODULES(DALICORE, dali-core)
32 PKG_CHECK_MODULES(DALI, dali)
33 PKG_CHECK_MODULES(DLOG, dlog)
34 PKG_CHECK_MODULES(FRIBIDI, fribidi)
35
36 DALI_TOOLKIT_CFLAGS=-DPLATFORM_SLP
37
38 AC_ARG_ENABLE(exportall,
39               [AC_HELP_STRING([--enable-exportall],
40                               [enables the exporting of all the symbols in the library])],
41               [enable_exportall=yes],
42               [enable_exportall=no])
43
44 AC_ARG_ENABLE([debug],
45               [AC_HELP_STRING([--enable-debug],
46                               [Turns on debugging])],
47               [enable_debug=$enableval],
48               [enable_debug=no])
49
50 if test "x$enable_debug" = "xyes"; then
51   DALI_TOOLKIT_CFLAGS="$DALI_TOOLKIT_CFLAGS -DDEBUG_ENABLED"
52 fi
53
54 if test "x$enable_debug" = "xno" -a "x$enable_exportall" = "xno"; then
55   DALI_TOOLKIT_CFLAGS="$DALI_TOOLKIT_CFLAGS -fvisibility=hidden -DHIDE_DALI_INTERNALS"
56 fi
57
58
59 if test x$DALI_DATA_RW_DIR != x; then
60   dataReadWriteDir=${DALI_DATA_RW_DIR}/
61 else
62   dataReadWriteDir=${prefix}/share/dali/
63 fi
64
65 if test x$DALI_DATA_RO_DIR != x; then
66   dataReadOnlyDir=${DALI_DATA_RO_DIR}/
67 else
68   dataReadOnlyDir=${prefix}/share/dali/
69 fi
70
71 AC_SUBST(dataReadWriteDir)
72 AC_SUBST(dataReadOnlyDir)
73 AC_SUBST(DALI_TOOLKIT_CFLAGS)
74
75 # Specify the include directory for development headers
76 #devincludepath=${includedir}/dali/internal
77 devincludepath=${includedir}
78 AC_SUBST(devincludepath)
79
80 AC_CONFIG_FILES([
81  Makefile
82  dali-toolkit/Makefile
83  dali-toolkit.pc
84  ../../automated-tests/rules.mk
85 ])
86
87 AC_OUTPUT
88
89 echo "
90 Configuration
91 -------------
92   Prefix:                           $prefix
93   Debug Build:                      $enable_debug
94   Data Dir (Read/Write):            $dataReadWriteDir
95   Data Dir (Read Only):             $dataReadOnlyDir
96 "