Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(666)

Unified Diff: src/trusted/validator_mips/validator_mips.gyp

Issue 9979025: [MIPS] Adding validator for MIPS architecture. (Closed) Base URL: http://src.chromium.org/native_client/trunk/src/native_client/
Patch Set: Rebased patch, conflict resolved. Created 8 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/trusted/validator_mips/validator.cc ('k') | src/trusted/validator_mips/validator_tests.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/trusted/validator_mips/validator_mips.gyp
diff --git a/src/trusted/validator_mips/validator_mips.gyp b/src/trusted/validator_mips/validator_mips.gyp
new file mode 100755
index 0000000000000000000000000000000000000000..9c64860eaf33dc115f5e457bf1cc01acf7c481e9
--- /dev/null
+++ b/src/trusted/validator_mips/validator_mips.gyp
@@ -0,0 +1,88 @@
+# Copyright 2012, Google Inc.
+# Copyright 2012 The Native Client Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can
+# be found in the LICENSE file.
+
+{
+ # ----------------------------------------------------------------------
+ # Default settings
+ # ----------------------------------------------------------------------
+
+ 'includes': [
+ '../../../build/common.gypi',
+ ],
+ 'variables': {
+ 'validate_gen_out':
+ '<(SHARED_INTERMEDIATE_DIR)/gen/native_client/src/trusted/validator_mips',
+ },
+ # TODO(robertm): move these setting to some global config
+ 'target_defaults': {
+ 'cflags!': [
+ '-Wextra',
+ '-Wswitch-enum',
+ '-Wsign-compare'
+ ],
+ 'xcode_settings': {
+ 'WARNING_CFLAGS!': [
+ '-Wextra',
+ '-Wswitch-enum',
+ '-Wsign-compare'
+ ]
+ },
+ 'include_dirs': ['<(SHARED_INTERMEDIATE_DIR)'],
+ # TODO(robertm): mmentovai does not think this is necessary
+ # When ncvalidate is a dependency, it needs to be a hard dependency
+ # because dependents may rely on ncvalidate to create header files below.
+ 'hard_dependency': 1,
+ },
+ # ----------------------------------------------------------------------
+ # actual targets
+ # ----------------------------------------------------------------------
+ 'targets': [
+ # ----------------------------------------------------------------------
+ {
+ 'target_name': 'mips_validator_core',
+ 'type': 'static_library',
+ 'sources': [
+ 'address_set.cc',
+ 'inst_classes.cc',
+ 'validator.cc',
+ '<(validate_gen_out)/decode.cc'
+ ],
+ 'dependencies': ['decode_gen'],
+ },
+ # ----------------------------------------------------------------------
+ {
+ 'target_name': 'decode_gen',
+ 'type': 'none',
+ 'direct_dependent_settings': {
+ 'include_dirs': ['<(SHARED_INTERMEDIATE_DIR)'],
+ },
+ 'actions': [
+ {
+ 'action_name': 'decode_gen_action',
+ 'msvs_cygwin_shell': 0,
+ 'inputs': [
+ 'mips-opt.table',
+ 'generate_decoder.py',
+ 'dgen_core.py',
+ 'dgen_input.py',
+ 'dgen_opt.py',
+ 'dgen_output.py',
+ ],
+ 'outputs': [
+ '<(validate_gen_out)/decode.cc',
+ ],
+ 'action': [
+ '<@(python_exe)',
+ 'generate_decoder.py',
+ 'mips-opt.table',
+ '<@(_outputs)',
+ ],
+ 'process_outputs_as_sources': 1,
+ 'message': 'generate decoder.cc',
+ },
+ ],
+ },
+ ],
+}
« no previous file with comments | « src/trusted/validator_mips/validator.cc ('k') | src/trusted/validator_mips/validator_tests.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698