OLD | NEW |
(Empty) | |
| 1 # Copyright (c) 2009 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. |
| 4 |
| 5 { |
| 6 'variables': { |
| 7 'chromium_code': 1, |
| 8 'nacl_scons_dir': '../../third_party/native_client/googleclient/native_clien
t/scons-out', |
| 9 }, |
| 10 'includes': [ |
| 11 'common.gypi', |
| 12 ], |
| 13 'targets': [ |
| 14 { |
| 15 'target_name': 'build_nacl', |
| 16 'type': 'none', |
| 17 'variables': { |
| 18 'nacl_libs': [ |
| 19 'google_nacl_imc', |
| 20 'google_nacl_imc_c', |
| 21 ], |
| 22 'nacl_lib_dir': '<(nacl_scons_dir)/<(CONFIGURATION)-<(OS)/lib', |
| 23 'nacl_output_dir': '<(SHARED_INTERMEDIATE_DIR)/nacl_libs', |
| 24 }, |
| 25 'actions': [ |
| 26 { |
| 27 'action_name': 'build_nacl', |
| 28 'inputs' : [ |
| 29 'build_nacl.py', |
| 30 ], |
| 31 'outputs': [ |
| 32 '<(nacl_output_dir)/google_nacl_imc<(LIBRARY_SUFFIX)', |
| 33 '<(nacl_output_dir)/google_nacl_imc_c<(LIBRARY_SUFFIX)', |
| 34 'dummy_file_that_never_gets_built_so_scons_always_runs', |
| 35 ], |
| 36 'action': [ |
| 37 'python', |
| 38 '<@(_inputs)', |
| 39 '--output="<(nacl_output_dir)"', |
| 40 '--configuration="<(CONFIGURATION)"', |
| 41 '--platform=<(OS)', |
| 42 '<@(nacl_libs)', |
| 43 ], |
| 44 }, |
| 45 ], |
| 46 'direct_dependent_settings': { |
| 47 'include_dirs': [ |
| 48 '<(nacldir)', |
| 49 ], |
| 50 'libraries': [ |
| 51 '-l<(nacl_output_dir)/google_nacl_imc<(LIBRARY_SUFFIX)', |
| 52 '-l<(nacl_output_dir)/google_nacl_imc_c<(LIBRARY_SUFFIX)', |
| 53 ], |
| 54 }, |
| 55 }, |
| 56 ], |
| 57 } |
OLD | NEW |