<commit_before># Copyright (c) 2013-2014 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.

# This script generates visual studio projects that can be used on WinRT

import os
import sys

script_dir = os.path.join(os.path.dirname(__file__), 'build')
angle_dir = os.path.normpath(os.path.join(script_dir, os.pardir))
gyp_dir = os.path.join(angle_dir, 'third_party', 'gyp')

gyp_generators = "msvs"
msvs_version = "2013e"

def generateProjects(generation_dir, build_winphone):
    gyp_cmd = os.path.join(gyp_dir, 'gyp')
    gyp_cmd += ' --ignore-environment'
    gyp_cmd += ' --depth=.'
    gyp_cmd += ' --include=' + os.path.join(script_dir, 'common.gypi')
    gyp_cmd += ' --generator-output=' + generation_dir
    gyp_cmd += ' --format=' + gyp_generators
    gyp_cmd += ' -G msvs_version=' + msvs_version
    gyp_cmd += ' -D angle_use_commit_id=0'
    gyp_cmd += ' -D angle_build_winrt=1'
    gyp_cmd += ' -D angle_build_winphone=' + ('1' if build_winphone else '0')
    gyp_cmd += ' -D angle_enable_d3d9=0'
    gyp_cmd += ' -D angle_enable_gl=0'
    gyp_cmd += ' -D angle_standalone=1'
    gyp_cmd += ' ' + os.path.join(script_dir, 'all.gyp')<commit_msg>Fix Winrt Project generation<commit_after># Copyright (c) 2013-2014 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.

# This script generates visual studio projects that can be used on WinRT

import os
import sys

script_dir = os.path.join(os.path.dirname(__file__), 'build')
angle_dir = os.path.normpath(os.path.join(script_dir, os.pardir))
gyp_dir = os.path.join(angle_dir, 'third_party', 'gyp')

gyp_generators = "msvs"
msvs_version = "2013e"

def generateProjects(generation_dir, build_winphone):
    gyp_cmd = os.path.join(gyp_dir, 'gyp')
    gyp_cmd += ' --ignore-environment'
    gyp_cmd += ' --depth=.'
    gyp_cmd += ' --include=' + os.path.join(script_dir, 'common.gypi')
    gyp_cmd += ' --generator-output=' + generation_dir
    gyp_cmd += ' --format=' + gyp_generators
    gyp_cmd += ' -G msvs_version=' + msvs_version
    gyp_cmd += ' -D angle_use_commit_id=0'
    gyp_cmd += ' -D angle_build_winrt=1'
    gyp_cmd += ' -D angle_build_winphone=' + ('1' if build_winphone else '0')
    gyp_cmd += ' -D angle_enable_d3d9=0'
    gyp_cmd += ' -D angle_enable_gl=0'
    gyp_cmd += ' -D angle_standalone=1'
    gyp_cmd += ' ' + os.path.join(script_dir, 'angle.gyp')
{'fraction_non_alphanumeric': 0.13997627520759193, 'fraction_numerical': 0.0166073546856465, 'mean_word_length': 3.9031007751937983, 'pattern_counts': {'":': 0, '<': 3, '<?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': '7456147', 'n_tokens_mistral': 975, 'n_tokens_neox': 942, 'n_words': 222}