mirror of
https://github.com/lightpanda-io/browser.git
synced 2025-10-29 07:03:29 +00:00
wpt: rename file into main and create make wpt
This commit is contained in:
5
Makefile
5
Makefile
@@ -46,6 +46,11 @@ shell:
|
|||||||
@printf "\e[36mBuilding shell...\e[0m\n"
|
@printf "\e[36mBuilding shell...\e[0m\n"
|
||||||
@$(ZIG) build shell -Dengine=v8 || (printf "\e[33mBuild ERROR\e[0m\n"; exit 1;)
|
@$(ZIG) build shell -Dengine=v8 || (printf "\e[33mBuild ERROR\e[0m\n"; exit 1;)
|
||||||
|
|
||||||
|
## Run WPT tests
|
||||||
|
wpt:
|
||||||
|
@printf "\e[36mBuilding wpt...\e[0m\n"
|
||||||
|
@$(ZIG) build wpt -Dengine=v8 || (printf "\e[33mBuild ERROR\e[0m\n"; exit 1;)
|
||||||
|
|
||||||
## Test
|
## Test
|
||||||
test:
|
test:
|
||||||
@printf "\e[36mTesting...\e[0m\n"
|
@printf "\e[36mTesting...\e[0m\n"
|
||||||
|
|||||||
@@ -79,7 +79,7 @@ pub fn build(b: *std.build.Builder) !void {
|
|||||||
// compile and install
|
// compile and install
|
||||||
const wpt = b.addExecutable(.{
|
const wpt = b.addExecutable(.{
|
||||||
.name = "browsercore-wpt",
|
.name = "browsercore-wpt",
|
||||||
.root_source_file = .{ .path = "src/run_wpt.zig" },
|
.root_source_file = .{ .path = "src/main_wpt.zig" },
|
||||||
.target = target,
|
.target = target,
|
||||||
.optimize = mode,
|
.optimize = mode,
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user