def build(module_params): check_dependencies(False, ['version'], module_params) fs.remove(origin_dir) sqlite_url = 'http://www.sqlite.org/2015/sqlite-amalgamation-{0}.zip'.format(module_params['version']) net.download_file(sqlite_url, archive_path) archives.extract_zip(archive_path) fs.remove(archive_path) fs.rename('sqlite-amalgamation*', origin_dir, True) create_and_run_cmake_file(origin_dir, 'x86') create_and_run_cmake_file(origin_dir, 'x64') if is_windows(): assembly.build_vcxproj(os.path.abspath(os.path.join(origin_dir, 'sqlite_x86', 'sqlite_x86.vcxproj')), lib_directory, ('Debug', 'Release')) assembly.build_vcxproj(os.path.abspath(os.path.join(origin_dir, 'sqlite_x64', 'sqlite_x64.vcxproj')), lib_directory, ('Debug', 'Release')) fs.move_files_to_dir_by_mask(os.path.join(origin_dir, '*.h'), headers_dir, True) fs.clear(origin_dir, cleanup_extensions['c++'])
def build(module_params): check_dependencies(False, ['version'], module_params) fs.remove(origin_dir) sqlite_url = 'http://www.sqlite.org/2015/sqlite-amalgamation-{0}.zip'.format( module_params['version']) net.download_file(sqlite_url, archive_path) archives.extract_zip(archive_path) fs.remove(archive_path) fs.rename('sqlite-amalgamation*', origin_dir, True) create_and_run_cmake_file(origin_dir, 'x86') create_and_run_cmake_file(origin_dir, 'x64') if is_windows(): assembly.build_vcxproj( os.path.abspath( os.path.join(origin_dir, 'sqlite_x86', 'sqlite_x86.vcxproj')), lib_directory, ('Debug', 'Release')) assembly.build_vcxproj( os.path.abspath( os.path.join(origin_dir, 'sqlite_x64', 'sqlite_x64.vcxproj')), lib_directory, ('Debug', 'Release')) fs.move_files_to_dir_by_mask(os.path.join(origin_dir, '*.h'), headers_dir, True) fs.clear(origin_dir, cleanup_extensions['c++'])
def build(module_params): if is_linux(): check_dependencies(["gksudo"]) assembly.install_distro_dependencies(["p7zip-full"])
def build(module_params): if is_linux(): check_dependencies(['gksudo']) assembly.install_distro_dependencies(['p7zip-full'])