示例#1
0
def Configure(env):
    SetupCompiler(env)
    configs.Configure(env)
    env['TARGET_OS'] = 'win32'
    env['WIN_PROG_FLAGS'] = '-mwindows'
    env['STDCXX_LIBS'] = ['stdc++']
    env['MATH_LIBS'] = ['m']
    env.AppendUnique(CPPDEFINES=['WIN32'])
    env.AppendUnique(CFLAGS=['-g', '-fno-unit-at-a-time', '-Wall'],
                     CXXFLAGS=['-g', '-Wall'],
                     LINKFLAGS=['-g', '-fno-unit-at-a-time'])
    configs.Win32ModuleLoaderConfigure(env)
示例#2
0
def Configure(env):
    configs.Configure(env)
    env['TARGET_OS'] = 'darwin'
    env.AppendUnique(CPPDEFINES=['SEXY_DARWIN'],
                     CCFLAGS=['-pthread'],
                     LINKFLAGS=['-pthread'])
    env.AppendUnique(CFLAGS=['-g', '-fno-unit-at-a-time', '-Wall'],
                     CXXFLAGS=['-g', '-Wall'],
                     LINKFLAGS=['-g', '-fno-unit-at-a-time'],
                     LIBS=['m'])
    configs.PosixModuleLoaderConfigure(env)
    configs.FreeTypeConfigure(env)
示例#3
0
def Configure(env):
    configs.Configure(env)
    env['TARGET_OS'] = 'freebsd'
    if env['build_32bit']:
        env.AppendUnique(CCFLAGS=['-m32'], LINKFLAGS=['-m32'])
    env.AppendUnique(CFLAGS=['-pthread'], LINKFLAGS=['-pthread'])
    env.AppendUnique(CFLAGS=['-g', '-fno-unit-at-a-time', '-Wall'],
                     CXXFLAGS=['-g', '-Wall'],
                     LINKFLAGS=['-g', '-fno-unit-at-a-time'],
                     LIBS=['rt', 'm'])
    configs.PosixModuleLoaderConfigure(env)
    configs.FreeTypeConfigure(env)
示例#4
0
def Configure(env):
    configs.Configure(env)
    env['TARGET_OS'] = 'linux'
    if env['build_32bit']:
        env.AppendUnique(CCCFLAGS=['-m32'], LINKFLAGS=['-m32'])
    env.AppendUnique(CCFLAGS=['-pthread'], LINKFLAGS=['-pthread'])
    env.AppendUnique(
        CCFLAGS=['-g', '-fno-unit-at-a-time', '-Wall'],
        CXXFLAGS=['-g', '-Wall'],
        LINKFLAGS=['-g', '-fno-unit-at-a-time', '-export-dynamic'],
        LIBS=['rt', 'm'])
    env['STDCXX_LIBS'] = ['stdc++']

    if env['optimize']:
        env.AppendUnique(CCFLAGS=['-O$optimize_level'])

    configs.linux.EnableLinuxUdpInputServer(env)
    configs.PosixModuleLoaderConfigure(env)
    configs.linux.LinuxInputConfigure(env)
    configs.linux.UdpInputConfigure(env)
示例#5
0
def Configure(env):
    configs.Configure(env)
    env['TARGET_OS'] = 'win32'
    env.AppendUnique(CPPDEFINES=['WIN32'])
    env.AppendUnique(CFLAGS=['/EHsc'], CXXFLAGS=['/EHsc'], LINKFLAGS=[])

    if env['debug']:
        env.AppendUnique(CFLAGS=['/DEBUG'],
                         CXXFLAGS=['/DEBUG'],
                         LINKFLAGS=['/DEBUG', '/PROFILE'])
        env['PDB'] = '${TARGET.base}.pdb'

    if not env['static']:
        env.AppendUnique(CFLAGS=['/MD'], CXXFLAGS=['/MD'])

    if env['release']:
        env.AppendUnique(CFLAGS=['/O2'], CXXFLAGS=['/O2'], LINKFLAGS=[])
    configs.Win32ModuleLoaderConfigure(env)

    ### static link with freetype
    env['FREETYPECONFIG'] = None
    env.AppendUnique(BUILD_PACKAGES=['freetype'])