summaryrefslogtreecommitdiffstats
path: root/gpu/gpu_common.gypi
blob: 015d9c6e337014dd0e567e512d91ef8518848731 (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
# Copyright (c) 2012 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,
    # These are defined here because we need to build this library twice. Once
    # with extra parameter checking. Once with no parameter checking to be 100%
    # OpenGL ES 2.0 compliant for the conformance tests.
    'gles2_c_lib_source_files': [
      'command_buffer/client/gles2_c_lib.cc',
      'command_buffer/client/gles2_c_lib_autogen.h',
      'command_buffer/client/gles2_c_lib_export.h',
      'command_buffer/client/gles2_lib.h',
      'command_buffer/client/gles2_lib.cc',
    ],
    # These are defined here because we need to build this library twice. Once
    # with without support for client side arrays and once with for pepper and
    # the OpenGL ES 2.0 compliant for the conformance tests.
    'gles2_implementation_source_files': [
      'command_buffer/client/buffer_tracker.cc',
      'command_buffer/client/buffer_tracker.h',
      'command_buffer/client/client_context_state.h',
      'command_buffer/client/client_context_state.cc',
      'command_buffer/client/client_context_state_autogen.h',
      'command_buffer/client/client_context_state_impl_autogen.h',
      'command_buffer/client/gles2_impl_export.h',
      'command_buffer/client/gles2_implementation_autogen.h',
      'command_buffer/client/gles2_implementation.cc',
      'command_buffer/client/gles2_implementation.h',
      'command_buffer/client/gles2_implementation_impl_autogen.h',
      'command_buffer/client/gles2_interface.h',
      'command_buffer/client/gles2_interface.cc',
      'command_buffer/client/gles2_trace_implementation_autogen.h',
      'command_buffer/client/gles2_trace_implementation.cc',
      'command_buffer/client/gles2_trace_implementation.h',
      'command_buffer/client/gles2_trace_implementation_impl_autogen.h',
      'command_buffer/client/gpu_memory_buffer_factory.h',
      'command_buffer/client/gpu_memory_buffer_tracker.cc',
      'command_buffer/client/gpu_memory_buffer_tracker.h',
      'command_buffer/client/program_info_manager.cc',
      'command_buffer/client/program_info_manager.h',
      'command_buffer/client/query_tracker.cc',
      'command_buffer/client/query_tracker.h',
      'command_buffer/client/share_group.cc',
      'command_buffer/client/share_group.h',
      'command_buffer/client/vertex_array_object_manager.cc',
      'command_buffer/client/vertex_array_object_manager.h',
    ]
  },
  'conditions': [
    # Special target to wrap a gtest_target_type==shared_library
    # gpu_unittests into an android apk for execution.
    ['OS == "android" and gtest_target_type == "shared_library"', {
      'targets': [
        {
          'target_name': 'gpu_unittests_apk',
          'type': 'none',
          'dependencies': [
            'gpu_unittests',
          ],
          'variables': {
            'test_suite_name': 'gpu_unittests',
            'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)gpu_unittests<(SHARED_LIB_SUFFIX)',
          },
          'includes': [ '../build/apk_test.gypi' ],
        },
      ],
    }],
  ],
}