#! /usr/bin/env python

import Task, TaskGen
from TaskGen import extension, declare_extension
import os, sys

if sys.platform == "win32":
    os.environ["PYTHONPATH"] = os.environ["PYTHONPATH"] + ";default/proto"
else:
    os.environ["PYTHONPATH"] = os.environ["PYTHONPATH"] + ":default/proto"

def create_simple_protoc_task(name, ext, compiled_ext, type, before, shell = True, color = 'PINK', proto_file = '../proto/input_ddf.proto'):
    def create(self, node):
        task = self.create_task(name)
        task.set_inputs(node)
        out = node.change_ext(compiled_ext)
        task.set_outputs(out)

    cmd = 'protoc --encode=%s -I ../src/test -I ../proto -I ${DYNAMO_HOME}/share/proto -I ${DYNAMO_HOME}/ext/include %s < ${SRC} > ${TGT}' % (type, proto_file)
    Task.simple_task_type(name, cmd, before=before, shell=shell, color=color)
    declare_extension([ext], create)

create_simple_protoc_task('input_binding', '.input_binding', '.input_bindingc', 'dmInputDDF.InputBinding', before='cc cxx')
create_simple_protoc_task('gamepads', '.gamepads', '.gamepadsc', 'dmInputDDF.GamepadMaps', before='cc cxx')

def build(bld):
    test_input = bld.new_task_gen(features = 'cc cxx cprogram test',
                                     includes = '. .. ../../proto',
                                     uselib = 'DDF PLATFORM_SOCKET PLATFORM_THREAD HID_NULL DLIB',
                                     uselib_local = 'input',
                                     protoc_includes = '../../proto',
                                     target = 'test_input')
    test_input.find_sources_in_dirs(['.'])

    test_input.install_path = None

ae14956ef987c6f7548b4bcd21ff72a736dc9784
<mask token>


def create_simple_protoc_task(name, ext, compiled_ext, type, before, shell=
    True, color='PINK', proto_file='../proto/input_ddf.proto'):

    def create(self, node):
        task = self.create_task(name)
        task.set_inputs(node)
        out = node.change_ext(compiled_ext)
        task.set_outputs(out)
    cmd = (
        'protoc --encode=%s -I ../src/test -I ../proto -I ${DYNAMO_HOME}/share/proto -I ${DYNAMO_HOME}/ext/include %s < ${SRC} > ${TGT}'
         % (type, proto_file))
    Task.simple_task_type(name, cmd, before=before, shell=shell, color=color)
    declare_extension([ext], create)


<mask token>

<mask token>


def create_simple_protoc_task(name, ext, compiled_ext, type, before, shell=
    True, color='PINK', proto_file='../proto/input_ddf.proto'):

    def create(self, node):
        task = self.create_task(name)
        task.set_inputs(node)
        out = node.change_ext(compiled_ext)
        task.set_outputs(out)
    cmd = (
        'protoc --encode=%s -I ../src/test -I ../proto -I ${DYNAMO_HOME}/share/proto -I ${DYNAMO_HOME}/ext/include %s < ${SRC} > ${TGT}'
         % (type, proto_file))
    Task.simple_task_type(name, cmd, before=before, shell=shell, color=color)
    declare_extension([ext], create)


<mask token>


def build(bld):
    test_input = bld.new_task_gen(features='cc cxx cprogram test', includes
        ='. .. ../../proto', uselib=
        'DDF PLATFORM_SOCKET PLATFORM_THREAD HID_NULL DLIB', uselib_local=
        'input', protoc_includes='../../proto', target='test_input')
    test_input.find_sources_in_dirs(['.'])
    test_input.install_path = None

<mask token>
if sys.platform == 'win32':
    os.environ['PYTHONPATH'] = os.environ['PYTHONPATH'] + ';default/proto'
else:
    os.environ['PYTHONPATH'] = os.environ['PYTHONPATH'] + ':default/proto'


def create_simple_protoc_task(name, ext, compiled_ext, type, before, shell=
    True, color='PINK', proto_file='../proto/input_ddf.proto'):

    def create(self, node):
        task = self.create_task(name)
        task.set_inputs(node)
        out = node.change_ext(compiled_ext)
        task.set_outputs(out)
    cmd = (
        'protoc --encode=%s -I ../src/test -I ../proto -I ${DYNAMO_HOME}/share/proto -I ${DYNAMO_HOME}/ext/include %s < ${SRC} > ${TGT}'
         % (type, proto_file))
    Task.simple_task_type(name, cmd, before=before, shell=shell, color=color)
    declare_extension([ext], create)


