diff options
Diffstat (limited to 'chromium/native_client/src/trusted/validator/x86/decoder/ncdis_decode_tables.gyp')
-rw-r--r-- | chromium/native_client/src/trusted/validator/x86/decoder/ncdis_decode_tables.gyp | 71 |
1 files changed, 71 insertions, 0 deletions
diff --git a/chromium/native_client/src/trusted/validator/x86/decoder/ncdis_decode_tables.gyp b/chromium/native_client/src/trusted/validator/x86/decoder/ncdis_decode_tables.gyp new file mode 100644 index 00000000000..9b8cb881b64 --- /dev/null +++ b/chromium/native_client/src/trusted/validator/x86/decoder/ncdis_decode_tables.gyp @@ -0,0 +1,71 @@ +# -*- gyp -*- +# Copyright (c) 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. + +{ + 'includes': [ + '../../../../../build/common.gypi', + ], + 'target_defaults': { + 'variables': { + 'target_base': 'none', + }, + 'target_conditions': [ + ['target_base=="ncdis_decode_tables"', { + 'sources': ['ncdis_decode_tables.c'], + 'cflags!': [ + '-Wextra', + '-Wswitch-enum', + '-Wsign-compare' + ], + 'xcode_settings': { + 'WARNING_CFLAGS!': [ + '-Wextra', + '-Wswitch-enum', + '-Wsign-compare' + ], + }, + }], + ], + }, + 'conditions': [ + ['target_arch=="ia32"', { + 'targets': [ + { + 'target_name': 'ncdis_decode_tables_x86_32', + 'type': 'static_library', + 'hard_dependency': 1, + 'variables': { + 'target_base': 'ncdis_decode_tables', + }, + }], + }], + ['OS=="win" and target_arch=="ia32"', { + 'targets': [ + { + 'target_name': 'ncdis_decode_tables_x86_64', + 'type': 'static_library', + 'hard_dependency': 1, + 'variables': { + 'target_base': 'ncdis_decode_tables', + 'win_target': 'x64', + }, + }], + }], + ['target_arch=="x64"', { + 'targets': [ + { + 'target_name': 'ncdis_decode_tables_x86_64', + 'type': 'static_library', + 'hard_dependency': 1, + 'variables': { + 'target_base': 'ncdis_decode_tables', + }, + }], + }], + ['target_arch=="arm"', { + 'targets': [], + }], + ], +} |