<commit_before># Copyright (c) 2010 The ANGLE Project Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

{
  'targets': [
    {
      'target_name': 'translator_common',
      'type': 'static_library',
      'include_dirs': [
        '.',
        '../include',
      ],
      'sources': [
        'common/angleutils.h',
        'common/debug.cpp',
        'common/debug.h',
        'compiler/BaseTypes.h',
        'compiler/Common.h',
        'compiler/ConstantUnion.h',
        'compiler/InfoSink.cpp',
        'compiler/InfoSink.h',
        'compiler/Initialize.cpp',
        'compiler/Initialize.h',
        'compiler/InitializeDll.cpp',
        'compiler/InitializeDll.h',
        'compiler/InitializeGlobals.h',
        'compiler/InitializeParseContext.h',
        'compiler/Intermediate.cpp',
        'compiler/intermediate.h',
        'compiler/intermOut.cpp',
        'compiler/IntermTraverse.cpp',
        'compiler/Link.cpp',
        'compiler/localintermediate.h',
        'compiler/MMap.h',
        'compiler/osinclude.h',
        'compiler/parseConst.cpp',
        'compiler/ParseHelper.cpp',
        'compiler/ParseHelper.h',
        'compiler/PoolAlloc.cpp',
        'compiler/PoolAlloc.h',
        'compiler/QualifierAlive.cpp',
        'compiler/QualifierAlive.h',
        'compiler/RemoveTree.cpp',
        'compiler/RemoveTree.h',
        'compiler/ShaderLang.cpp',
        'compiler/ShHandle.h',
        'compiler/SymbolTable.cpp',
        'compiler/SymbolTable.h',
        'compiler/Types.h',
        'compiler/unistd.h',
        'compiler/preprocessor/atom.c',
        'compiler/preprocessor/atom.h',
        'compiler/preprocessor/compile.h',
        'compiler/preprocessor/cpp.c',
        'compiler/preprocessor/cpp.h',
        'compiler/preprocessor/cppstruct.c',
        'compiler/preprocessor/memory.c',
        'compiler/preprocessor/memory.h',
        'compiler/preprocessor/parser.h',
        'compiler/preprocessor/preprocess.h',
        'compiler/preprocessor/scanner.c',
        'compiler/preprocessor/scanner.h',
        'compiler/preprocessor/slglobals.h',
        'compiler/preprocessor/symbols.c',
        'compiler/preprocessor/symbols.h',
        'compiler/preprocessor/tokens.c',
        'compiler/preprocessor/tokens.h',
        # Generated files
        '<(INTERMEDIATE_DIR)/Gen_glslang.cpp',
        '<(INTERMEDIATE_DIR)/Gen_glslang_tab.cpp',
        '<(INTERMEDIATE_DIR)/glslang_tab.h',
      ],
      'conditions': [
        ['OS=="win"', {
          'sources': ['compiler/ossource_win.cpp'],
        }, { # else: posix
          'sources': ['compiler/ossource_posix.cpp'],
        }],
      ],
      'actions': [
        {
          'action_name': 'flex_glslang',
          'inputs': ['compiler/glslang.l'],
          'outputs': ['<(INTERMEDIATE_DIR)/Gen_glslang.cpp'],
          'action': [
            'flex',
            '--noline',
            '--nounistd',
            '--outfile=<(_outputs)',
            '<(_inputs)',
          ],
        },
        {
          'action_name': 'bison_glslang',
          'inputs': ['compiler/glslang.y'],
          'outputs': ['<(INTERMEDIATE_DIR)/Gen_glslang_tab.cpp'],
          'action': [
            'bison',
            '--no-lines',
            '--defines=<(INTERMEDIATE_DIR)/glslang_tab.h',
            '--skeleton=yacc.c',
            '--output=<(_outputs)',
            '<(_inputs)',
          ],
        },
      ],
    },
    {
      'target_name': 'translator_glsl',
      'type': 'static_library',
      'dependencies': ['translator_common'],
      'include_dirs': [
        '.',
        '../include',
      ],
      'sources': [
        'compiler/CodeGenGLSL.cpp',
        'compiler/OutputGLSL.cpp',
        'compiler/OutputGLSL.h',
        'compiler/TranslatorGLSL.cpp',
        'compiler/TranslatorGLSL.h',
      ],
    },
    {
      'target_name': 'translator_hlsl',
      'type': 'static_library',
      'dependencies': ['translator_common'],
      'include_dirs': [
        '.',
        '../include',
      ],
      'sources': [
        'compiler/CodeGenHLSL.cpp',
        'compiler/OutputHLSL.cpp',
        'compiler/OutputHLSL.h',
        'compiler/TranslatorHLSL.cpp',
        'compiler/TranslatorHLSL.h',
        'compiler/UnfoldSelect.cpp',
        'compiler/UnfoldSelect.h',
      ],
    },
    {
      'target_name': 'libGLESv2',
      'type': 'shared_library',
      'dependencies': ['translator_hlsl'],
      'include_dirs': [
        '.',
        '../include',
        '$(DXSDK_DIR)/include',
      ],
      'sources': [
        'common/angleutils.h',
        'common/debug.cpp',
        'common/debug.h',
        'libGLESv2/geometry/backend.cpp',
        'libGLESv2/geometry/backend.h',
        'libGLESv2/geometry/dx9.cpp',
        'libGLESv2/geometry/dx9.h',
        'libGLESv2/geometry/IndexDataManager.cpp',
        'libGLESv2/geometry/IndexDataManager.h',
        'libGLESv2/geometry/vertexconversion.h',
        'libGLESv2/geometry/VertexDataManager.cpp',
        'libGLESv2/geometry/VertexDataManager.h',
        'libGLESv2/Blit.cpp',
        'libGLESv2/Blit.h',
        'libGLESv2/Buffer.cpp',
        'libGLESv2/Buffer.h',
        'libGLESv2/Context.cpp',
        'libGLESv2/Context.h',
        'libGLESv2/Framebuffer.cpp',
        'libGLESv2/Framebuffer.h',
        'libGLESv2/libGLESv2.cpp',
        'libGLESv2/libGLESv2.def',
        'libGLESv2/main.cpp',
        'libGLESv2/main.h',
        'libGLESv2/mathutil.h',
        'libGLESv2/Program.cpp',
        'libGLESv2/Program.h',
        'libGLESv2/Renderbuffer.cpp',
        'libGLESv2/Renderbuffer.h',
        'libGLESv2/Shader.cpp',
        'libGLESv2/Shader.h',
        'libGLESv2/Texture.cpp',
        'libGLESv2/Texture.h',
        'libGLESv2/utilities.cpp',
        'libGLESv2/utilities.h',
      ],
      'msvs_settings': {
        'VCLinkerTool': {
          'AdditionalLibraryDirectories': ['$(DXSDK_DIR)/lib/x86'],
          'AdditionalDependencies': ['d3dx9.lib'],
        }
      },
    },
    {
      'target_name': 'libEGL',
      'type': 'shared_library',
      'dependencies': ['libGLESv2'],
      'include_dirs': [
        '.',
        '../include',
      ],
      'sources': [
        'common/angleutils.h',
        'common/debug.cpp',
        'common/debug.h',
        'libEGL/Config.cpp',
        'libEGL/Config.h',
        'libEGL/Display.cpp',
        'libEGL/Display.h',
        'libEGL/libEGL.cpp',
        'libEGL/libEGL.def',
        'libEGL/main.cpp',
        'libEGL/main.h',
        'libEGL/Surface.cpp',
        'libEGL/Surface.h',
      ],
      'msvs_settings': {
        'VCLinkerTool': {
          'AdditionalDependencies': ['d3d9.lib'],
        }
      },
    },
  ],
}

