LWJGL Forum

Please login or register.

Login with username, password and session length

Author Topic: Binding Help  (Read 216 times)

gudenau

  • Newbie
  • *
  • Offline Offline
  • Posts: 17
Binding Help
« on: August 20, 2017, 02:27:18 »

I am working on adding a binding to LWJGL3 that could be useful for development of games.

I have been converting the header file to the Kotlan stuff based on the GLFW files, so far I don't have errors and I think I understand the structure of the enums and defines, my current problem is that when I test built it to check the Java output my binding was not in the release.

What did I do wrong? I added my files in templates/src/main/kotlin/org/lwjgl/library/libraryTypes.kt and templates/src/main/kotlin/org/lwjgl/library/templates/library.kt.

(also to the mods, sorry for making a couple posts so close. Figured these where different enough to warrant that)
Logged

gudenau

  • Newbie
  • *
  • Offline Offline
  • Posts: 17
Re: Binding Help
« Reply #1 on: August 22, 2017, 01:16:55 »

I've managed to get it to build to a degree by adding the library to /config/build-bindings.xml, looks like I probably need to add it to the other platform ones as well.
Logged

spasi

  • Administrator
  • Nerdus Imperius
  • *****
  • Offline Offline
  • Posts: 1856
Re: Binding Help
« Reply #2 on: August 22, 2017, 09:57:30 »

Hey gudenau,

See this commit of the recently added rpmalloc bindings as an example. These are the non-obvious places where changes need to happen:

- /build.xml
- /build.gradle (missing in the above commit, added with this one)
- /config/build-bindings.xml
- /config/linux/build.xml
- /config/macos/build.xml
- /config/windows/build.xml
- /modules/generator/src/main/kotlin/org/lwjgl/generator/Generator.kt
Logged

gudenau

  • Newbie
  • *
  • Offline Offline
  • Posts: 17
Re: Binding Help
« Reply #3 on: August 22, 2017, 19:48:10 »

Hey gudenau,

See this commit of the recently added rpmalloc bindings as an example. These are the non-obvious places where changes need to happen:

- /build.xml
- /build.gradle (missing in the above commit, added with this one)
- /config/build-bindings.xml
- /config/linux/build.xml
- /config/macos/build.xml
- /config/windows/build.xml
- /modules/generator/src/main/kotlin/org/lwjgl/generator/Generator.kt

I found those using grep, any way this could be streamlined any more?
Logged

spasi

  • Administrator
  • Nerdus Imperius
  • *****
  • Offline Offline
  • Posts: 1856
Re: Binding Help
« Reply #4 on: August 22, 2017, 20:38:27 »

any way this could be streamlined any more?

It's probably going to be simpler/cleaner when we port the Ant build to Gradle/Kotlin.
Logged