| OLD | NEW | 
|---|
| (Empty) |  | 
|  | 1 # Copyright 2012, Google Inc. | 
|  | 2 # Copyright 2012 The Native Client Authors.  All rights reserved. | 
|  | 3 # Use of this source code is governed by a BSD-style license that can | 
|  | 4 # be found in the LICENSE file. | 
|  | 5 | 
|  | 6 { | 
|  | 7   # ---------------------------------------------------------------------- | 
|  | 8   # Default settings | 
|  | 9   # ---------------------------------------------------------------------- | 
|  | 10 | 
|  | 11   'includes': [ | 
|  | 12     '../../../build/common.gypi', | 
|  | 13   ], | 
|  | 14   'variables': { | 
|  | 15     'validate_gen_out': | 
|  | 16       '<(SHARED_INTERMEDIATE_DIR)/gen/native_client/src/trusted/validator_mips', | 
|  | 17   }, | 
|  | 18   # TODO(robertm): move these setting to some global config | 
|  | 19   'target_defaults': { | 
|  | 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   'include_dirs': ['<(SHARED_INTERMEDIATE_DIR)'], | 
|  | 33     # TODO(robertm): mmentovai does not think this is necessary | 
|  | 34     # When ncvalidate is a dependency, it needs to be a hard dependency | 
|  | 35     # because dependents may rely on ncvalidate to create header files below. | 
|  | 36     'hard_dependency': 1, | 
|  | 37     }, | 
|  | 38   # ---------------------------------------------------------------------- | 
|  | 39   # actual targets | 
|  | 40   # ---------------------------------------------------------------------- | 
|  | 41     'targets': [ | 
|  | 42     # ---------------------------------------------------------------------- | 
|  | 43     { | 
|  | 44       'target_name': 'mips_validator_core', | 
|  | 45       'type': 'static_library', | 
|  | 46       'sources': [ | 
|  | 47         'address_set.cc', | 
|  | 48         'inst_classes.cc', | 
|  | 49         'validator.cc', | 
|  | 50         '<(validate_gen_out)/decode.cc' | 
|  | 51       ], | 
|  | 52       'dependencies': ['decode_gen'], | 
|  | 53     }, | 
|  | 54     # ---------------------------------------------------------------------- | 
|  | 55     { | 
|  | 56       'target_name': 'decode_gen', | 
|  | 57       'type': 'none', | 
|  | 58       'direct_dependent_settings': { | 
|  | 59         'include_dirs': ['<(SHARED_INTERMEDIATE_DIR)'], | 
|  | 60       }, | 
|  | 61       'actions': [ | 
|  | 62        { | 
|  | 63           'action_name': 'decode_gen_action', | 
|  | 64           'msvs_cygwin_shell': 0, | 
|  | 65           'inputs': [ | 
|  | 66             'mips-opt.table', | 
|  | 67             'generate_decoder.py', | 
|  | 68             'dgen_core.py', | 
|  | 69             'dgen_input.py', | 
|  | 70             'dgen_opt.py', | 
|  | 71             'dgen_output.py', | 
|  | 72           ], | 
|  | 73           'outputs': [ | 
|  | 74             '<(validate_gen_out)/decode.cc', | 
|  | 75           ], | 
|  | 76           'action': [ | 
|  | 77             '<@(python_exe)', | 
|  | 78             'generate_decoder.py', | 
|  | 79             'mips-opt.table', | 
|  | 80             '<@(_outputs)', | 
|  | 81            ], | 
|  | 82           'process_outputs_as_sources': 1, | 
|  | 83           'message': 'generate decoder.cc', | 
|  | 84         }, | 
|  | 85       ], | 
|  | 86     }, | 
|  | 87   ], | 
|  | 88 } | 
| OLD | NEW | 
|---|