Merge branch '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.15
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 %endif
494
495 %if "%{?tizen_feature_badge_support}" == "1" || "%{?unified_build}" == "1"
496 BuildRequires:  pkgconfig(badge)
497 %endif
498
499 %if "%{?tizen_feature_calendar_support}" == "1" || "%{?unified_build}" == "1"
500 BuildRequires:  pkgconfig(calendar-service2)
501 %endif
502
503 %if "%{?tizen_feature_contact_support}" == "1" || "%{?unified_build}" == "1"
504 BuildRequires:  pkgconfig(contacts-service2)
505 %endif
506
507 %if "%{?tizen_feature_callhistory_support}" == "1" || "%{?unified_build}" == "1"
508 BuildRequires:  pkgconfig(contacts-service2)
509 %endif
510
511 %if "%{?tizen_feature_exif_support}" == "1" || "%{?unified_build}" == "1"
512 BuildRequires:  pkgconfig(libexif)
513 %endif
514
515 %if "%{?tizen_feature_nfc_support}" == "1" || "%{?unified_build}" == "1"
516 BuildRequires:  pkgconfig(capi-network-nfc)
517 BuildRequires:  pkgconfig(capi-appfw-app-control)
518 %endif
519
520 %if "%{?tizen_feature_fm_radio_support}" == "1" || "%{?unified_build}" == "1"
521 BuildRequires: pkgconfig(capi-media-radio)
522 %endif
523
524 %if "%{?tizen_feature_feedback_support}" == "1" || "%{?unified_build}" == "1"
525 BuildRequires: pkgconfig(feedback)
526 %endif
527
528 %if "%{?tizen_feature_se_support}" == "1" || "%{?unified_build}" == "1"
529 BuildRequires:  pkgconfig(capi-network-smartcard)
530 %endif
531
532 %if "%{?tizen_feature_message_port_support}" == "1" || "%{?unified_build}" == "1"
533 BuildRequires: pkgconfig(capi-message-port)
534 %endif
535
536 %if "%{?tizen_feature_notification_support}" == "1" || "%{?unified_build}" == "1"
537 BuildRequires: pkgconfig(notification)
538 BuildRequires: pkgconfig(capi-appfw-app-control)
539 %endif
540
541 %if "%{?tizen_feature_preference_support}" == "1" || "%{?unified_build}" == "1"
542 BuildRequires: pkgconfig(capi-appfw-preference)
543 %endif
544
545 %if "%{?tizen_feature_sound_support}" == "1" || "%{?unified_build}" == "1"
546 BuildRequires:  pkgconfig(capi-media-sound-manager)
547 %endif
548
549 %if "%{?tizen_feature_sensor_support}" == "1" || "%{?unified_build}" == "1"
550 BuildRequires: pkgconfig(capi-system-sensor)
551 %endif
552
553 %if "%{?tizen_feature_media_key_support}" == "1" || "%{?unified_build}" == "1"
554 BuildRequires:  pkgconfig(capi-system-media-key)
555 %endif
556
557 %if "%{?tizen_feature_widget_service_support}" == "1" || "%{?unified_build}" == "1"
558 BuildRequires: pkgconfig(widget_service)
559 %endif
560
561 %if "%{?tizen_feature_voicecontrol_support}" == "1" || "%{?unified_build}" == "1"
562 BuildRequires: pkgconfig(voice-control)
563 %endif
564
565 %if "%{?tizen_feature_ppm_support}" == "1" || "%{?unified_build}" == "1"
566 BuildRequires: pkgconfig(capi-privacy-privilege-manager)
567 %endif
568
569 Requires:      %{name}-compat = %{version}-%{release}
570 %if "%{?unified_build}" == "1"
571 Recommends:    %{name}-profile_common = %{version}-%{release}
572 %endif
573
574 %description
575 Tizen Web APIs implemented.
576
577 %package profile_common
578 Summary:       webapi-plugin binaries for common profile
579 Provides:      %{name}-compat = %{version}-%{release}
580 Conflicts:     %{name}-profile_mobile
581 Conflicts:     %{name}-profile_wearable
582 Conflicts:     %{name}-profile_tv
583 Conflicts:     %{name}-profile_ivi
584 %description profile_common
585 Tizen Web API implementation binaries for Tizen common profile.
586
587 %package profile_mobile
588 Summary:       webapi-plugin binaries for mobile profile
589 Provides:      %{name}-compat = %{version}-%{release}
590 Conflicts:     %{name}-profile_common
591 Conflicts:     %{name}-profile_wearable
592 Conflicts:     %{name}-profile_tv
593 Conflicts:     %{name}-profile_ivi
594 %description profile_mobile
595 Tizen Web API implementation binaries for Tizen mobile profile.
596
597 %ifarch %{ix86} x86_64
598 %package mobile-extension-emulator
599 Summary:       webapi-plugin binaries for mobile emulator
600 Requires:      %{name}-profile_mobile = %{version}-%{release}
601 %description mobile-extension-emulator
602 Tizen Web API implementation binaries for Tizen mobile emulator.
603 %endif
604
605 %package profile_wearable
606 Summary:       webapi-plugin binaries for wearable profile
607 Provides:      %{name}-compat = %{version}-%{release}
608 Conflicts:     %{name}-profile_mobile
609 Conflicts:     %{name}-profile_common
610 Conflicts:     %{name}-profile_tv
611 Conflicts:     %{name}-profile_ivi
612 %description profile_wearable
613 Tizen Web API implementation binaries for Tizen wearable profile.
614
615 %ifarch %{ix86} x86_64
616 %package wearable-extension-emulator
617 Summary:       webapi-plugin binaries for wearable emulator
618 Requires:      %{name}-profile_wearable = %{version}-%{release}
619 %description wearable-extension-emulator
620 Tizen Web API implementation binaries for Tizen wearable emulator.
621 %endif
622
623 %package profile_tv
624 Summary:       webapi-plugin binaries for tv profile
625 Provides:      %{name}-compat = %{version}-%{release}
626 Conflicts:     %{name}-profile_mobile
627 Conflicts:     %{name}-profile_wearable
628 Conflicts:     %{name}-profile_common
629 Conflicts:     %{name}-profile_ivi
630 %description profile_tv
631 Tizen Web API implementation binaries for Tizen tv profile.
632
633 %package profile_ivi
634 Summary:       webapi-plugin binaries for ivi profile
635 Provides:      %{name}-compat = %{version}-%{release}
636 Conflicts:     %{name}-profile_mobile
637 Conflicts:     %{name}-profile_wearable
638 Conflicts:     %{name}-profile_tv
639 Conflicts:     %{name}-profile_common
640 %description profile_ivi
641 Tizen Web API implementation binaries for Tizen ivi profile.
642
643 %package devel
644 Summary:    webapi-plugins development headers
645 Group:      Development/Libraries
646 Requires:   %{name} = %{version}
647
648 %description devel
649 webapi-plugins development headers
650
651 %prep
652 %setup -q
653
654 %build
655
656 export GYP_GENERATORS='ninja'
657
658 %if "%{?unified_build}" == "1" || "%{?profile}" == "mobile"
659 # MOBILE
660 GYP_OPTIONS="--depth=. -Dtizen=1 -Dextension_build_type=Debug -Dextension_host_os=mobile -Dprivilege_engine=%{tizen_mobile_privilege_engine}"
661 GYP_OPTIONS="$GYP_OPTIONS -Ddisplay_type=%{display_type}"
662 GYP_OPTIONS="$GYP_OPTIONS -Dcrosswalk_extensions_path=%{crosswalk_extensions_path}"
663
664 # feature flags
665 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_account_support=%{?tizen_mobile_feature_account_support}"
666 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_alarm_support=%{?tizen_mobile_feature_alarm_support}"
667 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_app_control_settings_support=%{?tizen_mobile_feature_app_control_settings_support}"
668 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_application_support=%{?tizen_mobile_feature_application_support}"
669 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_archive_support=%{?tizen_mobile_feature_archive_support}"
670 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_badge_support=%{?tizen_mobile_feature_badge_support}"
671 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_bluetooth_support=%{?tizen_mobile_feature_bluetooth_support}"
672 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_bookmark_support=%{?tizen_mobile_feature_bookmark_support}"
673 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_calendar_support=%{?tizen_mobile_feature_calendar_support}"
674 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_callhistory_support=%{?tizen_mobile_feature_callhistory_support}"
675 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_contact_support=%{?tizen_mobile_feature_contact_support}"
676 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_content_support=%{?tizen_mobile_feature_content_support}"
677 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_datacontrol_support=%{?tizen_mobile_feature_datacontrol_support}"
678 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_datasync_support=%{?tizen_mobile_feature_datasync_support}"
679 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_download_support=%{?tizen_mobile_feature_download_support}"
680 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_exif_support=%{?tizen_mobile_feature_exif_support}"
681 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_feedback_support=%{?tizen_mobile_feature_feedback_support}"
682 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_filesystem_support=%{?tizen_mobile_feature_filesystem_support}"
683 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_fm_radio_support=%{?tizen_mobile_feature_fm_radio_support}"
684 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_ham_support=%{?tizen_mobile_feature_ham_support}"
685 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_iotcon_support=%{?tizen_mobile_feature_iotcon_support}"
686 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_location_batch=%{?tizen_mobile_feature_location_batch}"
687 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_key_manager_support=%{?tizen_mobile_feature_key_manager_support}"
688 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_media_controller_support=%{?tizen_mobile_feature_media_controller_support}"
689 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_media_key_support=%{?tizen_mobile_feature_media_key_support}"
690 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_message_port_support=%{?tizen_mobile_feature_message_port_support}"
691 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_messaging_support=%{?tizen_mobile_feature_messaging_support}"
692 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_nbs_support=%{?tizen_mobile_feature_nbs_support}"
693 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_nfc_emulation_support=%{?tizen_mobile_feature_nfc_emulation_support}"
694 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_nfc_support=%{?tizen_mobile_feature_nfc_support}"
695 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_notification_support=%{?tizen_mobile_feature_notification_support}"
696 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_package_support=%{?tizen_mobile_feature_package_support}"
697 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_player_util_support=%{?tizen_mobile_feature_player_util_support}"
698 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_power_support=%{?tizen_mobile_feature_power_support}"
699 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_preference_support=%{?tizen_mobile_feature_preference_support}"
700 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_push_support=%{?tizen_mobile_feature_push_support}"
701 #GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_sap_support=%{?tizen_mobile_feature_sap_support}"
702 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_sensor_support=%{?tizen_mobile_feature_sensor_support}"
703 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_se_support=%{?tizen_mobile_feature_se_support}"
704 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_sound_support=%{?tizen_mobile_feature_sound_support}"
705 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_system_info_support=%{?tizen_mobile_feature_system_info_support}"
706 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_system_setting_support=%{?tizen_mobile_feature_system_setting_support}"
707 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_telephony_support=%{?tizen_mobile_feature_telephony_support}"
708 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_time_support=%{?tizen_mobile_feature_time_support}"
709 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_inputdevice_support=%{?tizen_mobile_feature_inputdevice_support}"
710 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_web_setting_support=%{?tizen_mobile_feature_web_setting_support}"
711 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_widget_service_support=%{?tizen_mobile_feature_widget_service_support}"
712 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_wi_fi_support=%{?tizen_mobile_feature_wi_fi_support}"
713 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_tvinputdevice_support=%{?tizen_mobile_feature_tvinputdevice_support}"
714 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_voicecontrol_support=%{?tizen_mobile_feature_voicecontrol_support}"
715 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_ppm_support=%{?tizen_mobile_feature_ppm_support}"
716
717 ./tools/gyp/gyp $GYP_OPTIONS src/tizen-wrt.gyp
718
719 ninja -C out/Default %{?_smp_mflags}
720 pushd out
721 mv Default bin_mobile
722 %if "%{?profile}" == "mobile"
723 ln -sf bin_mobile Default
724 %endif
725 popd
726
727 # mobile-extension-emulator
728 %ifarch %{ix86} x86_64
729
730 %define tizen_mobile_feature_bluetooth_support               0
731
732 # FM radio feature
733 %define tizen_mobile_feature_fm_radio_support                1
734
735 %define tizen_mobile_feature_ham_support                     1
736 %define tizen_mobile_feature_media_key_support               0
737 %define tizen_mobile_feature_nfc_emulation_support           0
738 %define tizen_mobile_feature_nfc_support                     1
739
740 # secure element feature
741 %define tizen_mobile_feature_se_support                      0
742
743 # telephony feature
744 %define tizen_mobile_feature_telephony_support               1
745 %define tizen_mobile_feature_callhistory_support             1
746 %define tizen_mobile_feature_nbs_support                     1
747
748 %define tizen_mobile_feature_wi_fi_support                   0
749
750 GYP_OPTIONS="--depth=. -Dtizen=1 -Dextension_build_type=Debug -Dextension_host_os=mobile -Dprivilege_engine=%{tizen_mobile_privilege_engine}"
751 GYP_OPTIONS="$GYP_OPTIONS -Ddisplay_type=%{display_type}"
752 GYP_OPTIONS="$GYP_OPTIONS -Dcrosswalk_extensions_path=%{crosswalk_extensions_path}"
753
754 # feature flags
755 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_account_support=%{?tizen_mobile_feature_account_support}"
756 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_alarm_support=%{?tizen_mobile_feature_alarm_support}"
757 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_app_control_settings_support=%{?tizen_mobile_feature_app_control_settings_support}"
758 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_application_support=%{?tizen_mobile_feature_application_support}"
759 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_archive_support=%{?tizen_mobile_feature_archive_support}"
760 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_badge_support=%{?tizen_mobile_feature_badge_support}"
761 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_bluetooth_support=%{?tizen_mobile_feature_bluetooth_support}"
762 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_bookmark_support=%{?tizen_mobile_feature_bookmark_support}"
763 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_calendar_support=%{?tizen_mobile_feature_calendar_support}"
764 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_callhistory_support=%{?tizen_mobile_feature_callhistory_support}"
765 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_contact_support=%{?tizen_mobile_feature_contact_support}"
766 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_content_support=%{?tizen_mobile_feature_content_support}"
767 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_datacontrol_support=%{?tizen_mobile_feature_datacontrol_support}"
768 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_datasync_support=%{?tizen_mobile_feature_datasync_support}"
769 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_download_support=%{?tizen_mobile_feature_download_support}"
770 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_exif_support=%{?tizen_mobile_feature_exif_support}"
771 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_feedback_support=%{?tizen_mobile_feature_feedback_support}"
772 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_filesystem_support=%{?tizen_mobile_feature_filesystem_support}"
773 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_fm_radio_support=%{?tizen_mobile_feature_fm_radio_support}"
774 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_ham_support=%{?tizen_mobile_feature_ham_support}"
775 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_iotcon_support=%{?tizen_mobile_feature_iotcon_support}"
776 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_location_batch=%{?tizen_mobile_feature_location_batch}"
777 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_key_manager_support=%{?tizen_mobile_feature_key_manager_support}"
778 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_media_controller_support=%{?tizen_mobile_feature_media_controller_support}"
779 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_media_key_support=%{?tizen_mobile_feature_media_key_support}"
780 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_message_port_support=%{?tizen_mobile_feature_message_port_support}"
781 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_messaging_support=%{?tizen_mobile_feature_messaging_support}"
782 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_nbs_support=%{?tizen_mobile_feature_nbs_support}"
783 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_nfc_emulation_support=%{?tizen_mobile_feature_nfc_emulation_support}"
784 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_nfc_support=%{?tizen_mobile_feature_nfc_support}"
785 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_notification_support=%{?tizen_mobile_feature_notification_support}"
786 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_package_support=%{?tizen_mobile_feature_package_support}"
787 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_player_util_support=%{?tizen_mobile_feature_player_util_support}"
788 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_power_support=%{?tizen_mobile_feature_power_support}"
789 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_preference_support=%{?tizen_mobile_feature_preference_support}"
790 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_push_support=%{?tizen_mobile_feature_push_support}"
791 #GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_sap_support=%{?tizen_mobile_feature_sap_support}"
792 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_sensor_support=%{?tizen_mobile_feature_sensor_support}"
793 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_se_support=%{?tizen_mobile_feature_se_support}"
794 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_sound_support=%{?tizen_mobile_feature_sound_support}"
795 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_system_info_support=%{?tizen_mobile_feature_system_info_support}"
796 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_system_setting_support=%{?tizen_mobile_feature_system_setting_support}"
797 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_telephony_support=%{?tizen_mobile_feature_telephony_support}"
798 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_time_support=%{?tizen_mobile_feature_time_support}"
799 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_inputdevice_support=%{?tizen_mobile_feature_inputdevice_support}"
800 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_web_setting_support=%{?tizen_mobile_feature_web_setting_support}"
801 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_widget_service_support=%{?tizen_mobile_feature_widget_service_support}"
802 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_wi_fi_support=%{?tizen_mobile_feature_wi_fi_support}"
803 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_tvinputdevice_support=%{?tizen_mobile_feature_tvinputdevice_support}"
804 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_voicecontrol_support=%{?tizen_mobile_feature_voicecontrol_support}"
805 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_ppm_support=%{?tizen_mobile_feature_ppm_support}"
806
807 ./tools/gyp/gyp $GYP_OPTIONS src/tizen-wrt.gyp
808
809 ninja -C out/Default %{?_smp_mflags}
810 pushd out
811 mv Default bin_mobile_emulator
812 %if "%{?profile}" == "mobile"
813 ln -sf bin_mobile_emulator Default
814 %endif
815 popd
816 %endif # mobile-extension-emulator
817 %endif # MOBILE
818
819 %if "%{?unified_build}" == "1" || "%{?profile}" == "wearable"
820 # WEARABLE
821 GYP_OPTIONS="--depth=. -Dtizen=1 -Dextension_build_type=Debug -Dextension_host_os=wearable -Dprivilege_engine=%{tizen_wearable_privilege_engine}"
822 GYP_OPTIONS="$GYP_OPTIONS -Ddisplay_type=%{display_type}"
823 GYP_OPTIONS="$GYP_OPTIONS -Dcrosswalk_extensions_path=%{crosswalk_extensions_path}"
824
825 # feature flags
826 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_account_support=%{?tizen_wearable_feature_account_support}"
827 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_alarm_support=%{?tizen_wearable_feature_alarm_support}"
828 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_app_control_settings_support=%{?tizen_wearable_feature_app_control_settings_support}"
829 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_application_support=%{?tizen_wearable_feature_application_support}"
830 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_archive_support=%{?tizen_wearable_feature_archive_support}"
831 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_badge_support=%{?tizen_wearable_feature_badge_support}"
832 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_bluetooth_support=%{?tizen_wearable_feature_bluetooth_support}"
833 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_bookmark_support=%{?tizen_wearable_feature_bookmark_support}"
834 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_calendar_support=%{?tizen_wearable_feature_calendar_support}"
835 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_callhistory_support=%{?tizen_wearable_feature_callhistory_support}"
836 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_contact_support=%{?tizen_wearable_feature_contact_support}"
837 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_content_support=%{?tizen_wearable_feature_content_support}"
838 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_datacontrol_support=%{?tizen_wearable_feature_datacontrol_support}"
839 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_datasync_support=%{?tizen_wearable_feature_datasync_support}"
840 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_download_support=%{?tizen_wearable_feature_download_support}"
841 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_exif_support=%{?tizen_wearable_feature_exif_support}"
842 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_feedback_support=%{?tizen_wearable_feature_feedback_support}"
843 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_filesystem_support=%{?tizen_wearable_feature_filesystem_support}"
844 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_fm_radio_support=%{?tizen_wearable_feature_fm_radio_support}"
845 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_ham_support=%{?tizen_wearable_feature_ham_support}"
846 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_iotcon_support=%{?tizen_wearable_feature_iotcon_support}"
847 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_location_batch=%{?tizen_wearable_feature_location_batch}"
848 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_key_manager_support=%{?tizen_wearable_feature_key_manager_support}"
849 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_media_controller_support=%{?tizen_wearable_feature_media_controller_support}"
850 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_media_key_support=%{?tizen_wearable_feature_media_key_support}"
851 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_message_port_support=%{?tizen_wearable_feature_message_port_support}"
852 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_messaging_support=%{?tizen_wearable_feature_messaging_support}"
853 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_nbs_support=%{?tizen_wearable_feature_nbs_support}"
854 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_nfc_emulation_support=%{?tizen_wearable_feature_nfc_emulation_support}"
855 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_nfc_support=%{?tizen_wearable_feature_nfc_support}"
856 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_notification_support=%{?tizen_wearable_feature_notification_support}"
857 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_package_support=%{?tizen_wearable_feature_package_support}"
858 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_player_util_support=%{?tizen_wearable_feature_player_util_support}"
859 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_power_support=%{?tizen_wearable_feature_power_support}"
860 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_preference_support=%{?tizen_wearable_feature_preference_support}"
861 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_push_support=%{?tizen_wearable_feature_push_support}"
862 #GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_sap_support=%{?tizen_wearable_feature_sap_support}"
863 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_sensor_support=%{?tizen_wearable_feature_sensor_support}"
864 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_se_support=%{?tizen_wearable_feature_se_support}"
865 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_sound_support=%{?tizen_wearable_feature_sound_support}"
866 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_system_info_support=%{?tizen_wearable_feature_system_info_support}"
867 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_system_setting_support=%{?tizen_wearable_feature_system_setting_support}"
868 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_telephony_support=%{?tizen_wearable_feature_telephony_support}"
869 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_time_support=%{?tizen_wearable_feature_time_support}"
870 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_inputdevice_support=%{?tizen_wearable_feature_inputdevice_support}"
871 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_web_setting_support=%{?tizen_wearable_feature_web_setting_support}"
872 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_widget_service_support=%{?tizen_wearable_feature_widget_service_support}"
873 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_wi_fi_support=%{?tizen_wearable_feature_wi_fi_support}"
874 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_tvinputdevice_support=%{?tizen_wearable_feature_tvinputdevice_support}"
875 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_voicecontrol_support=%{?tizen_wearable_feature_voicecontrol_support}"
876 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_ppm_support=%{?tizen_wearable_feature_ppm_support}"
877
878 ./tools/gyp/gyp $GYP_OPTIONS src/tizen-wrt.gyp
879
880 ninja -C out/Default %{?_smp_mflags}
881 pushd out
882 mv Default bin_wearable
883 %if "%{?profile}" == "wearable"
884 ln -sf bin_wearable Default
885 %endif
886 popd
887
888 # wearable-extension-emulator
889 %ifarch %{ix86} x86_64
890
891 %define tizen_wearable_feature_bluetooth_support             0
892
893 # MediayKey API is optional in Tizen Wearable Profile.
894 # tizen.org/feature/network.bluetooth.audio.media is required for MediayKey API
895 %define tizen_wearable_feature_media_key_support             0
896
897 #- telephony related APIs
898 # CallHistory API is optional in Tizen Wearable Profile.
899 # NetworkBearerSelection API is optional in Tizen Wearable Profile.
900 %define tizen_wearable_feature_se_support                    0
901 %define tizen_wearable_feature_telephony_support             1
902 %define tizen_wearable_feature_callhistory_support           1
903 %define tizen_wearable_feature_nbs_support                   1
904 %define tizen_wearable_feature_sensor_support                1
905
906 GYP_OPTIONS="--depth=. -Dtizen=1 -Dextension_build_type=Debug -Dextension_host_os=wearable -Dprivilege_engine=%{tizen_wearable_privilege_engine}"
907 GYP_OPTIONS="$GYP_OPTIONS -Ddisplay_type=%{display_type}"
908 GYP_OPTIONS="$GYP_OPTIONS -Dcrosswalk_extensions_path=%{crosswalk_extensions_path}"
909
910 # feature flags
911 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_account_support=%{?tizen_wearable_feature_account_support}"
912 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_alarm_support=%{?tizen_wearable_feature_alarm_support}"
913 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_app_control_settings_support=%{?tizen_wearable_feature_app_control_settings_support}"
914 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_application_support=%{?tizen_wearable_feature_application_support}"
915 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_archive_support=%{?tizen_wearable_feature_archive_support}"
916 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_badge_support=%{?tizen_wearable_feature_badge_support}"
917 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_bluetooth_support=%{?tizen_wearable_feature_bluetooth_support}"
918 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_bookmark_support=%{?tizen_wearable_feature_bookmark_support}"
919 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_calendar_support=%{?tizen_wearable_feature_calendar_support}"
920 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_callhistory_support=%{?tizen_wearable_feature_callhistory_support}"
921 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_contact_support=%{?tizen_wearable_feature_contact_support}"
922 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_content_support=%{?tizen_wearable_feature_content_support}"
923 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_datacontrol_support=%{?tizen_wearable_feature_datacontrol_support}"
924 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_datasync_support=%{?tizen_wearable_feature_datasync_support}"
925 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_download_support=%{?tizen_wearable_feature_download_support}"
926 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_exif_support=%{?tizen_wearable_feature_exif_support}"
927 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_feedback_support=%{?tizen_wearable_feature_feedback_support}"
928 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_filesystem_support=%{?tizen_wearable_feature_filesystem_support}"
929 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_fm_radio_support=%{?tizen_wearable_feature_fm_radio_support}"
930 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_ham_support=%{?tizen_wearable_feature_ham_support}"
931 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_iotcon_support=%{?tizen_wearable_feature_iotcon_support}"
932 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_location_batch=%{?tizen_wearable_feature_location_batch}"
933 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_key_manager_support=%{?tizen_wearable_feature_key_manager_support}"
934 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_media_controller_support=%{?tizen_wearable_feature_media_controller_support}"
935 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_media_key_support=%{?tizen_wearable_feature_media_key_support}"
936 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_message_port_support=%{?tizen_wearable_feature_message_port_support}"
937 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_messaging_support=%{?tizen_wearable_feature_messaging_support}"
938 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_nbs_support=%{?tizen_wearable_feature_nbs_support}"
939 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_nfc_emulation_support=%{?tizen_wearable_feature_nfc_emulation_support}"
940 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_nfc_support=%{?tizen_wearable_feature_nfc_support}"
941 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_notification_support=%{?tizen_wearable_feature_notification_support}"
942 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_package_support=%{?tizen_wearable_feature_package_support}"
943 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_player_util_support=%{?tizen_wearable_feature_player_util_support}"
944 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_power_support=%{?tizen_wearable_feature_power_support}"
945 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_preference_support=%{?tizen_wearable_feature_preference_support}"
946 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_push_support=%{?tizen_wearable_feature_push_support}"
947 #GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_sap_support=%{?tizen_wearable_feature_sap_support}"
948 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_sensor_support=%{?tizen_wearable_feature_sensor_support}"
949 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_se_support=%{?tizen_wearable_feature_se_support}"
950 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_sound_support=%{?tizen_wearable_feature_sound_support}"
951 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_system_info_support=%{?tizen_wearable_feature_system_info_support}"
952 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_system_setting_support=%{?tizen_wearable_feature_system_setting_support}"
953 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_telephony_support=%{?tizen_wearable_feature_telephony_support}"
954 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_time_support=%{?tizen_wearable_feature_time_support}"
955 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_inputdevice_support=%{?tizen_wearable_feature_inputdevice_support}"
956 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_web_setting_support=%{?tizen_wearable_feature_web_setting_support}"
957 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_widget_service_support=%{?tizen_wearable_feature_widget_service_support}"
958 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_wi_fi_support=%{?tizen_wearable_feature_wi_fi_support}"
959 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_tvinputdevice_support=%{?tizen_wearable_feature_tvinputdevice_support}"
960 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_voicecontrol_support=%{?tizen_wearable_feature_voicecontrol_support}"
961 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_ppm_support=%{?tizen_wearable_feature_ppm_support}"
962
963 ./tools/gyp/gyp $GYP_OPTIONS src/tizen-wrt.gyp
964
965 ninja -C out/Default %{?_smp_mflags}
966 pushd out
967 mv Default bin_wearable_emulator
968 %if "%{?profile}" == "wearable"
969 ln -sf bin_wearable_emulator Default
970 %endif
971 popd
972 %endif # wearable-extension-emulator
973 %endif # WEARABLE
974
975 %if "%{?unified_build}" == "1" || "%{?profile}" == "tv"
976 # TV
977 GYP_OPTIONS="--depth=. -Dtizen=1 -Dextension_build_type=Debug -Dextension_host_os=tv -Dprivilege_engine=%{tizen_tv_privilege_engine}"
978 GYP_OPTIONS="$GYP_OPTIONS -Ddisplay_type=%{display_type}"
979 GYP_OPTIONS="$GYP_OPTIONS -Dcrosswalk_extensions_path=%{crosswalk_extensions_path}"
980
981 # feature flags
982 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_account_support=%{?tizen_tv_feature_account_support}"
983 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_alarm_support=%{?tizen_tv_feature_alarm_support}"
984 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_app_control_settings_support=%{?tizen_tv_feature_app_control_settings_support}"
985 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_application_support=%{?tizen_tv_feature_application_support}"
986 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_archive_support=%{?tizen_tv_feature_archive_support}"
987 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_badge_support=%{?tizen_tv_feature_badge_support}"
988 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_bluetooth_support=%{?tizen_tv_feature_bluetooth_support}"
989 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_bookmark_support=%{?tizen_tv_feature_bookmark_support}"
990 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_calendar_support=%{?tizen_tv_feature_calendar_support}"
991 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_callhistory_support=%{?tizen_tv_feature_callhistory_support}"
992 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_contact_support=%{?tizen_tv_feature_contact_support}"
993 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_content_support=%{?tizen_tv_feature_content_support}"
994 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_datacontrol_support=%{?tizen_tv_feature_datacontrol_support}"
995 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_datasync_support=%{?tizen_tv_feature_datasync_support}"
996 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_download_support=%{?tizen_tv_feature_download_support}"
997 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_exif_support=%{?tizen_tv_feature_exif_support}"
998 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_feedback_support=%{?tizen_tv_feature_feedback_support}"
999 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_filesystem_support=%{?tizen_tv_feature_filesystem_support}"
1000 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_fm_radio_support=%{?tizen_tv_feature_fm_radio_support}"
1001 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_ham_support=%{?tizen_tv_feature_ham_support}"
1002 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_iotcon_support=%{?tizen_tv_feature_iotcon_support}"
1003 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_location_batch=%{?tizen_tv_feature_location_batch}"
1004 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_key_manager_support=%{?tizen_tv_feature_key_manager_support}"
1005 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_media_controller_support=%{?tizen_tv_feature_media_controller_support}"
1006 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_media_key_support=%{?tizen_tv_feature_media_key_support}"
1007 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_message_port_support=%{?tizen_tv_feature_message_port_support}"
1008 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_messaging_support=%{?tizen_tv_feature_messaging_support}"
1009 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_nbs_support=%{?tizen_tv_feature_nbs_support}"
1010 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_nfc_emulation_support=%{?tizen_tv_feature_nfc_emulation_support}"
1011 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_nfc_support=%{?tizen_tv_feature_nfc_support}"
1012 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_notification_support=%{?tizen_tv_feature_notification_support}"
1013 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_package_support=%{?tizen_tv_feature_package_support}"
1014 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_player_util_support=%{?tizen_tv_feature_player_util_support}"
1015 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_power_support=%{?tizen_tv_feature_power_support}"
1016 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_preference_support=%{?tizen_tv_feature_preference_support}"
1017 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_push_support=%{?tizen_tv_feature_push_support}"
1018 #GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_sap_support=%{?tizen_tv_feature_sap_support}"
1019 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_sensor_support=%{?tizen_tv_feature_sensor_support}"
1020 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_se_support=%{?tizen_tv_feature_se_support}"
1021 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_sound_support=%{?tizen_tv_feature_sound_support}"
1022 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_system_info_support=%{?tizen_tv_feature_system_info_support}"
1023 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_system_setting_support=%{?tizen_tv_feature_system_setting_support}"
1024 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_telephony_support=%{?tizen_tv_feature_telephony_support}"
1025 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_time_support=%{?tizen_tv_feature_time_support}"
1026 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_inputdevice_support=%{?tizen_tv_feature_inputdevice_support}"
1027 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_web_setting_support=%{?tizen_tv_feature_web_setting_support}"
1028 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_widget_service_support=%{?tizen_tv_feature_widget_service_support}"
1029 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_wi_fi_support=%{?tizen_tv_feature_wi_fi_support}"
1030 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_tvinputdevice_support=%{?tizen_tv_feature_tvinputdevice_support}"
1031 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_voicecontrol_support=%{?tizen_tv_feature_voicecontrol_support}"
1032 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_ppm_support=%{?tizen_tv_feature_ppm_support}"
1033
1034 ./tools/gyp/gyp $GYP_OPTIONS src/tizen-wrt.gyp
1035
1036 ninja -C out/Default %{?_smp_mflags}
1037 pushd out
1038 mv Default bin_tv
1039 %if "%{?profile}" == "tv"
1040 ln -sf bin_tv Default
1041 %endif
1042 popd
1043
1044 %endif # TV
1045
1046 %if "%{?unified_build}" == "1" || "%{?profile}" == "common" || "%{?profile}" == "ivi"
1047
1048 # UNIFIED / COMMON or IVI
1049 GYP_OPTIONS="--depth=. -Dtizen=1 -Dextension_build_type=Debug -Dextension_host_os=common -Dprivilege_engine=%{tizen_common_privilege_engine}"
1050
1051 GYP_OPTIONS="$GYP_OPTIONS -Ddisplay_type=%{display_type}"
1052 GYP_OPTIONS="$GYP_OPTIONS -Dcrosswalk_extensions_path=%{crosswalk_extensions_path}"
1053
1054 # feature flags
1055 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_account_support=%{?tizen_common_feature_account_support}"
1056 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_alarm_support=%{?tizen_common_feature_alarm_support}"
1057 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_app_control_settings_support=%{?tizen_common_feature_app_control_settings_support}"
1058 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_application_support=%{?tizen_common_feature_application_support}"
1059 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_archive_support=%{?tizen_common_feature_archive_support}"
1060 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_badge_support=%{?tizen_common_feature_badge_support}"
1061 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_bluetooth_support=%{?tizen_common_feature_bluetooth_support}"
1062 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_bookmark_support=%{?tizen_common_feature_bookmark_support}"
1063 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_calendar_support=%{?tizen_common_feature_calendar_support}"
1064 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_callhistory_support=%{?tizen_common_feature_callhistory_support}"
1065 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_contact_support=%{?tizen_common_feature_contact_support}"
1066 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_content_support=%{?tizen_common_feature_content_support}"
1067 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_datacontrol_support=%{?tizen_common_feature_datacontrol_support}"
1068 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_datasync_support=%{?tizen_common_feature_datasync_support}"
1069 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_download_support=%{?tizen_common_feature_download_support}"
1070 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_exif_support=%{?tizen_common_feature_exif_support}"
1071 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_feedback_support=%{?tizen_common_feature_feedback_support}"
1072 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_filesystem_support=%{?tizen_common_feature_filesystem_support}"
1073 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_fm_radio_support=%{?tizen_common_feature_fm_radio_support}"
1074 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_ham_support=%{?tizen_common_feature_ham_support}"
1075 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_iotcon_support=%{?tizen_common_feature_iotcon_support}"
1076 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_location_batch=%{?tizen_common_feature_location_batch}"
1077 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_key_manager_support=%{?tizen_common_feature_key_manager_support}"
1078 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_media_controller_support=%{?tizen_common_feature_media_controller_support}"
1079 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_media_key_support=%{?tizen_common_feature_media_key_support}"
1080 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_message_port_support=%{?tizen_common_feature_message_port_support}"
1081 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_messaging_support=%{?tizen_common_feature_messaging_support}"
1082 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_nbs_support=%{?tizen_common_feature_nbs_support}"
1083 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_nfc_emulation_support=%{?tizen_common_feature_nfc_emulation_support}"
1084 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_nfc_support=%{?tizen_common_feature_nfc_support}"
1085 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_notification_support=%{?tizen_common_feature_notification_support}"
1086 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_package_support=%{?tizen_common_feature_package_support}"
1087 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_player_util_support=%{?tizen_common_feature_player_util_support}"
1088 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_power_support=%{?tizen_common_feature_power_support}"
1089 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_preference_support=%{?tizen_common_feature_preference_support}"
1090 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_push_support=%{?tizen_common_feature_push_support}"
1091 #GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_sap_support=%{?tizen_common_feature_sap_support}"
1092 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_sensor_support=%{?tizen_common_feature_sensor_support}"
1093 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_se_support=%{?tizen_common_feature_se_support}"
1094 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_sound_support=%{?tizen_common_feature_sound_support}"
1095 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_system_info_support=%{?tizen_common_feature_system_info_support}"
1096 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_system_setting_support=%{?tizen_common_feature_system_setting_support}"
1097 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_telephony_support=%{?tizen_common_feature_telephony_support}"
1098 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_time_support=%{?tizen_common_feature_time_support}"
1099 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_inputdevice_support=%{?tizen_common_feature_inputdevice_support}"
1100 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_web_setting_support=%{?tizen_common_feature_web_setting_support}"
1101 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_widget_service_support=%{?tizen_common_feature_widget_service_support}"
1102 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_wi_fi_support=%{?tizen_common_feature_wi_fi_support}"
1103 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_tvinputdevice_support=%{?tizen_common_feature_tvinputdevice_support}"
1104 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_voicecontrol_support=%{?tizen_common_feature_voicecontrol_support}"
1105 GYP_OPTIONS="$GYP_OPTIONS -Dtizen_feature_ppm_support=%{?tizen_common_feature_ppm_support}"
1106
1107 ./tools/gyp/gyp $GYP_OPTIONS src/tizen-wrt.gyp
1108
1109 %if "%{?unified_build}" == "1"
1110 # UNIFIED
1111 ninja -C out/Default %{?_smp_mflags}
1112 pushd out
1113 mv Default bin_common
1114 ln -sf bin_common Default
1115
1116 # IVI does not have independent configurations, yet.
1117 # Copying the whole result in order to support ivi subpacakge
1118 cp -R bin_common bin_ivi
1119
1120 popd
1121 %else # UNIFIED
1122 # COMMON or IVI
1123 ninja -C out/Default %{?_smp_mflags}
1124 pushd out
1125 mv Default bin_%{?profile}
1126 ln -sf bin_%{?profile} Default
1127 popd
1128 %endif # COMMON or IVI
1129 %endif # UNIFIED / COMMON or IVI
1130
1131 %install
1132
1133 # Extensions.
1134 mkdir -p %{buildroot}%{crosswalk_extensions_path}
1135
1136 %if "%{?unified_build}" == "1" || "%{?profile}" == "common"
1137 mkdir -p %{buildroot}%{crosswalk_extensions_path}/common
1138 install -p -m 644 out/bin_common/libtizen*.so %{buildroot}%{crosswalk_extensions_path}/common
1139 # execute desc_gentool
1140 LD_LIBRARY_PATH=$LD_LIBRARY_PATH:%{buildroot}%{crosswalk_extensions_path}/common out/Default/desc_gentool \
1141         %{crosswalk_extensions_path}/common \
1142         %{buildroot}%{crosswalk_extensions_path}/common > plugins.json
1143
1144 # temporary plugins description for lazy loading
1145 install -p -m 644 plugins.json %{buildroot}%{crosswalk_extensions_path}/common/plugins.json
1146 %endif
1147
1148 %if "%{?unified_build}" == "1" || "%{?profile}" == "mobile"
1149 mkdir -p %{buildroot}%{crosswalk_extensions_path}/mobile
1150 install -p -m 644 out/bin_mobile/libtizen*.so %{buildroot}%{crosswalk_extensions_path}/mobile
1151 # execute desc_gentool
1152 LD_LIBRARY_PATH=$LD_LIBRARY_PATH:%{buildroot}%{crosswalk_extensions_path}/mobile out/Default/desc_gentool \
1153         %{crosswalk_extensions_path}/mobile \
1154         %{buildroot}%{crosswalk_extensions_path}/mobile > plugins.json
1155
1156 # temporary plugins description for lazy loading
1157 install -p -m 644 plugins.json %{buildroot}%{crosswalk_extensions_path}/mobile/plugins.json
1158
1159 # mobile-extension-emulator
1160 %ifarch %{ix86} x86_64
1161 mkdir -p %{buildroot}%{crosswalk_extensions_path}/mobile_emulator
1162 install -p -m 644 out/bin_mobile_emulator/libtizen*.so %{buildroot}%{crosswalk_extensions_path}/mobile_emulator
1163 # execute desc_gentool
1164 LD_LIBRARY_PATH=$LD_LIBRARY_PATH:%{buildroot}%{crosswalk_extensions_path}/mobile_emulator out/Default/desc_gentool \
1165         %{crosswalk_extensions_path}/mobile_emulator \
1166         %{buildroot}%{crosswalk_extensions_path}/mobile_emulator > plugins.json
1167
1168 # temporary plugins description for lazy loading
1169 install -p -m 644 plugins.json %{buildroot}%{crosswalk_extensions_path}/mobile_emulator/plugins.json
1170 %endif // mobile-extension-emulator
1171
1172 %endif // mobile
1173
1174 %if "%{?unified_build}" == "1" || "%{?profile}" == "wearable"
1175 mkdir -p %{buildroot}%{crosswalk_extensions_path}/wearable
1176 install -p -m 644 out/bin_wearable/libtizen*.so %{buildroot}%{crosswalk_extensions_path}/wearable
1177 # execute desc_gentool
1178 LD_LIBRARY_PATH=$LD_LIBRARY_PATH:%{buildroot}%{crosswalk_extensions_path}/wearable out/Default/desc_gentool \
1179         %{crosswalk_extensions_path}/wearable \
1180         %{buildroot}%{crosswalk_extensions_path}/wearable > plugins.json
1181
1182 # temporary plugins description for lazy loading
1183 install -p -m 644 plugins.json %{buildroot}%{crosswalk_extensions_path}/wearable/plugins.json
1184
1185 # wearable-extension-emulator
1186 %ifarch %{ix86} x86_64
1187 mkdir -p %{buildroot}%{crosswalk_extensions_path}/wearable_emulator
1188 install -p -m 644 out/bin_wearable_emulator/libtizen*.so %{buildroot}%{crosswalk_extensions_path}/wearable_emulator
1189 # execute desc_gentool
1190 LD_LIBRARY_PATH=$LD_LIBRARY_PATH:%{buildroot}%{crosswalk_extensions_path}/wearable_emulator out/Default/desc_gentool \
1191         %{crosswalk_extensions_path}/wearable_emulator \
1192         %{buildroot}%{crosswalk_extensions_path}/wearable_emulator > plugins.json
1193
1194 # temporary plugins description for lazy loading
1195 install -p -m 644 plugins.json %{buildroot}%{crosswalk_extensions_path}/wearable_emulator/plugins.json
1196 %endif // wearable-extension-emulator
1197
1198 %endif // wearable
1199
1200 %if "%{?unified_build}" == "1" || "%{?profile}" == "tv"
1201 mkdir -p %{buildroot}%{crosswalk_extensions_path}/tv
1202 install -p -m 644 out/bin_tv/libtizen*.so %{buildroot}%{crosswalk_extensions_path}/tv
1203 # execute desc_gentool
1204 LD_LIBRARY_PATH=$LD_LIBRARY_PATH:%{buildroot}%{crosswalk_extensions_path}/tv out/Default/desc_gentool \
1205         %{crosswalk_extensions_path}/tv \
1206         %{buildroot}%{crosswalk_extensions_path}/tv > plugins.json
1207
1208 # temporary plugins description for lazy loading
1209 install -p -m 644 plugins.json %{buildroot}%{crosswalk_extensions_path}/tv/plugins.json
1210 %endif
1211
1212 %if "%{?unified_build}" == "1" || "%{?profile}" == "ivi"
1213 mkdir -p %{buildroot}%{crosswalk_extensions_path}/ivi
1214 install -p -m 644 out/bin_ivi/libtizen*.so %{buildroot}%{crosswalk_extensions_path}/ivi
1215 # execute desc_gentool
1216 LD_LIBRARY_PATH=$LD_LIBRARY_PATH:%{buildroot}%{crosswalk_extensions_path}/ivi out/Default/desc_gentool \
1217         %{crosswalk_extensions_path}/ivi \
1218         %{buildroot}%{crosswalk_extensions_path}/ivi > plugins.json
1219
1220 # temporary plugins description for lazy loading
1221 install -p -m 644 plugins.json %{buildroot}%{crosswalk_extensions_path}/ivi/plugins.json
1222 %endif
1223
1224 # devel files
1225 mkdir -p %{buildroot}%{_libdir}/pkgconfig
1226 sed -i s,__LIB_DIR__,%{crosswalk_extensions_path},g packaging/%{name}.pc.in
1227 sed -i s,__INCLUDE_DIR__,%{_includedir}/%{name}/src,g packaging/%{name}.pc.in
1228 cp packaging/%{name}.pc.in %{buildroot}%{_libdir}/pkgconfig/%{name}.pc
1229 mkdir -p %{buildroot}%{_includedir}/%{name}/src/common
1230 mkdir -p %{buildroot}%{_includedir}/%{name}/src/common/filesystem
1231 install -p -m 644 src/common/*.h %{buildroot}%{_includedir}/%{name}/src/common
1232 install -p -m 644 src/common/filesystem/*.h %{buildroot}%{_includedir}/%{name}/src/common/filesystem
1233 install -p -m 644 src/common/*.gypi %{buildroot}%{_includedir}/%{name}/src/common
1234 install -p -m 644 src/common/XW_Extension.cc %{buildroot}%{_includedir}/%{name}/src/common
1235 mkdir -p %{buildroot}%{_includedir}/%{name}/tools
1236 install -p -m 644 tools/generate_api.py %{buildroot}%{_includedir}/%{name}/tools
1237 install -p -m 644 tools/mergejs.py %{buildroot}%{_includedir}/%{name}/tools
1238 install -p -m 644 tools/js_minimize.py %{buildroot}%{_includedir}/%{name}/tools
1239 cp -a tools/gyp %{buildroot}%{_includedir}/%{name}/tools/gyp
1240 cp -a tools/slimit %{buildroot}%{_includedir}/%{name}/tools/slimit
1241 cp -a out/Default/desc_gentool %{buildroot}%{_includedir}/%{name}/tools/desc_gentool
1242
1243 %files
1244 %manifest webapi-plugins.manifest
1245 %license LICENSE
1246
1247 %if "%{?unified_build}" == "1" || "%{?profile}" == "common"
1248 %post profile_common
1249 ln -sf %{crosswalk_extensions_path}/common/* %{crosswalk_extensions_path}
1250 %preun profile_common
1251 # This is an un-installation.
1252 if [ "$1" == "0" ]; then
1253   rm %{crosswalk_extensions_path}/libtizen*.so
1254   rm %{crosswalk_extensions_path}/plugins.json
1255 fi
1256 %files profile_common
1257 %dir %{crosswalk_extensions_path}/common/
1258 %{crosswalk_extensions_path}/common/libtizen*.so
1259 %{crosswalk_extensions_path}/common/plugins.json
1260 %manifest webapi-plugins.manifest
1261 %endif
1262
1263 %if "%{?unified_build}" == "1" || "%{?profile}" == "mobile"
1264 %post profile_mobile
1265 ln -sf %{crosswalk_extensions_path}/mobile/* %{crosswalk_extensions_path}
1266 %preun profile_mobile
1267 # This is an un-installation.
1268 if [ "$1" == "0" ]; then
1269   if [ -n "$(ls %{crosswalk_extensions_path}/ | grep libtizen*.so)" ]; then
1270     rm %{crosswalk_extensions_path}/libtizen*.so
1271   fi
1272   if [ -f %{crosswalk_extensions_path}/plugins.json ]; then
1273     rm %{crosswalk_extensions_path}/plugins.json
1274   fi
1275 fi
1276 %files profile_mobile
1277 %dir %{crosswalk_extensions_path}/mobile/
1278 %{crosswalk_extensions_path}/mobile/libtizen*.so
1279 %{crosswalk_extensions_path}/mobile/plugins.json
1280 %manifest webapi-plugins.manifest
1281
1282 # mobile-extension-emulator
1283 %ifarch %{ix86} x86_64
1284 %post mobile-extension-emulator
1285 ln -sf %{crosswalk_extensions_path}/mobile_emulator/* %{crosswalk_extensions_path}
1286 %preun mobile-extension-emulator
1287 # This is an un-installation.
1288 if [ "$1" == "0" ]; then
1289   if [ -n "$(ls %{crosswalk_extensions_path}/ | grep libtizen*.so)" ]; then
1290     rm %{crosswalk_extensions_path}/libtizen*.so
1291   fi
1292   if [ -f %{crosswalk_extensions_path}/plugins.json ]; then
1293     rm %{crosswalk_extensions_path}/plugins.json
1294   fi
1295 fi
1296 %files mobile-extension-emulator
1297 %dir %{crosswalk_extensions_path}/mobile_emulator/
1298 %{crosswalk_extensions_path}/mobile_emulator/libtizen*.so
1299 %{crosswalk_extensions_path}/mobile_emulator/plugins.json
1300 %manifest webapi-plugins.manifest
1301 %endif // mobile-extension-emulator
1302 %endif // mobile
1303
1304 %if "%{?unified_build}" == "1" || "%{?profile}" == "wearable"
1305 %post profile_wearable
1306 ln -sf %{crosswalk_extensions_path}/wearable/* %{crosswalk_extensions_path}
1307 %preun profile_wearable
1308 # This is an un-installation.
1309 if [ "$1" == "0" ]; then
1310   if [ -n "$(ls %{crosswalk_extensions_path}/ | grep libtizen*.so)" ]; then
1311     rm %{crosswalk_extensions_path}/libtizen*.so
1312   fi
1313   if [ -f %{crosswalk_extensions_path}/plugins.json ]; then
1314     rm %{crosswalk_extensions_path}/plugins.json
1315   fi
1316 fi
1317 %files profile_wearable
1318 %dir %{crosswalk_extensions_path}/wearable/
1319 %{crosswalk_extensions_path}/wearable/libtizen*.so
1320 %{crosswalk_extensions_path}/wearable/plugins.json
1321 %manifest webapi-plugins.manifest
1322
1323 # wearable-extension-emulator
1324 %ifarch %{ix86} x86_64
1325 %post wearable-extension-emulator
1326 ln -sf %{crosswalk_extensions_path}/wearable_emulator/* %{crosswalk_extensions_path}
1327 %preun wearable-extension-emulator
1328 # This is an un-installation.
1329 if [ "$1" == "0" ]; then
1330   if [ -n "$(ls %{crosswalk_extensions_path}/ | grep libtizen*.so)" ]; then
1331     rm %{crosswalk_extensions_path}/libtizen*.so
1332   fi
1333   if [ -f %{crosswalk_extensions_path}/plugins.json ]; then
1334     rm %{crosswalk_extensions_path}/plugins.json
1335   fi
1336 fi
1337 %files wearable-extension-emulator
1338 %dir %{crosswalk_extensions_path}/wearable_emulator/
1339 %{crosswalk_extensions_path}/wearable_emulator/libtizen*.so
1340 %{crosswalk_extensions_path}/wearable_emulator/plugins.json
1341 %manifest webapi-plugins.manifest
1342 %endif // wearable-extension-emulator
1343 %endif // wearable
1344
1345 %if "%{?unified_build}" == "1" || "%{?profile}" == "tv"
1346 %post profile_tv
1347 ln -sf %{crosswalk_extensions_path}/tv/* %{crosswalk_extensions_path}
1348 %preun profile_tv
1349 # This is an un-installation.
1350 if [ "$1" == "0" ]; then
1351   rm %{crosswalk_extensions_path}/libtizen*.so
1352   rm %{crosswalk_extensions_path}/plugins.json
1353 fi
1354 %files profile_tv
1355 %dir %{crosswalk_extensions_path}/tv/
1356 %{crosswalk_extensions_path}/tv/libtizen*.so
1357 %{crosswalk_extensions_path}/tv/plugins.json
1358 %manifest webapi-plugins.manifest
1359 %endif
1360
1361 %if "%{?unified_build}" == "1" || "%{?profile}" == "ivi"
1362 %post profile_ivi
1363 ln -sf %{crosswalk_extensions_path}/ivi/* %{crosswalk_extensions_path}
1364 %preun profile_ivi
1365 # This is an un-installation.
1366 if [ "$1" == "0" ]; then
1367   rm %{crosswalk_extensions_path}/libtizen*.so
1368   rm %{crosswalk_extensions_path}/plugins.json
1369 fi
1370 %files profile_ivi
1371 %dir %{crosswalk_extensions_path}/ivi/
1372 %{crosswalk_extensions_path}/ivi/libtizen*.so
1373 %{crosswalk_extensions_path}/ivi/plugins.json
1374 %manifest webapi-plugins.manifest
1375 %endif
1376
1377 %files devel
1378 %{_includedir}/*
1379 %{_libdir}/pkgconfig/*