Merge remote-tracking branch 'origin/tizen_3.0' into tizen_4.0
[platform/core/api/webapi-plugins.git] / packaging / webapi-plugins.spec
1 %bcond_with wayland
2
3 %define _manifestdir %{TZ_SYS_RW_PACKAGES}
4 %define _desktop_icondir %{TZ_SYS_SHARE}/icons/default/small
5
6 %define crosswalk_extensions tizen-extensions-crosswalk
7
8 %define crosswalk_extensions_path %{_libdir}/%{crosswalk_extensions}
9
10 Name:       webapi-plugins
11 Version:    2.34
12 Release:    0
13 License:    Apache-2.0 and BSD-3-Clause and MIT
14 Group:      Development/Libraries
15 Summary:    Tizen Web APIs implemented
16 Source0:    %{name}-%{version}.tar.gz
17
18 ####################################################################
19 #       Common Profile : artik                                     #
20 ####################################################################
21
22 %define tizen_common_privilege_engine                        CYNARA
23
24 %define tizen_common_feature_account_support                 0
25 %define tizen_common_feature_alarm_support                   1
26 %define tizen_common_feature_app_control_settings_support    1
27 %define tizen_common_feature_application_support             1
28 %define tizen_common_feature_archive_support                 0
29 %define tizen_common_feature_badge_support                   0
30 %define tizen_common_feature_bluetooth_support               1
31 %define tizen_common_feature_bookmark_support                0
32 %define tizen_common_feature_calendar_support                0
33 %define tizen_common_feature_contact_support                 0
34 %define tizen_common_feature_content_support                 1
35 %define tizen_common_feature_datacontrol_support             0
36 %define tizen_common_feature_datasync_support                0
37 %define tizen_common_feature_download_support                1
38 %define tizen_common_feature_exif_support                    1
39 %define tizen_common_feature_feedback_support                0
40 %define tizen_common_feature_filesystem_support              1
41 %define tizen_common_feature_fm_radio_support                0
42 %define tizen_common_feature_ham_support                     0
43 %define tizen_common_feature_iotcon_support                  0
44 %define tizen_common_feature_location_batch                  0
45 %define tizen_common_feature_key_manager_support             0
46 %define tizen_common_feature_media_controller_support        0
47 %define tizen_common_feature_media_key_support               0
48 %define tizen_common_feature_message_port_support            1
49 %define tizen_common_feature_messaging_support               0
50 %define tizen_common_feature_nfc_emulation_support           0
51 %define tizen_common_feature_nfc_support                     0
52 %define tizen_common_feature_notification_support            0
53 %define tizen_common_feature_package_support                 1
54 %define tizen_common_feature_player_util_support             0
55 %define tizen_common_feature_power_support                   0
56 %define tizen_common_feature_preference_support              0
57 %define tizen_common_feature_push_support                    0
58 %define tizen_common_feature_se_support                      0
59 %define tizen_common_feature_sensor_support                  0
60 %define tizen_common_feature_sound_support                   1
61 %define tizen_common_feature_system_info_support             1
62 %define tizen_common_feature_system_setting_support          0
63 %define tizen_common_feature_telephony_support               0
64 %define tizen_common_feature_time_support                    1
65 %define tizen_common_feature_web_setting_support             0
66 %define tizen_common_feature_widget_service_support          0
67 %define tizen_common_feature_wi_fi_support                   1
68 %define tizen_common_feature_inputdevice_support             0
69 %define tizen_common_feature_callhistory_support             0
70 %define tizen_common_feature_nbs_support                     0
71 %define tizen_common_feature_tvinputdevice_support           0
72 %define tizen_common_feature_voicecontrol_support            0
73 %define tizen_common_feature_ppm_support                     0
74
75
76 ####################################################################
77 #       Mobile Profile :  TM1(32bit), Redwood(SM-Z910F), KIRAN(Z130H)          #
78 #                         TM2(64bit)
79 ####################################################################
80
81 %define tizen_mobile_privilege_engine                        CYNARA
82
83 %define tizen_mobile_feature_account_support                 1
84 %define tizen_mobile_feature_alarm_support                   1
85 %define tizen_mobile_feature_app_control_settings_support    1
86 %define tizen_mobile_feature_application_support             1
87 %define tizen_mobile_feature_archive_support                 1
88 %define tizen_mobile_feature_badge_support                   1
89 %define tizen_mobile_feature_bluetooth_support               1
90 %define tizen_mobile_feature_bookmark_support                1
91 %define tizen_mobile_feature_calendar_support                1
92 %define tizen_mobile_feature_contact_support                 1
93 %define tizen_mobile_feature_content_support                 1
94 %define tizen_mobile_feature_datacontrol_support             1
95 %define tizen_mobile_feature_datasync_support                0
96 %define tizen_mobile_feature_download_support                1
97 %define tizen_mobile_feature_exif_support                    1
98 %define tizen_mobile_feature_feedback_support                1
99 %define tizen_mobile_feature_filesystem_support              1
100
101 %ifarch aarch64
102 %define tizen_mobile_feature_fm_radio_support                0
103 %else
104 %define tizen_mobile_feature_fm_radio_support                1
105 %endif
106
107 %define tizen_mobile_feature_ham_support                     0
108
109 %define tizen_mobile_feature_iotcon_support                  1
110 %define tizen_mobile_feature_location_batch                  0
111 %define tizen_mobile_feature_key_manager_support             1
112 %define tizen_mobile_feature_media_controller_support        1
113
114 %define tizen_mobile_feature_media_key_support               1
115
116 %define tizen_mobile_feature_message_port_support            1
117 %define tizen_mobile_feature_messaging_support               1
118
119 %define tizen_mobile_feature_nfc_emulation_support           0
120 %define tizen_mobile_feature_nfc_support                     0
121
122 %define tizen_mobile_feature_notification_support            1
123 %define tizen_mobile_feature_package_support                 1
124 %define tizen_mobile_feature_player_util_support             1
125 %define tizen_mobile_feature_power_support                   1
126 %define tizen_mobile_feature_preference_support              1
127 %define tizen_mobile_feature_push_support                    1
128
129 # secure element feature
130 %ifarch aarch64
131 %define tizen_mobile_feature_se_support                      0
132 %else
133 %define tizen_mobile_feature_se_support                      1
134 %endif
135
136 %define tizen_mobile_feature_sensor_support                  1
137 %define tizen_mobile_feature_sound_support                   1
138 %define tizen_mobile_feature_system_info_support             1
139 %define tizen_mobile_feature_system_setting_support          1
140
141 # telephony feature
142 %ifarch aarch64
143 %define tizen_mobile_feature_telephony_support               0
144 %define tizen_mobile_feature_callhistory_support             0
145 %define tizen_mobile_feature_nbs_support                     0
146 %else
147 %define tizen_mobile_feature_telephony_support               1
148 %define tizen_mobile_feature_callhistory_support             1
149 %define tizen_mobile_feature_nbs_support                     1
150 %endif
151
152 %define tizen_mobile_feature_time_support                    1
153 %define tizen_mobile_feature_web_setting_support             1
154 %define tizen_mobile_feature_widget_service_support          1
155
156 %define tizen_mobile_feature_wi_fi_support                   1
157
158 %define tizen_mobile_feature_inputdevice_support             1
159
160 %define tizen_mobile_feature_tvinputdevice_support           0
161
162 %define tizen_mobile_feature_voicecontrol_support            1
163 %define tizen_mobile_feature_ppm_support                     1
164
165 ####################################################################
166 #       Wearable Profile :  B2 / TW2                      #
167 ####################################################################
168
169 %define tizen_wearable_privilege_engine                        CYNARA
170
171 # Account API is optional in Tizen Wearable Profile.
172 %define tizen_wearable_feature_account_support                 1
173
174 %define tizen_wearable_feature_alarm_support                   1
175 %define tizen_wearable_feature_app_control_settings_support    1
176 %define tizen_wearable_feature_application_support             1
177
178 # Archive API is optional in Tizen Wearable Profile.
179 %define tizen_wearable_feature_archive_support                 1
180
181 # Badge API is mandatory in Tizen Wearable Profile.
182 %define tizen_wearable_feature_badge_support                   1
183
184 %define tizen_wearable_feature_bluetooth_support               1
185
186 # Bookmark API is optional in Tizen Wearable Profile.
187 %define tizen_wearable_feature_bookmark_support                0
188
189 # Calendar API is mandatory in Tizen Wearable Profile.
190 %define tizen_wearable_feature_calendar_support                1
191 %define tizen_wearable_feature_contact_support                 1
192 %define tizen_wearable_feature_content_support                 1
193 %define tizen_wearable_feature_datacontrol_support             1
194 %define tizen_wearable_feature_datasync_support                0
195 %define tizen_wearable_feature_download_support                1
196 %define tizen_wearable_feature_exif_support                    1
197 %define tizen_wearable_feature_feedback_support                1
198 %define tizen_wearable_feature_filesystem_support              1
199 %define tizen_wearable_feature_fm_radio_support                0
200 %define tizen_wearable_feature_ham_support                     1
201 %define tizen_wearable_feature_iotcon_support                  1
202 %define tizen_wearable_feature_location_batch                  0
203 %define tizen_wearable_feature_media_controller_support        1
204
205 # MediayKey API is optional in Tizen Wearable Profile.
206 # tizen.org/feature/network.bluetooth.audio.media is required for MediayKey API
207 %define tizen_wearable_feature_media_key_support               1
208 %define tizen_wearable_feature_key_manager_support             1
209 %define tizen_wearable_feature_message_port_support            1
210 %define tizen_wearable_feature_messaging_support               0
211 %define tizen_wearable_feature_nfc_emulation_support           0
212 %define tizen_wearable_feature_nfc_support                     1
213 %define tizen_wearable_feature_notification_support            1
214 %define tizen_wearable_feature_package_support                 1
215 %define tizen_wearable_feature_player_util_support             1
216 %define tizen_wearable_feature_power_support                   1
217 %define tizen_wearable_feature_preference_support              1
218 %define tizen_wearable_feature_push_support                    1
219 %define tizen_wearable_feature_se_support                      1
220 %define tizen_wearable_feature_sensor_support                  1
221 %define tizen_wearable_feature_sound_support                   1
222 %define tizen_wearable_feature_system_info_support             1
223 %define tizen_wearable_feature_system_setting_support          1
224
225 #- telephony related APIs
226 # CallHistory API is optional in Tizen Wearable Profile.
227 # NetworkBearerSelection API is optional in Tizen Wearable Profile.
228 %define tizen_wearable_feature_telephony_support               0
229 %define tizen_wearable_feature_callhistory_support             0
230 %define tizen_wearable_feature_nbs_support                     0
231
232 %define tizen_wearable_feature_time_support                    1
233 %define tizen_wearable_feature_web_setting_support             0
234 %define tizen_wearable_feature_widget_service_support          1
235 %define tizen_wearable_feature_wi_fi_support                   1
236 %define tizen_wearable_feature_inputdevice_support             1
237 %define tizen_wearable_feature_tvinputdevice_support           0
238
239 %define tizen_wearable_feature_voicecontrol_support            1
240 %define tizen_wearable_feature_ppm_support                     1
241
242
243 ####################################################################
244 #       TV Profile                                                 #
245 ####################################################################
246
247 %define tizen_tv_privilege_engine                        CYNARA
248
249 %define tizen_tv_feature_account_support                 0
250 %define tizen_tv_feature_alarm_support                   1
251 %define tizen_tv_feature_app_control_settings_support    0
252 %define tizen_tv_feature_application_support             1
253 %define tizen_tv_feature_archive_support                 1
254 %define tizen_tv_feature_badge_support                   0
255 %define tizen_tv_feature_bluetooth_support               0
256 %define tizen_tv_feature_bookmark_support                0
257 %define tizen_tv_feature_calendar_support                0
258 %define tizen_tv_feature_callhistory_support             0
259 %define tizen_tv_feature_contact_support                 0
260 %define tizen_tv_feature_content_support                 1
261 %define tizen_tv_feature_datacontrol_support             1
262 %define tizen_tv_feature_datasync_support                0
263 %define tizen_tv_feature_download_support                1
264 %define tizen_tv_feature_exif_support                    1
265 %define tizen_tv_feature_feedback_support                0
266 %define tizen_tv_feature_filesystem_support              1
267 %define tizen_tv_feature_fm_radio_support                0
268 %define tizen_tv_feature_ham_support                     0
269 %define tizen_tv_feature_iotcon_support                  1
270 %define tizen_tv_feature_key_manager_support             1
271 %define tizen_tv_feature_media_controller_support        0
272 %define tizen_tv_feature_media_key_support               0
273 %define tizen_tv_feature_message_port_support            1
274 %define tizen_tv_feature_messaging_support               0
275 %define tizen_tv_feature_nbs_support                     0
276 %define tizen_tv_feature_nfc_emulation_support           0
277 %define tizen_tv_feature_nfc_support                     0
278 %define tizen_tv_feature_notification_support            0
279 %define tizen_tv_feature_package_support                 1
280 %define tizen_tv_feature_player_util_support             0
281 %define tizen_tv_feature_power_support                   0
282 %define tizen_tv_feature_preference_support              0
283 %define tizen_tv_feature_push_support                    1
284 %define tizen_tv_feature_se_support                      0
285 %define tizen_tv_feature_sensor_support                  0
286 %define tizen_tv_feature_sound_support                   0
287 %define tizen_tv_feature_system_info_support             1
288 %define tizen_tv_feature_system_setting_support          0
289 %define tizen_tv_feature_telephony_support               0
290 %define tizen_tv_feature_time_support                    1
291 %define tizen_tv_feature_web_setting_support             1
292 %define tizen_tv_feature_widget_service_support          0
293 %define tizen_tv_feature_wi_fi_support                   1
294 %define tizen_tv_feature_inputdevice_support             0
295 %define tizen_tv_feature_tvinputdevice_support           1
296 %define tizen_tv_feature_voicecontrol_support            1
297 %define tizen_tv_feature_ppm_support                     0
298
299 # common, or "unified (undefined)"
300 %define unified_build   1
301 # GBM Product Build Optimization. Not for 4.0 Public Unified Build.
302 %if "%{?profile}" == "tv" || "%{?profile}" == "mobile" || "%{?profile}" == "wearable" || "%{?profile}" == "ivi"
303 %define unified_build   0
304 %endif
305
306 # GBM Product Build Optimization. Not for 4.0 Public Unified Build.
307 %if "%{?profile}" == "tv" || "%{?profile}" == "mobile" || "%{?profile}" == "wearable" || "%{?profile}" == "common"
308 %define tizen_privilege_engine                        %{expand:%tizen_%{?profile}_privilege_engine}
309
310 %define tizen_feature_account_support                 %{expand:%tizen_%{?profile}_feature_account_support}
311 %define tizen_feature_alarm_support                   %{expand:%tizen_%{?profile}_feature_alarm_support}
312 %define tizen_feature_app_control_settings_support    %{expand:%tizen_%{?profile}_feature_app_control_settings_support}
313 %define tizen_feature_application_support             %{expand:%tizen_%{?profile}_feature_application_support}
314 %define tizen_feature_archive_support                 %{expand:%tizen_%{?profile}_feature_archive_support}
315 %define tizen_feature_badge_support                   %{expand:%tizen_%{?profile}_feature_badge_support}
316 %define tizen_feature_bluetooth_support               %{expand:%tizen_%{?profile}_feature_bluetooth_support}
317 %define tizen_feature_bookmark_support                %{expand:%tizen_%{?profile}_feature_bookmark_support}
318 %define tizen_feature_calendar_support                %{expand:%tizen_%{?profile}_feature_calendar_support}
319 %define tizen_feature_contact_support                 %{expand:%tizen_%{?profile}_feature_contact_support}
320 %define tizen_feature_content_support                 %{expand:%tizen_%{?profile}_feature_content_support}
321 %define tizen_feature_datacontrol_support             %{expand:%tizen_%{?profile}_feature_datacontrol_support}
322 %define tizen_feature_datasync_support                %{expand:%tizen_%{?profile}_feature_datasync_support}
323 %define tizen_feature_download_support                %{expand:%tizen_%{?profile}_feature_download_support}
324 %define tizen_feature_exif_support                    %{expand:%tizen_%{?profile}_feature_exif_support}
325 %define tizen_feature_feedback_support                %{expand:%tizen_%{?profile}_feature_feedback_support}
326 %define tizen_feature_filesystem_support              %{expand:%tizen_%{?profile}_feature_filesystem_support}
327 %define tizen_feature_fm_radio_support                %{expand:%tizen_%{?profile}_feature_fm_radio_support}
328 %define tizen_feature_ham_support                     %{expand:%tizen_%{?profile}_feature_ham_support}
329 %define tizen_feature_iotcon_support                  %{expand:%tizen_%{?profile}_feature_iotcon_support}
330 %define tizen_feature_location_batch                  %{expand:%tizen_%{?profile}_feature_location_batch}
331 %define tizen_feature_key_manager_support             %{expand:%tizen_%{?profile}_feature_key_manager_support}
332 %define tizen_feature_media_controller_support        %{expand:%tizen_%{?profile}_feature_media_controller_support}
333 %define tizen_feature_media_key_support               %{expand:%tizen_%{?profile}_feature_media_key_support}
334 %define tizen_feature_message_port_support            %{expand:%tizen_%{?profile}_feature_message_port_support}
335 %define tizen_feature_messaging_support               %{expand:%tizen_%{?profile}_feature_messaging_support}
336 %define tizen_feature_nfc_emulation_support           %{expand:%tizen_%{?profile}_feature_nfc_emulation_support}
337 %define tizen_feature_nfc_support                     %{expand:%tizen_%{?profile}_feature_nfc_support}
338 %define tizen_feature_notification_support            %{expand:%tizen_%{?profile}_feature_notification_support}
339 %define tizen_feature_package_support                 %{expand:%tizen_%{?profile}_feature_package_support}
340 %define tizen_feature_player_util_support             %{expand:%tizen_%{?profile}_feature_player_util_support}
341 %define tizen_feature_power_support                   %{expand:%tizen_%{?profile}_feature_power_support}
342 %define tizen_feature_preference_support              %{expand:%tizen_%{?profile}_feature_preference_support}
343 %define tizen_feature_push_support                    %{expand:%tizen_%{?profile}_feature_push_support}
344 %define tizen_feature_se_support                      %{expand:%tizen_%{?profile}_feature_se_support}
345 %define tizen_feature_sensor_support                  %{expand:%tizen_%{?profile}_feature_sensor_support}
346 %define tizen_feature_sound_support                   %{expand:%tizen_%{?profile}_feature_sound_support}
347 %define tizen_feature_system_info_support             %{expand:%tizen_%{?profile}_feature_system_info_support}
348 %define tizen_feature_system_setting_support          %{expand:%tizen_%{?profile}_feature_system_setting_support}
349 %define tizen_feature_telephony_support               %{expand:%tizen_%{?profile}_feature_telephony_support}
350 %define tizen_feature_time_support                    %{expand:%tizen_%{?profile}_feature_time_support}
351 %define tizen_feature_web_setting_support             %{expand:%tizen_%{?profile}_feature_web_setting_support}
352 %define tizen_feature_widget_service_support          %{expand:%tizen_%{?profile}_feature_widget_service_support}
353 %define tizen_feature_wi_fi_support                   %{expand:%tizen_%{?profile}_feature_wi_fi_support}
354 %define tizen_feature_inputdevice_support             %{expand:%tizen_%{?profile}_feature_inputdevice_support}
355 %define tizen_feature_callhistory_support             %{expand:%tizen_%{?profile}_feature_callhistory_support}
356 %define tizen_feature_nbs_support                     %{expand:%tizen_%{?profile}_feature_nbs_support}
357 %define tizen_feature_tvinputdevice_support           %{expand:%tizen_%{?profile}_feature_tvinputdevice_support}
358 %define tizen_feature_voicecontrol_support            %{expand:%tizen_%{?profile}_feature_voicecontrol_support}
359 %define tizen_feature_ppm_support                     %{expand:%tizen_%{?profile}_feature_ppm_support}
360 %endif
361
362 BuildRequires: pkgconfig(security-privilege-manager)
363 BuildRequires: ninja
364 BuildRequires: pkgconfig(appcore-common)
365 BuildRequires: pkgconfig(dlog)
366 BuildRequires: pkgconfig(evas)
367 BuildRequires: pkgconfig(gio-unix-2.0)
368 BuildRequires: pkgconfig(gio-2.0)
369 BuildRequires: pkgconfig(glib-2.0)
370 BuildRequires: pkgconfig(libudev)
371 BuildRequires: pkgconfig(minizip)
372 BuildRequires: pkgconfig(zlib)
373 BuildRequires: pkgconfig(pkgmgr)
374 BuildRequires: pkgconfig(pkgmgr-info)
375 BuildRequires: pkgconfig(pkgmgr-installer)
376 BuildRequires: pkgconfig(vconf)
377 BuildRequires: pkgconfig(ecore)
378 BuildRequires: pkgconfig(icu-i18n)
379 BuildRequires: pkgconfig(aul)
380 BuildRequires: pkgconfig(storage)
381 BuildRequires: python
382 BuildRequires: pkgconfig(capi-base-common)
383 BuildRequires: pkgconfig(capi-system-info)
384 BuildRequires: pkgconfig(capi-system-runtime-info)
385 BuildRequires: pkgconfig(capi-network-connection)
386 BuildRequires: pkgconfig(capi-system-device)
387 BuildRequires: pkgconfig(capi-system-system-settings)
388 BuildRequires: pkgconfig(capi-network-bluetooth)
389 BuildRequires: pkgconfig(capi-network-wifi-manager)
390 BuildRequires: pkgconfig(tapi)
391 BuildRequires: pkgconfig(libpcrecpp)
392 BuildRequires: pkgconfig(capi-appfw-app-common)
393 BuildRequires: pkgconfig(capi-appfw-app-manager)
394 BuildRequires: pkgconfig(capi-appfw-package-manager)
395 BuildRequires: pkgconfig(capi-content-media-content)
396 BuildRequires: pkgconfig(capi-media-metadata-extractor)
397 BuildRequires: pkgconfig(libtzplatform-config)
398 BuildRequires: pkgconfig(appsvc)
399
400 %if %{with wayland}
401 %define display_type wayland
402 BuildRequires: pkgconfig(wayland-client)
403 %else
404 %define display_type x11
405 #BuildRequires: pkgconfig(x11)
406 #BuildRequires: pkgconfig(xrandr)
407 %endif
408
409 %if "%{?tizen_privilege_engine}" == "ACE"
410 BuildRequires: pkgconfig(security-privilege-checker)
411 %endif
412
413 %if "%{?tizen_privilege_engine}" == "CYNARA" || "%{?unified_build}" == "1"
414 BuildRequires: pkgconfig(cynara-client)
415 BuildRequires: pkgconfig(libsmack)
416 %endif
417
418 %if "%{?tizen_feature_account_support}" == "1" || "%{?unified_build}" == "1"
419 BuildRequires: pkgconfig(accounts-svc)
420 %endif
421
422 %if "%{?tizen_feature_alarm_support}" == "1" || "%{?unified_build}" == "1"
423 BuildRequires: pkgconfig(capi-appfw-app-control)
424 BuildRequires: pkgconfig(capi-appfw-application)
425 BuildRequires: pkgconfig(capi-appfw-alarm)
426 BuildRequires: pkgconfig(alarm-service)
427 %endif
428
429 %if "%{?tizen_feature_application_support}" == "1" || "%{?unified_build}" == "1"
430 BuildRequires: pkgconfig(capi-appfw-app-control)
431 BuildRequires: pkgconfig(capi-appfw-event)
432
433 %if "%{?unified_build}" == "1" || "%{?profile}" == "mobile" || "%{?profile}" == "wearable"
434 BuildRequires: pkgconfig(capi-context)
435 %endif
436
437 %endif
438
439 %if "%{?tizen_feature_bluetooth_support}" == "1" || "%{?unified_build}" == "1"
440 BuildRequires: pkgconfig(capi-appfw-app-control)
441 %endif
442
443 %if "%{?tizen_feature_bookmark_support}" == "1" || "%{?unified_build}" == "1"
444 BuildRequires: pkgconfig(capi-web-bookmark)
445 BuildRequires: pkgconfig(bookmark-adaptor)
446 %endif
447
448 %if "%{?tizen_feature_datacontrol_support}" == "1" || "%{?unified_build}" == "1"
449 BuildRequires: pkgconfig(capi-data-control)
450 %endif
451
452 %if "%{?tizen_feature_download_support}" == "1" || "%{?unified_build}" == "1"
453 BuildRequires: pkgconfig(capi-web-url-download)
454 %endif
455
456 %if "%{?tizen_feature_ham_support}" == "1" || "%{?unified_build}" == "1"
457 BuildRequires: pkgconfig(motion)
458 BuildRequires: pkgconfig(capi-system-sensor)
459 BuildRequires: pkgconfig(capi-location-manager)
460 BuildRequires: pkgconfig(sensor)
461 %endif
462
463 %if "%{?tizen_feature_iotcon_support}" == "1" || "%{?unified_build}" == "1"
464 BuildRequires: pkgconfig(iotcon)
465 %endif
466
467 %if "%{?tizen_feature_player_util_support}" == "1" || "%{?unified_build}" == "1"
468 BuildRequires: pkgconfig(chromium-efl)
469 %endif
470
471 %if "%{?tizen_feature_power_support}" == "1" || "%{?unified_build}" == "1"
472 BuildRequires: pkgconfig(capi-appfw-application)
473 %endif
474
475 %if "%{?tizen_feature_push_support}" == "1" || "%{?unified_build}" == "1"
476 BuildRequires: pkgconfig(push)
477 BuildRequires: pkgconfig(capi-appfw-app-control)
478 %endif
479
480 %if "%{?tizen_feature_key_manager_support}" == "1" || "%{?unified_build}" == "1"
481 BuildRequires: pkgconfig(key-manager)
482 %endif
483
484 %if "%{?tizen_feature_media_controller_support}" == "1" || "%{?unified_build}" == "1"
485 BuildRequires: pkgconfig(capi-media-controller)
486 %endif
487
488 %if "%{?tizen_feature_messaging_support}" == "1" || "%{?unified_build}" == "1"
489 BuildRequires:  pkgconfig(ecore-file)
490 BuildRequires:  pkgconfig(email-service)
491 BuildRequires:  pkgconfig(msg-service)
492 BuildRequires:  pkgconfig(db-util)
493 BuildRequires:  pkgconfig(dbus-glib-1)
494 %endif
495
496 %if "%{?tizen_feature_badge_support}" == "1" || "%{?unified_build}" == "1"
497 BuildRequires:  pkgconfig(badge)
498 %endif
499
500 %if "%{?tizen_feature_calendar_support}" == "1" || "%{?unified_build}" == "1"
501 BuildRequires:  pkgconfig(calendar-service2)
502 %endif
503
504 %if "%{?tizen_feature_contact_support}" == "1" || "%{?unified_build}" == "1"
505 BuildRequires:  pkgconfig(contacts-service2)
506 %endif
507
508 %if "%{?tizen_feature_callhistory_support}" == "1" || "%{?unified_build}" == "1"
509 BuildRequires:  pkgconfig(contacts-service2)
510 %endif
511
512 %if "%{?tizen_feature_exif_support}" == "1" || "%{?unified_build}" == "1"
513 BuildRequires:  pkgconfig(libexif)
514 %endif
515
516 %if "%{?tizen_feature_nfc_support}" == "1" || "%{?unified_build}" == "1"
517 BuildRequires:  pkgconfig(capi-network-nfc)
518 BuildRequires:  pkgconfig(capi-appfw-app-control)
519 %endif
520
521 %if "%{?tizen_feature_fm_radio_support}" == "1" || "%{?unified_build}" == "1"
522 BuildRequires: pkgconfig(capi-media-radio)
523 %endif
524
525 %if "%{?tizen_feature_feedback_support}" == "1" || "%{?unified_build}" == "1"
526 BuildRequires: pkgconfig(feedback)
527 %endif
528
529 %if "%{?tizen_feature_se_support}" == "1" || "%{?unified_build}" == "1"
530 BuildRequires:  pkgconfig(capi-network-smartcard)
531 %endif
532
533 %if "%{?tizen_feature_message_port_support}" == "1" || "%{?unified_build}" == "1"
534 BuildRequires: pkgconfig(capi-message-port)
535 %endif
536
537 %if "%{?tizen_feature_notification_support}" == "1" || "%{?unified_build}" == "1"
538 BuildRequires: pkgconfig(notification)
539 BuildRequires: pkgconfig(capi-appfw-app-control)
540 %endif
541
542 %if "%{?tizen_feature_preference_support}" == "1" || "%{?unified_build}" == "1"
543 BuildRequires: pkgconfig(capi-appfw-preference)
544 %endif
545
546 %if "%{?tizen_feature_sound_support}" == "1" || "%{?unified_build}" == "1"
547 BuildRequires:  pkgconfig(capi-media-sound-manager)
548 %endif
549
550 %if "%{?tizen_feature_sensor_support}" == "1" || "%{?unified_build}" == "1"
551 BuildRequires: pkgconfig(capi-system-sensor)
552 %endif
553
554 %if "%{?tizen_feature_media_key_support}" == "1" || "%{?unified_build}" == "1"
555 BuildRequires:  pkgconfig(capi-system-media-key)
556 %endif
557
558 %if "%{?tizen_feature_widget_service_support}" == "1" || "%{?unified_build}" == "1"
559 BuildRequires: pkgconfig(widget_service)
560 %endif
561
562 %if "%{?tizen_feature_voicecontrol_support}" == "1" || "%{?unified_build}" == "1"
563 BuildRequires: pkgconfig(voice-control)
564 %endif
565
566 %if "%{?tizen_feature_ppm_support}" == "1" || "%{?unified_build}" == "1"
567 BuildRequires: pkgconfig(capi-privacy-privilege-manager)
568 %endif
569
570 Requires:      %{name}-compat = %{version}-%{release}
571 %if "%{?unified_build}" == "1"
572 Recommends:    %{name}-profile_common = %{version}-%{release}
573 %endif
574
575 %description
576 Tizen Web APIs implemented.
577
578 %package profile_common
579 Summary:       webapi-plugin binaries for common profile
580 Provides:      %{name}-compat = %{version}-%{release}
581 Conflicts:     %{name}-profile_mobile
582 Conflicts:     %{name}-profile_wearable
583 Conflicts:     %{name}-profile_tv
584 Conflicts:     %{name}-profile_ivi
585 %description profile_common
586 Tizen Web API implementation binaries for Tizen common profile.
587
588 %package profile_mobile
589 Summary:       webapi-plugin binaries for mobile profile
590 Provides:      %{name}-compat = %{version}-%{release}
591 Conflicts:     %{name}-profile_common
592 Conflicts:     %{name}-profile_wearable
593 Conflicts:     %{name}-profile_tv
594 Conflicts:     %{name}-profile_ivi
595 %description profile_mobile
596 Tizen Web API implementation binaries for Tizen mobile profile.
597
598 %ifarch %{ix86} x86_64
599 %package mobile-extension-emulator
600 Summary:       webapi-plugin binaries for mobile emulator
601 Requires:      %{name}-profile_mobile = %{version}-%{release}
602 %description mobile-extension-emulator
603 Tizen Web API implementation binaries for Tizen mobile emulator.
604 %endif
605
606 %package profile_wearable
607 Summary:       webapi-plugin binaries for wearable profile
608 Provides:      %{name}-compat = %{version}-%{release}
609 Conflicts:     %{name}-profile_mobile
610 Conflicts:     %{name}-profile_common
611 Conflicts:     %{name}-profile_tv
612 Conflicts:     %{name}-profile_ivi
613 %description profile_wearable
614 Tizen Web API implementation binaries for Tizen wearable profile.
615
616 %ifarch %{ix86} x86_64
617 %package wearable-extension-emulator
618 Summary:       webapi-plugin binaries for wearable emulator
619 Requires:      %{name}-profile_wearable = %{version}-%{release}
620 %description wearable-extension-emulator
621 Tizen Web API implementation binaries for Tizen wearable emulator.
622 %endif
623
624 %package profile_tv
625 Summary:       webapi-plugin binaries for tv profile
626 Provides:      %{name}-compat = %{version}-%{release}
627 Conflicts:     %{name}-profile_mobile
628 Conflicts:     %{name}-profile_wearable
629 Conflicts:     %{name}-profile_common
630 Conflicts:     %{name}-profile_ivi
631 %description profile_tv
632 Tizen Web API implementation binaries for Tizen tv profile.
633
634 %package profile_ivi
635 Summary:       webapi-plugin binaries for ivi profile
636 Provides:      %{name}-compat = %{version}-%{release}
637 Conflicts:     %{name}-profile_mobile
638 Conflicts:     %{name}-profile_wearable
639 Conflicts:     %{name}-profile_tv
640 Conflicts:     %{name}-profile_common
641 %description profile_ivi
642 Tizen Web API implementation binaries for Tizen ivi profile.
643
644 %package devel
645 Summary:    webapi-plugins development headers
646 Group:      Development/Libraries
647 Requires:   %{name} = %{version}
648
649 %description devel
650 webapi-plugins development headers
651
652 %prep
653 %setup -q
654
655 %build
656
657 export GYP_GENERATORS='ninja'
658
659 %if "%{?unified_build}" == "1" || "%{?profile}" == "mobile"
660 # MOBILE
661 GYP_OPTIONS="--depth=. -Dtizen=1 -Dextension_build_type=Debug -Dextension_host_os=mobile -Dprivilege_engine=%{tizen_mobile_privilege_engine}"
662 GYP_OPTIONS="$GYP_OPTIONS -Ddisplay_type=%{display_type}"
663 GYP_OPTIONS="$GYP_OPTIONS -Dcrosswalk_extensions_path=%{crosswalk_extensions_path}"
664
665 # feature flags
666 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_account_support=%{?tizen_mobile_feature_account_support}"
667 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_alarm_support=%{?tizen_mobile_feature_alarm_support}"
668 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_app_control_settings_support=%{?tizen_mobile_feature_app_control_settings_support}"
669 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_application_support=%{?tizen_mobile_feature_application_support}"
670 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_archive_support=%{?tizen_mobile_feature_archive_support}"
671 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_badge_support=%{?tizen_mobile_feature_badge_support}"
672 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_bluetooth_support=%{?tizen_mobile_feature_bluetooth_support}"
673 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_bookmark_support=%{?tizen_mobile_feature_bookmark_support}"
674 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_calendar_support=%{?tizen_mobile_feature_calendar_support}"
675 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_callhistory_support=%{?tizen_mobile_feature_callhistory_support}"
676 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_contact_support=%{?tizen_mobile_feature_contact_support}"
677 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_content_support=%{?tizen_mobile_feature_content_support}"
678 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_datacontrol_support=%{?tizen_mobile_feature_datacontrol_support}"
679 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_datasync_support=%{?tizen_mobile_feature_datasync_support}"
680 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_download_support=%{?tizen_mobile_feature_download_support}"
681 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_exif_support=%{?tizen_mobile_feature_exif_support}"
682 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_feedback_support=%{?tizen_mobile_feature_feedback_support}"
683 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_filesystem_support=%{?tizen_mobile_feature_filesystem_support}"
684 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_fm_radio_support=%{?tizen_mobile_feature_fm_radio_support}"
685 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_ham_support=%{?tizen_mobile_feature_ham_support}"
686 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_iotcon_support=%{?tizen_mobile_feature_iotcon_support}"
687 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_location_batch=%{?tizen_mobile_feature_location_batch}"
688 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_key_manager_support=%{?tizen_mobile_feature_key_manager_support}"
689 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_media_controller_support=%{?tizen_mobile_feature_media_controller_support}"
690 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_media_key_support=%{?tizen_mobile_feature_media_key_support}"
691 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_message_port_support=%{?tizen_mobile_feature_message_port_support}"
692 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_messaging_support=%{?tizen_mobile_feature_messaging_support}"
693 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_nbs_support=%{?tizen_mobile_feature_nbs_support}"
694 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_nfc_emulation_support=%{?tizen_mobile_feature_nfc_emulation_support}"
695 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_nfc_support=%{?tizen_mobile_feature_nfc_support}"
696 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_notification_support=%{?tizen_mobile_feature_notification_support}"
697 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_package_support=%{?tizen_mobile_feature_package_support}"
698 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_player_util_support=%{?tizen_mobile_feature_player_util_support}"
699 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_power_support=%{?tizen_mobile_feature_power_support}"
700 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_preference_support=%{?tizen_mobile_feature_preference_support}"
701 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_push_support=%{?tizen_mobile_feature_push_support}"
702 #GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_sap_support=%{?tizen_mobile_feature_sap_support}"
703 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_sensor_support=%{?tizen_mobile_feature_sensor_support}"
704 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_se_support=%{?tizen_mobile_feature_se_support}"
705 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_sound_support=%{?tizen_mobile_feature_sound_support}"
706 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_system_info_support=%{?tizen_mobile_feature_system_info_support}"
707 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_system_setting_support=%{?tizen_mobile_feature_system_setting_support}"
708 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_telephony_support=%{?tizen_mobile_feature_telephony_support}"
709 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_time_support=%{?tizen_mobile_feature_time_support}"
710 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_inputdevice_support=%{?tizen_mobile_feature_inputdevice_support}"
711 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_web_setting_support=%{?tizen_mobile_feature_web_setting_support}"
712 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_widget_service_support=%{?tizen_mobile_feature_widget_service_support}"
713 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_wi_fi_support=%{?tizen_mobile_feature_wi_fi_support}"
714 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_tvinputdevice_support=%{?tizen_mobile_feature_tvinputdevice_support}"
715 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_voicecontrol_support=%{?tizen_mobile_feature_voicecontrol_support}"
716 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_ppm_support=%{?tizen_mobile_feature_ppm_support}"
717
718 ./tools/gyp/gyp $GYP_OPTIONS src/tizen-wrt.gyp
719
720 ninja -C out/Default %{?_smp_mflags}
721 pushd out
722 mv Default bin_mobile
723 %if "%{?profile}" == "mobile"
724 ln -sf bin_mobile Default
725 %endif
726 popd
727
728 # mobile-extension-emulator
729 %ifarch %{ix86} x86_64
730
731 %define tizen_mobile_feature_bluetooth_support               0
732
733 # FM radio feature
734 %define tizen_mobile_feature_fm_radio_support                1
735
736 %define tizen_mobile_feature_ham_support                     1
737 %define tizen_mobile_feature_media_key_support               0
738 %define tizen_mobile_feature_nfc_emulation_support           0
739 %define tizen_mobile_feature_nfc_support                     1
740
741 # secure element feature
742 %define tizen_mobile_feature_se_support                      0
743
744 # telephony feature
745 %define tizen_mobile_feature_telephony_support               1
746 %define tizen_mobile_feature_callhistory_support             1
747 %define tizen_mobile_feature_nbs_support                     1
748
749 %define tizen_mobile_feature_wi_fi_support                   0
750
751 GYP_OPTIONS="--depth=. -Dtizen=1 -Dextension_build_type=Debug -Dextension_host_os=mobile -Dprivilege_engine=%{tizen_mobile_privilege_engine}"
752 GYP_OPTIONS="$GYP_OPTIONS -Ddisplay_type=%{display_type}"
753 GYP_OPTIONS="$GYP_OPTIONS -Dcrosswalk_extensions_path=%{crosswalk_extensions_path}"
754
755 # feature flags
756 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_account_support=%{?tizen_mobile_feature_account_support}"
757 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_alarm_support=%{?tizen_mobile_feature_alarm_support}"
758 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_app_control_settings_support=%{?tizen_mobile_feature_app_control_settings_support}"
759 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_application_support=%{?tizen_mobile_feature_application_support}"
760 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_archive_support=%{?tizen_mobile_feature_archive_support}"
761 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_badge_support=%{?tizen_mobile_feature_badge_support}"
762 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_bluetooth_support=%{?tizen_mobile_feature_bluetooth_support}"
763 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_bookmark_support=%{?tizen_mobile_feature_bookmark_support}"
764 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_calendar_support=%{?tizen_mobile_feature_calendar_support}"
765 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_callhistory_support=%{?tizen_mobile_feature_callhistory_support}"
766 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_contact_support=%{?tizen_mobile_feature_contact_support}"
767 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_content_support=%{?tizen_mobile_feature_content_support}"
768 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_datacontrol_support=%{?tizen_mobile_feature_datacontrol_support}"
769 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_datasync_support=%{?tizen_mobile_feature_datasync_support}"
770 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_download_support=%{?tizen_mobile_feature_download_support}"
771 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_exif_support=%{?tizen_mobile_feature_exif_support}"
772 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_feedback_support=%{?tizen_mobile_feature_feedback_support}"
773 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_filesystem_support=%{?tizen_mobile_feature_filesystem_support}"
774 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_fm_radio_support=%{?tizen_mobile_feature_fm_radio_support}"
775 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_ham_support=%{?tizen_mobile_feature_ham_support}"
776 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_iotcon_support=%{?tizen_mobile_feature_iotcon_support}"
777 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_location_batch=%{?tizen_mobile_feature_location_batch}"
778 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_key_manager_support=%{?tizen_mobile_feature_key_manager_support}"
779 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_media_controller_support=%{?tizen_mobile_feature_media_controller_support}"
780 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_media_key_support=%{?tizen_mobile_feature_media_key_support}"
781 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_message_port_support=%{?tizen_mobile_feature_message_port_support}"
782 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_messaging_support=%{?tizen_mobile_feature_messaging_support}"
783 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_nbs_support=%{?tizen_mobile_feature_nbs_support}"
784 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_nfc_emulation_support=%{?tizen_mobile_feature_nfc_emulation_support}"
785 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_nfc_support=%{?tizen_mobile_feature_nfc_support}"
786 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_notification_support=%{?tizen_mobile_feature_notification_support}"
787 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_package_support=%{?tizen_mobile_feature_package_support}"
788 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_player_util_support=%{?tizen_mobile_feature_player_util_support}"
789 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_power_support=%{?tizen_mobile_feature_power_support}"
790 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_preference_support=%{?tizen_mobile_feature_preference_support}"
791 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_push_support=%{?tizen_mobile_feature_push_support}"
792 #GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_sap_support=%{?tizen_mobile_feature_sap_support}"
793 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_sensor_support=%{?tizen_mobile_feature_sensor_support}"
794 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_se_support=%{?tizen_mobile_feature_se_support}"
795 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_sound_support=%{?tizen_mobile_feature_sound_support}"
796 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_system_info_support=%{?tizen_mobile_feature_system_info_support}"
797 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_system_setting_support=%{?tizen_mobile_feature_system_setting_support}"
798 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_telephony_support=%{?tizen_mobile_feature_telephony_support}"
799 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_time_support=%{?tizen_mobile_feature_time_support}"
800 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_inputdevice_support=%{?tizen_mobile_feature_inputdevice_support}"
801 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_web_setting_support=%{?tizen_mobile_feature_web_setting_support}"
802 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_widget_service_support=%{?tizen_mobile_feature_widget_service_support}"
803 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_wi_fi_support=%{?tizen_mobile_feature_wi_fi_support}"
804 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_tvinputdevice_support=%{?tizen_mobile_feature_tvinputdevice_support}"
805 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_voicecontrol_support=%{?tizen_mobile_feature_voicecontrol_support}"
806 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_ppm_support=%{?tizen_mobile_feature_ppm_support}"
807
808 ./tools/gyp/gyp $GYP_OPTIONS src/tizen-wrt.gyp
809
810 ninja -C out/Default %{?_smp_mflags}
811 pushd out
812 mv Default bin_mobile_emulator
813 %if "%{?profile}" == "mobile"
814 ln -sf bin_mobile_emulator Default
815 %endif
816 popd
817 %endif # mobile-extension-emulator
818 %endif # MOBILE
819
820 %if "%{?unified_build}" == "1" || "%{?profile}" == "wearable"
821 # WEARABLE
822 GYP_OPTIONS="--depth=. -Dtizen=1 -Dextension_build_type=Debug -Dextension_host_os=wearable -Dprivilege_engine=%{tizen_wearable_privilege_engine}"
823 GYP_OPTIONS="$GYP_OPTIONS -Ddisplay_type=%{display_type}"
824 GYP_OPTIONS="$GYP_OPTIONS -Dcrosswalk_extensions_path=%{crosswalk_extensions_path}"
825
826 # feature flags
827 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_account_support=%{?tizen_wearable_feature_account_support}"
828 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_alarm_support=%{?tizen_wearable_feature_alarm_support}"
829 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_app_control_settings_support=%{?tizen_wearable_feature_app_control_settings_support}"
830 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_application_support=%{?tizen_wearable_feature_application_support}"
831 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_archive_support=%{?tizen_wearable_feature_archive_support}"
832 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_badge_support=%{?tizen_wearable_feature_badge_support}"
833 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_bluetooth_support=%{?tizen_wearable_feature_bluetooth_support}"
834 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_bookmark_support=%{?tizen_wearable_feature_bookmark_support}"
835 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_calendar_support=%{?tizen_wearable_feature_calendar_support}"
836 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_callhistory_support=%{?tizen_wearable_feature_callhistory_support}"
837 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_contact_support=%{?tizen_wearable_feature_contact_support}"
838 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_content_support=%{?tizen_wearable_feature_content_support}"
839 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_datacontrol_support=%{?tizen_wearable_feature_datacontrol_support}"
840 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_datasync_support=%{?tizen_wearable_feature_datasync_support}"
841 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_download_support=%{?tizen_wearable_feature_download_support}"
842 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_exif_support=%{?tizen_wearable_feature_exif_support}"
843 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_feedback_support=%{?tizen_wearable_feature_feedback_support}"
844 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_filesystem_support=%{?tizen_wearable_feature_filesystem_support}"
845 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_fm_radio_support=%{?tizen_wearable_feature_fm_radio_support}"
846 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_ham_support=%{?tizen_wearable_feature_ham_support}"
847 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_iotcon_support=%{?tizen_wearable_feature_iotcon_support}"
848 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_location_batch=%{?tizen_wearable_feature_location_batch}"
849 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_key_manager_support=%{?tizen_wearable_feature_key_manager_support}"
850 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_media_controller_support=%{?tizen_wearable_feature_media_controller_support}"
851 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_media_key_support=%{?tizen_wearable_feature_media_key_support}"
852 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_message_port_support=%{?tizen_wearable_feature_message_port_support}"
853 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_messaging_support=%{?tizen_wearable_feature_messaging_support}"
854 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_nbs_support=%{?tizen_wearable_feature_nbs_support}"
855 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_nfc_emulation_support=%{?tizen_wearable_feature_nfc_emulation_support}"
856 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_nfc_support=%{?tizen_wearable_feature_nfc_support}"
857 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_notification_support=%{?tizen_wearable_feature_notification_support}"
858 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_package_support=%{?tizen_wearable_feature_package_support}"
859 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_player_util_support=%{?tizen_wearable_feature_player_util_support}"
860 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_power_support=%{?tizen_wearable_feature_power_support}"
861 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_preference_support=%{?tizen_wearable_feature_preference_support}"
862 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_push_support=%{?tizen_wearable_feature_push_support}"
863 #GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_sap_support=%{?tizen_wearable_feature_sap_support}"
864 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_sensor_support=%{?tizen_wearable_feature_sensor_support}"
865 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_se_support=%{?tizen_wearable_feature_se_support}"
866 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_sound_support=%{?tizen_wearable_feature_sound_support}"
867 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_system_info_support=%{?tizen_wearable_feature_system_info_support}"
868 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_system_setting_support=%{?tizen_wearable_feature_system_setting_support}"
869 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_telephony_support=%{?tizen_wearable_feature_telephony_support}"
870 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_time_support=%{?tizen_wearable_feature_time_support}"
871 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_inputdevice_support=%{?tizen_wearable_feature_inputdevice_support}"
872 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_web_setting_support=%{?tizen_wearable_feature_web_setting_support}"
873 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_widget_service_support=%{?tizen_wearable_feature_widget_service_support}"
874 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_wi_fi_support=%{?tizen_wearable_feature_wi_fi_support}"
875 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_tvinputdevice_support=%{?tizen_wearable_feature_tvinputdevice_support}"
876 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_voicecontrol_support=%{?tizen_wearable_feature_voicecontrol_support}"
877 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_ppm_support=%{?tizen_wearable_feature_ppm_support}"
878
879 ./tools/gyp/gyp $GYP_OPTIONS src/tizen-wrt.gyp
880
881 ninja -C out/Default %{?_smp_mflags}
882 pushd out
883 mv Default bin_wearable
884 %if "%{?profile}" == "wearable"
885 ln -sf bin_wearable Default
886 %endif
887 popd
888
889 # wearable-extension-emulator
890 %ifarch %{ix86} x86_64
891
892 %define tizen_wearable_feature_bluetooth_support             0
893
894 # MediayKey API is optional in Tizen Wearable Profile.
895 # tizen.org/feature/network.bluetooth.audio.media is required for MediayKey API
896 %define tizen_wearable_feature_media_key_support             0
897
898 #- telephony related APIs
899 # CallHistory API is optional in Tizen Wearable Profile.
900 # NetworkBearerSelection API is optional in Tizen Wearable Profile.
901 %define tizen_wearable_feature_se_support                    0
902 %define tizen_wearable_feature_telephony_support             1
903 %define tizen_wearable_feature_callhistory_support           1
904 %define tizen_wearable_feature_nbs_support                   1
905 %define tizen_wearable_feature_sensor_support                1
906
907 GYP_OPTIONS="--depth=. -Dtizen=1 -Dextension_build_type=Debug -Dextension_host_os=wearable -Dprivilege_engine=%{tizen_wearable_privilege_engine}"
908 GYP_OPTIONS="$GYP_OPTIONS -Ddisplay_type=%{display_type}"
909 GYP_OPTIONS="$GYP_OPTIONS -Dcrosswalk_extensions_path=%{crosswalk_extensions_path}"
910
911 # feature flags
912 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_account_support=%{?tizen_wearable_feature_account_support}"
913 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_alarm_support=%{?tizen_wearable_feature_alarm_support}"
914 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_app_control_settings_support=%{?tizen_wearable_feature_app_control_settings_support}"
915 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_application_support=%{?tizen_wearable_feature_application_support}"
916 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_archive_support=%{?tizen_wearable_feature_archive_support}"
917 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_badge_support=%{?tizen_wearable_feature_badge_support}"
918 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_bluetooth_support=%{?tizen_wearable_feature_bluetooth_support}"
919 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_bookmark_support=%{?tizen_wearable_feature_bookmark_support}"
920 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_calendar_support=%{?tizen_wearable_feature_calendar_support}"
921 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_callhistory_support=%{?tizen_wearable_feature_callhistory_support}"
922 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_contact_support=%{?tizen_wearable_feature_contact_support}"
923 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_content_support=%{?tizen_wearable_feature_content_support}"
924 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_datacontrol_support=%{?tizen_wearable_feature_datacontrol_support}"
925 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_datasync_support=%{?tizen_wearable_feature_datasync_support}"
926 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_download_support=%{?tizen_wearable_feature_download_support}"
927 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_exif_support=%{?tizen_wearable_feature_exif_support}"
928 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_feedback_support=%{?tizen_wearable_feature_feedback_support}"
929 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_filesystem_support=%{?tizen_wearable_feature_filesystem_support}"
930 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_fm_radio_support=%{?tizen_wearable_feature_fm_radio_support}"
931 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_ham_support=%{?tizen_wearable_feature_ham_support}"
932 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_iotcon_support=%{?tizen_wearable_feature_iotcon_support}"
933 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_location_batch=%{?tizen_wearable_feature_location_batch}"
934 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_key_manager_support=%{?tizen_wearable_feature_key_manager_support}"
935 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_media_controller_support=%{?tizen_wearable_feature_media_controller_support}"
936 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_media_key_support=%{?tizen_wearable_feature_media_key_support}"
937 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_message_port_support=%{?tizen_wearable_feature_message_port_support}"
938 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_messaging_support=%{?tizen_wearable_feature_messaging_support}"
939 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_nbs_support=%{?tizen_wearable_feature_nbs_support}"
940 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_nfc_emulation_support=%{?tizen_wearable_feature_nfc_emulation_support}"
941 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_nfc_support=%{?tizen_wearable_feature_nfc_support}"
942 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_notification_support=%{?tizen_wearable_feature_notification_support}"
943 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_package_support=%{?tizen_wearable_feature_package_support}"
944 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_player_util_support=%{?tizen_wearable_feature_player_util_support}"
945 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_power_support=%{?tizen_wearable_feature_power_support}"
946 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_preference_support=%{?tizen_wearable_feature_preference_support}"
947 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_push_support=%{?tizen_wearable_feature_push_support}"
948 #GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_sap_support=%{?tizen_wearable_feature_sap_support}"
949 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_sensor_support=%{?tizen_wearable_feature_sensor_support}"
950 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_se_support=%{?tizen_wearable_feature_se_support}"
951 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_sound_support=%{?tizen_wearable_feature_sound_support}"
952 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_system_info_support=%{?tizen_wearable_feature_system_info_support}"
953 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_system_setting_support=%{?tizen_wearable_feature_system_setting_support}"
954 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_telephony_support=%{?tizen_wearable_feature_telephony_support}"
955 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_time_support=%{?tizen_wearable_feature_time_support}"
956 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_inputdevice_support=%{?tizen_wearable_feature_inputdevice_support}"
957 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_web_setting_support=%{?tizen_wearable_feature_web_setting_support}"
958 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_widget_service_support=%{?tizen_wearable_feature_widget_service_support}"
959 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_wi_fi_support=%{?tizen_wearable_feature_wi_fi_support}"
960 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_tvinputdevice_support=%{?tizen_wearable_feature_tvinputdevice_support}"
961 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_voicecontrol_support=%{?tizen_wearable_feature_voicecontrol_support}"
962 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_ppm_support=%{?tizen_wearable_feature_ppm_support}"
963
964 ./tools/gyp/gyp $GYP_OPTIONS src/tizen-wrt.gyp
965
966 ninja -C out/Default %{?_smp_mflags}
967 pushd out
968 mv Default bin_wearable_emulator
969 %if "%{?profile}" == "wearable"
970 ln -sf bin_wearable_emulator Default
971 %endif
972 popd
973 %endif # wearable-extension-emulator
974 %endif # WEARABLE
975
976 %if "%{?unified_build}" == "1" || "%{?profile}" == "tv"
977 # TV
978 GYP_OPTIONS="--depth=. -Dtizen=1 -Dextension_build_type=Debug -Dextension_host_os=tv -Dprivilege_engine=%{tizen_tv_privilege_engine}"
979 GYP_OPTIONS="$GYP_OPTIONS -Ddisplay_type=%{display_type}"
980 GYP_OPTIONS="$GYP_OPTIONS -Dcrosswalk_extensions_path=%{crosswalk_extensions_path}"
981
982 # feature flags
983 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_account_support=%{?tizen_tv_feature_account_support}"
984 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_alarm_support=%{?tizen_tv_feature_alarm_support}"
985 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_app_control_settings_support=%{?tizen_tv_feature_app_control_settings_support}"
986 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_application_support=%{?tizen_tv_feature_application_support}"
987 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_archive_support=%{?tizen_tv_feature_archive_support}"
988 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_badge_support=%{?tizen_tv_feature_badge_support}"
989 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_bluetooth_support=%{?tizen_tv_feature_bluetooth_support}"
990 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_bookmark_support=%{?tizen_tv_feature_bookmark_support}"
991 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_calendar_support=%{?tizen_tv_feature_calendar_support}"
992 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_callhistory_support=%{?tizen_tv_feature_callhistory_support}"
993 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_contact_support=%{?tizen_tv_feature_contact_support}"
994 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_content_support=%{?tizen_tv_feature_content_support}"
995 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_datacontrol_support=%{?tizen_tv_feature_datacontrol_support}"
996 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_datasync_support=%{?tizen_tv_feature_datasync_support}"
997 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_download_support=%{?tizen_tv_feature_download_support}"
998 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_exif_support=%{?tizen_tv_feature_exif_support}"
999 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_feedback_support=%{?tizen_tv_feature_feedback_support}"
1000 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_filesystem_support=%{?tizen_tv_feature_filesystem_support}"
1001 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_fm_radio_support=%{?tizen_tv_feature_fm_radio_support}"
1002 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_ham_support=%{?tizen_tv_feature_ham_support}"
1003 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_iotcon_support=%{?tizen_tv_feature_iotcon_support}"
1004 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_location_batch=%{?tizen_tv_feature_location_batch}"
1005 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_key_manager_support=%{?tizen_tv_feature_key_manager_support}"
1006 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_media_controller_support=%{?tizen_tv_feature_media_controller_support}"
1007 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_media_key_support=%{?tizen_tv_feature_media_key_support}"
1008 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_message_port_support=%{?tizen_tv_feature_message_port_support}"
1009 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_messaging_support=%{?tizen_tv_feature_messaging_support}"
1010 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_nbs_support=%{?tizen_tv_feature_nbs_support}"
1011 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_nfc_emulation_support=%{?tizen_tv_feature_nfc_emulation_support}"
1012 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_nfc_support=%{?tizen_tv_feature_nfc_support}"
1013 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_notification_support=%{?tizen_tv_feature_notification_support}"
1014 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_package_support=%{?tizen_tv_feature_package_support}"
1015 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_player_util_support=%{?tizen_tv_feature_player_util_support}"
1016 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_power_support=%{?tizen_tv_feature_power_support}"
1017 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_preference_support=%{?tizen_tv_feature_preference_support}"
1018 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_push_support=%{?tizen_tv_feature_push_support}"
1019 #GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_sap_support=%{?tizen_tv_feature_sap_support}"
1020 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_sensor_support=%{?tizen_tv_feature_sensor_support}"
1021 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_se_support=%{?tizen_tv_feature_se_support}"
1022 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_sound_support=%{?tizen_tv_feature_sound_support}"
1023 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_system_info_support=%{?tizen_tv_feature_system_info_support}"
1024 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_system_setting_support=%{?tizen_tv_feature_system_setting_support}"
1025 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_telephony_support=%{?tizen_tv_feature_telephony_support}"
1026 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_time_support=%{?tizen_tv_feature_time_support}"
1027 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_inputdevice_support=%{?tizen_tv_feature_inputdevice_support}"
1028 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_web_setting_support=%{?tizen_tv_feature_web_setting_support}"
1029 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_widget_service_support=%{?tizen_tv_feature_widget_service_support}"
1030 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_wi_fi_support=%{?tizen_tv_feature_wi_fi_support}"
1031 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_tvinputdevice_support=%{?tizen_tv_feature_tvinputdevice_support}"
1032 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_voicecontrol_support=%{?tizen_tv_feature_voicecontrol_support}"
1033 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_ppm_support=%{?tizen_tv_feature_ppm_support}"
1034
1035 ./tools/gyp/gyp $GYP_OPTIONS src/tizen-wrt.gyp
1036
1037 ninja -C out/Default %{?_smp_mflags}
1038 pushd out
1039 mv Default bin_tv
1040 %if "%{?profile}" == "tv"
1041 ln -sf bin_tv Default
1042 %endif
1043 popd
1044
1045 %endif # TV
1046
1047 %if "%{?unified_build}" == "1" || "%{?profile}" == "common" || "%{?profile}" == "ivi"
1048
1049 # UNIFIED / COMMON or IVI
1050 GYP_OPTIONS="--depth=. -Dtizen=1 -Dextension_build_type=Debug -Dextension_host_os=common -Dprivilege_engine=%{tizen_common_privilege_engine}"
1051
1052 GYP_OPTIONS="$GYP_OPTIONS -Ddisplay_type=%{display_type}"
1053 GYP_OPTIONS="$GYP_OPTIONS -Dcrosswalk_extensions_path=%{crosswalk_extensions_path}"
1054
1055 # feature flags
1056 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_account_support=%{?tizen_common_feature_account_support}"
1057 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_alarm_support=%{?tizen_common_feature_alarm_support}"
1058 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_app_control_settings_support=%{?tizen_common_feature_app_control_settings_support}"
1059 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_application_support=%{?tizen_common_feature_application_support}"
1060 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_archive_support=%{?tizen_common_feature_archive_support}"
1061 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_badge_support=%{?tizen_common_feature_badge_support}"
1062 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_bluetooth_support=%{?tizen_common_feature_bluetooth_support}"
1063 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_bookmark_support=%{?tizen_common_feature_bookmark_support}"
1064 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_calendar_support=%{?tizen_common_feature_calendar_support}"
1065 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_callhistory_support=%{?tizen_common_feature_callhistory_support}"
1066 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_contact_support=%{?tizen_common_feature_contact_support}"
1067 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_content_support=%{?tizen_common_feature_content_support}"
1068 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_datacontrol_support=%{?tizen_common_feature_datacontrol_support}"
1069 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_datasync_support=%{?tizen_common_feature_datasync_support}"
1070 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_download_support=%{?tizen_common_feature_download_support}"
1071 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_exif_support=%{?tizen_common_feature_exif_support}"
1072 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_feedback_support=%{?tizen_common_feature_feedback_support}"
1073 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_filesystem_support=%{?tizen_common_feature_filesystem_support}"
1074 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_fm_radio_support=%{?tizen_common_feature_fm_radio_support}"
1075 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_ham_support=%{?tizen_common_feature_ham_support}"
1076 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_iotcon_support=%{?tizen_common_feature_iotcon_support}"
1077 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_location_batch=%{?tizen_common_feature_location_batch}"
1078 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_key_manager_support=%{?tizen_common_feature_key_manager_support}"
1079 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_media_controller_support=%{?tizen_common_feature_media_controller_support}"
1080 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_media_key_support=%{?tizen_common_feature_media_key_support}"
1081 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_message_port_support=%{?tizen_common_feature_message_port_support}"
1082 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_messaging_support=%{?tizen_common_feature_messaging_support}"
1083 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_nbs_support=%{?tizen_common_feature_nbs_support}"
1084 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_nfc_emulation_support=%{?tizen_common_feature_nfc_emulation_support}"
1085 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_nfc_support=%{?tizen_common_feature_nfc_support}"
1086 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_notification_support=%{?tizen_common_feature_notification_support}"
1087 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_package_support=%{?tizen_common_feature_package_support}"
1088 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_player_util_support=%{?tizen_common_feature_player_util_support}"
1089 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_power_support=%{?tizen_common_feature_power_support}"
1090 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_preference_support=%{?tizen_common_feature_preference_support}"
1091 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_push_support=%{?tizen_common_feature_push_support}"
1092 #GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_sap_support=%{?tizen_common_feature_sap_support}"
1093 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_sensor_support=%{?tizen_common_feature_sensor_support}"
1094 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_se_support=%{?tizen_common_feature_se_support}"
1095 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_sound_support=%{?tizen_common_feature_sound_support}"
1096 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_system_info_support=%{?tizen_common_feature_system_info_support}"
1097 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_system_setting_support=%{?tizen_common_feature_system_setting_support}"
1098 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_telephony_support=%{?tizen_common_feature_telephony_support}"
1099 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_time_support=%{?tizen_common_feature_time_support}"
1100 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_inputdevice_support=%{?tizen_common_feature_inputdevice_support}"
1101 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_web_setting_support=%{?tizen_common_feature_web_setting_support}"
1102 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_widget_service_support=%{?tizen_common_feature_widget_service_support}"
1103 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_wi_fi_support=%{?tizen_common_feature_wi_fi_support}"
1104 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_tvinputdevice_support=%{?tizen_common_feature_tvinputdevice_support}"
1105 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_voicecontrol_support=%{?tizen_common_feature_voicecontrol_support}"
1106 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_ppm_support=%{?tizen_common_feature_ppm_support}"
1107
1108 ./tools/gyp/gyp $GYP_OPTIONS src/tizen-wrt.gyp
1109
1110 %if "%{?unified_build}" == "1"
1111 # UNIFIED
1112 ninja -C out/Default %{?_smp_mflags}
1113 pushd out
1114 mv Default bin_common
1115 ln -sf bin_common Default
1116
1117 # IVI does not have independent configurations, yet.
1118 # Copying the whole result in order to support ivi subpacakge
1119 cp -R bin_common bin_ivi
1120
1121 popd
1122 %else # UNIFIED
1123 # COMMON or IVI
1124 ninja -C out/Default %{?_smp_mflags}
1125 pushd out
1126 mv Default bin_%{?profile}
1127 ln -sf bin_%{?profile} Default
1128 popd
1129 %endif # COMMON or IVI
1130 %endif # UNIFIED / COMMON or IVI
1131
1132 %install
1133
1134 # Extensions.
1135 mkdir -p %{buildroot}%{crosswalk_extensions_path}
1136
1137 %if "%{?unified_build}" == "1" || "%{?profile}" == "common"
1138 mkdir -p %{buildroot}%{crosswalk_extensions_path}/common
1139 install -p -m 644 out/bin_common/libtizen*.so %{buildroot}%{crosswalk_extensions_path}/common
1140 # execute desc_gentool
1141 LD_LIBRARY_PATH=$LD_LIBRARY_PATH:%{buildroot}%{crosswalk_extensions_path}/common out/Default/desc_gentool \
1142         %{crosswalk_extensions_path}/common \
1143         %{buildroot}%{crosswalk_extensions_path}/common > plugins.json
1144
1145 # temporary plugins description for lazy loading
1146 install -p -m 644 plugins.json %{buildroot}%{crosswalk_extensions_path}/common/plugins.json
1147 %endif
1148
1149 %if "%{?unified_build}" == "1" || "%{?profile}" == "mobile"
1150 mkdir -p %{buildroot}%{crosswalk_extensions_path}/mobile
1151 install -p -m 644 out/bin_mobile/libtizen*.so %{buildroot}%{crosswalk_extensions_path}/mobile
1152 # execute desc_gentool
1153 LD_LIBRARY_PATH=$LD_LIBRARY_PATH:%{buildroot}%{crosswalk_extensions_path}/mobile out/Default/desc_gentool \
1154         %{crosswalk_extensions_path}/mobile \
1155         %{buildroot}%{crosswalk_extensions_path}/mobile > plugins.json
1156
1157 # temporary plugins description for lazy loading
1158 install -p -m 644 plugins.json %{buildroot}%{crosswalk_extensions_path}/mobile/plugins.json
1159
1160 # mobile-extension-emulator
1161 %ifarch %{ix86} x86_64
1162 mkdir -p %{buildroot}%{crosswalk_extensions_path}/mobile_emulator
1163 install -p -m 644 out/bin_mobile_emulator/libtizen*.so %{buildroot}%{crosswalk_extensions_path}/mobile_emulator
1164 # execute desc_gentool
1165 LD_LIBRARY_PATH=$LD_LIBRARY_PATH:%{buildroot}%{crosswalk_extensions_path}/mobile_emulator out/Default/desc_gentool \
1166         %{crosswalk_extensions_path}/mobile_emulator \
1167         %{buildroot}%{crosswalk_extensions_path}/mobile_emulator > plugins.json
1168
1169 # temporary plugins description for lazy loading
1170 install -p -m 644 plugins.json %{buildroot}%{crosswalk_extensions_path}/mobile_emulator/plugins.json
1171 %endif // mobile-extension-emulator
1172
1173 %endif // mobile
1174
1175 %if "%{?unified_build}" == "1" || "%{?profile}" == "wearable"
1176 mkdir -p %{buildroot}%{crosswalk_extensions_path}/wearable
1177 install -p -m 644 out/bin_wearable/libtizen*.so %{buildroot}%{crosswalk_extensions_path}/wearable
1178 # execute desc_gentool
1179 LD_LIBRARY_PATH=$LD_LIBRARY_PATH:%{buildroot}%{crosswalk_extensions_path}/wearable out/Default/desc_gentool \
1180         %{crosswalk_extensions_path}/wearable \
1181         %{buildroot}%{crosswalk_extensions_path}/wearable > plugins.json
1182
1183 # temporary plugins description for lazy loading
1184 install -p -m 644 plugins.json %{buildroot}%{crosswalk_extensions_path}/wearable/plugins.json
1185
1186 # wearable-extension-emulator
1187 %ifarch %{ix86} x86_64
1188 mkdir -p %{buildroot}%{crosswalk_extensions_path}/wearable_emulator
1189 install -p -m 644 out/bin_wearable_emulator/libtizen*.so %{buildroot}%{crosswalk_extensions_path}/wearable_emulator
1190 # execute desc_gentool
1191 LD_LIBRARY_PATH=$LD_LIBRARY_PATH:%{buildroot}%{crosswalk_extensions_path}/wearable_emulator out/Default/desc_gentool \
1192         %{crosswalk_extensions_path}/wearable_emulator \
1193         %{buildroot}%{crosswalk_extensions_path}/wearable_emulator > plugins.json
1194
1195 # temporary plugins description for lazy loading
1196 install -p -m 644 plugins.json %{buildroot}%{crosswalk_extensions_path}/wearable_emulator/plugins.json
1197 %endif // wearable-extension-emulator
1198
1199 %endif // wearable
1200
1201 %if "%{?unified_build}" == "1" || "%{?profile}" == "tv"
1202 mkdir -p %{buildroot}%{crosswalk_extensions_path}/tv
1203 install -p -m 644 out/bin_tv/libtizen*.so %{buildroot}%{crosswalk_extensions_path}/tv
1204 # execute desc_gentool
1205 LD_LIBRARY_PATH=$LD_LIBRARY_PATH:%{buildroot}%{crosswalk_extensions_path}/tv out/Default/desc_gentool \
1206         %{crosswalk_extensions_path}/tv \
1207         %{buildroot}%{crosswalk_extensions_path}/tv > plugins.json
1208
1209 # temporary plugins description for lazy loading
1210 install -p -m 644 plugins.json %{buildroot}%{crosswalk_extensions_path}/tv/plugins.json
1211 %endif
1212
1213 %if "%{?unified_build}" == "1" || "%{?profile}" == "ivi"
1214 mkdir -p %{buildroot}%{crosswalk_extensions_path}/ivi
1215 install -p -m 644 out/bin_ivi/libtizen*.so %{buildroot}%{crosswalk_extensions_path}/ivi
1216 # execute desc_gentool
1217 LD_LIBRARY_PATH=$LD_LIBRARY_PATH:%{buildroot}%{crosswalk_extensions_path}/ivi out/Default/desc_gentool \
1218         %{crosswalk_extensions_path}/ivi \
1219         %{buildroot}%{crosswalk_extensions_path}/ivi > plugins.json
1220
1221 # temporary plugins description for lazy loading
1222 install -p -m 644 plugins.json %{buildroot}%{crosswalk_extensions_path}/ivi/plugins.json
1223 %endif
1224
1225 # devel files
1226 mkdir -p %{buildroot}%{_libdir}/pkgconfig
1227 sed -i s,__LIB_DIR__,%{crosswalk_extensions_path},g packaging/%{name}.pc.in
1228 sed -i s,__INCLUDE_DIR__,%{_includedir}/%{name}/src,g packaging/%{name}.pc.in
1229 cp packaging/%{name}.pc.in %{buildroot}%{_libdir}/pkgconfig/%{name}.pc
1230 mkdir -p %{buildroot}%{_includedir}/%{name}/src/common
1231 mkdir -p %{buildroot}%{_includedir}/%{name}/src/common/filesystem
1232 install -p -m 644 src/common/*.h %{buildroot}%{_includedir}/%{name}/src/common
1233 install -p -m 644 src/common/filesystem/*.h %{buildroot}%{_includedir}/%{name}/src/common/filesystem
1234 install -p -m 644 src/common/*.gypi %{buildroot}%{_includedir}/%{name}/src/common
1235 install -p -m 644 src/common/XW_Extension.cc %{buildroot}%{_includedir}/%{name}/src/common
1236 mkdir -p %{buildroot}%{_includedir}/%{name}/tools
1237 install -p -m 644 tools/generate_api.py %{buildroot}%{_includedir}/%{name}/tools
1238 install -p -m 644 tools/mergejs.py %{buildroot}%{_includedir}/%{name}/tools
1239 install -p -m 644 tools/js_minimize.py %{buildroot}%{_includedir}/%{name}/tools
1240 cp -a tools/gyp %{buildroot}%{_includedir}/%{name}/tools/gyp
1241 cp -a tools/slimit %{buildroot}%{_includedir}/%{name}/tools/slimit
1242 cp -a out/Default/desc_gentool %{buildroot}%{_includedir}/%{name}/tools/desc_gentool
1243
1244 %files
1245 %manifest webapi-plugins.manifest
1246 %license LICENSE
1247
1248 %if "%{?unified_build}" == "1" || "%{?profile}" == "common"
1249 %post profile_common
1250 ln -sf %{crosswalk_extensions_path}/common/* %{crosswalk_extensions_path}
1251 %preun profile_common
1252 # This is an un-installation.
1253 if [ "$1" == "0" ]; then
1254   rm %{crosswalk_extensions_path}/libtizen*.so
1255   rm %{crosswalk_extensions_path}/plugins.json
1256 fi
1257 %files profile_common
1258 %dir %{crosswalk_extensions_path}/common/
1259 %{crosswalk_extensions_path}/common/libtizen*.so
1260 %{crosswalk_extensions_path}/common/plugins.json
1261 %manifest webapi-plugins.manifest
1262 %endif
1263
1264 %if "%{?unified_build}" == "1" || "%{?profile}" == "mobile"
1265 %post profile_mobile
1266 ln -sf %{crosswalk_extensions_path}/mobile/* %{crosswalk_extensions_path}
1267 %preun profile_mobile
1268 # This is an un-installation.
1269 if [ "$1" == "0" ]; then
1270   if [ -n "$(ls %{crosswalk_extensions_path}/ | grep libtizen*.so)" ]; then
1271     rm %{crosswalk_extensions_path}/libtizen*.so
1272   fi
1273   if [ -f %{crosswalk_extensions_path}/plugins.json ]; then
1274     rm %{crosswalk_extensions_path}/plugins.json
1275   fi
1276 fi
1277 %files profile_mobile
1278 %dir %{crosswalk_extensions_path}/mobile/
1279 %{crosswalk_extensions_path}/mobile/libtizen*.so
1280 %{crosswalk_extensions_path}/mobile/plugins.json
1281 %manifest webapi-plugins.manifest
1282
1283 # mobile-extension-emulator
1284 %ifarch %{ix86} x86_64
1285 %post mobile-extension-emulator
1286 ln -sf %{crosswalk_extensions_path}/mobile_emulator/* %{crosswalk_extensions_path}
1287 %preun mobile-extension-emulator
1288 # This is an un-installation.
1289 if [ "$1" == "0" ]; then
1290   if [ -n "$(ls %{crosswalk_extensions_path}/ | grep libtizen*.so)" ]; then
1291     rm %{crosswalk_extensions_path}/libtizen*.so
1292   fi
1293   if [ -f %{crosswalk_extensions_path}/plugins.json ]; then
1294     rm %{crosswalk_extensions_path}/plugins.json
1295   fi
1296 fi
1297 %files mobile-extension-emulator
1298 %dir %{crosswalk_extensions_path}/mobile_emulator/
1299 %{crosswalk_extensions_path}/mobile_emulator/libtizen*.so
1300 %{crosswalk_extensions_path}/mobile_emulator/plugins.json
1301 %manifest webapi-plugins.manifest
1302 %endif // mobile-extension-emulator
1303 %endif // mobile
1304
1305 %if "%{?unified_build}" == "1" || "%{?profile}" == "wearable"
1306 %post profile_wearable
1307 ln -sf %{crosswalk_extensions_path}/wearable/* %{crosswalk_extensions_path}
1308 %preun profile_wearable
1309 # This is an un-installation.
1310 if [ "$1" == "0" ]; then
1311   if [ -n "$(ls %{crosswalk_extensions_path}/ | grep libtizen*.so)" ]; then
1312     rm %{crosswalk_extensions_path}/libtizen*.so
1313   fi
1314   if [ -f %{crosswalk_extensions_path}/plugins.json ]; then
1315     rm %{crosswalk_extensions_path}/plugins.json
1316   fi
1317 fi
1318 %files profile_wearable
1319 %dir %{crosswalk_extensions_path}/wearable/
1320 %{crosswalk_extensions_path}/wearable/libtizen*.so
1321 %{crosswalk_extensions_path}/wearable/plugins.json
1322 %manifest webapi-plugins.manifest
1323
1324 # wearable-extension-emulator
1325 %ifarch %{ix86} x86_64
1326 %post wearable-extension-emulator
1327 ln -sf %{crosswalk_extensions_path}/wearable_emulator/* %{crosswalk_extensions_path}
1328 %preun wearable-extension-emulator
1329 # This is an un-installation.
1330 if [ "$1" == "0" ]; then
1331   if [ -n "$(ls %{crosswalk_extensions_path}/ | grep libtizen*.so)" ]; then
1332     rm %{crosswalk_extensions_path}/libtizen*.so
1333   fi
1334   if [ -f %{crosswalk_extensions_path}/plugins.json ]; then
1335     rm %{crosswalk_extensions_path}/plugins.json
1336   fi
1337 fi
1338 %files wearable-extension-emulator
1339 %dir %{crosswalk_extensions_path}/wearable_emulator/
1340 %{crosswalk_extensions_path}/wearable_emulator/libtizen*.so
1341 %{crosswalk_extensions_path}/wearable_emulator/plugins.json
1342 %manifest webapi-plugins.manifest
1343 %endif // wearable-extension-emulator
1344 %endif // wearable
1345
1346 %if "%{?unified_build}" == "1" || "%{?profile}" == "tv"
1347 %post profile_tv
1348 ln -sf %{crosswalk_extensions_path}/tv/* %{crosswalk_extensions_path}
1349 %preun profile_tv
1350 # This is an un-installation.
1351 if [ "$1" == "0" ]; then
1352   rm %{crosswalk_extensions_path}/libtizen*.so
1353   rm %{crosswalk_extensions_path}/plugins.json
1354 fi
1355 %files profile_tv
1356 %dir %{crosswalk_extensions_path}/tv/
1357 %{crosswalk_extensions_path}/tv/libtizen*.so
1358 %{crosswalk_extensions_path}/tv/plugins.json
1359 %manifest webapi-plugins.manifest
1360 %endif
1361
1362 %if "%{?unified_build}" == "1" || "%{?profile}" == "ivi"
1363 %post profile_ivi
1364 ln -sf %{crosswalk_extensions_path}/ivi/* %{crosswalk_extensions_path}
1365 %preun profile_ivi
1366 # This is an un-installation.
1367 if [ "$1" == "0" ]; then
1368   rm %{crosswalk_extensions_path}/libtizen*.so
1369   rm %{crosswalk_extensions_path}/plugins.json
1370 fi
1371 %files profile_ivi
1372 %dir %{crosswalk_extensions_path}/ivi/
1373 %{crosswalk_extensions_path}/ivi/libtizen*.so
1374 %{crosswalk_extensions_path}/ivi/plugins.json
1375 %manifest webapi-plugins.manifest
1376 %endif
1377
1378 %files devel
1379 %{_includedir}/*
1380 %{_libdir}/pkgconfig/*