OLD | NEW |
| (Empty) |
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 decoding x86 instructions. | |
6 # Used to define a "full" decoder (used by ncdis). Currently used to decode | |
7 # instructions for the x86-64 validator. Future plans is to encorporate the | |
8 # decoder into the x86-32 validator. | |
9 { | |
10 'includes': [ | |
11 '../../../../../build/common.gypi', | |
12 ], | |
13 'target_defaults': { | |
14 'variables': { | |
15 'target_base': 'none', | |
16 }, | |
17 'target_conditions': [ | |
18 ['target_base=="nc_opcode_modeling"', { | |
19 'sources': ['ncopcode_desc.c'], | |
20 'cflags!': [ | |
21 '-Wextra', | |
22 '-Wswitch-enum', | |
23 '-Wsign-compare' | |
24 ], | |
25 'xcode_settings': { | |
26 'WARNING_CFLAGS!': [ | |
27 '-Wextra', | |
28 '-Wswitch-enum', | |
29 '-Wsign-compare' | |
30 ], | |
31 }, | |
32 }], | |
33 ['target_base=="nc_opcode_modeling_verbose"', { | |
34 'sources': ['ncopcode_desc_verbose.c'], | |
35 'cflags!': [ | |
36 '-Wextra', | |
37 '-Wswitch-enum', | |
38 '-Wsign-compare' | |
39 ], | |
40 'xcode_settings': { | |
41 'WARNING_CFLAGS!': [ | |
42 '-Wextra', | |
43 '-Wswitch-enum', | |
44 '-Wsign-compare' | |
45 ] | |
46 }, | |
47 }], | |
48 ['target_base=="nc_decoder"', { | |
49 'sources': [ | |
50 'nc_inst_iter.c', | |
51 'nc_inst_state.c', | |
52 'nc_inst_trans.c', | |
53 'ncop_exps.c', | |
54 ], | |
55 'cflags!': [ | |
56 '-Wextra', | |
57 '-Wswitch-enum', | |
58 '-Wsign-compare' | |
59 ], | |
60 'xcode_settings': { | |
61 'WARNING_CFLAGS!': [ | |
62 '-Wextra', | |
63 '-Wswitch-enum', | |
64 '-Wsign-compare' | |
65 ], | |
66 }, | |
67 }], | |
68 ], | |
69 }, | |
70 # ---------------------------------------------------------------------- | |
71 'conditions': [ | |
72 ['target_arch=="ia32"', { | |
73 'targets': [ | |
74 { | |
75 'target_name': 'nc_opcode_modeling_x86_32', | |
76 'type': 'static_library', | |
77 'hard_dependency': 1, | |
78 'variables': { | |
79 'target_base': 'nc_opcode_modeling', | |
80 }, | |
81 'dependencies': [ | |
82 '<(DEPTH)/native_client/src/trusted/validator/x86/validate_x86.gyp:n
cval_base_x86_32', | |
83 ], | |
84 }, { | |
85 'target_name': 'nc_opcode_modeling_verbose_x86_32', | |
86 'type': 'static_library', | |
87 'hard_dependency': 1, | |
88 'variables': { | |
89 'target_base': 'nc_opcode_modeling_verbose', | |
90 }, | |
91 'dependencies': [ | |
92 'nc_opcode_modeling_x86_32', | |
93 ], | |
94 }, { | |
95 'target_name': 'nc_decoder_x86_32', | |
96 'type': 'static_library', | |
97 'variables': { | |
98 'target_base': 'nc_decoder', | |
99 }, | |
100 'dependencies': [ | |
101 'nc_opcode_modeling_x86_32', | |
102 '<(DEPTH)/native_client/src/trusted/validator/x86/validate_x86.gyp:n
cval_base_x86_32', | |
103 ], | |
104 }], | |
105 }], | |
106 ['OS=="win" and target_arch=="ia32"', { | |
107 'targets': [ | |
108 { | |
109 'target_name': 'nc_opcode_modeling_x86_64', | |
110 'type': 'static_library', | |
111 'hard_dependency': 1, | |
112 'variables': { | |
113 'target_base': 'nc_opcode_modeling', | |
114 'win_target': 'x64', | |
115 }, | |
116 'dependencies': [ | |
117 '<(DEPTH)/native_client/src/trusted/validator/x86/validate_x86.gyp:n
cval_base_x86_64', | |
118 ], | |
119 }, { | |
120 'target_name': 'nc_opcode_modeling_verbose_x86_64', | |
121 'type': 'static_library', | |
122 'hard_dependency': 1, | |
123 'variables': { | |
124 'target_base': 'nc_opcode_modeling_verbose', | |
125 'win_target': 'x64', | |
126 }, | |
127 'dependencies': [ | |
128 'nc_opcode_modeling_x86_64', | |
129 ], | |
130 }, { | |
131 'target_name': 'nc_decoder_x86_64', | |
132 'type': 'static_library', | |
133 'variables': { | |
134 'target_base': 'nc_decoder', | |
135 'win_target': 'x64', | |
136 }, | |
137 'dependencies': [ | |
138 'nc_opcode_modeling_x86_64', | |
139 '<(DEPTH)/native_client/src/trusted/validator/x86/validate_x86.gyp:n
cval_base_x86_64', | |
140 ], | |
141 }], | |
142 }], | |
143 ['target_arch=="x64"', { | |
144 'targets': [ | |
145 { | |
146 'target_name': 'nc_opcode_modeling_x86_64', | |
147 'type': 'static_library', | |
148 'hard_dependency': 1, | |
149 'variables': { | |
150 'target_base': 'nc_opcode_modeling', | |
151 }, | |
152 'dependencies': [ | |
153 '<(DEPTH)/native_client/src/trusted/validator/x86/validate_x86.gyp:n
cval_base_x86_64', | |
154 ], | |
155 }, { | |
156 'target_name': 'nc_opcode_modeling_verbose_x86_64', | |
157 'type': 'static_library', | |
158 'hard_dependency': 1, | |
159 'variables': { | |
160 'target_base': 'nc_opcode_modeling_verbose', | |
161 }, | |
162 'dependencies': [ | |
163 'nc_opcode_modeling_x86_64', | |
164 ], | |
165 }, { | |
166 'target_name': 'nc_decoder_x86_64', | |
167 'type': 'static_library', | |
168 'variables': { | |
169 'target_base': 'nc_decoder', | |
170 }, | |
171 'dependencies': [ | |
172 'nc_opcode_modeling_x86_64', | |
173 '<(DEPTH)/native_client/src/trusted/validator/x86/validate_x86.gyp:n
cval_base_x86_64', | |
174 ], | |
175 }], | |
176 }], | |
177 ], | |
178 } | |
OLD | NEW |