# Local Variables:
# tab-width:2
# indent-tabs-mode:nil
# End:
# vim: set expandtab tabstop=2 shiftwidth=2:<commit_msg>The script for flex and bison was not being generated properly on linux. Extra quotes were being generated in the command-line around output-file path. This change gets around the problem by expanding string variables instead of list. This has another nice side effect that output file path need not be repeated twice. Review URL: http://codereview.appspot.com/1163041<commit_after># Copyright (c) 2010 The ANGLE Project Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

{
  'targets': [
    {
      'target_name': 'translator_common',
      'type': 'static_library',
      'include_dirs': [
        '.',
        '../include',
      ],
      'variables': {
        'glslang_cpp_file': '<(INTERMEDIATE_DIR)/glslang.cpp',
        'glslang_tab_cpp_file': '<(INTERMEDIATE_DIR)/glslang_tab.cpp',
        'glslang_tab_h_file': '<(INTERMEDIATE_DIR)/glslang_tab.h',
      },
      'sources': [
        'common/angleutils.h',
        'common/debug.cpp',
        'common/debug.h',
        'compiler/BaseTypes.h',
        'compiler/Common.h',
        'compiler/ConstantUnion.h',
        'compiler/InfoSink.cpp',
        'compiler/InfoSink.h',
        'compiler/Initialize.cpp',
        'compiler/Initialize.h',
        'compiler/InitializeDll.cpp',
        'compiler/InitializeDll.h',
        'compiler/InitializeGlobals.h',
        'compiler/InitializeParseContext.h',
        'compiler/Intermediate.cpp',
        'compiler/intermediate.h',
        'compiler/intermOut.cpp',
        'compiler/IntermTraverse.cpp',
        'compiler/Link.cpp',
        'compiler/localintermediate.h',
        'compiler/MMap.h',
        'compiler/osinclude.h',
        'compiler/parseConst.cpp',
        'compiler/ParseHelper.cpp',
        'compiler/ParseHelper.h',
        'compiler/PoolAlloc.cpp',
        'compiler/PoolAlloc.h',
        'compiler/QualifierAlive.cpp',
        'compiler/QualifierAlive.h',
        'compiler/RemoveTree.cpp',
        'compiler/RemoveTree.h',
        'compiler/ShaderLang.cpp',
        'compiler/ShHandle.h',
        'compiler/SymbolTable.cpp',
        'compiler/SymbolTable.h',
        'compiler/Types.h',
        'compiler/unistd.h',
        'compiler/preprocessor/atom.c',
        'compiler/preprocessor/atom.h',
        'compiler/preprocessor/compile.h',
        'compiler/preprocessor/cpp.c',
        'compiler/preprocessor/cpp.h',
        'compiler/preprocessor/cppstruct.c',
        'compiler/preprocessor/memory.c',
        'compiler/preprocessor/memory.h',
        'compiler/preprocessor/parser.h',
        'compiler/preprocessor/preprocess.h',
        'compiler/preprocessor/scanner.c',
        'compiler/preprocessor/scanner.h',
        'compiler/preprocessor/slglobals.h',
        'compiler/preprocessor/symbols.c',
        'compiler/preprocessor/symbols.h',
        'compiler/preprocessor/tokens.c',
        'compiler/preprocessor/tokens.h',
        # Generated files
        '<(glslang_cpp_file)',
        '<(glslang_tab_cpp_file)',
        '<(glslang_tab_h_file)',
      ],
      'conditions': [
        ['OS=="win"', {
          'sources': ['compiler/ossource_win.cpp'],
        }, { # else: posix
          'sources': ['compiler/ossource_posix.cpp'],
        }],
      ],
      'actions': [
        {
          'action_name': 'flex_glslang',
          'inputs': ['compiler/glslang.l'],
          'outputs': ['<(glslang_cpp_file)'],
          'action': [
            'flex',
            '--noline',
            '--nounistd',
            '--outfile=<(glslang_cpp_file)',
            '<(_inputs)',
          ],
        },
        {
          'action_name': 'bison_glslang',
          'inputs': ['compiler/glslang.y'],
          'outputs': ['<(glslang_tab_cpp_file)', '<(glslang_tab_h_file)'],
          'action': [
            'bison',
            '--no-lines',
            '--defines=<(glslang_tab_h_file)',
            '--skeleton=yacc.c',
            '--output=<(glslang_tab_cpp_file)',
            '<(_inputs)',
          ],
        },
      ],
    },
    {
      'target_name': 'translator_glsl',
      'type': 'static_library',
      'dependencies': ['translator_common'],
      'include_dirs': [
        '.',
        '../include',
      ],
      'sources': [
        'compiler/CodeGenGLSL.cpp',
        'compiler/OutputGLSL.cpp',
        'compiler/OutputGLSL.h',
        'compiler/TranslatorGLSL.cpp',
        'compiler/TranslatorGLSL.h',
      ],
    },
    {
      'target_name': 'translator_hlsl',
      'type': 'static_library',
      'dependencies': ['translator_common'],
      'include_dirs': [
        '.',
        '../include',
      ],
      'sources': [
        'compiler/CodeGenHLSL.cpp',
        'compiler/OutputHLSL.cpp',
        'compiler/OutputHLSL.h',
        'compiler/TranslatorHLSL.cpp',
        'compiler/TranslatorHLSL.h',
        'compiler/UnfoldSelect.cpp',
        'compiler/UnfoldSelect.h',
      ],
    },
    {
      'target_name': 'libGLESv2',
      'type': 'shared_library',
      'dependencies': ['translator_hlsl'],
      'include_dirs': [
        '.',
        '../include',
        '$(DXSDK_DIR)/include',
      ],
      'sources': [
        'common/angleutils.h',
        'common/debug.cpp',
        'common/debug.h',
        'libGLESv2/geometry/backend.cpp',
        'libGLESv2/geometry/backend.h',
        'libGLESv2/geometry/dx9.cpp',
        'libGLESv2/geometry/dx9.h',
        'libGLESv2/geometry/IndexDataManager.cpp',
        'libGLESv2/geometry/IndexDataManager.h',
        'libGLESv2/geometry/vertexconversion.h',
        'libGLESv2/geometry/VertexDataManager.cpp',
        'libGLESv2/geometry/VertexDataManager.h',
        'libGLESv2/Blit.cpp',
        'libGLESv2/Blit.h',
        'libGLESv2/Buffer.cpp',
        'libGLESv2/Buffer.h',
        'libGLESv2/Context.cpp',
        'libGLESv2/Context.h',
        'libGLESv2/Framebuffer.cpp',
        'libGLESv2/Framebuffer.h',
        'libGLESv2/libGLESv2.cpp',
        'libGLESv2/libGLESv2.def',
        'libGLESv2/main.cpp',
        'libGLESv2/main.h',
        'libGLESv2/mathutil.h',
        'libGLESv2/Program.cpp',
        'libGLESv2/Program.h',
        'libGLESv2/Renderbuffer.cpp',
        'libGLESv2/Renderbuffer.h',
        'libGLESv2/Shader.cpp',
        'libGLESv2/Shader.h',
        'libGLESv2/Texture.cpp',
        'libGLESv2/Texture.h',
        'libGLESv2/utilities.cpp',
        'libGLESv2/utilities.h',
      ],
      'msvs_settings': {
        'VCLinkerTool': {
          'AdditionalLibraryDirectories': ['$(DXSDK_DIR)/lib/x86'],
          'AdditionalDependencies': ['d3dx9.lib'],
        }
      },
    },
    {
      'target_name': 'libEGL',
      'type': 'shared_library',
      'dependencies': ['libGLESv2'],
      'include_dirs': [
        '.',
        '../include',
      ],
      'sources': [
        'common/angleutils.h',
        'common/debug.cpp',
        'common/debug.h',
        'libEGL/Config.cpp',
        'libEGL/Config.h',
        'libEGL/Display.cpp',
        'libEGL/Display.h',
        'libEGL/libEGL.cpp',
        'libEGL/libEGL.def',
        'libEGL/main.cpp',
        'libEGL/main.h',
        'libEGL/Surface.cpp',
        'libEGL/Surface.h',
      ],
      'msvs_settings': {
        'VCLinkerTool': {
          'AdditionalDependencies': ['d3d9.lib'],
        }
      },
    },
  ],
}

# Local Variables:
# tab-width:2
# indent-tabs-mode:nil
# End:
# vim: set expandtab tabstop=2 shiftwidth=2:

{'fraction_non_alphanumeric': 0.16089385474860335, 'fraction_numerical': 0.007611731843575419, 'mean_word_length': 1.9903946544163709, 'pattern_counts': {'":': 0, '<': 27, '<?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': '2806029', 'n_tokens_mistral': 4800, 'n_tokens_neox': 4798, 'n_words': 557}