Skip to content

Commit

Permalink
mv src-files into subdir "src"
Browse files Browse the repository at this point in the history
  • Loading branch information
swen100 committed Sep 14, 2021
1 parent 56f1743 commit 4566a4a
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 6 deletions.
14 changes: 11 additions & 3 deletions config.m4
Original file line number Diff line number Diff line change
@@ -1,10 +1,18 @@
PHP_ARG_ENABLE(proj, whether to enable Proj support,
[ --enable-proj Enable Proj support])
dnl
dnl Proj for PHP
dnl

PHP_ARG_WITH(proj, whether to enable Proj support,
[ --with-proj Enable Proj support])

if test "$PHP_PROJ" = "yes"; then
PHP_ADD_LIBPATH(/usr/lib)
AC_DEFINE(HAVE_PROJ, 1, [Whether you have Proj])
PHP_NEW_EXTENSION(proj, proj.c, $ext_shared)

PHP_NEW_EXTENSION(proj, \
src/proj.c \
, $ext_shared)

PHP_SUBST(PROJ_SHARED_LIBADD)
PHP_ADD_LIBRARY(proj, 1, PROJ_SHARED_LIBADD)
PHP_CHECK_LIBRARY(proj, proj_trans, [], [AC_MSG_ERROR([proj library or proj_trans() function in this library not found. Check config.log for more information.])])
Expand Down
2 changes: 2 additions & 0 deletions config.w32
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
ARG_WITH("proj", "PROJ module", "no");

if (PHP_PROJ == "yes") {
configure_module_dirname = configure_module_dirname + "\\src";

CHECK_HEADER_ADD_INCLUDE("proj/proj_api.h", "CFLAGS_PROJ", PHP_PROJ + "\\include", null, true);
CHECK_LIB("proj.lib", "proj", PHP_PROJ + "\\lib")

Expand Down
4 changes: 2 additions & 2 deletions package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@
<file role="src" name="config.m4"/>
<file role="src" name="config.w32"/>

<file role="src" name="proj.c"/>
<file role="src" name="php_proj.h"/>
<file role="src" name="src/proj.c"/>
<file role="src" name="src/php_proj.h"/>
</dir>
</contents>
<dependencies>
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion proj.c → src/proj.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#include <zend_types.h>
#include <zend_string.h>
#include <ext/standard/php_string.h>
#include <php_proj.h>
#include <src/php_proj.h>

int proj_destructor;
int proj_area_destructor;
Expand Down
Empty file modified tests/proj_create_crs_to_crs_from_pj.phpt
100644 → 100755
Empty file.
Empty file modified tests/proj_get_pj_info.phpt
100644 → 100755
Empty file.

0 comments on commit 4566a4a

Please sign in to comment.