summaryrefslogtreecommitdiffstats
path: root/ppapi/ppapi_tests_mojo.gyp
blob: 794a8b641b76e3cc346c807731d2762d70461db8 (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
# Copyright 2014 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.

{
  'includes': [
    'ppapi_nacl_test_common.gypi',
  ],
  'targets': [
    {
      'target_name': 'ppapi_tests_mojo',
      'type': 'none',
      'variables': {
        'nexe_target': 'ppapi_tests_mojo',
        # Only the pnacl toolchain can be used with mojo dependencies
        # currently.
        'build_newlib': 0,
        'build_glibc': 0,
        'build_pnacl_newlib': 1,
        # TODO(teravest): Build a translated nexe as well.
        'nexe_destination_dir': 'test_data/ppapi/tests/mojo',
        'sources': [
          'tests/mojo/test_mojo.cc',
          'tests/mojo/test_mojo.h',

          # Test support files.
          'tests/test_case.cc',
          'tests/test_case.h',
          'tests/test_utils.cc',
          'tests/test_utils.h',
          'tests/testing_instance.cc',
          'tests/testing_instance.h',
        ],
        'link_flags': [
          '-lmojo',
          '-limc_syscalls',
          '-lppapi_cpp',
          '-lppapi',
        ],
      },
      'dependencies': [
        '../mojo/mojo_nacl_untrusted.gyp:libmojo',
        '../mojo/mojo_nacl.gyp:monacl_codegen',
        '../native_client/src/untrusted/nacl/nacl.gyp:imc_syscalls_lib',
        '../third_party/mojo/mojo_public.gyp:mojo_system_placeholder',
        'native_client/native_client.gyp:ppapi_lib',
        'ppapi_nacl.gyp:ppapi_cpp_lib',
      ],
    },
  ],
}