INNER CODE UNIT · Python
build_library
Silverlan/pragma · build_scripts/build_third_party_libs.py:89
def build_library(name, *args, **kwargs):
# If --clean-deps-build-files was specified, we'll skip the build if the binaries already exist in the staging
# target location. This prevents the rebuilding of libraries we have already built previously.
# If the flag wasn't specified, we always build. In this case the build cache should skip the build anyway unless
# something has changed.
if not config.clean_deps_build_files or not Path(get_library_root_dir(name)).is_dir():
res = build_third_party_library(name, *args, **kwargs)
os.chdir(config.deps_dir)
if config.clean_deps_build_files:
cleanup_build_files(res)
def main():
mkpath(config.prebuilt_bin_dir)
os.chdir(config.prebuilt_bin_dir)
build_library("libdecor")
build_library("zlib")
build_library("libzip")