1 # Copyright (c) 2014 Samsung Electronics Co., Ltd.
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
7 # http://www.apache.org/licenses/LICENSE-2.0
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
16 m4_define([dali_version],[0.1.0])
17 AC_INIT([dali], [dali_version])
18 AM_INIT_AUTOMAKE([-Wall -Werror foreign])
23 m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
27 DALI_VERSION=dali_version
28 AC_SUBST(DALI_VERSION)
30 PKG_CHECK_MODULES(DALI, dali)
31 PKG_CHECK_MODULES(DALI_TOOLKIT, dali-toolkit)
32 PKG_CHECK_MODULES(CAPI_MEDIA_PLAYER, capi-media-player)
33 PKG_CHECK_MODULES(CAPI_APPFW_APPLICATION, capi-appfw-application)
34 PKG_CHECK_MODULES(AUL, aul)
35 PKG_CHECK_MODULES(DLOG, dlog)
37 DALIDEMO_CFLAGS=-DPLATFORM_SLP
39 AC_ARG_ENABLE([debug],
40 [AC_HELP_STRING([--enable-debug],
41 [Turns on debugging])],
42 [enable_debug=$enableval],
45 if test "x$enable_debug" = "xyes"; then
46 DALIDEMO_CFLAGS="$DALIDEMO_CFLAGS -DDEBUG_ENABLED"
49 if test x$DALI_APP_DIR != x; then
50 appdatadir=$DALI_APP_DIR
51 exedir=${appdatadir}/bin/
53 appdatadir=${prefix}/share/com.samsung.dali-demo/
60 AC_SUBST(DALIDEMO_CFLAGS)
62 dnl **************************************************************************
63 dnl ** Set Debian install Prefix **
64 dnl **************************************************************************
65 debian_prefix=${prefix#*/}
66 AC_SUBST(debian_prefix)
81 Debug Build: $enable_debug
82 Application Data Dir: $appdatadir
83 Application Exe Dir: $exedir
84 DALIDEMO_CFLAGS: ${DALIDEMO_CFLAGS}