collinsmith / riiablo

Diablo II remade using Java and LibGDX
http://riiablo.com
Apache License 2.0
869 stars 99 forks source link

Flatbuffers update #132

Closed collinsmith closed 3 years ago

collinsmith commented 3 years ago

Note: I looked into adding flatbuffers as a build task, but this isn't possible due to not having a readily available binary for linux builds. The gradle task will be there for those who feel like compiling.

Closes #44

collinsmith commented 3 years ago

flatc is now included within the repository and the flatbuffers gradle plugin will use 1.11.0 (it automatically includes a default version which was 1.10.0, but I don't think it was being used). I also added a check for :core:createFlatBuffers task to make sure the build is taking place on Windows.

Long term -- I think flatbuffers may be moved outside of src/main/java into src/main/flatbuffers to simplify some of the implementation details in these gradle tasks. I also want to change the tasks to make :core:build depend on :core:createFlatBuffers, but also only enable the task if building on windows -- or maybe throw a warning otherwise if the task is not UP-TO-DATE (don't need to run the task if no changes, but changes can only be made on Windows since flatc is a Windows executable).

collinsmith commented 3 years ago

This was resolved in 080ac48 as far as I've double checked.