# Copyright (c) 2011 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. { 'target_defaults': { 'variables': { 'nacl_target': 0, }, 'target_conditions': [ # This part is shared between the targets defined below. Only files and # settings relevant for building the Win64 target should be added here. ['nacl_target==1', { 'include_dirs': [ '<(INTERMEDIATE_DIR)', ], 'defines': [ 'NACL_BLOCK_SHIFT=5', 'NACL_BLOCK_SIZE=32', '<@(nacl_defines)', ], 'sources': [ # .cc, .h, and .mm files under nacl that are used on all # platforms, including both 32-bit and 64-bit Windows. # Test files are also not included. 'nacl/nacl_main.cc', 'nacl/nacl_main_platform_delegate.h', 'nacl/nacl_main_platform_delegate_linux.cc', 'nacl/nacl_main_platform_delegate_mac.mm', 'nacl/nacl_main_platform_delegate_win.cc', 'nacl/nacl_listener.cc', 'nacl/nacl_listener.h', ], # TODO(gregoryd): consider switching NaCl to use Chrome OS defines 'conditions': [ ['OS=="win"', { 'defines': [ '__STDC_LIMIT_MACROS=1', ], 'include_dirs': [ '<(DEPTH)/third_party/wtl/include', ], },], ['OS=="linux"', { 'defines': [ '__STDC_LIMIT_MACROS=1', ], 'sources': [ 'nacl/nacl_fork_delegate_linux.cc', ], },], ], }], ], }, 'targets': [ { 'target_name': 'nacl', 'type': 'static_library', 'variables': { 'nacl_target': 1, 'irt_build_cmd': [ 'python', 'build_nacl_irt.py', '--outdir', '<(PRODUCT_DIR)', ], 'irt_inputs_cmd': 'python build_nacl_irt.py --inputs', }, 'dependencies': [ # TODO(gregoryd): chrome_resources and chrome_strings could be # shared with the 64-bit target, but it does not work due to a gyp #issue 'chrome_resources', 'chrome_strings', 'common', '../webkit/support/webkit_support.gyp:glue', '../ppapi/native_client/src/trusted/plugin/plugin.gyp:ppGoogleNaClPluginChrome', '../native_client/src/trusted/service_runtime/service_runtime.gyp:sel', '../native_client/src/trusted/platform_qualify/platform_qualify.gyp:platform_qual_lib', ], 'direct_dependent_settings': { 'defines': [ 'NACL_BLOCK_SHIFT=5', 'NACL_BLOCK_SIZE=32', '<@(nacl_defines)', ], }, 'conditions': [ ['OS=="win"', { # Windows needs both the x86-32 and x86-64 IRT. 'actions': [ { 'action_name': 'nacl_irt', 'message': 'Building NaCl IRT', 'inputs': [ '