Exemple #1
0
def load_profile_android_gcc_settings(conf):
    """
    Setup all compiler and linker settings shared over all android gcc configurations
    for the "profile" configuration
    """

    conf.load_android_gcc_common_settings()
Exemple #2
0
def load_release_android_gcc_settings(conf):
    """
    Setup all compiler/linker flags with are shared over all targets using the android compiler
    for the "release" configuration
    """

    conf.load_android_gcc_common_settings()
    env = conf.env

    env['DEFINES'] += ['NDEBUG']

    common_flags = [
        '-O3',  # all optimizations
    ]

    env['CFLAGS'] += common_flags[:]
    env['CXXFLAGS'] += common_flags[:]
Exemple #3
0
def load_profile_android_gcc_settings(conf):
    """
    Setup all compiler/linker flags with are shared over all targets using the android compiler
    for the "profile" configuration
    """

    conf.load_android_gcc_common_settings()
    env = conf.env

    env['DEFINES'] += ['NDEBUG']

    common_flags = [
        '-O3',  # all optimizations
        '-g',  # debugging information
        '-gdwarf-2'  # DAWRF 2 debugging information
    ]

    env['CFLAGS'] += common_flags[:]
    env['CXXFLAGS'] += common_flags[:]
Exemple #4
0
def load_debug_android_gcc_settings(conf):
    """
    Setup all compiler/linker flags with are shared over all targets using the android compiler
    for the "debug" configuration
    """

    conf.load_android_gcc_common_settings()
    env = conf.env

    common_flags = [
        '-O0',  # No optimization
        '-fno-inline',  #
        '-fstack-protector',  #
        '-g',  # debugging information
        '-gdwarf-2',  # DAWRF 2 debugging information
    ]

    env['CFLAGS'] += common_flags[:]
    env['CXXFLAGS'] += common_flags[:]

    env['J_DEBUG_MODE'] = '--debug-mode'