blob: 1857d034b493320e08ffe1cd993e670337083e3e [file] [log] [blame]
David Reiss1873fed2010-05-04 16:32:33 +00001#
2# Licensed to the Apache Software Foundation (ASF) under one
3# or more contributor license agreements. See the NOTICE file
4# distributed with this work for additional information
5# regarding copyright ownership. The ASF licenses this file
6# to you under the Apache License, Version 2.0 (the
7# "License"); you may not use this file except in compliance
8# with the License. You may obtain a copy of the License at
9#
10# http://www.apache.org/licenses/LICENSE-2.0
11#
12# Unless required by applicable law or agreed to in writing,
13# software distributed under the License is distributed on an
14# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15# KIND, either express or implied. See the License for the
16# specific language governing permissions and limitations
17# under the License.
18#
19
Roger Meier33b720a2012-01-24 18:42:46 +000020
21if WITH_TESTS
22SUBDIRS = test
23endif
24
Bryan Duxbury89200e12010-08-25 17:09:02 +000025if WITH_PHP_EXTENSION
jfarrell30a472e2014-07-10 18:42:30 -040026%.so:
Jens Geyer79f988c2014-10-03 20:42:54 +020027 cd src/ext/thrift_protocol/ && $(MAKE)
jfarrell30a472e2014-07-10 18:42:30 -040028
Bryan Duxbury89200e12010-08-25 17:09:02 +000029phpconfdir=$(PHP_CONFIG_PREFIX)
30phpconf_DATA=thrift_protocol.ini
31
32phpmoduledir = `php-config --extension-dir`
33phpmodule_SCRIPTS = src/ext/thrift_protocol/modules/thrift_protocol.so
jfarrellf13e4312015-08-25 00:39:29 -040034
35distclean-local:
James E. King IIIb96c4382019-01-24 17:45:07 -050036 if [ -f src/ext/thrift_protocol/Makefile ]; then cd src/ext/thrift_protocol/ && $(MAKE) distclean; fi
jfarrellf13e4312015-08-25 00:39:29 -040037 cd $(phpmodule_SCRIPTS) && $(PHPIZE) --clean
38
Bryan Duxbury89200e12010-08-25 17:09:02 +000039endif
40
Robert Lubfba3702017-11-03 12:27:31 +080041phpdir = $(PHP_PREFIX)/
Mark Goldfinch4ab9a882016-03-25 23:28:43 +130042php_DATA = \
Jens Geyer8411e182021-02-04 22:41:50 +010043 lib/TMultiplexedProcessor.php
Bryan Duxbury6a681872010-05-02 22:39:31 +000044
Roger Meier21c0a852012-09-05 19:47:14 +000045phpbasedir = $(phpdir)/Base
46phpbase_DATA = \
Jens Geyer8411e182021-02-04 22:41:50 +010047 lib/Base/TBase.php
Roger Meier21c0a852012-09-05 19:47:14 +000048
Roger Meier1e3c8842013-05-30 14:04:11 +020049phpclassloaderdir = $(phpdir)/ClassLoader
50phpclassloader_DATA = \
Jens Geyer8411e182021-02-04 22:41:50 +010051 lib/ClassLoader/ThriftClassLoader.php
Roger Meier1e3c8842013-05-30 14:04:11 +020052
Roger Meier21c0a852012-09-05 19:47:14 +000053phpexceptiondir = $(phpdir)/Exception
54phpexception_DATA = \
Jens Geyer8411e182021-02-04 22:41:50 +010055 lib/Exception/TApplicationException.php \
56 lib/Exception/TException.php \
57 lib/Exception/TProtocolException.php \
58 lib/Exception/TTransportException.php
Roger Meier21c0a852012-09-05 19:47:14 +000059
60phpfactorydir = $(phpdir)/Factory
61phpfactory_DATA = \
Jens Geyer8411e182021-02-04 22:41:50 +010062 lib/Factory/TBinaryProtocolFactory.php \
63 lib/Factory/TCompactProtocolFactory.php \
64 lib/Factory/TJSONProtocolFactory.php \
65 lib/Factory/TProtocolFactory.php \
66 lib/Factory/TStringFuncFactory.php \
67 lib/Factory/TTransportFactory.php
Roger Meier21c0a852012-09-05 19:47:14 +000068
69phpprotocoldir = $(phpdir)/Protocol
Bryan Duxbury6a681872010-05-02 22:39:31 +000070phpprotocol_DATA = \
Jens Geyer8411e182021-02-04 22:41:50 +010071 lib/Protocol/TBinaryProtocolAccelerated.php \
72 lib/Protocol/TBinaryProtocol.php \
73 lib/Protocol/TCompactProtocol.php \
74 lib/Protocol/TJSONProtocol.php \
75 lib/Protocol/TMultiplexedProtocol.php \
76 lib/Protocol/TProtocol.php \
77 lib/Protocol/TProtocolDecorator.php \
78 lib/Protocol/TSimpleJSONProtocol.php
Bryan Duxbury6a681872010-05-02 22:39:31 +000079
Roger Meier21c0a852012-09-05 19:47:14 +000080phpprotocoljsondir = $(phpprotocoldir)/JSON
81phpprotocoljson_DATA = \
Jens Geyer8411e182021-02-04 22:41:50 +010082 lib/Protocol/JSON/BaseContext.php \
83 lib/Protocol/JSON/ListContext.php \
84 lib/Protocol/JSON/LookaheadReader.php \
85 lib/Protocol/JSON/PairContext.php
Roger Meier21c0a852012-09-05 19:47:14 +000086
Mark Goldfinch4ab9a882016-03-25 23:28:43 +130087phpprotocolsimplejsondir = $(phpprotocoldir)/SimpleJSON
88phpprotocolsimplejson_DATA = \
Jens Geyer8411e182021-02-04 22:41:50 +010089 lib/Protocol/SimpleJSON/CollectionMapKeyException.php \
90 lib/Protocol/SimpleJSON/Context.php \
91 lib/Protocol/SimpleJSON/ListContext.php \
92 lib/Protocol/SimpleJSON/MapContext.php \
93 lib/Protocol/SimpleJSON/StructContext.php
Mark Goldfinch4ab9a882016-03-25 23:28:43 +130094
Roger Meier21c0a852012-09-05 19:47:14 +000095phpserializerdir = $(phpdir)/Serializer
96phpserializer_DATA = \
Jens Geyer8411e182021-02-04 22:41:50 +010097 lib/Serializer/TBinarySerializer.php
Roger Meier21c0a852012-09-05 19:47:14 +000098
Roger Meier1e3c8842013-05-30 14:04:11 +020099phpserverdir = $(phpdir)/Server
100phpserver_DATA = \
Jens Geyer8411e182021-02-04 22:41:50 +0100101 lib/Server/TServerSocket.php \
102 lib/Server/TForkingServer.php \
103 lib/Server/TServer.php \
104 lib/Server/TServerTransport.php \
105 lib/Server/TSimpleServer.php
Roger Meier1e3c8842013-05-30 14:04:11 +0200106
107phpstringfuncdir = $(phpdir)/StringFunc
108phpstringfunc_DATA = \
Jens Geyer8411e182021-02-04 22:41:50 +0100109 lib/StringFunc/Mbstring.php \
110 lib/StringFunc/Core.php \
111 lib/StringFunc/TStringFunc.php
Roger Meier1e3c8842013-05-30 14:04:11 +0200112
Roger Meier21c0a852012-09-05 19:47:14 +0000113phptransportdir = $(phpdir)/Transport
Bryan Duxbury6a681872010-05-02 22:39:31 +0000114phptransport_DATA = \
Jens Geyer8411e182021-02-04 22:41:50 +0100115 lib/Transport/TBufferedTransport.php \
116 lib/Transport/TCurlClient.php \
117 lib/Transport/TFramedTransport.php \
118 lib/Transport/THttpClient.php \
119 lib/Transport/TMemoryBuffer.php \
120 lib/Transport/TNullTransport.php \
121 lib/Transport/TPhpStream.php \
122 lib/Transport/TSocket.php \
123 lib/Transport/TSocketPool.php \
124 lib/Transport/TTransport.php
Roger Meier21c0a852012-09-05 19:47:14 +0000125
126phptypedir = $(phpdir)/Type
127phptype_DATA = \
Jens Geyer8411e182021-02-04 22:41:50 +0100128 lib/Type/TMessageType.php \
129 lib/Type/TType.php \
130 lib/Type/TConstant.php
Bryan Duxbury6a681872010-05-02 22:39:31 +0000131
James E. King IIIb96c4382019-01-24 17:45:07 -0500132clean-local:
133 if [ -f src/ext/thrift_protocol/Makefile ]; then cd src/ext/thrift_protocol/ && $(MAKE) clean; fi
134
135
Jake Farrell7c7a5e02012-10-11 00:29:11 +0000136EXTRA_DIST = \
Jens Geyer8411e182021-02-04 22:41:50 +0100137 lib \
138 src/autoload.php \
139 src/ext/thrift_protocol/config.m4 \
140 src/ext/thrift_protocol/config.w32 \
141 src/ext/thrift_protocol/php_thrift_protocol.cpp \
142 src/ext/thrift_protocol/php_thrift_protocol.h \
143 src/Thrift.php \
144 src/TStringUtils.php \
145 coding_standards.md \
146 thrift_protocol.ini \
147 README.apache.md \
148 README.md \
149 test/Fixtures.php \
150 test/TestValidators.thrift \
151 test/JsonSerialize/JsonSerializeTest.php \
152 test/Protocol/BinarySerializerTest.php \
153 test/Protocol/TJSONProtocolFixtures.php \
154 test/Protocol/TJSONProtocolTest.php \
155 test/Protocol/TSimpleJSONProtocolFixtures.php \
156 test/Protocol/TSimpleJSONProtocolTest.php \
157 test/Validator/BaseValidatorTest.php \
158 test/Validator/ValidatorTest.php \
159 test/Validator/ValidatorTestOop.php
160
David Reiss653eada2010-10-05 02:38:58 +0000161
jfarrell16ff2332013-08-16 09:48:42 -0400162MAINTAINERCLEANFILES = \
Jens Geyer8411e182021-02-04 22:41:50 +0100163 Makefile.in
jfarrell16ff2332013-08-16 09:48:42 -0400164