bac9cffb78e387307a42aaa78d7ea961e5749bac
[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_geolocation',
33           'type': 'none',
34           'variables': {
35             'packages': [
36               'capi-location-manager',
37               'vconf',
38             ],
39           },
40           'direct_dependent_settings': {
41             'cflags': [
42               '<!@(pkg-config --cflags <@(packages))',
43             ],
44           },
45           'link_settings': {
46             'ldflags': [
47               '<!@(pkg-config --libs-only-L --libs-only-other <@(packages))',
48             ],
49             'libraries': [
50               '<!@(pkg-config --libs-only-l <@(packages))',
51             ],
52           },
53         },
54         {
55           'target_name': 'tizen',
56           'type': 'none',
57           'variables': {
58             'packages': [
59               'libtzplatform-config',
60               'ail',
61               'dlog',
62               'nss',
63               'nspr',
64               'pkgmgr-parser',
65               'pkgmgr-info',
66               'pkgmgr-installer',
67               'pkgmgr',
68               'secure-storage',
69               'vconf',
70             ],
71           },
72           'direct_dependent_settings': {
73             'cflags': [
74               '<!@(pkg-config --cflags <@(packages))',
75             ],
76           },
77           'link_settings': {
78             'ldflags': [
79               '<!@(pkg-config --libs-only-L --libs-only-other <@(packages))',
80             ],
81             'libraries': [
82               '<!@(pkg-config --libs-only-l <@(packages))',
83             ],
84           },
85         },
86         {
87           'target_name': 'tizen_sensor',
88           'type': 'none',
89           'variables': {
90             'packages': [
91               'sensor',
92               'vconf',
93             ],
94           },
95           'direct_dependent_settings': {
96             'cflags': [
97               '<!@(pkg-config --cflags <@(packages))',
98             ],
99           },
100           'link_settings': {
101             'ldflags': [
102               '<!@(pkg-config --libs-only-L --libs-only-other <@(packages))',
103             ],
104             'libraries': [
105               '<!@(pkg-config --libs-only-l <@(packages))',
106             ],
107           },
108         },
109         {
110           'target_name': 'tizen_sysapps',
111           'type': 'none',
112           'variables': {
113             'packages': [
114               'vconf',
115             ],
116           },
117           'direct_dependent_settings': {
118             'cflags': [
119               '<!@(pkg-config --cflags <@(packages))',
120             ],
121           },
122           'link_settings': {
123             'ldflags': [
124               '<!@(pkg-config --libs-only-L --libs-only-other <@(packages))',
125             ],
126             'libraries': [
127               '<!@(pkg-config --libs-only-l <@(packages))',
128             ],
129           },
130         },
131         {
132           'target_name': 'tizen_appcore_common',
133           'type': 'none',
134           'variables': {
135             'packages': [
136               'appcore-common',
137             ],
138           },
139           'direct_dependent_settings': {
140             'cflags': [
141               '<!@(pkg-config --cflags <@(packages))',
142             ],
143           },
144           'link_settings': {
145             'ldflags': [
146               '<!@(pkg-config --libs-only-L --libs-only-other <@(packages))',
147             ],
148             'libraries': [
149               '<!@(pkg-config --libs-only-l <@(packages))',
150             ],
151           },
152         },
153         {
154           'target_name': 'tizen_vibration',
155           'type': 'none',
156           'variables': {
157             'packages': [
158               'haptic',
159             ],
160           },
161           'direct_dependent_settings': {
162             'cflags': [
163               '<!@(pkg-config --cflags <@(packages))',
164             ],
165           },
166           'link_settings': {
167             'ldflags': [
168               '<!@(pkg-config --libs-only-L --libs-only-other <@(packages))',
169             ],
170             'libraries': [
171               '<!@(pkg-config --libs-only-l <@(packages))',
172             ],
173           },
174         },
175       ],  # targets
176     }],
177   ],  # conditions
178 }