summaryrefslogtreecommitdiffstats
path: root/o3d/build/nacl.gyp
blob: 19b4de5f4696570bed7daf8c5875edc968acd511 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# 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,
  },
  'includes': [
    'common.gypi',
  ],
  'targets': [
    {
      'target_name': 'build_nacl',
      'type': 'none',
      'variables': {
        '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)',
            'google_nacl_imc',
            'google_nacl_imc_c',
          ],
        },
      ],
      'direct_dependent_settings': {
        'include_dirs': [
          '../../<(nacldir)',
        ],
        'libraries': [
          '<(nacl_output_dir)/google_nacl_imc<(LIBRARY_SUFFIX)',
          '<(nacl_output_dir)/google_nacl_imc_c<(LIBRARY_SUFFIX)',
        ],
      },
    },
  ],
}