Пример #1
0
generator = generator.Generator(project='rpmalloc',
                                variables=[
                                    ('bundleidentifier',
                                     'com.rampantpixels.rpmalloc.$(binname)')
                                ])
target = generator.target
writer = generator.writer
toolchain = generator.toolchain

rpmalloc_lib = generator.lib(module='rpmalloc',
                             libname='rpmalloc',
                             sources=['rpmalloc.c'])

if not target.is_android() and not target.is_ios():
    rpmalloc_so = generator.sharedlib(module='rpmalloc',
                                      libname='rpmalloc',
                                      sources=['rpmalloc.c'])

if not target.is_windows():
    if not target.is_android() and not target.is_ios():
        rpmallocwrap_lib = generator.lib(
            module='rpmalloc',
            libname='rpmallocwrap',
            sources=['rpmalloc.c', 'malloc.c', 'new.cc'],
            variables={'defines': ['ENABLE_PRELOAD=1']})

    if not target.is_windows() and not target.is_android(
    ) and not target.is_ios():
        rpmallocwrap_so = generator.sharedlib(
            module='rpmalloc',
            libname='rpmallocwrap',
Пример #2
0
#!/usr/bin/env python

"""Ninja build configurator for rpmalloc library"""

import sys
import os

sys.path.insert(0, os.path.join('build', 'ninja'))

import generator

generator = generator.Generator(project = 'rpmalloc', variables = [('bundleidentifier', 'com.rampantpixels.rpmalloc.$(binname)')])
target = generator.target
writer = generator.writer
toolchain = generator.toolchain

rpmalloc_lib = generator.lib(module = 'rpmalloc', sources = ['rpmalloc.c', 'malloc.c', 'new.cc'])
if not target.is_windows():
	rpmalloc_so = generator.sharedlib(module = 'rpmalloc', sources = ['rpmalloc.c', 'malloc.c', 'new.cc'], variables = {'runtime': 'c++'})
Пример #3
0
import generator

generator = generator.Generator(project='rpmalloc',
                                variables=[
                                    ('bundleidentifier',
                                     'com.rampantpixels.rpmalloc.$(binname)')
                                ])

rpmalloc_lib = generator.lib(module='rpmalloc',
                             libname='rpmalloc',
                             sources=['rpmalloc.c'])

if not generator.target.is_android() and not generator.target.is_ios():
    rpmalloc_so = generator.sharedlib(module='rpmalloc',
                                      libname='rpmalloc',
                                      sources=['rpmalloc.c'])

    rpmallocwrap_so = generator.sharedlib(
        module='rpmalloc',
        libname='rpmallocwrap',
        sources=['rpmalloc.c'],
        variables={'defines': ['ENABLE_PRELOAD=1', 'ENABLE_OVERRIDE=1']})
    rpmallocwrap_lib = generator.lib(
        module='rpmalloc',
        libname='rpmallocwrap',
        sources=['rpmalloc.c'],
        variables={'defines': ['ENABLE_PRELOAD=1', 'ENABLE_OVERRIDE=1']})

    generator.bin(
        module='test',
Пример #4
0
#!/usr/bin/env python
"""Ninja build configurator for rpmalloc library"""

import sys
import os

sys.path.insert(0, os.path.join('build', 'ninja'))

import generator

generator = generator.Generator(project='rpmalloc',
                                variables=[
                                    ('bundleidentifier',
                                     'com.rampantpixels.rpmalloc.$(binname)')
                                ])
target = generator.target
writer = generator.writer
toolchain = generator.toolchain

rpmalloc_lib = generator.lib(module='rpmalloc',
                             sources=['rpmalloc.c', 'malloc.c'])
if not target.is_windows():
    rpmalloc_so = generator.sharedlib(module='rpmalloc',
                                      sources=['rpmalloc.c', 'malloc.c'])