Merge pull request #319 from jimmy-huang/master
[platform/framework/web/tizen-extensions-crosswalk.git] / tizen-wrt.gyp
1 {
2   'includes':[
3     'common/common.gypi',
4   ],
5
6   'targets': [
7     {
8       'target_name': 'build_all_tizen_extensions',
9       'type': 'none',
10       'dependencies': [
11         'bluetooth/bluetooth.gyp:*',
12         'mediaserver/mediaserver.gyp:*',
13         'network_bearer_selection/network_bearer_selection.gyp:*',
14         'notification/notification.gyp:*',
15         'phone/phone.gyp:*',
16         'power/power.gyp:*',
17         'speech/speech.gyp:*',
18         'system_info/system_info.gyp:*',
19         'system_setting/system_setting.gyp:*',
20         'time/time.gyp:*',
21         'tizen/tizen.gyp:*',
22         'utils/utils.gyp:*',
23       ],
24       'conditions': [
25         [ 'tizen == 1', {
26           'dependencies': [
27             'application/application.gyp:*',
28             'bookmark/bookmark.gyp:*',
29             'content/content.gyp:*',
30             'download/download.gyp:*',
31             'filesystem/filesystem.gyp:*',
32             'messageport/messageport.gyp:*',
33           ],
34         }],
35         [ 'extension_host_os == "mobile"', {
36           'dependencies': [
37             'callhistory/callhistory.gyp:*',
38           ],
39         }],
40       ],
41     },
42     {
43       'target_name': 'generate_manifest',
44       'type': 'none',
45
46       'conditions': [
47         [ 'tizen == 1', {
48           'actions': [
49             {
50               'variables': {
51                 'generate_args': [
52                   '_examples_package',
53                   'crosswalk-examples',
54                   '/usr/bin/tizen-extensions-crosswalk-examples',
55                   'Crosswalk Examples',
56                 ],
57               },
58               'action_name': 'examples',
59               'inputs': [
60                 'tools/generate_manifest.py',
61                 'packaging/tizen-extensions-crosswalk.spec',
62                 'tizen-extensions-crosswalk.xml.in',
63               ],
64               'outputs': [
65                 'tizen-extensions-crosswalk-examples.xml',
66               ],
67               'action': [
68                 'python',
69                 '<@(_inputs)',
70                 '<@(generate_args)',
71                 '<@(_outputs)',
72               ],
73             },
74             {
75               'variables': {
76                 'generate_args': [
77                   '_bluetooth_demo_package',
78                   'crosswalk-bluetooth-demo',
79                   '/usr/bin/tizen-extensions-crosswalk-bluetooth-demo',
80                   'Crosswalk Bluetooth Demo',
81                 ],
82               },
83               'action_name': 'demo',
84               'inputs': [
85                 'tools/generate_manifest.py',
86                 'packaging/tizen-extensions-crosswalk.spec',
87                 'tizen-extensions-crosswalk.xml.in',
88               ],
89               'outputs': [
90                 'tizen-extensions-crosswalk-bluetooth-demo.xml',
91               ],
92               'action': [
93                 'python',
94                 '<@(_inputs)',
95                 '<@(generate_args)',
96                 '<@(_outputs)',
97               ],
98             },
99             {
100               'variables': {
101                 'generate_args': [
102                   '_system_info_demo_package',
103                   'crosswalk-system-info-demo',
104                   '/usr/bin/tizen-extensions-crosswalk-system-info-demo',
105                   'Crosswalk System Info Demo',
106                 ],
107               },
108               'action_name': 'system_info_demo',
109               'inputs': [
110                 'tools/generate_manifest.py',
111                 'packaging/tizen-extensions-crosswalk.spec',
112                 'tizen-extensions-crosswalk.xml.in',
113               ],
114               'outputs': [
115                 'tizen-extensions-crosswalk-system-info-demo.xml',
116               ],
117               'action': [
118                 'python',
119                 '<@(_inputs)',
120                 '<@(generate_args)',
121                 '<@(_outputs)',
122               ],
123             },
124           ],
125         }],
126       ],
127     },
128   ],
129 }