34755299b0eada520cafb28b7e002f856bc61284
[platform/framework/web/crosswalk.git] / src / native_client / src / trusted / validator_arm / validator_arm.gyp
1 # Copyright 2010, Google Inc.
2 # Copyright 2009 The Native Client Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file.
5
6 {
7   # ----------------------------------------------------------------------
8   # Default settings
9   # ----------------------------------------------------------------------
10
11   'includes': [
12     '../../../build/common.gypi',
13   ],
14   # TODO(robertm): move these setting to some global config
15   'target_defaults': {
16     'cflags!': [
17       '-Wextra',
18       '-Wswitch-enum',
19       '-Wsign-compare'
20     ],
21     'xcode_settings': {
22       'WARNING_CFLAGS!': [
23         '-Wextra',
24         '-Wswitch-enum',
25         '-Wsign-compare'
26       ]
27   },
28   'include_dirs': ['<(SHARED_INTERMEDIATE_DIR)'],
29     # TODO(robertm): mmentovai does not think this is necessary
30     # When ncvalidate is a dependency, it needs to be a hard dependency
31     # because dependents may rely on ncvalidate to create header files below.
32     'hard_dependency': 1,
33     },
34   # ----------------------------------------------------------------------
35   # actual targets
36   # ----------------------------------------------------------------------
37   'targets': [
38     # ----------------------------------------------------------------------
39     {
40       'target_name': 'arm_validator_core',
41       'type': 'static_library',
42       'sources': [
43         'address_set.cc',
44         'inst_classes.cc',
45         'model.cc',
46         'arm_helpers.cc',
47         'validator.cc',
48         'gen/arm32_decode.cc',
49         'gen/arm32_decode_actuals_1.cc',
50         'gen/arm32_decode_actuals_2.cc'
51       ],
52       'dependencies': [
53         '<(DEPTH)/native_client/src/trusted/cpu_features/cpu_features.gyp:cpu_features'
54       ],
55     },
56     # ----------------------------------------------------------------------
57     {
58       'target_name': 'ncvalidate_arm_v2',
59       'type': 'static_library',
60       'sources': [ 'ncvalidate.cc' ],
61       'dependencies': [
62         'arm_validator_core',
63         '<(DEPTH)/native_client/src/trusted/validator/validator.gyp:validation_cache',
64       ],
65     },
66     # ----------------------------------------------------------------------
67     {
68       'target_name': 'arm_validator_reporters',
69       'type': 'static_library',
70       'sources': [ 'problem_reporter.cc' ],
71     },
72   ],
73 }