blob: 8d9050a1dd95d9887ff7d9687b6d32478139553e [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:
36 cd $(phpmodule_SCRIPTS) && $(PHPIZE) --clean
37
Bryan Duxbury89200e12010-08-25 17:09:02 +000038endif
39
Robert Lubfba3702017-11-03 12:27:31 +080040phpdir = $(PHP_PREFIX)/
Mark Goldfinch4ab9a882016-03-25 23:28:43 +130041php_DATA = \
Robert Lubfba3702017-11-03 12:27:31 +080042 lib/TMultiplexedProcessor.php
Bryan Duxbury6a681872010-05-02 22:39:31 +000043
Roger Meier21c0a852012-09-05 19:47:14 +000044phpbasedir = $(phpdir)/Base
45phpbase_DATA = \
Robert Lubfba3702017-11-03 12:27:31 +080046 lib/Base/TBase.php
Roger Meier21c0a852012-09-05 19:47:14 +000047
Roger Meier1e3c8842013-05-30 14:04:11 +020048phpclassloaderdir = $(phpdir)/ClassLoader
49phpclassloader_DATA = \
Robert Lubfba3702017-11-03 12:27:31 +080050 lib/ClassLoader/ThriftClassLoader.php
Roger Meier1e3c8842013-05-30 14:04:11 +020051
Roger Meier21c0a852012-09-05 19:47:14 +000052phpexceptiondir = $(phpdir)/Exception
53phpexception_DATA = \
Robert Lubfba3702017-11-03 12:27:31 +080054 lib/Exception/TApplicationException.php \
55 lib/Exception/TException.php \
56 lib/Exception/TProtocolException.php \
57 lib/Exception/TTransportException.php
Roger Meier21c0a852012-09-05 19:47:14 +000058
59phpfactorydir = $(phpdir)/Factory
60phpfactory_DATA = \
Robert Lubfba3702017-11-03 12:27:31 +080061 lib/Factory/TBinaryProtocolFactory.php \
62 lib/Factory/TCompactProtocolFactory.php \
63 lib/Factory/TJSONProtocolFactory.php \
64 lib/Factory/TProtocolFactory.php \
65 lib/Factory/TStringFuncFactory.php \
66 lib/Factory/TTransportFactory.php
Roger Meier21c0a852012-09-05 19:47:14 +000067
68phpprotocoldir = $(phpdir)/Protocol
Bryan Duxbury6a681872010-05-02 22:39:31 +000069phpprotocol_DATA = \
Robert Lubfba3702017-11-03 12:27:31 +080070 lib/Protocol/TBinaryProtocolAccelerated.php \
71 lib/Protocol/TBinaryProtocol.php \
72 lib/Protocol/TCompactProtocol.php \
73 lib/Protocol/TJSONProtocol.php \
74 lib/Protocol/TMultiplexedProtocol.php \
75 lib/Protocol/TProtocol.php \
76 lib/Protocol/TProtocolDecorator.php \
77 lib/Protocol/TSimpleJSONProtocol.php
Bryan Duxbury6a681872010-05-02 22:39:31 +000078
Roger Meier21c0a852012-09-05 19:47:14 +000079phpprotocoljsondir = $(phpprotocoldir)/JSON
80phpprotocoljson_DATA = \
Robert Lubfba3702017-11-03 12:27:31 +080081 lib/Protocol/JSON/BaseContext.php \
82 lib/Protocol/JSON/ListContext.php \
83 lib/Protocol/JSON/LookaheadReader.php \
84 lib/Protocol/JSON/PairContext.php
Roger Meier21c0a852012-09-05 19:47:14 +000085
Mark Goldfinch4ab9a882016-03-25 23:28:43 +130086phpprotocolsimplejsondir = $(phpprotocoldir)/SimpleJSON
87phpprotocolsimplejson_DATA = \
Robert Lubfba3702017-11-03 12:27:31 +080088 lib/Protocol/SimpleJSON/CollectionMapKeyException.php \
89 lib/Protocol/SimpleJSON/Context.php \
90 lib/Protocol/SimpleJSON/ListContext.php \
91 lib/Protocol/SimpleJSON/MapContext.php \
92 lib/Protocol/SimpleJSON/StructContext.php
Mark Goldfinch4ab9a882016-03-25 23:28:43 +130093
Roger Meier21c0a852012-09-05 19:47:14 +000094phpserializerdir = $(phpdir)/Serializer
95phpserializer_DATA = \
Robert Lubfba3702017-11-03 12:27:31 +080096 lib/Serializer/TBinarySerializer.php
Roger Meier21c0a852012-09-05 19:47:14 +000097
Roger Meier1e3c8842013-05-30 14:04:11 +020098phpserverdir = $(phpdir)/Server
99phpserver_DATA = \
Robert Lubfba3702017-11-03 12:27:31 +0800100 lib/Server/TServerSocket.php \
101 lib/Server/TForkingServer.php \
102 lib/Server/TServer.php \
103 lib/Server/TServerTransport.php \
104 lib/Server/TSimpleServer.php
Roger Meier1e3c8842013-05-30 14:04:11 +0200105
106phpstringfuncdir = $(phpdir)/StringFunc
107phpstringfunc_DATA = \
Robert Lubfba3702017-11-03 12:27:31 +0800108 lib/StringFunc/Mbstring.php \
109 lib/StringFunc/Core.php \
110 lib/StringFunc/TStringFunc.php
Roger Meier1e3c8842013-05-30 14:04:11 +0200111
Roger Meier21c0a852012-09-05 19:47:14 +0000112phptransportdir = $(phpdir)/Transport
Bryan Duxbury6a681872010-05-02 22:39:31 +0000113phptransport_DATA = \
Robert Lubfba3702017-11-03 12:27:31 +0800114 lib/Transport/TBufferedTransport.php \
115 lib/Transport/TCurlClient.php \
116 lib/Transport/TFramedTransport.php \
117 lib/Transport/THttpClient.php \
118 lib/Transport/TMemoryBuffer.php \
119 lib/Transport/TNullTransport.php \
120 lib/Transport/TPhpStream.php \
121 lib/Transport/TSocket.php \
122 lib/Transport/TSocketPool.php \
123 lib/Transport/TTransport.php
Roger Meier21c0a852012-09-05 19:47:14 +0000124
125phptypedir = $(phpdir)/Type
126phptype_DATA = \
Robert Lubfba3702017-11-03 12:27:31 +0800127 lib/Type/TMessageType.php \
128 lib/Type/TType.php \
129 lib/Type/TConstant.php
Bryan Duxbury6a681872010-05-02 22:39:31 +0000130
Jake Farrell7c7a5e02012-10-11 00:29:11 +0000131EXTRA_DIST = \
jfarrell16ff2332013-08-16 09:48:42 -0400132 lib \
jfarrell102c6002013-08-15 21:20:19 -0400133 src/autoload.php \
Roger Meiera43063c2015-11-28 00:14:03 +0100134 src/ext/thrift_protocol/config.m4 \
jfarrell102c6002013-08-15 21:20:19 -0400135 src/ext/thrift_protocol/config.w32 \
jfarrell16ff2332013-08-16 09:48:42 -0400136 src/ext/thrift_protocol/php_thrift_protocol.cpp \
jfarrell102c6002013-08-15 21:20:19 -0400137 src/ext/thrift_protocol/php_thrift_protocol.h \
jfarrell8fd8c632014-07-10 09:14:51 -0400138 src/ext/thrift_protocol/run-tests.php \
jfarrell102c6002013-08-15 21:20:19 -0400139 src/Thrift.php \
140 src/TStringUtils.php \
jfarrellf13e4312015-08-25 00:39:29 -0400141 coding_standards.md \
jfarrell16ff2332013-08-16 09:48:42 -0400142 thrift_protocol.ini \
jfarrell8fd8c632014-07-10 09:14:51 -0400143 README.apache.md \
144 README.md
David Reiss653eada2010-10-05 02:38:58 +0000145
jfarrell16ff2332013-08-16 09:48:42 -0400146MAINTAINERCLEANFILES = \
147 Makefile \
148 Makefile.in
149