File tree 2 files changed +21
-4
lines changed
2 files changed +21
-4
lines changed Original file line number Diff line number Diff line change @@ -50,21 +50,26 @@ public class HelloWorld {
50
50
}
51
51
```
52
52
53
- ## Build
54
- ` make gen `
53
+ ## Build and run
54
+ ` ./gradlew generate ` or ` make gen `
55
55
Compiles and runs the code generator. This will generate Java code from [ GIR] ( https://gi.readthedocs.io/en/latest/ ) files.
56
+
56
57
- Input: ` generator/src/resources/gir/* `
57
58
- Output Java: ` java-gtk/build/generated/src/main/java/[...]/*.java `
58
59
- Configuration: [ generator/src/main/kotlin/ch/bailu/gtk/Configuration.kt] ( generator/src/main/kotlin/ch/bailu/gtk/Configuration.kt )
59
60
60
- ` make `
61
+ ` ./gradlew build ` or ` make `
61
62
Creates library, javadoc and run tests
63
+
62
64
- Output: jar, javadoc.jar and sources.jar in ` libray/build/libs/ `
63
65
64
- ` make run `
66
+ ` ./gradlew run ` or ` make run `
65
67
Run the default demo application.
66
68
There are more demo applications in [ examples/src/main/java/examples] ( examples/src/main/java/examples ) including GeoClue2 and Adwaita samples.
67
69
70
+ - To run on Windows see [ doc/windows.md] ( doc/windows.md )
71
+ - To run on MacOS see [ doc/macos.md] ( doc/macos.md )
72
+
68
73
` make install `
69
74
Compile Java library, generate JAR archive and copy JAR archive as artifact to local Maven repository (` ~/.m2/repository ` ).
70
75
Original file line number Diff line number Diff line change
1
+ # Using java-gtk on MacOS
2
+
3
+ ## Install GTK libraries
4
+
5
+ [ Setting up GTK for Mac OS ] ( https://www.gtk.org/docs/installations/macos/ )
6
+
7
+ ## Running a java-gtk application
8
+
9
+ On MacOS the main thread of a java-gtk application needs to be thread 0.
10
+ In order to start the application on the correct thread the option ` -XstartOnFirstThread ` needs to be passed to the JVM
11
+
12
+ Example: ` ./gradlew run -Dorg.gradle.jvmargs="-XstartOnFirstThread" `
You can’t perform that action at this time.
0 commit comments