summaryrefslogtreecommitdiffstats
path: root/mojo/mojo_public_gles2_for_loadable_module.gypi
blob: cd5dbbf1a15f84cdf30ed731ac1cc98a547d6783 (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
# Copyright 2014 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.

# In the non component build, the thunks need to be linked directly into the
# loadable module since they define symbols that should be exported from that
# library. So, this variable expands out to either list the sources directly (in
# the component build where no symbols need to be exported) a dependency.
{
  'conditions': [
    ['component=="shared_library"', {
      'dependencies': [
        '<(DEPTH)/mojo/mojo.gyp:mojo_gles2_impl',
      ],
    }, {  # component!="shared_library"
      'defines': [
        'MOJO_GLES2_IMPLEMENTATION',
        'GLES2_USE_MOJO',
      ],
      'include_dirs': [
        '<(DEPTH)',
      ],
      'dependencies': [
        '<(DEPTH)/third_party/khronos/khronos.gyp:khronos_headers'
      ],
      'direct_dependent_settings': {
        'include_dirs': [
          '<(DEPTH)',
        ],
        'defines': [
          'GLES2_USE_MOJO',
        ],
      },
      'sources': [
        '<(DEPTH)/third_party/mojo/src/mojo/public/c/gles2/gles2.h',
        '<(DEPTH)/third_party/mojo/src/mojo/public/c/gles2/gles2_export.h',
        '<(DEPTH)/third_party/mojo/src/mojo/public/platform/native/gles2_thunks.cc',
        '<(DEPTH)/third_party/mojo/src/mojo/public/platform/native/gles2_thunks.h',
        '<(DEPTH)/third_party/mojo/src/mojo/public/platform/native/gles2_impl_thunks.cc',
        '<(DEPTH)/third_party/mojo/src/mojo/public/platform/native/gles2_impl_thunks.h',
        '<(DEPTH)/third_party/mojo/src/mojo/public/platform/native/gles2_impl_chromium_texture_mailbox_thunks.cc',
        '<(DEPTH)/third_party/mojo/src/mojo/public/platform/native/gles2_impl_chromium_texture_mailbox_thunks.h',
        '<(DEPTH)/third_party/mojo/src/mojo/public/platform/native/gles2_impl_chromium_sync_point_thunks.cc',
        '<(DEPTH)/third_party/mojo/src/mojo/public/platform/native/gles2_impl_chromium_sync_point_thunks.h',
      ],
    }]
  ]
}