Upstream version 11.39.258.0
[platform/framework/web/crosswalk.git] / src / xwalk / build / system.gyp
1 # Copyright (c) 2013 Intel Corporation. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
4
5 {
6   'targets' : [
7     {
8       'target_name': 'gio',
9       'type': 'none',
10       'variables': {
11         'glib_packages': 'glib-2.0 gio-unix-2.0',
12       },
13       'direct_dependent_settings': {
14         'cflags': [
15           '<!@(pkg-config --cflags <(glib_packages))',
16         ],
17       },
18       'link_settings': {
19         'ldflags': [
20           '<!@(pkg-config --libs-only-L --libs-only-other <(glib_packages))',
21         ],
22         'libraries': [
23           '<!@(pkg-config --libs-only-l <(glib_packages))',
24         ],
25       },
26     },
27   ],  # targets
28   'conditions': [
29     ['tizen==1', {
30       'targets': [
31         {
32           'target_name': 'tizen_tzplatform_config',
33           'type': 'none',
34           'variables': {
35             'packages': [
36               'libtzplatform-config',
37             ],
38           },
39           'direct_dependent_settings': {
40             'cflags': [
41               '<!@(pkg-config --cflags <@(packages))',
42             ],
43           },
44           'link_settings': {
45             'ldflags': [
46               '<!@(pkg-config --libs-only-L --libs-only-other <@(packages))',
47             ],
48             'libraries': [
49               '<!@(pkg-config --libs-only-l <@(packages))',
50             ],
51           },
52         },
53         {
54           'target_name': 'tizen_geolocation',
55           'type': 'none',
56           'variables': {
57             'packages': [
58               'capi-location-manager',
59               'vconf',
60             ],
61           },
62           'direct_dependent_settings': {
63             'cflags': [
64               '<!@(pkg-config --cflags <@(packages))',
65             ],
66           },
67           'link_settings': {
68             'ldflags': [
69               '<!@(pkg-config --libs-only-L --libs-only-other <@(packages))',
70             ],
71             'libraries': [
72               '<!@(pkg-config --libs-only-l <@(packages))',
73             ],
74           },
75         },
76         {
77           'target_name': 'tizen',
78           'type': 'none',
79           'variables': {
80             'packages': [
81               'ail',
82               'dlog',
83               'nss',
84               'nspr',
85               'pkgmgr-parser',
86               'pkgmgr-info',
87               'pkgmgr-installer',
88               'pkgmgr',
89               'secure-storage',
90               'vconf',
91             ],
92           },
93           'direct_dependent_settings': {
94             'cflags': [
95               '<!@(pkg-config --cflags <@(packages))',
96             ],
97           },
98           'link_settings': {
99             'ldflags': [
100               '<!@(pkg-config --libs-only-L --libs-only-other <@(packages))',
101             ],
102             'libraries': [
103               '<!@(pkg-config --libs-only-l <@(packages))',
104             ],
105           },
106         },
107         {
108           'target_name': 'tizen_sensor',
109           'type': 'none',
110           'variables': {
111             'packages': [
112               'sensor',
113               'vconf',
114             ],
115           },
116           'direct_dependent_settings': {
117             'cflags': [
118               '<!@(pkg-config --cflags <@(packages))',
119             ],
120           },
121           'link_settings': {
122             'ldflags': [
123               '<!@(pkg-config --libs-only-L --libs-only-other <@(packages))',
124             ],
125             'libraries': [
126               '<!@(pkg-config --libs-only-l <@(packages))',
127             ],
128           },
129         },
130         {
131           'target_name': 'tizen_sysapps',
132           'type': 'none',
133           'variables': {
134             'packages': [
135               'vconf',
136             ],
137           },
138           'direct_dependent_settings': {
139             'cflags': [
140               '<!@(pkg-config --cflags <@(packages))',
141             ],
142           },
143           'link_settings': {
144             'ldflags': [
145               '<!@(pkg-config --libs-only-L --libs-only-other <@(packages))',
146             ],
147             'libraries': [
148               '<!@(pkg-config --libs-only-l <@(packages))',
149             ],
150           },
151         },
152         {
153           'target_name': 'tizen_appcore_common',
154           'type': 'none',
155           'variables': {
156             'packages': [
157               'appcore-common',
158             ],
159           },
160           'direct_dependent_settings': {
161             'cflags': [
162               '<!@(pkg-config --cflags <@(packages))',
163             ],
164           },
165           'link_settings': {
166             'ldflags': [
167               '<!@(pkg-config --libs-only-L --libs-only-other <@(packages))',
168             ],
169             'libraries': [
170               '<!@(pkg-config --libs-only-l <@(packages))',
171             ],
172           },
173         },
174         {
175           'target_name': 'tizen_vibration',
176           'type': 'none',
177           'variables': {
178             'packages': [
179               'haptic',
180             ],
181           },
182           'direct_dependent_settings': {
183             'cflags': [
184               '<!@(pkg-config --cflags <@(packages))',
185             ],
186           },
187           'link_settings': {
188             'ldflags': [
189               '<!@(pkg-config --libs-only-L --libs-only-other <@(packages))',
190             ],
191             'libraries': [
192               '<!@(pkg-config --libs-only-l <@(packages))',
193             ],
194           },
195         },
196         {
197           'target_name': 'xmlsec',
198           'type': 'none',
199           'direct_dependent_settings': {
200             'cflags': [
201               '<!@(pkg-config --cflags xmlsec1)',
202             ],
203           },
204           'link_settings': {
205             'ldflags': [
206               '<!@(pkg-config --libs-only-L --libs-only-other xmlsec1)',
207             ],
208             'libraries': [
209               '<!@(pkg-config --libs-only-l xmlsec1)',
210             ],
211           },
212         }
213       ],  # targets
214     }],
215   ],  # conditions
216 }