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 validating x86 code, used | |
6 # by both the x86-32 and x86-64 validators. | |
7 # Note: Would like to name this file validator_x86.gyp, but that name is | |
8 # already used, and on mac's, this is not allowed. | |
9 { | |
10 'includes': [ | |
11 '../../../../build/common.gypi', | |
12 ], | |
13 'target_defaults': { | |
14 'variables': { | |
15 'target_base': 'none', | |
16 }, | |
17 'target_conditions': [ | |
18 ['target_base=="ncval_base"', { | |
19 'sources': [ | |
20 'error_reporter.c', | |
21 'halt_trim.c', | |
22 'ncinstbuffer.c', | |
23 'x86_insts.c', | |
24 'nc_segment.c', | |
25 ], | |
26 'cflags!': [ | |
27 '-Wextra', | |
28 '-Wswitch-enum', | |
29 '-Wsign-compare' | |
30 ], | |
31 # VS2010 does not correctly incrementally link obj files generated | |
32 # from asm files. This flag disables UseLibraryDependencyInputs to | |
33 # avoid this problem. | |
34 'msvs_2010_disable_uldi_when_referenced': 1, | |
35 'xcode_settings': { | |
36 'WARNING_CFLAGS!': [ | |
37 '-Wextra', | |
38 '-Wswitch-enum', | |
39 '-Wsign-compare' | |
40 ], | |
41 }, | |
42 }], | |
43 ['target_base=="ncval_base_verbose"', { | |
44 'sources': [ | |
45 'error_reporter_verbose.c', | |
46 'x86_insts_verbose.c', | |
47 ], | |
48 'cflags!': [ | |
49 '-Wextra', | |
50 '-Wswitch-enum', | |
51 '-Wsign-compare' | |
52 ], | |
53 'xcode_settings': { | |
54 'WARNING_CFLAGS!': [ | |
55 '-Wextra', | |
56 '-Wswitch-enum', | |
57 '-Wsign-compare' | |
58 ], | |
59 }, | |
60 }], | |
61 ], | |
62 }, | |
63 'conditions': [ | |
64 ['target_arch=="ia32"', { | |
65 'targets': [ | |
66 { 'target_name': 'ncval_base_x86_32', | |
67 'type': 'static_library', | |
68 'variables': { | |
69 'target_base': 'ncval_base', | |
70 }, | |
71 'dependencies': [ | |
72 '<(DEPTH)/native_client/src/shared/platform/platform.gyp:platform', | |
73 '<(DEPTH)/native_client/src/trusted/cpu_features/cpu_features.gyp:cp
u_features', | |
74 '<(DEPTH)/native_client/src/trusted/validator/validator.gyp:validati
on_cache', | |
75 ], | |
76 }, | |
77 { 'target_name': 'ncval_base_verbose_x86_32', | |
78 'type': 'static_library', | |
79 'variables': { | |
80 'target_base': 'ncval_base_verbose', | |
81 }, | |
82 'dependencies': [ | |
83 'ncval_base_x86_32', | |
84 ], | |
85 }, | |
86 ], | |
87 }], | |
88 ['OS=="win" and target_arch=="ia32"', { | |
89 'targets': [ | |
90 { 'target_name': 'ncval_base_x86_64', | |
91 'type': 'static_library', | |
92 'variables': { | |
93 'target_base': 'ncval_base', | |
94 'win_target': 'x64', | |
95 }, | |
96 'dependencies': [ | |
97 '<(DEPTH)/native_client/src/shared/platform/platform.gyp:platform64'
, | |
98 '<(DEPTH)/native_client/src/trusted/cpu_features/cpu_features.gyp:cp
u_features64', | |
99 '<(DEPTH)/native_client/src/trusted/validator/validator.gyp:validati
on_cache64', | |
100 ], | |
101 }, | |
102 { 'target_name': 'ncval_base_verbose_x86_64', | |
103 'type': 'static_library', | |
104 'variables': { | |
105 'target_base': 'ncval_base_verbose', | |
106 'win_target': 'x64', | |
107 'dependencies': [ | |
108 'ncval_base_x86_64', | |
109 ], | |
110 }, | |
111 }, | |
112 ], | |
113 }], | |
114 ['target_arch=="x64"', { | |
115 'targets': [ | |
116 { 'target_name': 'ncval_base_x86_64', | |
117 'type': 'static_library', | |
118 'variables': { | |
119 'target_base': 'ncval_base', | |
120 }, | |
121 'dependencies': [ | |
122 '<(DEPTH)/native_client/src/shared/platform/platform.gyp:platform', | |
123 '<(DEPTH)/native_client/src/trusted/cpu_features/cpu_features.gyp:cp
u_features', | |
124 '<(DEPTH)/native_client/src/trusted/validator/validator.gyp:validati
on_cache', | |
125 ], | |
126 }, | |
127 { 'target_name': 'ncval_base_verbose_x86_64', | |
128 'type': 'static_library', | |
129 'variables': { | |
130 'target_base': 'ncval_base_verbose', | |
131 }, | |
132 'dependencies': [ | |
133 'ncval_base_x86_64', | |
134 ], | |
135 }, | |
136 ], | |
137 }], | |
138 ], | |
139 } | |
OLD | NEW |