Exemplo n.º 1
0
def _(b):
    sources = (
        here/'./main4.cpp',
        here/'./my-keyboard-layout-4.cpp',
    ) + (
        here/'../libtotalmap/src/' // '*.cpp'
    )
    
    include = (
        '-I' + (here/'..'),
        '-I' + (here/'../libtotalmap/include'),
        '-I' + (here/'../libtotalmap/third-party'),
    )
    
    opts = (
        '-O3',
        '-g',
        '-std=c++17',
        '-Wall',
        '-Wno-unused-variable',
        '-Wno-unused-result',
        '-Werror',
    )
    
    libs = (
        '-lboost_program_options',
    )
    
    cpp = 'g++'
    
    bin = here/'./map-keyboard-4'
    
    build_gcc(b, sources, bin, opts + include, gcc=cpp, libs=libs)
Exemplo n.º 2
0
def _(b):
    sources = (
        here / './main2.cpp',
        here / './devinput-interaction.cpp',
        here / './basic-movement-loop.cpp',
    )

    include = ()

    opts = (
        '-O3',
        '-g',
        '-std=c++17',
        '-Wall',
        '-Wno-unused-variable',
        '-Wno-unused-result',
        '-Werror',
    )

    libs = ('-lboost_program_options', )

    cpp = 'g++'

    bin = here / './map-keyboard-2'

    build_gcc(b, sources, bin, opts + include, gcc=cpp, libs=libs)
Exemplo n.º 3
0
def _(b):
    sources = (here / './see-codes.cpp', )

    include = ()

    opts = (
        '-O3',
        '-g',
        '-std=c++14',
        '-Wall',
        '-Wno-unused-variable',
        '-Wno-unused-result',
        '-Werror',
    )

    libs = ()

    cpp = 'g++'

    bin = here / './see-codes'

    build_gcc(b, sources, bin, opts + include, gcc=cpp, libs=libs)
Exemplo n.º 4
0
def _(b):
    sources = (here / './main.cpp', )

    include = ()

    opts = (
        '-O3',
        '-g',
        '-std=c++17',
        '-Wall',
        '-Wno-unused-variable',
        '-Wno-unused-result',
        '-Werror',
    )

    libs = ('-lboost_program_options', )

    cpp = 'g++'

    bin = here / './map-keyboard'

    build_gcc(b, sources, bin, opts + include, gcc=cpp, libs=libs)
Exemplo n.º 5
0
def _(b):
    sources = (here / './main.cpp', )

    include = ('-I' + here, )

    opts = (
        '-O3',
        '-g',
        '-std=c++17',
        '-Wall',
        '-Wno-unused-variable',
        '-Wno-unused-result',
        '-Werror',
    )

    libs = ()

    cpp = 'g++'

    bin_folder = here / 'bin'
    bin_folder.mkdirs()
    bin = bin_folder / 'key-event-server'

    build_gcc(b, sources, bin, opts + include, gcc=cpp, libs=libs)