mirror of https://github.com/grpc/grpc.git
The C based gRPC (C++, Python, Ruby, Objective-C, PHP, C#)
https://grpc.io/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
44 lines
1.2 KiB
44 lines
1.2 KiB
%YAML 1.2 |
|
--- | |
|
PHP_ARG_ENABLE(grpc, whether to enable grpc support, |
|
[ --enable-grpc Enable grpc support]) |
|
|
|
if test "$PHP_GRPC" != "no"; then |
|
dnl Write more examples of tests here... |
|
|
|
dnl # --with-grpc -> add include path |
|
PHP_ADD_INCLUDE(../../grpc/include) |
|
PHP_ADD_INCLUDE(../../grpc/src/php/ext/grpc) |
|
PHP_ADD_INCLUDE(../../grpc/third_party/boringssl/include) |
|
|
|
LIBS="-lpthread $LIBS" |
|
|
|
GRPC_SHARED_LIBADD="-lpthread $GRPC_SHARED_LIBADD" |
|
PHP_ADD_LIBRARY(pthread) |
|
|
|
PHP_ADD_LIBRARY(dl,,GRPC_SHARED_LIBADD) |
|
PHP_ADD_LIBRARY(dl) |
|
|
|
case $host in |
|
*darwin*) ;; |
|
*) |
|
PHP_ADD_LIBRARY(rt,,GRPC_SHARED_LIBADD) |
|
PHP_ADD_LIBRARY(rt) |
|
;; |
|
esac |
|
|
|
PHP_NEW_EXTENSION(grpc, |
|
% for source in php_config_m4.src: |
|
${source} ${"\\"} |
|
% endfor |
|
% for lib in libs: |
|
% if lib.name in php_config_m4.get('deps', []): |
|
% for source in lib.src: |
|
${source} ${"\\"} |
|
% endfor |
|
% endif |
|
% endfor |
|
, $ext_shared, , -Wall -Werror -std=c11 ${"\\"} |
|
-fvisibility=hidden -DOPENSSL_NO_ASM -D_GNU_SOURCE -DWIN32_LEAN_AND_MEAN ${"\\"} |
|
-D_HAS_EXCEPTIONS=0 -DNOMINMAX) |
|
fi
|
|
|