[Tizen] ecore-wl2: applying ecore-wl2
[platform/core/uifw/dali-extension.git] / build / tizen / video-player / 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 feedback plugin
18
19 extension_src_dir = ../../../dali-extension
20
21 include ../../../dali-extension/video-player/file.list
22
23 lib_LTLIBRARIES =
24
25 lib_LTLIBRARIES += libdali-video-player-plugin.la
26
27 # Todo Video player plugin separation
28 if ECOREWL2
29 libdali_video_player_plugin_la_SOURCES = \
30                      $(video_player_ecore_wl2_plugin_src_files)
31 else
32 libdali_video_player_plugin_la_SOURCES = \
33                      $(video_player_ecore_wl_plugin_src_files)
34 endif
35
36 libdali_video_player_plugin_la_DEPENDENCIES =
37
38 libdali_video_player_plugin_la_CXXFLAGS = \
39                       $(DLOG_CFLAGS) \
40                       $(DALI_CFLAGS) \
41                       $(CAPI_MEDIA_PLAYER_CFLAGS) \
42                       $(CAPI_SYSTEM_INFO_CFLAGS) \
43                       -Werror -Wall
44
45 if ECOREWL2
46 libdali_video_player_plugin_la_CXXFLAGS+= $(ECORE_WL2_CFLAGS) \
47                       -I../../../dali-extension/video-player/ecore-wl2
48 else
49 libdali_video_player_plugin_la_CXXFLAGS+= $(ECORE_WAYLAND_CFLAGS) \
50                       -I../../../dali-extension/video-player/ecore-wl
51 endif
52
53 libdali_video_player_plugin_la_LIBADD = \
54                       $(DLOG_LIBS) \
55                       $(DALI_LIBS) \
56                       $(CAPI_MEDIA_PLAYER_LIBS) \
57                       $(CAPI_SYSTEM_INFO_LIBS)
58
59 if ECOREWL2
60 libdali_video_player_plugin_la_LIBADD+= $(ECORE_WL2_LIBS)
61 else
62 libdali_video_player_plugin_la_LIBADD+= $(ECORE_WAYLAND_LIBS)
63 endif
64
65 libdali_video_player_plugin_la_LDFLAGS = \
66                       -rdynamic
67