<commit_before># 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,
    # This is defined here because we need to compile this set of files
    # twice with different defines. Once so it calls real GL, again so it
    # calls mock GL for the unit tests.
    'gpu_service_source_files': [
      'command_buffer/service/buffer_manager.h',
      'command_buffer/service/buffer_manager.cc',
      'command_buffer/service/framebuffer_manager.h',
      'command_buffer/service/framebuffer_manager.cc',
      'command_buffer/service/context_group.h',
      'command_buffer/service/context_group.cc',
      'command_buffer/service/gles2_cmd_decoder.h',
      'command_buffer/service/gles2_cmd_decoder_autogen.h',
      'command_buffer/service/gles2_cmd_decoder.cc',
      'command_buffer/service/gles2_cmd_validation.h',
      'command_buffer/service/gles2_cmd_validation.cc',
      'command_buffer/service/gles2_cmd_validation_autogen.h',
      'command_buffer/service/gles2_cmd_validation_implementation_autogen.h',
      'command_buffer/service/gl_utils.h',
      'command_buffer/service/id_manager.h',
      'command_buffer/service/id_manager.cc',
      'command_buffer/service/program_manager.h',
      'command_buffer/service/program_manager.cc',
      'command_buffer/service/renderbuffer_manager.h',
      'command_buffer/service/renderbuffer_manager.cc',
      'command_buffer/service/shader_manager.h',
      'command_buffer/service/shader_manager.cc',
      'command_buffer/service/texture_manager.h',
      'command_buffer/service/texture_manager.cc',
    ],
  },
  'targets': [
    {
      'target_name': 'gl_libs',
      'type': 'static_library',
        'include_dirs': [
          '../third_party/glew/include',
        ],
        'defines': [
          'GLEW_STATIC',
        ],
      'all_dependent_settings': {
        'include_dirs': [
          '../third_party/glew/include',
        ],
        'defines': [
          'GLEW_STATIC',
        ],
      },
      'sources': [
        '../third_party/glew/src/glew.c',
      ],
      'conditions': [
        [ 'OS=="linux"',
          {
            'all_dependent_settings': {
              'defines': [
                'GL_GLEXT_PROTOTYPES',
              ],
              'ldflags': [
                '-L<(PRODUCT_DIR)',
              ],
              'link_settings': {
                'libraries': [
                  '-lX11',
                  # For dlsym() in '../third_party/glew/src/glew.c'
                  '-ldl',
                ],
              },
            },
          },
        ],
        [ 'OS=="mac"',
          {
            'all_dependent_settings': {
              'link_settings': {
                'libraries': [
                  '$(SDKROOT)/System/Library/Frameworks/OpenGL.framework',
                ],
              },
            },
          },
        ],
        [ 'OS=="win"',
          {
            'all_dependent_settings': {
              'link_settings': {
                'libraries': [
                  '-lOpenGL32.lib',
                ],
              },
            },
          },
        ],
      ],<commit_msg>Eliminate unnecessary dependencies on OpenGL.framework.<commit_after># 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,
    # This is defined here because we need to compile this set of files
    # twice with different defines. Once so it calls real GL, again so it
    # calls mock GL for the unit tests.
    'gpu_service_source_files': [
      'command_buffer/service/buffer_manager.h',
      'command_buffer/service/buffer_manager.cc',
      'command_buffer/service/framebuffer_manager.h',
      'command_buffer/service/framebuffer_manager.cc',
      'command_buffer/service/context_group.h',
      'command_buffer/service/context_group.cc',
      'command_buffer/service/gles2_cmd_decoder.h',
      'command_buffer/service/gles2_cmd_decoder_autogen.h',
      'command_buffer/service/gles2_cmd_decoder.cc',
      'command_buffer/service/gles2_cmd_validation.h',
      'command_buffer/service/gles2_cmd_validation.cc',
      'command_buffer/service/gles2_cmd_validation_autogen.h',
      'command_buffer/service/gles2_cmd_validation_implementation_autogen.h',
      'command_buffer/service/gl_utils.h',
      'command_buffer/service/id_manager.h',
      'command_buffer/service/id_manager.cc',
      'command_buffer/service/program_manager.h',
      'command_buffer/service/program_manager.cc',
      'command_buffer/service/renderbuffer_manager.h',
      'command_buffer/service/renderbuffer_manager.cc',
      'command_buffer/service/shader_manager.h',
      'command_buffer/service/shader_manager.cc',
      'command_buffer/service/texture_manager.h',
      'command_buffer/service/texture_manager.cc',
    ],
  },
  'targets': [
    {
      'target_name': 'gl_libs',
      'type': 'static_library',
        'include_dirs': [
          '../third_party/glew/include',
        ],
        'defines': [
          'GLEW_STATIC',
        ],
      'all_dependent_settings': {
        'include_dirs': [
          '../third_party/glew/include',
        ],
        'defines': [
          'GLEW_STATIC',
        ],
      },
      'sources': [
        '../third_party/glew/src/glew.c',
      ],
      'conditions': [
        [ 'OS=="linux"',
          {
            'all_dependent_settings': {
              'defines': [
                'GL_GLEXT_PROTOTYPES',
              ],
              'ldflags': [
                '-L<(PRODUCT_DIR)',
              ],
              'link_settings': {
                'libraries': [
                  '-lX11',
                  # For dlsym() in '../third_party/glew/src/glew.c'
                  '-ldl',
                ],
              },
            },
          },
        ],
        [ 'OS=="mac"',
          {
            'link_settings': {
              'libraries': [
                '$(SDKROOT)/System/Library/Frameworks/OpenGL.framework',
              ],
            },
          },
        ],
        [ 'OS=="win"',
          {
            'all_dependent_settings': {
              'link_settings': {
                'libraries': [
                  '-lOpenGL32.lib',
                ],
              },
            },
          },
        ],
      ],
{'fraction_non_alphanumeric': 0.12842911877394636, 'fraction_numerical': 0.004904214559386973, 'mean_word_length': 1.8008583690987126, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '285210', 'n_tokens_mistral': 1983, 'n_tokens_neox': 1940, 'n_words': 265}