• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2011 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# Shared source lists between trusted and untrusted targets are stored in
6# ppapi_sources.gypi.
7
8{
9  'includes': [
10    'ppapi_sources.gypi',
11  ],
12  'targets': [
13    {
14      'target_name': 'ppapi_c',
15      'type': 'none',
16      'all_dependent_settings': {
17        'include_dirs+': [
18          '..',
19        ],
20      },
21      'sources': [
22        '<@(c_source_files)',
23      ],
24    },
25    {
26      'target_name': 'ppapi_cpp_objects',
27      'type': 'static_library',
28      'dependencies': [
29        'ppapi_c'
30      ],
31      'include_dirs+': [
32        '..',
33      ],
34      'sources': [
35        '<@(cpp_source_files)',
36      ],
37      'conditions': [
38        ['OS=="win"', {
39          'msvs_settings': {
40            'VCCLCompilerTool': {
41              'AdditionalOptions': ['/we4244'],  # implicit conversion, possible loss of data
42            },
43          },
44          'msvs_disabled_warnings': [
45            4267,
46          ],
47        }],
48        ['OS=="linux"', {
49          'cflags': ['-Wextra', '-pedantic'],
50        }],
51        ['OS=="mac"', {
52          'xcode_settings': {
53            'WARNING_CFLAGS': ['-Wextra', '-pedantic'],
54           },
55        }],
56      ],
57    },
58    {
59      'target_name': 'ppapi_cpp',
60      'type': 'static_library',
61      'dependencies': [
62        'ppapi_c',
63        'ppapi_cpp_objects',
64      ],
65      'include_dirs+': [
66        '..',
67      ],
68      'sources': [
69        'cpp/module_embedder.h',
70        'cpp/ppp_entrypoints.cc',
71      ],
72      'conditions': [
73        ['OS=="linux"', {
74          'cflags': ['-Wextra', '-pedantic'],
75        }],
76        ['OS=="mac"', {
77          'xcode_settings': {
78            'WARNING_CFLAGS': ['-Wextra', '-pedantic'],
79           },
80        }]
81      ],
82    },
83  ],
84}
85