summaryrefslogtreecommitdiffstats
path: root/o3d/import/import.gyp
blob: 4d5f31de110d44918bc51a1faea5432130eb14c0 (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
131
132
# 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',
      '../../<(glewdir)/include',
      '../../<(gtestdir)',
    ],
  },
  'targets': [
    {
      'target_name': 'o3dImport',
      'type': 'static_library',
      'dependencies': [
        'archive.gyp:o3dArchive',
        '../../<(antlrdir)/antlr.gyp:antlr3c',
        '../../<(fcolladadir)/fcollada.gyp:fcollada',
        '../../<(jpegdir)/libjpeg.gyp:libjpeg',
        '../../<(pngdir)/libpng.gyp:libpng',
        '../../<(zlibdir)/zlib.gyp:zlib',
        '../build/libs.gyp:cg_libs',
        '../compiler/technique/technique.gyp:o3dTechnique',
      ],
      '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/precompile.h',
        'cross/tar_generator.cc',
        'cross/tar_generator.h',
        'cross/targz_generator.cc',
        'cross/targz_generator.h',
        'cross/zip_archive.cc',
        'cross/zip_archive.h',
      ],

      'conditions' : [
        ['OS == "win"',
          {
            'include_dirs': [
              '$(DXSDK_DIR)/Include',
            ],
            'sources': [
              'win/collada_conditioner_win.cc',
            ],
          },
        ],
        ['OS == "mac"',
          {
            'sources': [
              'mac/collada_conditioner_mac.mm',
            ],
            'include_dirs': [
              '../../third_party/glew/files/include',
            ],
            'link_settings': {
              'libraries': [
                '$(SDKROOT)/System/Library/Frameworks/Foundation.framework',
              ],
            },
          },
        ],
        ['OS == "linux"',
          {
            'sources': [
              'linux/collada_conditioner_linux.cc',
            ],
            'include_dirs': [
              '../../third_party/glew/files/include',
              '/usr/include/cairo',
              '/usr/include/glib-2.0',
              '/usr/include/gtk-2.0',
              '/usr/include/pango-1.0',
              '/usr/lib/glib-2.0/include',
              '/usr/lib/gtk-2.0/include',
              '/usr/include/atk-1.0',
            ],
          },
        ],
      ],
    },
    {
      'target_name': 'o3dSerializationObjects',
      'type': 'static_library',
      'sources': [
        'cross/camera_info.cc',
        'cross/camera_info.h',
        'cross/destination_buffer.cc',
        'cross/destination_buffer.h',
        'cross/json_object.cc',
        'cross/json_object.h',
      ],
    },
    {
      'target_name': 'o3dImportTest',
      'type': 'none',
      'direct_dependent_settings': {
        'sources': [
          'cross/tar_generator_test.cc',
          'cross/targz_generator_test.cc',
        ],
      },
      'copies': [
        {
          'destination': '<(PRODUCT_DIR)/unittest_data',
          'files': [
            'test_data/crate.dae',
            'test_data/crate.jpg',
            'test_data/rock01.tga',
            'test_data/rock02.tga',
          ],
        },
      ],
    },
  ],
}