summaryrefslogtreecommitdiffstats
path: root/o3d/build/common.gypi
blob: b1fb160c20c79fa46ecb0dd974fa2bbe1dbdd4bf (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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
# 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.

{
  'includes': [
    '../../build/common.gypi',
  ],
  'variables': {
    'antlrdir': 'third_party/antlr3',
    'breakpaddir': 'breakpad/src',
    'fcolladadir': 'third_party/fcollada/files',
    'gtestdir': 'testing/gtest/include',
    'jpegdir': 'third_party/libjpeg',
    'nacldir': 'third_party/native_client/googleclient',
    'nixysadir': 'third_party/nixysa/files',
    'npapidir': 'third_party/npapi/files',
    'pngdir': 'third_party/libpng',
    'skiadir': 'third_party/skia/include',
    'zlibdir': 'third_party/zlib',
  },
  'target_defaults': {
    'defines': [
      'GYP_BUILD',  # Needed to make a change in base/types.h conditional.
    ],
  },
  'conditions' : [
    ['OS == "win"',
      {
        'variables': {
          'renderer': 'd3d9',
          'cgdir': 'third_party/cg/files/win',
          'LIBRARY_SUFFIX': '.lib',
          'CONFIGURATION': '$(ConfigurationName)',
        },
        'target_defaults': {
          'defines': [
            '_CRT_SECURE_NO_WARNINGS',
            'RENDERER_D3D9',
            'OS_WIN',
            'NACL_WINDOWS',
          ],
          'msvs_disabled_warnings': [4355],
          'msvs_settings': {
            'VCCLCompilerTool': {
              'AdditionalOptions': '/MP',
            },
          },
        },
      },
    ],
    ['OS == "mac"',
      {
        'variables': {
          'renderer': 'gl',
          'cgdir': 'third_party/cg/files/mac',
          'LIBRARY_SUFFIX': '.a',
          'CONFIGURATION': '$(CONFIGURATION)',
        },
        'target_defaults': {
          'defines': [
            'RENDERER_GL',
            'OS_MACOSX',
          ],
        },
      },
    ],
    ['OS == "linux"',
      {
        'variables': {
          'renderer': 'gl',
          'cgdir': 'third_party/cg/files/linux',
          'LIBRARY_SUFFIX': '.a',
          'CONFIGURATION': '$(CONFIGURATION)',
        },
        'target_defaults': {
          'defines': [
            'RENDERER_GL',
            'OS_LINUX',
          ],
        },
      },
    ],
  ],
}