blob: fbf70f922faa3e4f824b384b8c6b11a060aaf753 [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
Roger Meier21c0a852012-09-05 19:47:14 +000040phpdir = $(PHP_PREFIX)/Thrift
Bryan Duxbury6a681872010-05-02 22:39:31 +000041
Roger Meier21c0a852012-09-05 19:47:14 +000042phpbasedir = $(phpdir)/Base
43phpbase_DATA = \
44 lib/Thrift/Base/TBase.php
45
Roger Meier1e3c8842013-05-30 14:04:11 +020046phpclassloaderdir = $(phpdir)/ClassLoader
47phpclassloader_DATA = \
48 lib/Thrift/ClassLoader/ThriftClassLoader.php
49
Roger Meier21c0a852012-09-05 19:47:14 +000050phpexceptiondir = $(phpdir)/Exception
51phpexception_DATA = \
52 lib/Thrift/Exception/TApplicationException.php \
53 lib/Thrift/Exception/TException.php \
54 lib/Thrift/Exception/TProtocolException.php \
55 lib/Thrift/Exception/TTransportException.php
56
57phpfactorydir = $(phpdir)/Factory
58phpfactory_DATA = \
59 lib/Thrift/Factory/TBinaryProtocolFactory.php \
60 lib/Thrift/Factory/TCompactProtocolFactory.php \
61 lib/Thrift/Factory/TJSONProtocolFactory.php \
62 lib/Thrift/Factory/TProtocolFactory.php \
Roger Meier9b252442013-03-22 17:05:53 +010063 lib/Thrift/Factory/TStringFuncFactory.php \
Roger Meier21c0a852012-09-05 19:47:14 +000064 lib/Thrift/Factory/TTransportFactory.php
65
66phpprotocoldir = $(phpdir)/Protocol
Bryan Duxbury6a681872010-05-02 22:39:31 +000067phpprotocol_DATA = \
Roger Meier21c0a852012-09-05 19:47:14 +000068 lib/Thrift/Protocol/TBinaryProtocolAccelerated.php \
69 lib/Thrift/Protocol/TBinaryProtocol.php \
70 lib/Thrift/Protocol/TCompactProtocol.php \
71 lib/Thrift/Protocol/TJSONProtocol.php \
72 lib/Thrift/Protocol/TProtocol.php
Bryan Duxbury6a681872010-05-02 22:39:31 +000073
Roger Meier21c0a852012-09-05 19:47:14 +000074phpprotocoljsondir = $(phpprotocoldir)/JSON
75phpprotocoljson_DATA = \
76 lib/Thrift/Protocol/JSON/BaseContext.php \
77 lib/Thrift/Protocol/JSON/ListContext.php \
78 lib/Thrift/Protocol/JSON/LookaheadReader.php \
79 lib/Thrift/Protocol/JSON/PairContext.php
80
81phpserializerdir = $(phpdir)/Serializer
82phpserializer_DATA = \
83 lib/Thrift/Serializer/TBinarySerializer.php
84
Roger Meier1e3c8842013-05-30 14:04:11 +020085phpserverdir = $(phpdir)/Server
86phpserver_DATA = \
87 lib/Thrift/Server/TServerSocket.php \
88 lib/Thrift/Server/TForkingServer.php \
89 lib/Thrift/Server/TServer.php \
90 lib/Thrift/Server/TServerTransport.php \
91 lib/Thrift/Server/TSimpleServer.php
92
93phpstringfuncdir = $(phpdir)/StringFunc
94phpstringfunc_DATA = \
95 lib/Thrift/StringFunc/Mbstring.php \
96 lib/Thrift/StringFunc/Core.php \
97 lib/Thrift/StringFunc/TStringFunc.php
98
Roger Meier21c0a852012-09-05 19:47:14 +000099phptransportdir = $(phpdir)/Transport
Bryan Duxbury6a681872010-05-02 22:39:31 +0000100phptransport_DATA = \
Roger Meier21c0a852012-09-05 19:47:14 +0000101 lib/Thrift/Transport/TBufferedTransport.php \
Roger Meier6aacd4c2014-07-26 00:19:02 +0200102 lib/Thrift/Transport/TCurlClient.php \
Roger Meier21c0a852012-09-05 19:47:14 +0000103 lib/Thrift/Transport/TFramedTransport.php \
104 lib/Thrift/Transport/THttpClient.php \
105 lib/Thrift/Transport/TMemoryBuffer.php \
106 lib/Thrift/Transport/TNullTransport.php \
107 lib/Thrift/Transport/TPhpStream.php \
108 lib/Thrift/Transport/TSocket.php \
109 lib/Thrift/Transport/TSocketPool.php \
110 lib/Thrift/Transport/TTransport.php
111
112phptypedir = $(phpdir)/Type
113phptype_DATA = \
114 lib/Thrift/Type/TMessageType.php \
115 lib/Thrift/Type/TType.php
Bryan Duxbury6a681872010-05-02 22:39:31 +0000116
Jake Farrell7c7a5e02012-10-11 00:29:11 +0000117EXTRA_DIST = \
jfarrell16ff2332013-08-16 09:48:42 -0400118 lib \
jfarrell102c6002013-08-15 21:20:19 -0400119 src/autoload.php \
120 src/ext/thrift_protocol/config.w32 \
jfarrell16ff2332013-08-16 09:48:42 -0400121 src/ext/thrift_protocol/php_thrift_protocol.cpp \
jfarrell102c6002013-08-15 21:20:19 -0400122 src/ext/thrift_protocol/php_thrift_protocol.h \
jfarrell8fd8c632014-07-10 09:14:51 -0400123 src/ext/thrift_protocol/run-tests.php \
jfarrell102c6002013-08-15 21:20:19 -0400124 src/Thrift.php \
125 src/TStringUtils.php \
jfarrellf13e4312015-08-25 00:39:29 -0400126 coding_standards.md \
jfarrell16ff2332013-08-16 09:48:42 -0400127 thrift_protocol.ini \
jfarrell8fd8c632014-07-10 09:14:51 -0400128 README.apache.md \
129 README.md
David Reiss653eada2010-10-05 02:38:58 +0000130
jfarrell16ff2332013-08-16 09:48:42 -0400131MAINTAINERCLEANFILES = \
132 Makefile \
133 Makefile.in
134