Skip to content

Commit

Permalink
sbt --client test
Browse files Browse the repository at this point in the history
  • Loading branch information
sideeffffect committed Mar 28, 2024
1 parent 16e05db commit 3ad743d
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ lazy val generateXsd = TaskKey[Unit]("generateXsd")

lazy val `gir-schema` = project
.in(file("gir-schema"))
.configure(pkgConfigured("gir-schema"))
.configure(pkgConfiguredSimple)
.enablePlugins(ScalaxbPlugin)
.settings(
Compile / generateXsd := {
Expand Down Expand Up @@ -342,9 +342,9 @@ def findHeader(pkgName: String, file: java.io.File => java.io.File) = {
)
}

def pkgConfigured(name: String): Project => Project = { proj =>
def pkgConfiguredSimple: Project => Project = { proj =>
proj
.enablePlugins(ScalaNativePlugin, BindgenPlugin)
.enablePlugins(ScalaNativePlugin)
.settings(publishing)
.settings(
Compile / doc / sources := Seq.empty,
Expand All @@ -355,7 +355,15 @@ def pkgConfigured(name: String): Project => Project = { proj =>
)
),
resolvers ++= Resolver.sonatypeOssRepos("snapshots"),
scalaVersion := "3.3.3",
scalaVersion := "3.3.3"
)
}

def pkgConfigured(name: String): Project => Project = { proj =>
pkgConfiguredSimple(proj)
.enablePlugins(BindgenPlugin)
.settings(publishing)
.settings(
nativeCompileOptions ++= {
pkgConfig(name, "cflags")
},
Expand Down

0 comments on commit 3ad743d

Please sign in to comment.