Skip to content

Commit 10ae53a

Browse files
committed
Include sys headers
1 parent ee14d04 commit 10ae53a

2 files changed

Lines changed: 29 additions & 1 deletion

File tree

‎build.zig‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ pub fn build(b: *std.Build) !void {
367367
b.installArtifact(lib);
368368

369369
const translate_c = b.addTranslateC(.{
370-
.root_source_file = libgit_src.path("include/git2.h"),
370+
.root_source_file = b.path("build/include.h"),
371371
.target = target,
372372
.optimize = optimize,
373373
});

‎build/include.h‎

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
#ifndef INCLUDE_git_include_h__
2+
#define INCLUDE_git_include_h__
3+
4+
#include "git2.h"
5+
#include "git2/sys/alloc.h"
6+
#include "git2/sys/commit_graph.h"
7+
#include "git2/sys/commit.h"
8+
#include "git2/sys/config.h"
9+
#include "git2/sys/credential.h"
10+
#include "git2/sys/cred.h"
11+
#include "git2/sys/diff.h"
12+
#include "git2/sys/email.h"
13+
#include "git2/sys/errors.h"
14+
#include "git2/sys/filter.h"
15+
#include "git2/sys/hashsig.h"
16+
#include "git2/sys/index.h"
17+
#include "git2/sys/mempack.h"
18+
#include "git2/sys/merge.h"
19+
#include "git2/sys/midx.h"
20+
#include "git2/sys/odb_backend.h"
21+
#include "git2/sys/openssl.h"
22+
#include "git2/sys/path.h"
23+
#include "git2/sys/refdb_backend.h"
24+
#include "git2/sys/refs.h"
25+
#include "git2/sys/remote.h"
26+
#include "git2/sys/repository.h"
27+
28+
#endif // INCLUDE_git_include_h__INCLUDED

0 commit comments

Comments
 (0)