Upstream version 11.39.266.0
[platform/framework/web/crosswalk.git] / src / native_client / src / trusted / validator / x86 / 32 / validator_x86_32.gyp
1 # Copyright (c) 2011 The Native Client 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 # Build the specific library dependencies for validating on x86-32
6 {
7   'includes': [
8     '../../../../../build/common.gypi',
9   ],
10   'target_defaults': {
11     'variables': {
12       'target_base': 'none',
13     },
14     'target_conditions': [
15       ['target_base=="ncvalidate_x86_32"', {
16         'sources': [
17           'ncvalidate.c',
18         ],
19         'cflags!': [
20           '-Wextra',
21           '-Wswitch-enum',
22           '-Wsign-compare'
23         ],
24         'defines': [ 'NACL_TRUSTED_BUT_NOT_TCB' ],
25         'xcode_settings': {
26           'WARNING_CFLAGS!': [
27             '-Wextra',
28             '-Wswitch-enum',
29             '-Wsign-compare'
30           ],
31         },
32       }],
33       ['target_base=="ncvalidate_verbose_x86_32"', {
34         'sources': [
35           'ncvalidate_verbose.c',
36         ],
37         'cflags!': [
38           '-Wextra',
39           '-Wswitch-enum',
40           '-Wsign-compare'
41         ],
42         'defines': [ 'NACL_TRUSTED_BUT_NOT_TCB' ],
43         'xcode_settings': {
44           'WARNING_CFLAGS!': [
45             '-Wextra',
46             '-Wswitch-enum',
47             '-Wsign-compare'
48           ],
49         },
50       }],
51     ],
52   },
53   'conditions': [
54     ['target_arch=="ia32"', {
55       'targets': [
56         # ----------------------------------------------------------------------
57         {
58           'target_name': 'ncvalidate_x86_32',
59           'type': 'static_library',
60           'variables': {
61             'target_base': 'ncvalidate_x86_32',
62           },
63           'dependencies': [
64             '<(DEPTH)/native_client/src/trusted/validator/x86/ncval_seg_sfi/ncval_seg_sfi.gyp:ncval_seg_sfi_x86_32',
65           ],
66           'hard_dependency': 1,
67         },
68         {
69           'target_name': 'ncvalidate_verbose_x86_32',
70           'type': 'static_library',
71           'variables': {
72             'target_base': 'ncvalidate_verbose_x86_32',
73           },
74           'dependencies': [
75             'ncvalidate_x86_32',
76             '<(DEPTH)/native_client/src/trusted/validator/x86/ncval_seg_sfi/ncval_seg_sfi.gyp:ncdis_seg_sfi_verbose_x86_32',
77           ],
78           'hard_dependency': 1,
79         },
80       ],
81     }],
82   ],
83 }
84