• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright 2013 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# This gypi file handles the removal of platform-specific files from the
6# Skia build.
7{
8  'include_dirs': [
9    '..',
10    'config',
11  ],
12
13  'conditions': [
14    [ 'OS != "android"', {
15      'sources/': [
16         ['exclude', '_android\\.(cc|cpp)$'],
17      ],
18    }],
19    [ 'OS == "android"', {
20      'defines': [
21        'SK_FONTHOST_DOES_NOT_USE_FONTMGR',
22      ],
23    }],
24    [ 'OS != "ios"', {
25      'sources/': [
26         ['exclude', '_ios\\.(cc|cpp|mm?)$'],
27      ],
28    }],
29    [ 'OS != "mac"', {
30      'sources/': [
31        ['exclude', '_mac\\.(cc|cpp|mm?)$'],
32      ],
33    }],
34    [ 'OS != "win"', {
35      'sources/': [ ['exclude', '_win\\.(cc|cpp)$'] ],
36    }],
37    [ 'desktop_linux == 0 and chromeos == 0', {
38      'sources/': [ ['exclude', '_linux\\.(cc|cpp)$'] ],
39    }],
40    [ 'use_cairo == 0', {
41      'sources/': [ ['exclude', '_cairo\\.(cc|cpp)$'] ],
42    }],
43  ],
44
45  # We would prefer this to be direct_dependent_settings,
46  # however we currently have no means to enforce that direct dependents
47  # re-export if they include Skia headers in their public headers.
48  'all_dependent_settings': {
49    'include_dirs': [
50      '..',
51      'config',
52    ],
53  },
54
55  'msvs_disabled_warnings': [4244, 4267, 4341, 4345, 4390, 4554, 4748, 4800],
56}
57