create_simple_protoc_task('input_binding', '.input_binding',
    '.input_bindingc', 'dmInputDDF.InputBinding', before='cc cxx')
create_simple_protoc_task('gamepads', '.gamepads', '.gamepadsc',
    'dmInputDDF.GamepadMaps', before='cc cxx')


def build(bld):
    test_input = bld.new_task_gen(features='cc cxx cprogram test', includes
        ='. .. ../../proto', uselib=
        'DDF PLATFORM_SOCKET PLATFORM_THREAD HID_NULL DLIB', uselib_local=
        'input', protoc_includes='../../proto', target='test_input')
    test_input.find_sources_in_dirs(['.'])
    test_input.install_path = None

import Task, TaskGen
from TaskGen import extension, declare_extension
import os, sys
if sys.platform == 'win32':
    os.environ['PYTHONPATH'] = os.environ['PYTHONPATH'] + ';default/proto'
else:
    os.environ['PYTHONPATH'] = os.environ['PYTHONPATH'] + ':default/proto'


def create_simple_protoc_task(name, ext, compiled_ext, type, before, shell=
    True, color='PINK', proto_file='../proto/input_ddf.proto'):

    def create(self, node):
        task = self.create_task(name)
        task.set_inputs(node)
        out = node.change_ext(compiled_ext)
        task.set_outputs(out)
    cmd = (
        'protoc --encode=%s -I ../src/test -I ../proto -I ${DYNAMO_HOME}/share/proto -I ${DYNAMO_HOME}/ext/include %s < ${SRC} > ${TGT}'
         % (type, proto_file))
    Task.simple_task_type(name, cmd, before=before, shell=shell, color=color)
    declare_extension([ext], create)


create_simple_protoc_task('input_binding', '.input_binding',
    '.input_bindingc', 'dmInputDDF.InputBinding', before='cc cxx')
create_simple_protoc_task('gamepads', '.gamepads', '.gamepadsc',
    'dmInputDDF.GamepadMaps', before='cc cxx')


def build(bld):
    test_input = bld.new_task_gen(features='cc cxx cprogram test', includes
        ='. .. ../../proto', uselib=
        'DDF PLATFORM_SOCKET PLATFORM_THREAD HID_NULL DLIB', uselib_local=
        'input', protoc_includes='../../proto', target='test_input')
    test_input.find_sources_in_dirs(['.'])
    test_input.install_path = None

#! /usr/bin/env python

import Task, TaskGen
from TaskGen import extension, declare_extension
import os, sys

if sys.platform == "win32":
    os.environ["PYTHONPATH"] = os.environ["PYTHONPATH"] + ";default/proto"
else:
    os.environ["PYTHONPATH"] = os.environ["PYTHONPATH"] + ":default/proto"

def create_simple_protoc_task(name, ext, compiled_ext, type, before, shell = True, color = 'PINK', proto_file = '../proto/input_ddf.proto'):
    def create(self, node):
        task = self.create_task(name)
        task.set_inputs(node)
        out = node.change_ext(compiled_ext)
        task.set_outputs(out)

    cmd = 'protoc --encode=%s -I ../src/test -I ../proto -I ${DYNAMO_HOME}/share/proto -I ${DYNAMO_HOME}/ext/include %s < ${SRC} > ${TGT}' % (type, proto_file)
    Task.simple_task_type(name, cmd, before=before, shell=shell, color=color)
    declare_extension([ext], create)

create_simple_protoc_task('input_binding', '.input_binding', '.input_bindingc', 'dmInputDDF.InputBinding', before='cc cxx')
create_simple_protoc_task('gamepads', '.gamepads', '.gamepadsc', 'dmInputDDF.GamepadMaps', before='cc cxx')

def build(bld):
    test_input = bld.new_task_gen(features = 'cc cxx cprogram test',
                                     includes = '. .. ../../proto',
                                     uselib = 'DDF PLATFORM_SOCKET PLATFORM_THREAD HID_NULL DLIB',
                                     uselib_local = 'input',
                                     protoc_includes = '../../proto',
                                     target = 'test_input')
    test_input.find_sources_in_dirs(['.'])

    test_input.install_path = None
