summaryrefslogtreecommitdiffstats
path: root/o3d/import/import.gyp
blob: 4ecb9c646423527752d7321a12ff370c4b9eacbc (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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
# 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': [
    '../build/common.gypi',
  ],
  'target_defaults': {
    'include_dirs': [
      '..',
      '../..',
      '../../<(cgdir)/include',
      '../../<(gtestdir)',
    ],
  },
  'targets': [
    {
      'target_name': 'o3dImport',
      'type': 'static_library',
      'dependencies': [
        '../../<(antlrdir)/antlr.gyp:antlr3c',
        '../../<(fcolladadir)/fcollada.gyp:fcollada',
        '../../<(jpegdir)/libjpeg.gyp:libjpeg',
        '../../<(pngdir)/libpng.gyp:libpng',
        '../../<(zlibdir)/zlib.gyp:zlib',
        '../compiler/technique/technique.gyp:technique',
      ],
      'sources': [
        'cross/collada_conditioner.cc',
        'cross/collada_conditioner.h',
        'cross/collada.cc',
        'cross/collada.h',
        'cross/collada_zip_archive.cc',
        'cross/collada_zip_archive.h',
        'cross/file_output_stream_processor.cc',
        'cross/file_output_stream_processor.h',
        'cross/gz_compressor.cc',
        'cross/gz_compressor.h',
        'cross/precompile.h',
        'cross/tar_generator.cc',
        'cross/tar_generator.h',
        'cross/tar_processor.h',
        'cross/targz_generator.cc',
        'cross/targz_generator.h',
        'cross/targz_processor.h',
        'cross/zip_archive.cc',
        'cross/zip_archive.h',
      ],
      'conditions' : [
        ['renderer == "d3d9" and OS == "win"',
          {
            'include_dirs': [
              '$(DXSDK_DIR)/Include',
            ],
          }
        ],
        ['OS == "win"',
          {
            'sources': [
              'win/collada_conditioner_win.cc',
            ],
          },
        ],
        ['OS == "mac"',
          {
            'sources': [
              'mac/collada_conditioner_mac.mm',
            ],
            'link_settings': {
              'libraries': [
                '$(SDKROOT)/System/Library/Frameworks/Foundation.framework',
              ],
            },
          },
        ],
        ['OS == "linux"',
          {
            'sources': [
              'linux/collada_conditioner_linux.cc',
            ],
          },
        ],
      ],
    },
    {
      'target_name': 'o3dArchive',
      'type': 'static_library',
      'dependencies': [
        '../../<(antlrdir)/antlr.gyp:antlr3c',
        '../../<(fcolladadir)/fcollada.gyp:fcollada',
        '../../<(jpegdir)/libjpeg.gyp:libjpeg',
        '../../<(pngdir)/libpng.gyp:libpng',
        '../../<(zlibdir)/zlib.gyp:zlib',
      ],
      'sources': [
        'cross/archive_processor.cc',
        'cross/archive_processor.h',
        'cross/archive_request.cc',
        'cross/archive_request.h',
        'cross/gz_decompressor.cc',
        'cross/gz_decompressor.h',
        'cross/iarchive_generator.h',
        'cross/memory_buffer.h',
        'cross/memory_stream.cc',
        'cross/memory_stream.h',
        'cross/raw_data.cc',
        'cross/raw_data.h',
        'cross/tar_generator.h',
        'cross/tar_processor.cc',
        'cross/tar_processor.h',
        'cross/targz_generator.h',
        'cross/targz_processor.cc',
        'cross/targz_processor.h',
      ],
      'conditions' : [
        ['renderer == "d3d9" and OS == "win"',
          {
            'include_dirs': [
              '$(DXSDK_DIR)/Include',
            ],
          }
        ],
      ],
    },
  ],
}