diff options
Diffstat (limited to 'o3d/build/nacl.gyp')
-rw-r--r-- | o3d/build/nacl.gyp | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/o3d/build/nacl.gyp b/o3d/build/nacl.gyp new file mode 100644 index 0000000..99ed5ec --- /dev/null +++ b/o3d/build/nacl.gyp @@ -0,0 +1,57 @@ +# Copyright (c) 2009 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. + +{ + 'variables': { + 'chromium_code': 1, + 'nacl_scons_dir': '../../third_party/native_client/googleclient/native_client/scons-out', + }, + 'includes': [ + 'common.gypi', + ], + 'targets': [ + { + 'target_name': 'build_nacl', + 'type': 'none', + 'variables': { + 'nacl_libs': [ + 'google_nacl_imc', + 'google_nacl_imc_c', + ], + 'nacl_lib_dir': '<(nacl_scons_dir)/<(CONFIGURATION)-<(OS)/lib', + 'nacl_output_dir': '<(SHARED_INTERMEDIATE_DIR)/nacl_libs', + }, + 'actions': [ + { + 'action_name': 'build_nacl', + 'inputs' : [ + 'build_nacl.py', + ], + 'outputs': [ + '<(nacl_output_dir)/google_nacl_imc<(LIBRARY_SUFFIX)', + '<(nacl_output_dir)/google_nacl_imc_c<(LIBRARY_SUFFIX)', + 'dummy_file_that_never_gets_built_so_scons_always_runs', + ], + 'action': [ + 'python', + '<@(_inputs)', + '--output="<(nacl_output_dir)"', + '--configuration="<(CONFIGURATION)"', + '--platform=<(OS)', + '<@(nacl_libs)', + ], + }, + ], + 'direct_dependent_settings': { + 'include_dirs': [ + '<(nacldir)', + ], + 'libraries': [ + '-l<(nacl_output_dir)/google_nacl_imc<(LIBRARY_SUFFIX)', + '-l<(nacl_output_dir)/google_nacl_imc_c<(LIBRARY_SUFFIX)', + ], + }, + }, + ], +} |