Skip to content

Commit

Permalink
v0.0.2 Release
Browse files Browse the repository at this point in the history
  • Loading branch information
JellyBrick committed Aug 23, 2019
1 parent 15ce3df commit 61abfff
Show file tree
Hide file tree
Showing 27 changed files with 215 additions and 188 deletions.
10 changes: 8 additions & 2 deletions config.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,13 @@
"description" : "Extension that implements parts of PocketMine-MP",
"name" : "rapidpm",
"namespace" : "pocketmine",
"version" : "0.0.1",
"version" : "0.0.2",
"optimizer-dirs": [
"optimizers"
],
"extra-sources": [
"get_inf.c"
],
"optimizations" : {
"call-gatherer-pass" : true,
"check-invalid-reads" : false,
Expand Down Expand Up @@ -44,4 +50,4 @@
"unused-variable" : true,
"unused-variable-external" : true
}
}
}
2 changes: 1 addition & 1 deletion ext/config.m4
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ if test "$PHP_POCKETMINE" = "yes"; then
pocketmine/math/voxelraytrace.zep.c
pocketmine/utils/binary.zep.c
pocketmine/utils/binarydataexception.zep.c
pocketmine/utils/binarystream.zep.c "
pocketmine/utils/binarystream.zep.c get_inf.c"
PHP_NEW_EXTENSION(pocketmine, $pocketmine_sources, $ext_shared,, )
PHP_SUBST(POCKETMINE_SHARED_LIBADD)

Expand Down
2 changes: 1 addition & 1 deletion ext/config.w32
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ if (PHP_POCKETMINE != "no") {
ADD_EXTENSION_DEP("pocketmine", "json");
AC_DEFINE("ZEPHIR_USE_PHP_JSON", 1, "Whether PHP json extension is present at compile time");
}

ADD_SOURCES(configure_module_dirname + "/.", "get_inf.c", "pocketmine");
ADD_SOURCES(configure_module_dirname + "/pocketmine/math", "axisalignedbb.zep.c facing.zep.c math.zep.c matrix.zep.c raytraceresult.zep.c vector2.zep.c vector3.zep.c vectormath.zep.c voxelraytrace.zep.c", "pocketmine");
ADD_SOURCES(configure_module_dirname + "/pocketmine/utils", "binary.zep.c binarydataexception.zep.c binarystream.zep.c", "pocketmine");
ADD_FLAG("CFLAGS_POCKETMINE", "/D ZEPHIR_RELEASE /Oi /Ot /Oy /Ob2 /Gs /GF /Gy /GL");
Expand Down
11 changes: 11 additions & 0 deletions ext/get_inf.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif

#include "php.h"
#include "php_ext.h"
#include "ext/standard/basic_functions.h"

double get_inf() {
return php_get_inf();
}
2 changes: 1 addition & 1 deletion ext/install
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env bash

export CC="gcc"
export CFLAGS="-O3 -Wall -fvisibility=hidden -flto -DZEPHIR_RELEASE=1"
export CFLAGS="-O2 -Wall -fvisibility=hidden -flto -DZEPHIR_RELEASE=1"

phpize_bin=$(which phpize 2> /dev/null)

Expand Down
2 changes: 1 addition & 1 deletion ext/php_pocketmine.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#include "kernel/globals.h"

#define PHP_POCKETMINE_NAME "rapidpm"
#define PHP_POCKETMINE_VERSION "0.0.1"
#define PHP_POCKETMINE_VERSION "0.0.2"
#define PHP_POCKETMINE_EXTNAME "pocketmine"
#define PHP_POCKETMINE_AUTHOR "Organization"
#define PHP_POCKETMINE_ZEPVERSION "0.12.2-b3f17c25"
Expand Down
68 changes: 34 additions & 34 deletions ext/pocketmine/math/axisalignedbb.zep.c

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

24 changes: 14 additions & 10 deletions ext/pocketmine/math/voxelraytrace.zep.c

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 61abfff

Please sign in to comment.