blob: e9d673cf684f69c7f8a6a139f4e0c47b4a46c790 [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:
27 cd src/ext/thrift_protocol/ && $(MAKE)
28
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
34endif
35
Roger Meier21c0a852012-09-05 19:47:14 +000036phpdir = $(PHP_PREFIX)/Thrift
Bryan Duxbury6a681872010-05-02 22:39:31 +000037
Roger Meier21c0a852012-09-05 19:47:14 +000038phpbasedir = $(phpdir)/Base
39phpbase_DATA = \
40 lib/Thrift/Base/TBase.php
41
Roger Meier1e3c8842013-05-30 14:04:11 +020042phpclassloaderdir = $(phpdir)/ClassLoader
43phpclassloader_DATA = \
44 lib/Thrift/ClassLoader/ThriftClassLoader.php
45
Roger Meier21c0a852012-09-05 19:47:14 +000046phpexceptiondir = $(phpdir)/Exception
47phpexception_DATA = \
48 lib/Thrift/Exception/TApplicationException.php \
49 lib/Thrift/Exception/TException.php \
50 lib/Thrift/Exception/TProtocolException.php \
51 lib/Thrift/Exception/TTransportException.php
52
53phpfactorydir = $(phpdir)/Factory
54phpfactory_DATA = \
55 lib/Thrift/Factory/TBinaryProtocolFactory.php \
56 lib/Thrift/Factory/TCompactProtocolFactory.php \
57 lib/Thrift/Factory/TJSONProtocolFactory.php \
58 lib/Thrift/Factory/TProtocolFactory.php \
Roger Meier9b252442013-03-22 17:05:53 +010059 lib/Thrift/Factory/TStringFuncFactory.php \
Roger Meier21c0a852012-09-05 19:47:14 +000060 lib/Thrift/Factory/TTransportFactory.php
61
62phpprotocoldir = $(phpdir)/Protocol
Bryan Duxbury6a681872010-05-02 22:39:31 +000063phpprotocol_DATA = \
Roger Meier21c0a852012-09-05 19:47:14 +000064 lib/Thrift/Protocol/TBinaryProtocolAccelerated.php \
65 lib/Thrift/Protocol/TBinaryProtocol.php \
66 lib/Thrift/Protocol/TCompactProtocol.php \
67 lib/Thrift/Protocol/TJSONProtocol.php \
68 lib/Thrift/Protocol/TProtocol.php
Bryan Duxbury6a681872010-05-02 22:39:31 +000069
Roger Meier21c0a852012-09-05 19:47:14 +000070phpprotocoljsondir = $(phpprotocoldir)/JSON
71phpprotocoljson_DATA = \
72 lib/Thrift/Protocol/JSON/BaseContext.php \
73 lib/Thrift/Protocol/JSON/ListContext.php \
74 lib/Thrift/Protocol/JSON/LookaheadReader.php \
75 lib/Thrift/Protocol/JSON/PairContext.php
76
77phpserializerdir = $(phpdir)/Serializer
78phpserializer_DATA = \
79 lib/Thrift/Serializer/TBinarySerializer.php
80
Roger Meier1e3c8842013-05-30 14:04:11 +020081phpserverdir = $(phpdir)/Server
82phpserver_DATA = \
83 lib/Thrift/Server/TServerSocket.php \
84 lib/Thrift/Server/TForkingServer.php \
85 lib/Thrift/Server/TServer.php \
86 lib/Thrift/Server/TServerTransport.php \
87 lib/Thrift/Server/TSimpleServer.php
88
89phpstringfuncdir = $(phpdir)/StringFunc
90phpstringfunc_DATA = \
91 lib/Thrift/StringFunc/Mbstring.php \
92 lib/Thrift/StringFunc/Core.php \
93 lib/Thrift/StringFunc/TStringFunc.php
94
Roger Meier21c0a852012-09-05 19:47:14 +000095phptransportdir = $(phpdir)/Transport
Bryan Duxbury6a681872010-05-02 22:39:31 +000096phptransport_DATA = \
Roger Meier21c0a852012-09-05 19:47:14 +000097 lib/Thrift/Transport/TBufferedTransport.php \
Roger Meier6aacd4c2014-07-26 00:19:02 +020098 lib/Thrift/Transport/TCurlClient.php \
Roger Meier21c0a852012-09-05 19:47:14 +000099 lib/Thrift/Transport/TFramedTransport.php \
100 lib/Thrift/Transport/THttpClient.php \
101 lib/Thrift/Transport/TMemoryBuffer.php \
102 lib/Thrift/Transport/TNullTransport.php \
103 lib/Thrift/Transport/TPhpStream.php \
104 lib/Thrift/Transport/TSocket.php \
105 lib/Thrift/Transport/TSocketPool.php \
106 lib/Thrift/Transport/TTransport.php
107
108phptypedir = $(phpdir)/Type
109phptype_DATA = \
110 lib/Thrift/Type/TMessageType.php \
111 lib/Thrift/Type/TType.php
Bryan Duxbury6a681872010-05-02 22:39:31 +0000112
Jake Farrell7c7a5e02012-10-11 00:29:11 +0000113EXTRA_DIST = \
jfarrell16ff2332013-08-16 09:48:42 -0400114 lib \
jfarrell102c6002013-08-15 21:20:19 -0400115 src/autoload.php \
116 src/ext/thrift_protocol/config.w32 \
jfarrell16ff2332013-08-16 09:48:42 -0400117 src/ext/thrift_protocol/php_thrift_protocol.cpp \
jfarrell102c6002013-08-15 21:20:19 -0400118 src/ext/thrift_protocol/php_thrift_protocol.h \
jfarrell8fd8c632014-07-10 09:14:51 -0400119 src/ext/thrift_protocol/run-tests.php \
jfarrell102c6002013-08-15 21:20:19 -0400120 src/Thrift.php \
121 src/TStringUtils.php \
jfarrell16ff2332013-08-16 09:48:42 -0400122 thrift_protocol.ini \
jfarrell8fd8c632014-07-10 09:14:51 -0400123 README.apache.md \
124 README.md
David Reiss653eada2010-10-05 02:38:58 +0000125
jfarrell16ff2332013-08-16 09:48:42 -0400126MAINTAINERCLEANFILES = \
127 Makefile \
128 Makefile.in
129