@@ -153,8 +153,30 @@ pub fn build(b: *std.Build) void {
153153 const run_compliance_step = b .step ("compliance" , "Run Ethereum compliance tests" );
154154 run_compliance_step .dependOn (& run_compliance_cmd .step );
155155
156+ // Web demo server
157+ const web_exe = b .addExecutable (.{
158+ .name = "zig-evm-web" ,
159+ .root_module = b .createModule (.{
160+ .root_source_file = b .path ("src/web_server.zig" ),
161+ .target = target ,
162+ .optimize = optimize ,
163+ }),
164+ });
165+
166+ b .installArtifact (web_exe );
167+
168+ const install_web = b .addInstallArtifact (web_exe , .{});
169+ const build_web_step = b .step ("build-web" , "Build the web demo server" );
170+ build_web_step .dependOn (& install_web .step );
171+
172+ const run_web_cmd = b .addRunArtifact (web_exe );
173+
174+ const run_web_step = b .step ("web" , "Run the web demo server" );
175+ run_web_step .dependOn (& run_web_cmd .step );
176+
156177 // Shared library for FFI
157- const lib = b .addSharedLibrary (.{
178+ const lib = b .addLibrary (.{
179+ .linkage = .dynamic ,
158180 .name = "zigevm" ,
159181 .root_module = b .createModule (.{
160182 .root_source_file = b .path ("src/ffi.zig" ),
@@ -167,7 +189,8 @@ pub fn build(b: *std.Build) void {
167189 b .installArtifact (lib );
168190
169191 // Also create static library
170- const static_lib = b .addStaticLibrary (.{
192+ const static_lib = b .addLibrary (.{
193+ .linkage = .static ,
171194 .name = "zigevm" ,
172195 .root_module = b .createModule (.{
173196 .root_source_file = b .path ("src/ffi.zig" ),
0 commit comments