Skip to content

Commit

Permalink
Version 0.1.0 Released!
Browse files Browse the repository at this point in the history
- Fixed paths so they use the version in the hxRaylib source instead of current dir
 - Build files
- Added linux (Untested)
 - Moved to build_files/
  • Loading branch information
foreignsasquatch committed Jul 1, 2021
1 parent e99e368 commit 353dd69
Show file tree
Hide file tree
Showing 7 changed files with 422 additions and 31 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class Main

License
-------
hxraylib is licensed under an unmodified zlib/libpng license, which is an OSI-certified, BSD-like license that allows static linking with closed source software. Check [LICENSE](LICENSE) for further details.
hxraylib is licensed under an unmodified zlib/libpng license, which is an OSI-certified, BSD-like license that allows static linking with closed source software. Check [LICENSE](LICENSE.md) for further details.

Thanks to:
----------
Expand Down
52 changes: 52 additions & 0 deletions build_files/linux.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
<xml>
<set name="raylib_folder" value="${haxelib:hxRaylib}/raylib" />
<set name="glfw_folder" value="${haxelib:hxRaylib}/raylib/external/glfw" />

<echo value="Using raylib from: ${raylib_folder}" />
<echo value="Using glfw from: ${glfw_folder}" />

<section>
<files id="haxe">
<lib name="-lraylib" />

<compilerflag value="-I${glfw_folder}/include" />
<compilerflag value="-I${raylib_folder}" />

<file name="${raylib_folder}/core.c" />
<file name="${raylib_folder}/utils.c" />
<file name="${raylib_folder}/shapes.c" />
<file name="${raylib_folder}/textures.c" />
<file name="${raylib_folder}/text.c" />
<file name="${raylib_folder}/models.c" />

<file name="${glfw_folder}/src/init.c" />
<file name="${glfw_folder}/src/window.c" />
<file name="${glfw_folder}/src/input.c" />
<file name="${glfw_folder}/src/monitor.c" />
<file name="${glfw_folder}/src/context.c" />
<file name="${glfw_folder}/src/wgl_context.c" />
<file name="${glfw_folder}/src/egl_context.c" />
<file name="${glfw_folder}/src/osmesa_context.c" />
<file name="${glfw_folder}/src/vulkan.c" />

<!-- LINUX SPECIFICS -->
<compilerflag value="-DPLATFORM_DESKTOP" />
<compilerflag value="-D_GLFW_X11" />
<file name="${glfw_folder}/src/xkb_unicode.c" />
<file name="${glfw_folder}/src/glx_context.c" />
<file name="${glfw_folder}/src/x11_init.c" />
<file name="${glfw_folder}/src/x11_monitor.c" />
<file name="${glfw_folder}/src/linux_joystick.c" />
<file name="${glfw_folder}/src/x11_window.c" />
<file name="${glfw_folder}/src/posix_thread.c" />
<file name="${glfw_folder}/src/posix_time.c" />
</files>

<!-- LINUX SPECIFICS -->
<target id="haxe" tool="linker" if="linux">
<lib name="Winmm.lib" />
<lib name="Gdi32.lib" />
<lib name="Shell32.lib" />
</target>
</section>
</xml>
4 changes: 2 additions & 2 deletions mac.xml → build_files/mac.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<xml>
<set name="raylib_folder" value="../raylib" />
<set name="glfw_folder" value="../raylib/external/glfw" />
<set name="raylib_folder" value="${haxelib:hxRaylib}/raylib" />
<set name="glfw_folder" value="${haxelib:hxRaylib}/raylib/external/glfw" />

<echo value="Using raylib from: ${raylib_folder}" />
<echo value="Using glfw from: ${glfw_folder}" />
Expand Down
4 changes: 2 additions & 2 deletions windows.xml → build_files/windows.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<xml>
<set name="raylib_folder" value="../raylib" />
<set name="glfw_folder" value="../raylib/external/glfw" />
<set name="raylib_folder" value="${haxelib:hxRaylib}/raylib" />
<set name="glfw_folder" value="${haxelib:hxRaylib}/raylib/external/glfw" />

<echo value="Using raylib from: ${raylib_folder}" />
<echo value="Using glfw from: ${glfw_folder}" />
Expand Down
4 changes: 2 additions & 2 deletions haxelib.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
"license": "MIT",
"tags": ["bindings", "raylib", "hxcpp", "game", "development"],
"description": "Haxe bindings for raylib, a simple and easy-to-use library to learn videogame programming",
"version": "0.0.1",
"version": "0.1.0",
"classPath": "src/",
"releasenote": "Initial haxelib release",
"releasenote": "Version 0.1.0 Released!",
"contributors": ["ForeignSasquatch", "logo4poop"],
"dependencies": {
"hxcpp": "4.2.1"
Expand Down
20 changes: 0 additions & 20 deletions src/Main.hx

This file was deleted.

Loading

0 comments on commit 353dd69

Please sign in to comment.