Skip to content

Commit d50011e

Browse files
committed
chore: basic nfi package structure for headers
Signed-off-by: Sam Gammon <sam@elide.ventures>
1 parent 1892bf7 commit d50011e

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

packages/nfi/build.gradle.kts

+19-1
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,22 @@ elide {
2121

2222
group = "dev.elide.embedded"
2323

24-
// Nothing yet.
24+
val publicHeaders: Configuration by configurations.creating {
25+
isCanBeConsumed = true
26+
isCanBeResolved = false
27+
28+
attributes {
29+
attribute(Category.CATEGORY_ATTRIBUTE, objects.named(Category.LIBRARY))
30+
attribute(Usage.USAGE_ATTRIBUTE, objects.named(Usage.C_PLUS_PLUS_API))
31+
attribute(Bundling.BUNDLING_ATTRIBUTE, objects.named(Bundling.EMBEDDED))
32+
}
33+
}
34+
35+
val publicHeadersZip: TaskProvider<Zip> by tasks.registering(Zip::class) {
36+
archiveBaseName = "elide-headers"
37+
from(layout.projectDirectory.dir("include"))
38+
}
39+
40+
artifacts {
41+
add("publicHeaders", publicHeadersZip)
42+
}

0 commit comments

Comments
 (0)