e14c339ef5681e838d9c228bd0e5b2b4a442b955
[platform/framework/web/crosswalk.git] / src / native_client / src / shared / gio / gio.gyp
1 # Copyright (c) 2011 The Chromium Authors. 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   'includes': [
7     '../../../build/common.gypi',
8   ],
9   'variables': {
10     'common_sources': [
11       'gio.c',
12       'gio_mem.c',
13       'gprintf.c',
14     ],
15   },
16   'targets': [
17     {
18       'target_name': 'gio',
19       'type': 'static_library',
20       # tls_edit relies on gio which is always built for the host platform.
21       'toolsets': ['host', 'target'],
22       'sources': [
23         '<@(common_sources)',
24       ],
25     },
26     {
27       'target_name': 'gio_lib',
28       'type': 'none',
29       'variables': {
30         'nlib_target': 'libgio.a',
31         'nso_target': 'libgio.so',
32         'build_glibc': 1,
33         'build_newlib': 1,
34         'build_pnacl_newlib': 1,
35         'build_irt': 1,
36         'sources': ['<@(common_sources)']
37       },
38       'dependencies': [
39         '<(DEPTH)/native_client/tools.gyp:prep_toolchain',
40       ],
41     },
42   ],
43   'conditions': [
44     ['OS=="win" and target_arch=="ia32"', {
45       'targets': [
46         {
47           'target_name': 'gio64',
48           'type': 'static_library',
49             'sources': [
50               '<@(common_sources)',
51             ],
52           'variables': {
53             'win_target': 'x64',
54           },
55         }
56       ],
57     }],
58   ],
59 }