native_toolchain_x 1.0.0-dev.1
native_toolchain_x: ^1.0.0-dev.1 copied to clipboard
A library to invoke the native C compiler installed on the host machine, with CMake and repository builders for building third-party sources in native assets hooks.
1.0.0-dev.1 #
CBuilderandCLinkerno longer report files inside the hook output directory (outputDirectoryShared, and its checksum subdirectoryoutputDirectory) as dependencies. Builds that install third-party artifacts during the hook (for example the OpenSSL and zstd headers) no longer create a "modified during build" dependency, which used to invalidate the hook cache on every build (File modified during build. Build must be rerun.).
1.0.0-dev.0 #
- Initial development prerelease of
native_toolchain_x. - Based on
native_toolchain_c0.19.5:CBuilder,CLinker,CLibrary, toolchain discovery, and the build/link hook integration are available under the same API, so existing build hooks can switch to this package by changing their imports. - Added
CMakeBuilder, which configures, builds, and installs a CMake project from the build hook for the target OS, architecture, SDK version, and NDK API level, with optional extra-Dvariables. - Added
RepositoryBuilder.tgz(downloads a release archive and verifies it against a SHA-256 digest before extracting) andRepositoryBuilder.git(checks out a given refspec); both default to the shared build directory, so sources are reused across builds. - Added
Tools, which resolves the external build tools used by the builders (cmake,make,jom,tar,git,perl,nasm) through the same tool resolver machinery as the compilers.Tools.jomlives onPATHand exposes thejom/nmake-style make needed for parallel builds on Windows. - Added
ToolExt.resolveOrNull, which returnsnullinstead of throwing when a tool is missing, so callers can report a targeted error. - Added
HookInputUserDefinesExt.getValuefor reading typeduser_defines. - Added an optional
encodingtorunProcessand pinned MSVC output to UTF-8, so compiler diagnostics are decoded correctly on non-UTF-8 code pages. - Note: this is a prerelease — the API surface may change in breaking ways before 1.0.0.