third_party/sqlite/scripts/generate_amalgamation.py
def _do_configure(config_name):
    """Run the configure script for the SQLite source."""
    configure = os.path.join(_SQLITE_SRC_DIR, 'configure')
    build_flags = ' '.join(
        ['-D' + f for f in _read_configuration_values(config_name)])
    cflags = '-Os {} {}'.format(build_flags, _icu_cpp_flags())
    ldflags = _icu_ld_flags()

    cmd = [
        configure,
        'CFLAGS={}'.format(cflags),
        'LDFLAGS={}'.format(ldflags),
        '--disable-load-extension',
        '--enable-amalgamation',
        '--enable-threadsafe',
    ]
    subprocess.check_call(cmd)

    if _CONFIGURE_FOR_TESTING:
        # Copy the files necessary for building/running tests back
        #into the source directory.
        files = ['Makefile', 'config.h', 'libtool']
        for file_name in files:
            copyfile(
                os.path.join(_TEMP_CONFIG_DIR, file_name),
                os.path.join(_SQLITE_SRC_DIR, file_name))
        file_name = os.path.join(_SQLITE_SRC_DIR, 'libtool')
        st = os.stat(file_name)
        os.chmod(file_name, st.st_mode | stat.S_IEXEC)
Run the configure script for the SQLite source.
Run the configure script for the SQLite source.
Run the configure script for the SQLite source .
def _do_configure(config_name):
    configure = os.path.join(_SQLITE_SRC_DIR, 'configure')
    build_flags = ' '.join(
        ['-D' + f for f in _read_configuration_values(config_name)])
    cflags = '-Os {} {}'.format(build_flags, _icu_cpp_flags())
    ldflags = _icu_ld_flags()
    cmd = [
        configure,
        'CFLAGS={}'.format(cflags),
        'LDFLAGS={}'.format(ldflags),
        '--disable-load-extension',
        '--enable-amalgamation',
        '--enable-threadsafe',
    ]
    subprocess.check_call(cmd)
    if _CONFIGURE_FOR_TESTING:
        files = ['Makefile', 'config.h', 'libtool']
        for file_name in files:
            copyfile(
                os.path.join(_TEMP_CONFIG_DIR, file_name),
                os.path.join(_SQLITE_SRC_DIR, file_name))
        file_name = os.path.join(_SQLITE_SRC_DIR, 'libtool')
        st = os.stat(file_name)
        os.chmod(file_name, st.st_mode | stat.S_IEXEC)
def _do_configure ( config_name ) : configure = os . path . join ( _SQLITE_SRC_DIR , 'configure' ) build_flags = ' ' . join ( [ '-D' + f for f in _read_configuration_values ( config_name ) ] ) cflags = '-Os {} {}' . format ( build_flags , _icu_cpp_flags ( ) ) ldflags = _icu_ld_flags ( ) cmd = [ configure , 'CFLAGS={}' . format ( cflags ) , 'LDFLAGS={}' . format ( ldflags ) , '--disable-load-extension' , '--enable-amalgamation' , '--enable-threadsafe' , ] subprocess . check_call ( cmd ) if _CONFIGURE_FOR_TESTING : files = [ 'Makefile' , 'config.h' , 'libtool' ] for file_name in files : copyfile ( os . path . join ( _TEMP_CONFIG_DIR , file_name ) , os . path . join ( _SQLITE_SRC_DIR , file_name ) ) file_name = os . path . join ( _SQLITE_SRC_DIR , 'libtool' ) st = os . stat ( file_name ) os . chmod ( file_name , st . st_mode | stat . S_IEXEC )
Run the configure script for the SQLite source.
Run the configure script for the SQLite source .
"""Run the configure script for the SQLite source.""" # Copy the files necessary for building/running tests back #into the source directory.
config_name