mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 03:57:44 +00:00
Meta: Add LibTest and Tests/AK to gn build
This commit is contained in:
parent
4bfb146181
commit
cbda1a6c73
5 changed files with 183 additions and 1 deletions
43
Meta/gn/secondary/Userland/Libraries/LibTest/BUILD.gn
Normal file
43
Meta/gn/secondary/Userland/Libraries/LibTest/BUILD.gn
Normal file
|
@ -0,0 +1,43 @@
|
|||
shared_library("LibTest") {
|
||||
output_name = "test"
|
||||
include_dirs = [ "//Userland/Libraries" ]
|
||||
sources = [
|
||||
"CrashTest.cpp",
|
||||
"CrashTest.h",
|
||||
"Macros.h",
|
||||
"Results.h",
|
||||
"TestCase.h",
|
||||
"TestRunner.h",
|
||||
"TestRunnerUtil.h",
|
||||
"TestSuite.cpp",
|
||||
"TestSuite.h",
|
||||
]
|
||||
|
||||
deps = [ "//AK" ]
|
||||
if (current_os != "serenity") {
|
||||
deps += [ "//Userland/Libraries/LibCore" ]
|
||||
}
|
||||
|
||||
output_name = "test"
|
||||
|
||||
testonly = true
|
||||
}
|
||||
|
||||
source_set("test_main") {
|
||||
include_dirs = [ "//Userland/Libraries" ]
|
||||
sources = [ "TestMain.cpp" ]
|
||||
deps = [ "//AK" ]
|
||||
public_deps = [ ":LibTest" ]
|
||||
testonly = true
|
||||
}
|
||||
|
||||
source_set("test_js_main") {
|
||||
include_dirs = [ "//Userland/Libraries" ]
|
||||
sources = [
|
||||
"JavaScriptTestRunner.h",
|
||||
"JavaScriptTestRunnerMain.cpp",
|
||||
]
|
||||
deps = [ "//AK" ]
|
||||
public_deps = [ ":LibTest" ]
|
||||
testonly = true
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue