Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
Grpc
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tci-gateway-module
Grpc
Commits
aac57fde
Commit
aac57fde
authored
10 years ago
by
Craig Tiller
Browse files
Options
Downloads
Patches
Plain Diff
Build php modules from run_tests.py
parent
f1973b06
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/php/ext/grpc/config.m4
+9
-3
9 additions, 3 deletions
src/php/ext/grpc/config.m4
tools/run_tests/build_php.sh
+21
-0
21 additions, 0 deletions
tools/run_tests/build_php.sh
with
30 additions
and
3 deletions
src/php/ext/grpc/config.m4
+
9
−
3
View file @
aac57fde
...
@@ -38,7 +38,13 @@ if test "$PHP_GRPC" != "no"; then
...
@@ -38,7 +38,13 @@ if test "$PHP_GRPC" != "no"; then
PHP_ADD_LIBRARY(rt,,GRPC_SHARED_LIBADD)
PHP_ADD_LIBRARY(rt,,GRPC_SHARED_LIBADD)
PHP_ADD_LIBRARY(rt)
PHP_ADD_LIBRARY(rt)
PHP_ADD_LIBPATH($GRPC_DIR/lib)
if test -e $GRPC_DIR/libs/opt; then
GRPC_LIBDIR=$GRPC_DIR/libs/opt
else
GRPC_LIBDIR=$GRPC_DIR/lib
fi
PHP_ADD_LIBPATH($GRPC_LIBDIR)
PHP_CHECK_LIBRARY(gpr,gpr_now,
PHP_CHECK_LIBRARY(gpr,gpr_now,
[
[
...
@@ -48,7 +54,7 @@ if test "$PHP_GRPC" != "no"; then
...
@@ -48,7 +54,7 @@ if test "$PHP_GRPC" != "no"; then
],[
],[
AC_MSG_ERROR([wrong gpr lib version or lib not found])
AC_MSG_ERROR([wrong gpr lib version or lib not found])
],[
],[
-L$GRPC_DIR
/lib
-L$GRPC_
LIB
DIR
])
])
PHP_ADD_LIBRARY(event,,GRPC_SHARED_LIBADD)
PHP_ADD_LIBRARY(event,,GRPC_SHARED_LIBADD)
...
@@ -68,7 +74,7 @@ if test "$PHP_GRPC" != "no"; then
...
@@ -68,7 +74,7 @@ if test "$PHP_GRPC" != "no"; then
],[
],[
AC_MSG_ERROR([wrong grpc lib version or lib not found])
AC_MSG_ERROR([wrong grpc lib version or lib not found])
],[
],[
-L$GRPC_DIR
/lib
-L$GRPC_
LIB
DIR
])
])
PHP_SUBST(GRPC_SHARED_LIBADD)
PHP_SUBST(GRPC_SHARED_LIBADD)
...
...
This diff is collapsed.
Click to expand it.
tools/run_tests/build_php.sh
+
21
−
0
View file @
aac57fde
#!/bin/bash
#!/bin/bash
set
-ex
# change to grpc repo root
cd
$(
dirname
$0
)
/../..
export
GRPC_DIR
=
`
pwd
`
# make the libraries
make
-j
shared_c
# build php
cd
src/php
cd
ext/grpc
phpize
cd
../..
ext/grpc/configure
#cd ext/grpc
make
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment