2 # Copyright (c) 2014 Samsung Electronics Co., Ltd.
4 # Licensed under the Apache License, Version 2.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://www.apache.org/licenses/LICENSE-2.0
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.
17 m4_define([dali_version],[0.1.0])
18 AC_INIT([dali], [dali_version])
19 AM_INIT_AUTOMAKE([-Wall foreign])
24 m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
28 DALI_TOOLKIT_VERSION=dali_version
29 AC_SUBST(DALI_TOOLKIT_VERSION)
31 PKG_CHECK_MODULES(DALICORE, dali-core)
32 PKG_CHECK_MODULES(DALI, dali)
33 PKG_CHECK_MODULES(FRIBIDI, fribidi)
35 DALI_TOOLKIT_CFLAGS=-DPLATFORM_TIZEN
37 AC_ARG_ENABLE(exportall,
38 [AC_HELP_STRING([--enable-exportall],
39 [enables the exporting of all the symbols in the library])],
40 [enable_exportall=yes],
41 [enable_exportall=no])
43 AC_ARG_ENABLE([debug],
44 [AC_HELP_STRING([--enable-debug],
45 [Turns on debugging])],
46 [enable_debug=$enableval],
49 if test "x$enable_debug" = "xyes"; then
50 DALI_TOOLKIT_CFLAGS="$DALI_TOOLKIT_CFLAGS -DDEBUG_ENABLED"
53 if test "x$enable_debug" = "xno" -a "x$enable_exportall" = "xno"; then
54 DALI_TOOLKIT_CFLAGS="$DALI_TOOLKIT_CFLAGS -fvisibility=hidden -DHIDE_DALI_INTERNALS"
57 # Tizen Profile options
58 AC_ARG_ENABLE([profile],
59 [AC_HELP_STRING([--enable-profile=COMMON,MOBILE,LITE,WEARABLE,TV],
60 [Select the variant of tizen])],
61 [dali_profile=$enableval],
62 [dali_profile=COMMON])
64 if test x$DALI_DATA_RW_DIR != x; then
65 dataReadWriteDir=${DALI_DATA_RW_DIR}/
67 dataReadWriteDir=${prefix}/share/dali/
70 if test x$DALI_DATA_RO_DIR != x; then
71 dataReadOnlyDir=${DALI_DATA_RO_DIR}/
73 dataReadOnlyDir=${prefix}/share/dali/
76 AC_SUBST(dataReadWriteDir)
77 AC_SUBST(dataReadOnlyDir)
78 AC_SUBST(DALI_TOOLKIT_CFLAGS)
80 # Specify the include directory for development headers
81 #devincludepath=${includedir}/dali/internal
82 devincludepath=${includedir}
83 AC_SUBST(devincludepath)
86 DOXYGEN_DOCS_DIR=../../../docs
87 DOXYGEN_ROOT_DIR=../../..
88 AC_SUBST(DOXYGEN_DOCS_DIR)
89 AC_SUBST(DOXYGEN_ROOT_DIR)
105 Debug Build: $enable_debug
106 Profile: $dali_profile
107 Data Dir (Read/Write): $dataReadWriteDir
108 Data Dir (Read Only): $dataReadOnlyDir