Skip to content

Commit a428e42

Browse files
committed
Add php files for make dist.
1 parent e7269aa commit a428e42

File tree

4 files changed

+55
-4
lines changed

4 files changed

+55
-4
lines changed

Makefile.am

Lines changed: 52 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -571,6 +571,57 @@ objectivec_EXTRA_DIST= \
571571
objectivec/Tests/UnitTests-Info.plist \
572572
Protobuf.podspec
573573

574+
php_EXTRA_DIST= \
575+
php/src/phpdoc.dist.xml \
576+
php/src/Google/Protobuf/Internal/DescriptorPool.php \
577+
php/src/Google/Protobuf/Internal/OneofField.php \
578+
php/src/Google/Protobuf/Internal/MapEntry.php \
579+
php/src/Google/Protobuf/Internal/Type.php \
580+
php/src/Google/Protobuf/Internal/InputStream.php \
581+
php/src/Google/Protobuf/Internal/OutputStream.php \
582+
php/src/Google/Protobuf/Internal/MessageBuilderContext.php \
583+
php/src/Google/Protobuf/Internal/MapField.php \
584+
php/src/Google/Protobuf/Internal/RepeatedField.php \
585+
php/src/Google/Protobuf/Internal/Message.php \
586+
php/src/Google/Protobuf/Internal/GPBWire.php \
587+
php/src/Google/Protobuf/Internal/GPBType.php \
588+
php/src/Google/Protobuf/Internal/GPBLabel.php \
589+
php/src/Google/Protobuf/Internal/EnumBuilderContext.php \
590+
php/src/Google/Protobuf/Internal/GPBUtil.php \
591+
php/src/Google/Protobuf/descriptor_internal.pb.php \
592+
php/src/Google/Protobuf/descriptor.php \
593+
php/tests/encode_decode_test.php \
594+
php/tests/test.sh \
595+
php/tests/generated_class_test.php \
596+
php/tests/array_test.php \
597+
php/tests/php_implementation_test.php \
598+
php/tests/test_include.proto \
599+
php/tests/test_include.pb.php \
600+
php/tests/map_field_test.php \
601+
php/tests/test_base.php \
602+
php/tests/test_util.php \
603+
php/tests/test.proto \
604+
php/tests/test.pb.php \
605+
php/tests/memory_leak_test.php \
606+
php/README.md \
607+
php/ext/google/protobuf/utf8.h \
608+
php/ext/google/protobuf/message.c \
609+
php/ext/google/protobuf/utf8.c \
610+
php/ext/google/protobuf/package.xml \
611+
php/ext/google/protobuf/upb.h \
612+
php/ext/google/protobuf/array.c \
613+
php/ext/google/protobuf/encode_decode.c \
614+
php/ext/google/protobuf/protobuf.h \
615+
php/ext/google/protobuf/type_check.c \
616+
php/ext/google/protobuf/def.c \
617+
php/ext/google/protobuf/storage.c \
618+
php/ext/google/protobuf/map.c \
619+
php/ext/google/protobuf/config.m4 \
620+
php/ext/google/protobuf/upb.c \
621+
php/ext/google/protobuf/protobuf.c \
622+
phpunit.xml \
623+
composer.json
624+
574625
python_EXTRA_DIST= \
575626
python/MANIFEST.in \
576627
python/google/__init__.py \
@@ -768,7 +819,7 @@ js_EXTRA_DIST= \
768819
js/testbinary.proto \
769820
js/testempty.proto
770821

771-
all_EXTRA_DIST=$(csharp_EXTRA_DIST) $(java_EXTRA_DIST) $(javanano_EXTRA_DIST) $(objectivec_EXTRA_DIST) $(python_EXTRA_DIST) $(ruby_EXTRA_DIST) $(js_EXTRA_DIST)
822+
all_EXTRA_DIST=$(csharp_EXTRA_DIST) $(java_EXTRA_DIST) $(javanano_EXTRA_DIST) $(objectivec_EXTRA_DIST) $(php_EXTRA_DIST) $(python_EXTRA_DIST) $(ruby_EXTRA_DIST) $(js_EXTRA_DIST)
772823

773824
EXTRA_DIST = $(@DIST_LANG@_EXTRA_DIST) \
774825
autogen.sh \

configure.ac

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ AC_CONFIG_MACRO_DIR([m4])
3131
AC_ARG_VAR(DIST_LANG, [language to include in the distribution package (i.e., make dist)])
3232
case "$DIST_LANG" in
3333
"") DIST_LANG=all ;;
34-
all | cpp | csharp | java | python | javanano | objectivec | ruby | js) ;;
34+
all | cpp | csharp | java | python | javanano | objectivec | ruby | js | php) ;;
3535
*) AC_MSG_FAILURE([unknown language: $DIST_LANG]) ;;
3636
esac
3737
AC_SUBST(DIST_LANG)

post_process_dist.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ fi
2727

2828
set -ex
2929

30-
LANGUAGES="cpp csharp java javanano js objectivec python ruby"
30+
LANGUAGES="cpp csharp java javanano js objectivec python ruby php"
3131
BASENAME=`basename $1 .tar.gz`
3232
VERSION=${BASENAME:9}
3333

tests.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ build_cpp_distcheck() {
5151
make dist
5252

5353
# List all files that should be included in the distribution package.
54-
git ls-files | grep "^\(java\|python\|objectivec\|csharp\|js\|ruby\|cmake\|examples\)" |\
54+
git ls-files | grep "^\(java\|python\|objectivec\|csharp\|js\|ruby\|php\|cmake\|examples\)" |\
5555
grep -v ".gitignore" | grep -v "java/compatibility_tests" > dist.lst
5656
# Unzip the dist tar file.
5757
DIST=`ls *.tar.gz`

0 commit comments

Comments
 (0)