Merge "Temporary fix of build break. wl_text_input_set_surrounding_text() is deprecat...
[platform/core/uifw/dali-adaptor.git] / build / tizen / configure.ac
1 #
2 # Copyright (c) 2015 Samsung Electronics Co., Ltd.
3 #
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
7 #
8 # http://www.apache.org/licenses/LICENSE-2.0
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 foreign])
20
21 AC_ARG_WITH([libuv],
22               [AC_HELP_STRING([--with-libuv],
23                               [Path that contains libuv headers. Setting this configures DALi to work with LibUV mainloop used in Node.JS.
24                               For example /usr/tmp/downloads/node/deps/uv/include/ ])],
25               [with_libuv=$withval],
26               [with_libuv=no])
27
28 AC_ARG_ENABLE([feedback],
29               [AC_HELP_STRING([ --enable-feedback],
30                               [Enable feedback plugin])],
31               [enable_feedback=yes],
32               [enable_feedback=no])
33
34 AC_ARG_ENABLE([videoplayer],
35               [AC_HELP_STRING([ --enable-videoplayer],
36                               [Enable video player plugin])],
37               [enable_videoplayer=yes],
38               [enable_videoplayer=no])
39
40 AC_CONFIG_SUBDIRS(adaptor)
41 if test "x$with_libuv" != "xno"; then
42   # build dali-adaptor & dali-adaptor-uv
43   AC_CONFIG_SUBDIRS(adaptor-uv)
44 fi
45
46 if test "x$enable_feedback" = "xyes" || test "x$enable_videoplayer" = "xyes"; then
47   # build dali-adaptor & dali-adaptor-uv & plugins
48   AC_CONFIG_SUBDIRS(plugins)
49 fi
50 #else
51   # build dali-adaptor only
52
53 AC_CONFIG_FILES(Makefile)
54
55 AC_OUTPUT