<commit_before>#!/usr/bin/env python

# This is the make script for Pong - a C# source project - with some added
# comments for clarity.  See https://github.com/philiparvidsson/Pong for  more
# information.

import os, sys
sys.path.insert(0, os.path.join('build', 'pymake2'))
from pymake2 import *

import csc

@default_target
@depends_on('compile', 'content', 'libs')
def all(conf):
    # The 'all' target doesn't need to do anything - it just depends on other
    # relevant targets to make.
    pass

@target
def content(conf):
    # Copy 'res' folder to 'Content' folder in the bin directory.
    copy('res', os.path.join(conf.bindir, 'Content'))

@target
def libs(conf):
    # Copy the SharpDX dll-files to the bin directory.
    copy(r'lib\SharpDX', conf.bindir, '*.dll')

# The configuration below depends on the backend used for the make process.  In
# this case, we're using csc, which uses the options set below.
pymake2({ 'name'   : 'Pong.exe',

         'flags'  : ['/target:winexe',
                     #'/debug',
                     #'/define:DEBUG',
                     '/o',
                     '/platform:x64'],
         'libdirs': [r'lib\SharpDX'],

         'libs'   : ['PresentationCore.dll',
                     'System.IO.dll',
                     'System.Runtime.dll',
                     'WindowsBase.dll',

                     'SharpDX.D3DCompiler.dll',
                     'SharpDX.DXGI.dll',
                     'SharpDX.Direct3D11.dll',
                     'SharpDX.Mathematics.dll',
                     'SharpDX.XAudio2.dll',
                     'SharpDX.dll'] })<commit_msg>updated pong example<commit_after>#!/usr/bin/env python

# This is the make script for Pong - a C# source project - with some added
# comments for clarity.  See https://github.com/philiparvidsson/Pong for  more
# information.

import os, sys
sys.path.insert(0, os.path.join('build', 'pymake2'))
from pymake2 import *

from pymake2.template.csharp import csc
from pymake2.template.util   import fswatcher

# The configuration below depends on the backend used for the make process.  In
# this case, we're using csc, which uses the options set below.
conf={ 'name': 'Pong.exe',

       'flags': ['/nologo',
                 #'/debug',
                 #'/define:DEBUG',
                 '/optimize',
                 '/target:winexe',
                 '/platform:x64'],

       'libdirs': csc.conf.libdirs + [ r'lib\SharpDX' ],

       'libs': [ 'PresentationCore.dll',
                 'System.IO.dll',
                 'System.Runtime.dll',
                 'WindowsBase.dll',

                 'SharpDX.D3DCompiler.dll',
                 'SharpDX.DXGI.dll',
                 'SharpDX.Direct3D11.dll',
                 'SharpDX.Mathematics.dll',
                 'SharpDX.XAudio2.dll',
                 'SharpDX.dll' ] }

@default_target(conf=csc.conf)
@depends_on('compile', 'content', 'libs')
def all(conf):
    # The 'all' target doesn't need to do anything - it just depends on other
    # relevant targets to make.
    pass

@target(conf=csc.conf)
def content(conf):
    # Copy 'res' folder to 'Content' folder in the bin directory.
    copy('res', os.path.join(conf.bindir, 'Content'))

@target(conf=csc.conf)
def libs(conf):
    # Copy the SharpDX dll-files to the bin directory.
    copy(r'lib\SharpDX', conf.bindir, '*.dll')

pymake2(conf)
{'fraction_non_alphanumeric': 0.13194650817236256, 'fraction_numerical': 0.00713224368499257, 'mean_word_length': 2.11090573012939, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '5795702', 'n_tokens_mistral': 1139, 'n_tokens_neox': 1035, 'n_words': 281}