Remove -j16 from all run_oemake calls
[scm/bb/meta-tizen.git] / meta-tizen-ivi / recipes-graphics / weston-ivi-shell / weston-ivi-shell.inc
1 DESCRIPTION = "Weston IVI Shell"
2 HOMEPAGE = "https://github.com/ntanibata/weston-ivi-shell/"
3 SECTION = "Graphics & UI Framework/Wayland Window System"
4 LICENSE = "MIT"
5 PV = "0.1.9"
6
7 SRC_URI = ""
8
9 S = "${WORKDIR}/git"
10
11 inherit manifest autotools-brokensep
12
13 BBCLASSEXTEND = ""
14 PROVIDES = ""
15
16 #PROVIDES by weston-ivi-shell-dev
17 PROVIDES += "weston-ivi-shell-dev"
18
19
20 #PROVIDES by weston-ivi-shell-config
21 PROVIDES += "weston-ivi-shell-config"
22
23
24 #PROVIDES by weston-ivi-shell-clients
25 PROVIDES += "weston-ivi-shell-clients"
26
27
28 #PROVIDES by weston-ivi-shell
29
30
31 RDEPENDS = ""
32 #RDEPENDS of weston-ivi-shell-dev (${PN}-dev)
33 RDEPENDS_${PN}-dev += "weston-ivi-shell"
34
35 #RDEPENDS of weston-ivi-shell-config (${PN}-config)
36 RDEPENDS_${PN}-config += "weekeyboard"
37 RDEPENDS_${PN}-config += "weston-ivi-shell"
38 RDEPENDS_${PN}-config += "genivi-shell"
39
40 #RDEPENDS of weston-ivi-shell (${PN})
41 RDEPENDS_${PN} += "weston"
42
43
44 DEPENDS = ""
45 #DEPENDS of weston-ivi-shell
46 DEPENDS += "virtual/egl"
47 DEPENDS += "mtdev"
48 DEPENDS += "libxkbcommon"
49 DEPENDS += "libjpeg-turbo"
50 inherit pkgconfig
51 DEPENDS_append_class-native = " automake-native"
52 DEPENDS_append_class-target = " automake-native"
53 DEPENDS += "weston"
54 DEPENDS += "wayland"
55 DEPENDS_append_class-native = " libtool"
56 DEPENDS_append_class-target = " libtool-cross"
57 DEPENDS += "cairo"
58 DEPENDS += "pango"
59 DEPENDS_append_class-native = " autoconf-native"
60 DEPENDS_append_class-target = " autoconf-native"
61 DEPENDS += "pixman"
62
63 do_prep() {
64  cd ${S}
65  chmod -Rf a+rX,u+w,g-w,o-w ${S}
66  #setup -q
67  cp ${S}/packaging/weston-ivi-shell.manifest .
68  
69  
70 }
71 do_patch_append() {
72     bb.build.exec_func('do_prep', d)
73 }
74
75 do_configure() {
76 }
77
78 do_compile() {
79  cd ${S}
80   LANG=C
81   export LANG
82   unset DISPLAY
83   LD_AS_NEEDED=1; export LD_AS_NEEDED ;
84   
85   # We only care about the ivi-shell related bits so disable anything
86   # unrelated.
87   
88    
89   autotools_do_configure
90   
91   oe_runmake
92   
93   
94   
95   
96 }
97 EXTRA_OECONF += " --disable-static --disable-libunwind --disable-xwayland --disable-xwayland-test --disable-drm-compositor --disable-x11-compositor --disable-rpi-compositor --disable-fbdev-compositor --disable-wayland-compositor --disable-headless-compositor --disable-weston-launch --enable-simple-clients --enable-clients --disable-wcap-tools --enable-demo-clients-install --disable-libinput-backend --disable-fullscreen-shell --disable-desktop-shell --disable-simple-clients --enable-ivi-shell"
98
99 do_install() {
100  export RPM_BUILD_ROOT=${D}
101  cd ${S}
102  LANG=C
103  export LANG
104  unset DISPLAY
105  rm -rf ${D}
106  mkdir -p ${D}
107  
108  
109    oe_runmake \
110          DESTDIR=${D} \
111          INSTALL_ROOT=${D} \
112          BINDIR=${prefix}/bin \
113    install  
114    rm -f ${D}${infodir}/dir 
115    find ${D} -regex ".*\.la$" | xargs rm -f -- 
116    find ${D} -regex ".*\.a$" | xargs rm -f --
117  
118  # install example clients
119  mkdir -p ${D}${prefix}/bin/ivi
120  #mv ${D}${prefix}/bin/weston-calibrator ${D}${prefix}/bin/ivi
121  #mv ${D}${prefix}/bin/weston-simple-touch ${D}${prefix}/bin/ivi
122  #mv ${D}${prefix}/bin/weston-simple-shm ${D}${prefix}/bin/ivi
123  mv ${D}${prefix}/bin/weston-simple-egl ${D}${prefix}/bin/ivi
124  mv ${D}${prefix}/bin/weston-flower ${D}${prefix}/bin/ivi
125  mv ${D}${prefix}/bin/weston-image ${D}${prefix}/bin/ivi
126  mv ${D}${prefix}/bin/weston-cliptest ${D}${prefix}/bin/ivi
127  mv ${D}${prefix}/bin/weston-dnd ${D}${prefix}/bin/ivi
128  mv ${D}${prefix}/bin/weston-editor ${D}${prefix}/bin/ivi
129  mv ${D}${prefix}/bin/weston-smoke ${D}${prefix}/bin/ivi
130  mv ${D}${prefix}/bin/weston-resizor ${D}${prefix}/bin/ivi
131  mv ${D}${prefix}/bin/weston-eventdemo ${D}${prefix}/bin/ivi
132  mv ${D}${prefix}/bin/weston-clickdot ${D}${prefix}/bin/ivi
133  mv ${D}${prefix}/bin/weston-subsurfaces ${D}${prefix}/bin/ivi
134  mv ${D}${prefix}/bin/weston-transformed ${D}${prefix}/bin/ivi
135  mv ${D}${prefix}/bin/weston-fullscreen ${D}${prefix}/bin/ivi
136  mv ${D}${prefix}/bin/weston-terminal ${D}${prefix}/bin/ivi
137  
138  install -d ${D}${prefix}/share/weston-ivi-shell/protocol/
139  
140  install -m 644 protocol/*.xml \
141      ${D}${prefix}/share/weston-ivi-shell/protocol/
142  
143  install -m 644 protocol/*.h \
144      ${D}${prefix}/share/weston-ivi-shell/protocol/
145  
146  install -m 644 protocol/*.c \
147      ${D}${prefix}/share/weston-ivi-shell/protocol/
148  
149  mkdir -p ${D}${sysconfdir}/xdg/weston
150  install -m 0644 ${S}/packaging/weston.ini ${D}${sysconfdir}/xdg/weston
151  install -d ${D}${prefix}/share/weston/
152  
153  
154  
155  
156 }
157
158 PACKAGES = "${PN}-dbg ${PN}-doc ${PN}-locale"
159 PACKAGES += " weston-ivi-shell-dev "
160 PACKAGES += " weston-ivi-shell-config "
161 PACKAGES += " weston-ivi-shell-clients "
162 PACKAGES += " weston-ivi-shell "
163
164 weston-ivi-shell-dev_files = ""
165 weston-ivi-shell-dev_files += "${prefix}/include/weston/ivi-layout-export.h"
166 weston-ivi-shell-dev_files += "${prefix}/include/weston/ivi-layout-private.h"
167 weston-ivi-shell-dev_files += "${prefix}/include/weston/ivi-shell.h"
168 weston-ivi-shell-dev_files += "${prefix}/include/weston/ivi-shell-ext.h"
169 weston-ivi-shell-dev_files += "${prefix}/share/weston-ivi-shell/protocol/*"
170 MANIFESTFILES_${PN}-dev = "weston-ivi-shell.manifest"
171
172 weston-ivi-shell-config_files = ""
173 weston-ivi-shell-config_files += "${sysconfdir}/xdg/weston/weston.ini"
174 CONFFILES_${PN}-config = ""
175 CONFFILES_${PN}-config += "${sysconfdir}/xdg/weston/weston.ini"
176 MANIFESTFILES_${PN}-config = "weston-ivi-shell.manifest"
177
178 weston-ivi-shell-clients_files = ""
179 weston-ivi-shell-clients_files += "${prefix}/bin/ivi/weston-simple-egl"
180 weston-ivi-shell-clients_files += "${prefix}/bin/ivi/weston-flower"
181 weston-ivi-shell-clients_files += "${prefix}/bin/ivi/weston-image"
182 weston-ivi-shell-clients_files += "${prefix}/bin/ivi/weston-cliptest"
183 weston-ivi-shell-clients_files += "${prefix}/bin/ivi/weston-dnd"
184 weston-ivi-shell-clients_files += "${prefix}/bin/ivi/weston-editor"
185 weston-ivi-shell-clients_files += "${prefix}/bin/ivi/weston-smoke"
186 weston-ivi-shell-clients_files += "${prefix}/bin/ivi/weston-resizor"
187 weston-ivi-shell-clients_files += "${prefix}/bin/ivi/weston-eventdemo"
188 weston-ivi-shell-clients_files += "${prefix}/bin/ivi/weston-clickdot"
189 weston-ivi-shell-clients_files += "${prefix}/bin/ivi/weston-subsurfaces"
190 weston-ivi-shell-clients_files += "${prefix}/bin/ivi/weston-transformed"
191 weston-ivi-shell-clients_files += "${prefix}/bin/ivi/weston-fullscreen"
192 weston-ivi-shell-clients_files += "${prefix}/bin/ivi/weston-terminal"
193 MANIFESTFILES_${PN}-clients = "weston-ivi-shell.manifest"
194
195 weston-ivi-shell_files = ""
196 weston-ivi-shell_files += "${prefix}/lib/weston/ivi-shell.so"
197 weston-ivi-shell_files += "${prefix}/lib/weston/ivi-layout.so"
198 weston-ivi-shell_files += "${prefix}/lib/weston/hmi-controller.so"
199 weston-ivi-shell_files += "${prefix}/libexec/weston-ivi-shell-user-interface"
200 weston-ivi-shell_files += "${prefix}/share/weston/*"
201 MANIFESTFILES_${PN} = "weston-ivi-shell.manifest"
202
203 FILES_${PN}-dev = "${weston-ivi-shell-dev_files}"
204 FILES_${PN}-config = "${weston-ivi-shell-config_files}"
205 FILES_${PN}-clients = "${weston-ivi-shell-clients_files}"
206 FILES_${PN} = "${weston-ivi-shell_files}"
207
208 PKG_weston-ivi-shell-dev= "weston-ivi-shell-dev"
209 PKG_weston-ivi-shell-config= "weston-ivi-shell-config"
210 PKG_weston-ivi-shell-clients= "weston-ivi-shell-clients"
211 PKG_weston-ivi-shell= "weston-ivi-shell"
212
213 require weston-ivi-shell-extraconf.inc
214