OLD | NEW |
1 # -*- gyp -*- | 1 # -*- gyp -*- |
2 # Copyright (c) 2012 The Native Client Authors. All rights reserved. | 2 # Copyright (c) 2012 The Native Client Authors. All rights reserved. |
3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
5 | 5 |
6 { | 6 { |
7 'includes': [ | 7 'includes': [ |
8 '../../../build/common.gypi', | 8 '../../../build/common.gypi', |
9 ], | 9 ], |
10 'targets': [ | 10 'targets': [ |
11 { | 11 { |
12 'target_name': 'validators', | 12 'target_name': 'validators', |
13 'type': 'static_library', | 13 'type': 'static_library', |
14 'sources' : [ | 14 'sources' : [ |
15 'validator_init.c', | 15 'validator_init.c', |
16 ], | 16 ], |
17 'conditions': [ | |
18 ['nacl_validator_ragel!=0', { | |
19 'defines': [ | |
20 'NACL_VALIDATOR_RAGEL=1', | |
21 ], | |
22 }], | |
23 ], | |
24 }, | 17 }, |
25 { | 18 { |
26 'target_name': 'validation_cache', | 19 'target_name': 'validation_cache', |
27 'type': 'static_library', | 20 'type': 'static_library', |
28 'sources' : [ | 21 'sources' : [ |
29 'validation_cache.c', | 22 'validation_cache.c', |
30 ], | 23 ], |
31 'dependencies': [ | 24 'dependencies': [ |
32 '<(DEPTH)/native_client/src/shared/platform/platform.gyp:platform', | 25 '<(DEPTH)/native_client/src/shared/platform/platform.gyp:platform', |
33 ], | 26 ], |
34 }, | 27 }, |
35 ], | 28 ], |
36 'conditions': [ | 29 'conditions': [ |
37 ['OS=="win" and target_arch=="ia32"', { | 30 ['OS=="win" and target_arch=="ia32"', { |
38 'targets': [ | 31 'targets': [ |
39 { | 32 { |
40 'target_name': 'validators64', | 33 'target_name': 'validators64', |
41 'type': 'static_library', | 34 'type': 'static_library', |
42 'sources' : [ | 35 'sources' : [ |
43 'validator_init.c', | 36 'validator_init.c', |
44 ], | 37 ], |
45 'variables': { | 38 'variables': { |
46 'win_target': 'x64', | 39 'win_target': 'x64', |
47 }, | 40 }, |
48 'conditions': [ | |
49 ['nacl_validator_ragel!=0', { | |
50 'defines': [ | |
51 'NACL_VALIDATOR_RAGEL=1', | |
52 ], | |
53 }], | |
54 ], | |
55 }, | 41 }, |
56 { | 42 { |
57 'target_name': 'validation_cache64', | 43 'target_name': 'validation_cache64', |
58 'type': 'static_library', | 44 'type': 'static_library', |
59 'sources' : [ | 45 'sources' : [ |
60 'validation_cache.c', | 46 'validation_cache.c', |
61 ], | 47 ], |
62 'variables': { | 48 'variables': { |
63 'win_target': 'x64', | 49 'win_target': 'x64', |
64 }, | 50 }, |
65 'dependencies': [ | 51 'dependencies': [ |
66 '<(DEPTH)/native_client/src/shared/platform/platform.gyp:platform64'
, | 52 '<(DEPTH)/native_client/src/shared/platform/platform.gyp:platform64'
, |
67 ], | 53 ], |
68 }, | 54 }, |
69 ], | 55 ], |
70 }], | 56 }], |
71 ], | 57 ], |
72 } | 58 } |
OLD | NEW |