To get MaxTextureSize by using glGetIntegerv not by using environment variable
[platform/core/uifw/dali-adaptor.git] / build / tizen / plugins / Makefile.am
1 #
2 # Copyright (c) 2019 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 feedback plugin
18
19 plugin_src_dir = ../../../plugins
20
21 include ../../../plugins/sounds/file.list
22 include ../../../plugins/file.list
23
24 plugin_sounds_dir = ../../../plugins/sounds
25
26 lib_LTLIBRARIES =
27
28 if USE_FEEDBACK
29 lib_LTLIBRARIES += libdali-feedback-plugin-cxx11.la
30 endif
31
32 if USE_FEEDBACK
33 dalisounddir = ${dataReadOnlyDir}/plugins/sounds/
34 dalisound_DATA = ${dali_plugin_sound_files}
35
36 # Feedback
37 LIBDALI_FEEDBACK_PLUGIN_LA_SOURCES = \
38                      $(feedback_plugin_src_files)
39
40
41 libdali_feedback_plugin_la_DEPENDENCIES =
42
43 LIBDALI_FEEDBACK_PLUGIN_LA_CXXFLAGS = -DDALI_COMPILATION \
44                       -DDALI_SOUND_DIR="\"${dalisounddir}\"" \
45                       $(DLOG_CFLAGS) \
46                       $(DALICORE_CFLAGS) \
47                       $(MMFSOUND_CFLAGS) \
48                       $(FEEDBACK_CFLAGS) \
49                       $(DALI_PROFILE_CFLAGS) \
50                       $(DALI_ADAPTOR_CFLAGS) \
51                       -I../../../ \
52                       -Werror -Wall
53
54 LIBDALI_FEEDBACK_PLUGIN_LA_LIBADD = \
55                       $(DLOG_LIBS) \
56                       $(MMFSOUND_LIBS)
57
58 LIBDALI_FEEDBACK_PLUGIN_LA_LDFLAGS = \
59                       -rdynamic
60
61 LIBDALI_FEEDBACK_PLUGIN_LA_LIBADD += \
62                       $(FEEDBACK_LIBS)
63
64 endif
65
66 if USE_FEEDBACK
67 libdali_feedback_plugin_cxx11_la_SOURCES = $(LIBDALI_FEEDBACK_PLUGIN_LA_SOURCES)
68 libdali_feedback_plugin_cxx11_la_LIBADD = $(LIBDALI_FEEDBACK_PLUGIN_LA_LIBADD)
69 libdali_feedback_plugin_cxx11_la_CXXFLAGS = $(LIBDALI_FEEDBACK_PLUGIN_LA_CXXFLAGS)
70 libdali_feedback_plugin_cxx11_la_LDFLAGS = $(LIBDALI_FEEDBACK_PLUGIN_LA_LDFLAGS)
71
72 if ENABLE_RENAME_SO
73 #rename
74 install: install-am
75         rm -rf $(libdir)/libdali_feedback_plugin-cxx11.so
76         rm -rf $(libdir)/libdali_feedback_plugin.so
77         ln -s $(libdir)/libdali_feedback_plugin-cxx11.so.0.0.* $(libdir)/libdali_feedback_plugin.so
78 endif
79 endif
80