def load_debug_android_clang_settings(conf):
    """
    Setup all compiler and linker settings shared over all android clang configurations
    for the "debug" configuration
    """

    conf.load_android_clang_common_settings()
Пример #2
0
def load_release_android_clang_settings(conf):
    """
    Setup all compiler/linker flags with are shared over all targets using the android compiler
    for the "release" configuration
    """

    conf.load_android_clang_common_settings()
    env = conf.env

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

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

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

    conf.load_android_clang_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[:]
Пример #4
0
def load_debug_android_clang_settings(conf):
    """
    Setup all compiler/linker flags with are shared over all targets using the android compiler
    for the "debug" configuration
    """

    conf.load_android_clang_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'