blob: 3851294604e28ce8166d94b1297fc25700a9fda3 [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 Geyer2ef01132021-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 Geyer2ef01132021-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 Geyer2ef01132021-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 Geyer2ef01132021-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 Geyer2ef01132021-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 \
Volodymyr Panivkoc2738d02024-01-06 14:12:04 +010067 lib/Factory/TTransportFactoryInterface.php
Jens Geyer2ef01132021-02-04 22:41:50 +010068 lib/Factory/TTransportFactory.php
Volodymyr Panivkoc2738d02024-01-06 14:12:04 +010069 lib/Factory/TFramedTransportFactory.php
Roger Meier21c0a852012-09-05 19:47:14 +000070
71phpprotocoldir = $(phpdir)/Protocol
Bryan Duxbury6a681872010-05-02 22:39:31 +000072phpprotocol_DATA = \
Jens Geyer2ef01132021-02-04 22:41:50 +010073 lib/Protocol/TBinaryProtocolAccelerated.php \
74 lib/Protocol/TBinaryProtocol.php \
75 lib/Protocol/TCompactProtocol.php \
76 lib/Protocol/TJSONProtocol.php \
77 lib/Protocol/TMultiplexedProtocol.php \
78 lib/Protocol/TProtocol.php \
79 lib/Protocol/TProtocolDecorator.php \
80 lib/Protocol/TSimpleJSONProtocol.php
Bryan Duxbury6a681872010-05-02 22:39:31 +000081
Roger Meier21c0a852012-09-05 19:47:14 +000082phpprotocoljsondir = $(phpprotocoldir)/JSON
83phpprotocoljson_DATA = \
Jens Geyer2ef01132021-02-04 22:41:50 +010084 lib/Protocol/JSON/BaseContext.php \
85 lib/Protocol/JSON/ListContext.php \
86 lib/Protocol/JSON/LookaheadReader.php \
87 lib/Protocol/JSON/PairContext.php
Roger Meier21c0a852012-09-05 19:47:14 +000088
Mark Goldfinch4ab9a882016-03-25 23:28:43 +130089phpprotocolsimplejsondir = $(phpprotocoldir)/SimpleJSON
90phpprotocolsimplejson_DATA = \
Jens Geyer2ef01132021-02-04 22:41:50 +010091 lib/Protocol/SimpleJSON/CollectionMapKeyException.php \
92 lib/Protocol/SimpleJSON/Context.php \
93 lib/Protocol/SimpleJSON/ListContext.php \
94 lib/Protocol/SimpleJSON/MapContext.php \
95 lib/Protocol/SimpleJSON/StructContext.php
Mark Goldfinch4ab9a882016-03-25 23:28:43 +130096
Roger Meier21c0a852012-09-05 19:47:14 +000097phpserializerdir = $(phpdir)/Serializer
98phpserializer_DATA = \
Jens Geyer2ef01132021-02-04 22:41:50 +010099 lib/Serializer/TBinarySerializer.php
Roger Meier21c0a852012-09-05 19:47:14 +0000100
Roger Meier1e3c8842013-05-30 14:04:11 +0200101phpserverdir = $(phpdir)/Server
102phpserver_DATA = \
Jens Geyer2ef01132021-02-04 22:41:50 +0100103 lib/Server/TServerSocket.php \
104 lib/Server/TForkingServer.php \
105 lib/Server/TServer.php \
106 lib/Server/TServerTransport.php \
107 lib/Server/TSimpleServer.php
Roger Meier1e3c8842013-05-30 14:04:11 +0200108
109phpstringfuncdir = $(phpdir)/StringFunc
110phpstringfunc_DATA = \
Jens Geyer2ef01132021-02-04 22:41:50 +0100111 lib/StringFunc/Mbstring.php \
112 lib/StringFunc/Core.php \
113 lib/StringFunc/TStringFunc.php
Roger Meier1e3c8842013-05-30 14:04:11 +0200114
Roger Meier21c0a852012-09-05 19:47:14 +0000115phptransportdir = $(phpdir)/Transport
Bryan Duxbury6a681872010-05-02 22:39:31 +0000116phptransport_DATA = \
Jens Geyer2ef01132021-02-04 22:41:50 +0100117 lib/Transport/TBufferedTransport.php \
118 lib/Transport/TCurlClient.php \
119 lib/Transport/TFramedTransport.php \
120 lib/Transport/THttpClient.php \
121 lib/Transport/TMemoryBuffer.php \
122 lib/Transport/TNullTransport.php \
123 lib/Transport/TPhpStream.php \
124 lib/Transport/TSocket.php \
125 lib/Transport/TSocketPool.php \
126 lib/Transport/TTransport.php
Roger Meier21c0a852012-09-05 19:47:14 +0000127
128phptypedir = $(phpdir)/Type
129phptype_DATA = \
Jens Geyer2ef01132021-02-04 22:41:50 +0100130 lib/Type/TMessageType.php \
131 lib/Type/TType.php \
132 lib/Type/TConstant.php
Bryan Duxbury6a681872010-05-02 22:39:31 +0000133
James E. King IIIb96c4382019-01-24 17:45:07 -0500134clean-local:
135 if [ -f src/ext/thrift_protocol/Makefile ]; then cd src/ext/thrift_protocol/ && $(MAKE) clean; fi
136
Thomas63f04582024-03-21 22:51:07 +0900137distdir:
138 $(MAKE) $(AM_MAKEFLAGS) distdir-am
James E. King IIIb96c4382019-01-24 17:45:07 -0500139
Jake Farrell7c7a5e02012-10-11 00:29:11 +0000140EXTRA_DIST = \
Jens Geyer2ef01132021-02-04 22:41:50 +0100141 lib \
142 src/autoload.php \
143 src/ext/thrift_protocol/config.m4 \
144 src/ext/thrift_protocol/config.w32 \
145 src/ext/thrift_protocol/php_thrift_protocol.cpp \
146 src/ext/thrift_protocol/php_thrift_protocol.h \
Jens Geyerf087ec42022-02-02 23:14:52 +0100147 src/ext/thrift_protocol/php_thrift_protocol.stub.php \
Jens Geyera10d4012022-02-02 22:57:46 +0100148 src/ext/thrift_protocol/php_thrift_protocol_arginfo.h \
Jens Geyer2ef01132021-02-04 22:41:50 +0100149 src/Thrift.php \
150 src/TStringUtils.php \
151 coding_standards.md \
152 thrift_protocol.ini \
153 README.apache.md \
Thomas63f04582024-03-21 22:51:07 +0900154 README.md \
155 test
Jens Geyer2ef01132021-02-04 22:41:50 +0100156
David Reiss653eada2010-10-05 02:38:58 +0000157
jfarrell16ff2332013-08-16 09:48:42 -0400158MAINTAINERCLEANFILES = \
Jens Geyer2ef01132021-02-04 22:41:50 +0100159 Makefile.in
jfarrell16ff2332013-08-16 09:48:42 -0400160