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': 'ncvalidate_mips', |
| 57 'type': 'static_library', |
| 58 'sources': [ 'ncvalidate.cc' ], |
| 59 'dependencies': [ |
| 60 'mips_validator_core' |
| 61 ], |
| 62 }, |
| 63 # ---------------------------------------------------------------------- |
| 64 { |
| 65 'target_name': 'decode_gen', |
| 66 'type': 'none', |
| 67 'direct_dependent_settings': { |
| 68 'include_dirs': ['<(SHARED_INTERMEDIATE_DIR)'], |
| 69 }, |
| 70 'actions': [ |
| 71 { |
| 72 'action_name': 'decode_gen_action', |
| 73 'msvs_cygwin_shell': 0, |
| 74 'inputs': [ |
| 75 'mips-opt.table', |
| 76 'generate_decoder.py', |
| 77 'dgen_core.py', |
| 78 'dgen_input.py', |
| 79 'dgen_opt.py', |
| 80 'dgen_output.py', |
| 81 ], |
| 82 'outputs': [ |
| 83 '<(validate_gen_out)/decode.cc', |
| 84 ], |
| 85 'action': [ |
| 86 '<@(python_exe)', |
| 87 'generate_decoder.py', |
| 88 'mips-opt.table', |
| 89 '<@(_outputs)', |
| 90 ], |
| 91 'process_outputs_as_sources': 1, |
| 92 'message': 'generate decoder.cc', |
| 93 }, |
| 94 ], |
| 95 }, |
| 96 ], |
| 97 } |
OLD | NEW |