Bug fix: TIVI-1996.
[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         StatusBar
10
11 HomeScreen_SOURCES = \
12         home_screen_main.cpp    \
13         CicoSCAilItems.cpp      \
14         CicoSCAulItems.cpp      \
15         CicoSCSystemConfig.cpp  \
16         CicoSCLifeCycleController.cpp   \
17         CicoHSWindow.cpp        \
18         CicoHSWindowController.cpp      \
19         CicoHSMenuTouch.cpp     \
20         CicoHomeScreen.cpp      \
21         CicoHSMenuTile.cpp      \
22         CicoHSBackWindow.cpp    \
23         CicoHSControlBarWindow.cpp      \
24         CicoHSControlBarTouch.cpp       \
25         CicoHSMenuWindow.cpp    \
26         CicoHSAppInfo.cpp       \
27         CicoHomeScreenConfig.cpp        \
28         CicoHomeScreenResourceConfig.cpp        \
29         CicoHomeScreenSound.cpp \
30         CicoHomeScreenSoundConfig.cpp   \
31         CicoHSSystemState.cpp   \
32         CicoHSSwipeTouch.cpp    \
33         CicoHSSwipeInputWindow.cpp \
34         CicoHSAppHistory.cpp    \
35         CicoHSAppHistoryExt.cpp \
36         Cico_aul_listen_app.cpp \
37         CicoSound.cpp
38
39 HomeScreen_CFLAGS= \
40     $(EFL_CFLAGS) \
41     $(OPT_CFLAGS) \
42     $(WL_CFLAGS) \
43     $(AUL_CFLAGS) \
44     $(AIL_CFLAGS) \
45     $(UWS_CFLAGS) \
46     $(PKGMGR_CFLAGS) \
47     -I/usr/include/ico-uxf-weston-plugin \
48     -I/usr/include/ico-util
49 HomeScreen_CXXFLAGS= \
50     $(EFL_CFLAGS) \
51     $(OPT_CFLAGS) \
52     $(WL_CFLAGS) \
53     $(AUL_CFLAGS) \
54     $(AIL_CFLAGS) \
55     $(UWS_CFLAGS) \
56     $(PKGMGR_CFLAGS) \
57     -I/usr/include/ico-uxf-weston-plugin \
58     -I/usr/include/ico-util \
59     -I../../include
60 HomeScreen_LDADD = \
61     $(EFL_LIBS) \
62     $(OPT_LIBS) \
63     $(WL_LIBS) \
64     $(COMMON_LIBS) \
65     $(UWS_LIBS) \
66     $(AUL_LIBS) \
67     $(AIL_LIBS) \
68     -lico-util \
69     -lico-uxf-weston-plugin \
70     /usr/lib/libpkgmgr-client.so \
71         ../../lib/apps-framework/.libs/libico-appfw.so \
72         -lwayland-egl -lEGL -lGLESv2
73
74 #OnScreen_SOURCES = \
75 #       on_screen.cpp        \
76 #    CicoOnScreenAction.cpp  \
77 #    CicoOnScreenAppList.cpp  \
78 #    CicoOnScreenControlWindow.cpp  \
79 #    CicoOnScreenContext.cpp  \
80 #       CicoHomeScreenConfig.cpp        \
81 #       CicoHomeScreenResourceConfig.cpp        \
82 #       CicoHomeScreenSound.cpp \
83 #        CicoHomeScreenSoundConfig.cpp
84 #OnScreen_CXXFLAGS = -I../include $(EFL_CFLAGS) $(OPT_CFLAGS) $(WL_CFLAGS) $(AUL_CFLAGS) $(UWS_CFLAGS) -I/usr/include/ico-uxf-weston-plugin -I/usr/include/ico-util
85 #OnScreen_LDADD = $(EFL_LIBS) $(OPT_LIBS) $(WL_LIBS) $(COMMON_LIBS) $(AUL_LIBS) $(UWS_LIBS) ../apps_controller/libico_syc-apc.a ../ico-app-framework/.libs/libico-app-fw-efl.so ../ico-app-framework/.libs/libico-app-fw.so
86
87 StatusBar_SOURCES = \
88         status_bar.cpp  \
89         CicoStatusBarControlWindow.cpp \
90         CicoStatusBarTime.cpp \
91         CicoHomeScreenConfig.cpp        \
92         CicoHomeScreenResourceConfig.cpp        \
93         CicoHomeScreenSound.cpp \
94         CicoHomeScreenSoundConfig.cpp
95 StatusBar_CFLAGS = \
96             $(EFL_CFLAGS) \
97             $(OPT_CFLAGS) \
98             $(WL_CFLAGS) \
99             $(AUL_CFLAGS) \
100             $(UWS_CFLAGS) \
101                 -I/usr/include/ico-uxf-weston-plugin \
102                 -I/usr/include/ico-util
103 StatusBar_CXXFLAGS = \
104             $(EFL_CFLAGS) \
105             $(OPT_CFLAGS) \
106             $(WL_CFLAGS) \
107             $(AUL_CFLAGS) \
108             $(UWS_CFLAGS) \
109                 -I/usr/include/ico-uxf-weston-plugin \
110                 -I/usr/include/ico-util
111 StatusBar_LDADD = \
112             $(EFL_LIBS) \
113             $(OPT_LIBS) \
114             $(WL_LIBS) \
115             $(COMMON_LIBS) \
116             $(AUL_LIBS) \
117             $(UWS_LIBS)
118
119 SUFFIXES = .edc .edj
120
121 BUILT_SOURCES = \
122         home_screen_bg.edj      \
123         home_screen_touch.edj   \
124         appli_list.edj  \
125         appli_kill.edj
126
127 .edc.edj:
128         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 $@
129
130 CLEANFILES = $(BUILT_SOURCES)
131
132 install-exec-hook:
133         mkdir -p $(INSTALL_ROOT)/usr/apps/org.tizen.ico.homescreen/bin
134         mkdir -p $(INSTALL_ROOT)/usr/apps/org.tizen.ico.homescreen/var
135         mkdir -p $(INSTALL_ROOT)/usr/apps/org.tizen.ico.homescreen/res/config
136         mkdir -p $(INSTALL_ROOT)/usr/apps/org.tizen.ico.homescreen/res/images
137         mkdir -p $(INSTALL_ROOT)/usr/apps/org.tizen.ico.homescreen/res/sound
138         mkdir -p $(INSTALL_ROOT)/usr/apps/org.tizen.ico.homescreen/res/edj
139         mkdir -p $(INSTALL_ROOT)/usr/share/packages
140         install -m 0755 HomeScreen $(INSTALL_ROOT)/usr/apps/org.tizen.ico.homescreen/bin
141         install -m 0644 home_screen_bg.edj $(INSTALL_ROOT)/usr/apps/org.tizen.ico.homescreen/res/edj
142         install -m 0644 home_screen_touch.edj $(INSTALL_ROOT)/usr/apps/org.tizen.ico.homescreen/res/edj
143         install -m 0644 $(top_srcdir)/res/org.tizen.ico.homescreen/res/images/bg.png $(INSTALL_ROOT)/usr/apps/org.tizen.ico.homescreen/res/images
144         install -m 0644 $(top_srcdir)/res/org.tizen.ico.homescreen/res/images/ctrl.png $(INSTALL_ROOT)/usr/apps/org.tizen.ico.homescreen/res/images
145         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
146         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
147         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
148         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
149         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
150         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
151         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
152         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
153         install -m 0644 $(top_srcdir)/res/org.tizen.ico.homescreen/res/images/pageDownCursor.png $(INSTALL_ROOT)/usr/apps/org.tizen.ico.homescreen/res/images
154         install -m 0644 $(top_srcdir)/res/org.tizen.ico.homescreen/res/images/pageUpCursor.png $(INSTALL_ROOT)/usr/apps/org.tizen.ico.homescreen/res/images
155         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
156         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
157         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
158         install -m 0644 $(top_srcdir)/res/org.tizen.ico.homescreen/res/images/termIcon.png $(INSTALL_ROOT)/usr/apps/org.tizen.ico.homescreen/res/images
159         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
160         install -m 0644 $(top_srcdir)/data/share/packages/org.tizen.ico.homescreen.xml $(INSTALL_ROOT)/usr/share/packages
161         install -m 0644 $(top_srcdir)/res/org.tizen.ico.homescreen/res/config/* $(INSTALL_ROOT)/usr/apps/org.tizen.ico.homescreen/res/config
162         install -m 0644 $(top_srcdir)/res/org.tizen.ico.homescreen/res/sound/* $(INSTALL_ROOT)/usr/apps/org.tizen.ico.homescreen/res/sound
163         cp -r $(top_srcdir)/data/apps/org.tizen.ico.homescreen $(INSTALL_ROOT)/usr/apps/
164
165 uninstall:
166         rm -rf $(INSTALL_ROOT)/usr/apps/org.tizen.ico.homescreen
167         rm -f $(INSTALL_ROOT)/usr/share/packages/org.tizen.ico.homescreen