bb89f6caca3abb058fa2164fb99771631c573a71
[platform/core/uifw/dali-toolkit.git] / build / tizen / plugins / Makefile.am
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 # Build the Dali Toolkit library
18
19 plugin_src_dir = ../../../plugins
20
21 include ../../../plugins/dali-script-v8/file.list
22
23
24 lib_LTLIBRARIES = libdali-script-plugin-v8.la
25
26 # force the source code to include the directory the wrapper file is in
27 # e.g. actors/actor-api.h to copy the same include style as dali-core
28 # The reason for including toolkit paths directly instead of just the
29 # install path for dali-toolkit.h, is dali-toolkit.h is not installed yet.
30 # It won't be installed until the rpm is installed, and unfortunately the
31 # plugin is part of the same rpm
32 script_plugin_v8_includes = -I../../../plugins/dali-script-v8/src \
33                             -I../../../plugins/dali-script-v8/src/utils
34
35
36 libdali_script_plugin_v8_la_SOURCES = \
37                      $(script_v8_plugin_src_files)
38
39 libdali_script_plugin_v8_la_DEPENDENCIES =
40
41 libdali_script_plugin_v8_la_CXXFLAGS = -DDALI_COMPILATION \
42                             $(V8_CFLAGS) \
43                             $(DALI_TOOLKIT_CFLAGS) \
44                             $(DALICORE_CFLAGS) \
45                             -DDALI_DATA_READ_ONLY_DIR="\"${dataReadOnlyDir}\"" \
46                             $(DALI_CFLAGS) \
47                             $(DLOG_CFLAGS) \
48                             $(script_plugin_v8_includes) \
49                             -Werror -Wall
50
51 libdali_script_plugin_v8_la_LIBADD = \
52                             $(DALICORE_LIBS) \
53                             $(DALI_LIBS) \
54                             $(DLOG_LIBS) \
55                             $(V8_LIBS)
56
57 libdali_script_plugin_v8_la_LDFLAGS = \
58                            -rdynamic