-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathbuild.zig.zon
More file actions
118 lines (118 loc) · 4.06 KB
/
Copy pathbuild.zig.zon
File metadata and controls
118 lines (118 loc) · 4.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
.{
.name = .zapi_examples,
.version = "0.0.0",
.fingerprint = 0x5ce1fd8530722186,
.minimum_zig_version = "0.16.0",
.paths = .{
"build.zig",
"build.zig.zon",
"addon_isolation",
"function_only_dsl",
"hello_world",
"js_dsl",
"register_decls",
"type_tag",
},
.dependencies = .{
// Repository builds use --fork so the examples consume the local
// checkout while preserving the URL/hash dependency boundary.
.zapi = .{
.url = "https://github.com/ChainSafe/zapi/archive/b934988f8595e5a5fdc497b7212631004f800116.tar.gz",
.hash = "zapi-3.1.0-rIqzUfHFBADg6qo5AXJzbfHgs6LqpwgVKYal4qCG4XSW",
},
.zbuild = .{
.url = "git+https://github.com/chainsafe/zbuild.git#f7d5f19de09f2808e54acf599605f9e18c9bd804",
.hash = "zbuild-0.4.0-XJFav-1nAgDmfVY1nVSIIzbkcbuHZj7yMb7Fv8yvznPO",
},
},
.modules = .{
.example_hello_world = .{
.root_source_file = "hello_world/mod.zig",
.imports = .{.zapi},
.link_libc = true,
},
.example_type_tag = .{
.root_source_file = "type_tag/mod.zig",
.imports = .{.zapi},
.link_libc = true,
},
.example_js_dsl = .{
.root_source_file = "js_dsl/mod.zig",
.imports = .{.zapi},
.link_libc = true,
},
.example_addon_isolation = .{
.root_source_file = "addon_isolation/mod.zig",
.imports = .{.zapi},
.link_libc = true,
},
.example_register_decls = .{
.root_source_file = "register_decls/mod.zig",
.imports = .{.zapi},
.link_libc = true,
},
.function_only_dsl_compile = .{
.root_source_file = "function_only_dsl/mod.zig",
.imports = .{.zapi},
.link_libc = true,
},
},
.libraries = .{
.example_hello_world = .{
.root_module = .example_hello_world,
.linkage = .dynamic,
.linker_allow_shlib_undefined = true,
.dest_sub_path = "example_hello_world.node",
},
.example_type_tag = .{
.root_module = .example_type_tag,
.linkage = .dynamic,
.linker_allow_shlib_undefined = true,
.dest_sub_path = "example_type_tag.node",
},
.example_js_dsl = .{
.root_module = .example_js_dsl,
.linkage = .dynamic,
.linker_allow_shlib_undefined = true,
.dest_sub_path = "example_js_dsl.node",
},
.example_addon_isolation = .{
.root_module = .example_addon_isolation,
.linkage = .dynamic,
.linker_allow_shlib_undefined = true,
.dest_sub_path = "example_addon_isolation.node",
},
.example_register_decls = .{
.root_module = .example_register_decls,
.linkage = .dynamic,
.linker_allow_shlib_undefined = true,
.dest_sub_path = "example_register_decls.node",
},
.function_only_dsl_compile = .{
.root_module = .function_only_dsl_compile,
.linkage = .dynamic,
.linker_allow_shlib_undefined = true,
.dest_sub_path = "function_only_dsl_compile.node",
},
},
.tests = .{
// Node supplies these N-API symbols when it loads the addon. Standalone
// Zig test binaries allow them to remain unresolved.
.example_hello_world = .{
.root_module = .example_hello_world,
.linker_allow_shlib_undefined = true,
},
.example_type_tag = .{
.root_module = .example_type_tag,
.linker_allow_shlib_undefined = true,
},
.example_js_dsl = .{
.root_module = .example_js_dsl,
.linker_allow_shlib_undefined = true,
},
.example_addon_isolation = .{
.root_module = .example_addon_isolation,
.linker_allow_shlib_undefined = true,
},
},
}