Skip to content

Commit

Permalink
build: repair the test builds
Browse files Browse the repository at this point in the history
  • Loading branch information
compnerd committed Mar 29, 2023
1 parent 3f655d0 commit bb0e659
Showing 1 changed file with 20 additions and 4 deletions.
24 changes: 20 additions & 4 deletions Package.swift
Expand Up @@ -117,29 +117,45 @@ let package = Package(

.target(
name: "llbuildBasicTests",
dependencies: ["llbuildBasic", "gtestlib"],
dependencies: ["llbuildBasic", "gmocklib"],
path: "unittests/Basic",
cxxSettings: [
.headerSearchPath("../../utils/unittest/googlemock/include"),
.headerSearchPath("../../utils/unittest/googletest/include"),
],
linkerSettings: [
.linkedLibrary("dl", .when(platforms: [.linux])),
.linkedLibrary("pthread", .when(platforms: [.linux]))]),
.target(
name: "llbuildCoreTests",
dependencies: ["llbuildCore", "gtestlib"],
dependencies: ["llbuildCore", "gmocklib"],
path: "unittests/Core",
cxxSettings: [
.headerSearchPath("../../utils/unittest/googlemock/include"),
.headerSearchPath("../../utils/unittest/googletest/include"),
],
linkerSettings: [
.linkedLibrary("dl", .when(platforms: [.linux])),
.linkedLibrary("pthread", .when(platforms: [.linux]))]),
.target(
name: "llbuildBuildSystemTests",
dependencies: ["llbuildBuildSystem", "gtestlib"],
dependencies: ["llbuildBuildSystem", "gmocklib"],
path: "unittests/BuildSystem",
cxxSettings: [
.headerSearchPath("../../utils/unittest/googlemock/include"),
.headerSearchPath("../../utils/unittest/googletest/include"),
],
linkerSettings: [
.linkedLibrary("dl", .when(platforms: [.linux])),
.linkedLibrary("pthread", .when(platforms: [.linux]))]),
.target(
name: "llbuildNinjaTests",
dependencies: ["llbuildNinja", "gtestlib"],
dependencies: ["llbuildNinja", "gmocklib"],
path: "unittests/Ninja",
cxxSettings: [
.headerSearchPath("../../utils/unittest/googlemock/include"),
.headerSearchPath("../../utils/unittest/googletest/include"),
],
linkerSettings: [
.linkedLibrary("dl", .when(platforms: [.linux])),
.linkedLibrary("pthread", .when(platforms: [.linux]))]),
Expand Down

0 comments on commit bb0e659

Please sign in to comment.