Permalink
Browse files

feat(rpmalloc): add rpmalloc bindings

  • Loading branch information...
Spasi committed Aug 1, 2017
1 parent db9632c commit b91b339fcd988322c581332611becd75f484d8b4
View
@@ -235,6 +235,7 @@
<src path="${src.templates.kotlin}/org/lwjgl/system/dyncall"/>
<src path="${src.templates.kotlin}/org/lwjgl/system/jawt" if:true="${binding.jawt}"/>
<src path="${src.templates.kotlin}/org/lwjgl/system/jemalloc" if:true="${binding.jemalloc}"/>
<src path="${src.templates.kotlin}/org/lwjgl/system/rpmalloc" if:true="${binding.rpmalloc}"/>
<src path="${src.templates.kotlin}/org/lwjgl/system/jni"/>
<src path="${src.templates.kotlin}/org/lwjgl/system/libc"/>
<src path="${src.templates.kotlin}/org/lwjgl/system/linux"/>
@@ -345,6 +346,7 @@
<exclude name="org/lwjgl/stb/**" unless:true="${binding.stb}"/>
<exclude name="org/lwjgl/system/jemalloc/**" unless:true="${binding.jemalloc}"/>
<exclude name="org/lwjgl/system/rpmalloc/**" unless:true="${binding.rpmalloc}"/>
<exclude name="org/lwjgl/system/jawt/**" unless:true="${binding.jawt}"/>
<exclude name="org/lwjgl/util/lmdb/**" unless:true="${binding.lmdb}"/>
@@ -972,6 +974,7 @@
<include name="org/lwjgl/system/**"/>
<exclude name="org/lwjgl/system/jawt/**"/>
<exclude name="org/lwjgl/system/jemalloc/**"/>
<exclude name="org/lwjgl/system/rpmalloc/**"/>
</fileset>
<fileset dir="${bin.core}" if:set="jdk9">
@@ -988,6 +991,7 @@
<include name="org/lwjgl/system/**"/>
<exclude name="org/lwjgl/system/jawt/**"/>
<exclude name="org/lwjgl/system/jemalloc/**"/>
<exclude name="org/lwjgl/system/rpmalloc/**"/>
</fileset>
</sources>
<custom>
@@ -1111,6 +1115,9 @@
<!-- Par -->
<release-module package="org.lwjgl.util.par" name="par" native-library="lwjgl_par" title="par" if:true="${binding.par}"/>
<!-- rpmalloc -->
<release-module package="org.lwjgl.system.rpmalloc" name="rpmalloc" native-library="lwjgl_rpmalloc" title="rpmalloc" if:true="${binding.rpmalloc}"/>
<!-- SSE -->
<release-module package="org.lwjgl.util.simd" name="sse" native-library="lwjgl_sse" title="SSE" if:true="${binding.sse}"/>
@@ -30,6 +30,7 @@ This script is included in /config/build-definitions.xml.
<property name="binding.opengles" value="true"/>
<property name="binding.openvr" value="true"/>
<property name="binding.par" value="true"/>
<property name="binding.rpmalloc" value="true"/>
<property name="binding.sse" value="true"/>
<property name="binding.stb" value="true"/>
<property name="binding.tinyexr" value="true"/>
View
@@ -32,7 +32,7 @@
<arg line="-c -std=c++11" if:set="cpp"/>
<arg line="-m64" if:true="${build.arch.x64}"/>
<arg line="-m32 -mfpmath=sse -msse -msse2" unless:true="${build.arch.x64}"/>
<arg line="-O3 @{lto} -fPIC @{flags} -pthread -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0 -D_XOPEN_SOURCE=700 -DNDEBUG -DLWJGL_LINUX -DLWJGL_${build.arch}"/>
<arg line="-O3 @{lto} -fPIC @{flags} -pthread -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0 -D_GNU_SOURCE -DNDEBUG -DLWJGL_LINUX -DLWJGL_${build.arch}"/>
<arg value="-I${jni.headers}"/>
<arg value="-I${jni.headers}/linux"/>
@@ -227,6 +227,14 @@
</source>
</build>
<!-- rpmalloc -->
<build name="lwjgl_rpmalloc" dest="${bin.native}/rpmalloc" if:true="${binding.rpmalloc}">
<source>
<arg value="-I${src.native.rel}/system/rpmalloc"/>
<fileset dir="." includes="${src.generated.native}/system/rpmalloc/*.c"/>
</source>
</build>
<!-- SSE -->
<build name="lwjgl_sse" dest="${bin.native}/sse" if:true="${binding.sse}">
<source>
View
@@ -225,6 +225,14 @@
</source>
</build>
<!-- rpmalloc -->
<build name="lwjgl_rpmalloc" dest="${bin.native}/rpmalloc" if:true="${binding.rpmalloc}">
<source>
<arg value="-I${src.native.rel}/system/rpmalloc"/>
<fileset dir="." includes="${src.generated.native}/system/rpmalloc/*.c"/>
</source>
</build>
<!-- SSE -->
<build name="lwjgl_sse" dest="${bin.native}/sse" if:true="${binding.sse}">
<source>
View
@@ -265,6 +265,16 @@ EXPORTS
</source>
</build>
<!-- rpmalloc -->
<build name="lwjgl_rpmalloc" dest="${bin.native}/rpmalloc" if:true="${binding.rpmalloc}">
<compileargs>
<arg value="/I${src.native}\system\rpmalloc"/>
</compileargs>
<source>
<fileset dir="." includes="${src.generated.native}/system/rpmalloc/*.c"/>
</source>
</build>
<!-- SSE -->
<build name="lwjgl_sse" dest="${bin.native}/sse" if:true="${binding.sse}">
<compileargs>
View
@@ -6,6 +6,8 @@ This build includes the following changes:
#### Bindings
- Added [rpmalloc](https://github.com/rampantpixels/rpmalloc) bindings.
* Use `-Dorg.lwjgl.system.allocator=rpmalloc` to make it the default memory allocator.
- Added new extensions to OpenCL, EGL, OpenGL and OpenGL ES.
- Assimp: Updated to 4.0.1 (up from 3.3.1)
- bgfx: Updated to API version 46 (up from 41)
Oops, something went wrong.

0 comments on commit b91b339

Please sign in to comment.