bug fix: TIVI-1997, TIVI-2161, An action is inaccurate when the menu of HomeScreen...
[profile/ivi/ico-uxf-homescreen.git] / src / homescreen / Makefile.am
1 AM_CFLAGS = $(GCC_CFLAGS)
2 AM_CPPFLAGS = $(GCC_CXXFLAGS)
3 AM_CXXFLAGS = $(GCC_CXXFLAGS)
4
5 COMMON_LIBS = -lm -lwebsockets -lico-uxf-weston-plugin -lsecurity-server-client
6
7 noinst_PROGRAMS   = \
8         HomeScreen
9
10 HomeScreen_SOURCES =                                    \
11         CicoHSEFLApp.cpp                                        \
12         CicoHSCmdOpts.cpp                                       \
13         home_screen_main.cpp                            \
14         CicoHSLifeCycleController.cpp           \
15         CicoHSWindow.cpp                                        \
16         CicoHSWindowController.cpp                      \
17         CicoHSMenuTouch.cpp                                     \
18         CicoHomeScreen.cpp                                      \
19         CicoHSMenuTile.cpp                                      \
20         CicoHSBackWindow.cpp                            \
21         CicoHSControlBarWindow.cpp                      \
22         CicoHSControlBarTouch.cpp                       \
23         CicoHSMenuWindow.cpp                            \
24         CicoHSAppInfo.cpp                                       \
25         CicoHSSystemState.cpp                           \
26         CicoHSSwipeTouch.cpp                            \
27         CicoHSSwipeInputWindow.cpp                      \
28         CicoHSAppHistory.cpp                            \
29         CicoHSAppHistoryExt.cpp             \
30     CicoHSCommand.cpp                   \
31     CicoHSServer.cpp                    \
32     CicoHSMessage.cpp                   \
33     CicoHSAppControl.cpp                \
34     CicoHSCommandArg.cpp                 
35
36 HomeScreen_CFLAGS=                                      \
37         @CAPIAPPFWAPPLICATION_CFLAGS@   \
38     $(EFL_CFLAGS)                                       \
39     $(OPT_CFLAGS)                                       \
40     $(WL_CFLAGS)                                        \
41     $(AUL_CFLAGS)                                       \
42     $(AIL_CFLAGS)                                       \
43     $(UWS_CFLAGS)                                       \
44     $(PKGMGR_CFLAGS)                            \
45         $(UWS_CFLAGS)                                   \
46         $(WESTONPLUGIN_CFLAGS)                  \
47     -I../../include                             \
48     -I../../lib/common
49
50 HomeScreen_CXXFLAGS=                            \
51         @CAPIAPPFWAPPLICATION_CFLAGS@   \
52     $(EFL_CFLAGS)                                       \
53     $(OPT_CFLAGS)                                       \
54     $(WL_CFLAGS)                                        \
55     $(AUL_CFLAGS)                                       \
56     $(AIL_CFLAGS)                                       \
57     $(UWS_CFLAGS)                                       \
58     $(PKGMGR_CFLAGS)                            \
59         $(UWS_CFLAGS)                                   \
60         $(WESTONPLUGIN_CFLAGS)                  \
61     -I../../include                             \
62     -I../../lib/common
63
64 HomeScreen_LDADD =                                      \
65         ../../lib/common/.libs/libico-common.a                  \
66         @CAPIAPPFWAPPLICATION_LIBS@     \
67         @PKGMGR_LIBS@                                   \
68     $(EFL_LIBS)                                         \
69     $(OPT_LIBS)                                         \
70     $(WL_LIBS)                                          \
71     $(COMMON_LIBS)                                      \
72     $(UWS_LIBS)                                         \
73     $(AUL_LIBS)                                         \
74     $(AIL_LIBS)                                         \
75         $(UWS_LIBS)                                             \
76         ../../lib/apps-framework/.libs/libico-appfw.so  \
77         -lwayland-egl -lEGL -lGLESv2
78
79 SUFFIXES = .edc .edj
80
81 BUILT_SOURCES = \
82         home_screen_bg.edj      \
83         home_screen_touch.edj   \
84         appli_list.edj  \
85         appli_kill.edj
86
87 .edc.edj:
88         edje_cc $< -id ../../res/org.tizen.ico.homescreen/res/images -fd ../../res/org.tizen.ico.homescreen/res/images -sd ../../res/org.tizen.ico.homescreen/res/sounds -o $@
89
90 CLEANFILES = $(BUILT_SOURCES)
91
92 install-exec-hook:
93         mkdir -p $(INSTALL_ROOT)/usr/apps/org.tizen.ico.homescreen/bin
94         mkdir -p $(INSTALL_ROOT)/usr/apps/org.tizen.ico.homescreen/var
95         mkdir -p $(INSTALL_ROOT)/usr/apps/org.tizen.ico.homescreen/res/config
96         mkdir -p $(INSTALL_ROOT)/usr/apps/org.tizen.ico.homescreen/res/images
97         mkdir -p $(INSTALL_ROOT)/usr/apps/org.tizen.ico.homescreen/res/sound
98         mkdir -p $(INSTALL_ROOT)/usr/apps/org.tizen.ico.homescreen/res/edj
99         mkdir -p $(INSTALL_ROOT)/usr/share/packages
100         install -m 0755 HomeScreen $(INSTALL_ROOT)/usr/apps/org.tizen.ico.homescreen/bin
101         install -m 0644 home_screen_bg.edj $(INSTALL_ROOT)/usr/apps/org.tizen.ico.homescreen/res/edj
102         install -m 0644 home_screen_touch.edj $(INSTALL_ROOT)/usr/apps/org.tizen.ico.homescreen/res/edj
103         install -m 0644 $(top_srcdir)/res/org.tizen.ico.homescreen/res/images/bg.png $(INSTALL_ROOT)/usr/apps/org.tizen.ico.homescreen/res/images
104         install -m 0644 $(top_srcdir)/res/org.tizen.ico.homescreen/res/images/ctrl.png $(INSTALL_ROOT)/usr/apps/org.tizen.ico.homescreen/res/images
105         install -m 0644 $(top_srcdir)/res/org.tizen.ico.homescreen/res/images/applist_off.png $(INSTALL_ROOT)/usr/apps/org.tizen.ico.homescreen/res/images
106         install -m 0644 $(top_srcdir)/res/org.tizen.ico.homescreen/res/images/applist_off_2.png $(INSTALL_ROOT)/usr/apps/org.tizen.ico.homescreen/res/images
107         install -m 0644 $(top_srcdir)/res/org.tizen.ico.homescreen/res/images/applist_on.png $(INSTALL_ROOT)/usr/apps/org.tizen.ico.homescreen/res/images
108         install -m 0644 $(top_srcdir)/res/org.tizen.ico.homescreen/res/images/applist_on_2.png $(INSTALL_ROOT)/usr/apps/org.tizen.ico.homescreen/res/images
109         install -m 0644 $(top_srcdir)/res/org.tizen.ico.homescreen/res/images/api_all_off.png $(INSTALL_ROOT)/usr/apps/org.tizen.ico.homescreen/res/images
110         install -m 0644 $(top_srcdir)/res/org.tizen.ico.homescreen/res/images/api_all_on.png $(INSTALL_ROOT)/usr/apps/org.tizen.ico.homescreen/res/images
111         install -m 0644 $(top_srcdir)/res/org.tizen.ico.homescreen/res/images/pagePointer_n.png $(INSTALL_ROOT)/usr/apps/org.tizen.ico.homescreen/res/images
112         install -m 0644 $(top_srcdir)/res/org.tizen.ico.homescreen/res/images/pagePointer_p.png $(INSTALL_ROOT)/usr/apps/org.tizen.ico.homescreen/res/images
113         install -m 0644 $(top_srcdir)/res/org.tizen.ico.homescreen/res/images/pageDownCursor.png $(INSTALL_ROOT)/usr/apps/org.tizen.ico.homescreen/res/images
114         install -m 0644 $(top_srcdir)/res/org.tizen.ico.homescreen/res/images/pageUpCursor.png $(INSTALL_ROOT)/usr/apps/org.tizen.ico.homescreen/res/images
115         install -m 0644 $(top_srcdir)/res/org.tizen.ico.homescreen/res/images/button_really.png $(INSTALL_ROOT)/usr/apps/org.tizen.ico.homescreen/res/images
116         install -m 0644 $(top_srcdir)/res/org.tizen.ico.homescreen/res/images/button_no.png $(INSTALL_ROOT)/usr/apps/org.tizen.ico.homescreen/res/images
117         install -m 0644 $(top_srcdir)/res/org.tizen.ico.homescreen/res/images/button_yes.png $(INSTALL_ROOT)/usr/apps/org.tizen.ico.homescreen/res/images
118         install -m 0644 $(top_srcdir)/res/org.tizen.ico.homescreen/res/images/termIcon.png $(INSTALL_ROOT)/usr/apps/org.tizen.ico.homescreen/res/images
119         install -m 0644 $(top_srcdir)/res/org.tizen.ico.homescreen/res/images/tizen_32.png $(INSTALL_ROOT)/usr/apps/org.tizen.ico.homescreen/res/images
120         install -m 0644 $(top_srcdir)/data/share/packages/org.tizen.ico.homescreen.xml $(INSTALL_ROOT)/usr/share/packages
121         install -m 0644 $(top_srcdir)/res/org.tizen.ico.homescreen/res/config/* $(INSTALL_ROOT)/usr/apps/org.tizen.ico.homescreen/res/config
122         install -m 0644 $(top_srcdir)/res/org.tizen.ico.homescreen/res/sound/* $(INSTALL_ROOT)/usr/apps/org.tizen.ico.homescreen/res/sound
123         cp -r $(top_srcdir)/data/apps/org.tizen.ico.homescreen $(INSTALL_ROOT)/usr/apps/
124
125 uninstall:
126         rm -rf $(INSTALL_ROOT)/usr/apps/org.tizen.ico.homescreen
127         rm -f $(INSTALL_ROOT)/usr/share/packages/org.tizen.ico.homescreen.xml