We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c63dd5d commit ce06524Copy full SHA for ce06524
README.md
@@ -2,13 +2,25 @@
2
3
Allows using `libjvm` in other Swift packages.
4
5
+Note: this has only been tested on OS X 10.11 right now and will require
6
+different paths if used on any other operating system.
7
+
8
## Usage
9
10
```swift
11
+import PackageDescription
12
13
let package = Package(
14
name: "example",
15
dependencies: [
16
.Package(url: "https://github.com/neonichu/CJavaVM", majorVersion: 1)
17
]
18
)
19
```
20
21
+Build your dependent packages somewhat like this:
22
23
+```bash
24
+JVM_LIBRARY_PATH=/Library/Java/JavaVirtualMachines/jdk1.8.0_45.jdk/Contents/Home/jre/lib/server
25
+swift build -Xlinker -L$(JVM_LIBRARY_PATH) -Xlinker -rpath -Xlinker $(JVM_LIBRARY_PATH)
26
+```
0 commit comments