Add CMake override modules, stub implementations, and patches to build KiCad without CURL, libgit2, OpenCASCADE, and ngspice dependencies. - cmake/: Find modules that provide stub targets when deps disabled - stubs/include/: Header stubs for curl, git2, ngspice, OCC - stubs/src/: Implementation stubs for disabled features - patches/: Consolidated patch for KiCad source modifications - scripts/: Build helper scripts Verified full native build on macOS with all optional deps disabled. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
27 lines
550 B
C
27 lines
550 B
C
/*
|
|
* KiCad Wasm Port - libgit2 sys/errors.h Stub Header
|
|
*/
|
|
|
|
#ifndef KICAD_WASM_GIT2_SYS_ERRORS_STUB_H
|
|
#define KICAD_WASM_GIT2_SYS_ERRORS_STUB_H
|
|
|
|
#include "../git2.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
/* Error setting functions - stubs */
|
|
static inline void git_error_set_str(int error_class, const char *string) {
|
|
(void)error_class; (void)string;
|
|
}
|
|
|
|
static inline void git_error_set(int error_class, const char *fmt, ...) {
|
|
(void)error_class; (void)fmt;
|
|
}
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* KICAD_WASM_GIT2_SYS_ERRORS_STUB_H */
|