blob: 8e62960002398486ab46581f24ab69337da03f2c [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
Mark Goldfinch4ab9a882016-03-25 23:28:43 +130041php_DATA = \
42 lib/Thrift/TMultiplexedProcessor.php
Bryan Duxbury6a681872010-05-02 22:39:31 +000043
Roger Meier21c0a852012-09-05 19:47:14 +000044phpbasedir = $(phpdir)/Base
45phpbase_DATA = \
46 lib/Thrift/Base/TBase.php
47
Roger Meier1e3c8842013-05-30 14:04:11 +020048phpclassloaderdir = $(phpdir)/ClassLoader
49phpclassloader_DATA = \
50 lib/Thrift/ClassLoader/ThriftClassLoader.php
51
Roger Meier21c0a852012-09-05 19:47:14 +000052phpexceptiondir = $(phpdir)/Exception
53phpexception_DATA = \
54 lib/Thrift/Exception/TApplicationException.php \
55 lib/Thrift/Exception/TException.php \
56 lib/Thrift/Exception/TProtocolException.php \
57 lib/Thrift/Exception/TTransportException.php
58
59phpfactorydir = $(phpdir)/Factory
60phpfactory_DATA = \
61 lib/Thrift/Factory/TBinaryProtocolFactory.php \
62 lib/Thrift/Factory/TCompactProtocolFactory.php \
63 lib/Thrift/Factory/TJSONProtocolFactory.php \
64 lib/Thrift/Factory/TProtocolFactory.php \
Roger Meier9b252442013-03-22 17:05:53 +010065 lib/Thrift/Factory/TStringFuncFactory.php \
Roger Meier21c0a852012-09-05 19:47:14 +000066 lib/Thrift/Factory/TTransportFactory.php
67
68phpprotocoldir = $(phpdir)/Protocol
Bryan Duxbury6a681872010-05-02 22:39:31 +000069phpprotocol_DATA = \
Roger Meier21c0a852012-09-05 19:47:14 +000070 lib/Thrift/Protocol/TBinaryProtocolAccelerated.php \
71 lib/Thrift/Protocol/TBinaryProtocol.php \
72 lib/Thrift/Protocol/TCompactProtocol.php \
73 lib/Thrift/Protocol/TJSONProtocol.php \
Mark Goldfinch4ab9a882016-03-25 23:28:43 +130074 lib/Thrift/Protocol/TMultiplexedProtocol.php \
75 lib/Thrift/Protocol/TProtocol.php \
76 lib/Thrift/Protocol/TProtocolDecorator.php \
77 lib/Thrift/Protocol/TSimpleJSONProtocol.php
Bryan Duxbury6a681872010-05-02 22:39:31 +000078
Roger Meier21c0a852012-09-05 19:47:14 +000079phpprotocoljsondir = $(phpprotocoldir)/JSON
80phpprotocoljson_DATA = \
81 lib/Thrift/Protocol/JSON/BaseContext.php \
82 lib/Thrift/Protocol/JSON/ListContext.php \
83 lib/Thrift/Protocol/JSON/LookaheadReader.php \
84 lib/Thrift/Protocol/JSON/PairContext.php
85
Mark Goldfinch4ab9a882016-03-25 23:28:43 +130086phpprotocolsimplejsondir = $(phpprotocoldir)/SimpleJSON
87phpprotocolsimplejson_DATA = \
88 lib/Thrift/Protocol/SimpleJSON/CollectionMapKeyException.php \
89 lib/Thrift/Protocol/SimpleJSON/Context.php \
90 lib/Thrift/Protocol/SimpleJSON/ListContext.php \
91 lib/Thrift/Protocol/SimpleJSON/MapContext.php \
92 lib/Thrift/Protocol/SimpleJSON/StructContext.php
93
Roger Meier21c0a852012-09-05 19:47:14 +000094phpserializerdir = $(phpdir)/Serializer
95phpserializer_DATA = \
96 lib/Thrift/Serializer/TBinarySerializer.php
97
Roger Meier1e3c8842013-05-30 14:04:11 +020098phpserverdir = $(phpdir)/Server
99phpserver_DATA = \
100 lib/Thrift/Server/TServerSocket.php \
101 lib/Thrift/Server/TForkingServer.php \
102 lib/Thrift/Server/TServer.php \
103 lib/Thrift/Server/TServerTransport.php \
104 lib/Thrift/Server/TSimpleServer.php
105
106phpstringfuncdir = $(phpdir)/StringFunc
107phpstringfunc_DATA = \
108 lib/Thrift/StringFunc/Mbstring.php \
109 lib/Thrift/StringFunc/Core.php \
110 lib/Thrift/StringFunc/TStringFunc.php
111
Roger Meier21c0a852012-09-05 19:47:14 +0000112phptransportdir = $(phpdir)/Transport
Bryan Duxbury6a681872010-05-02 22:39:31 +0000113phptransport_DATA = \
Roger Meier21c0a852012-09-05 19:47:14 +0000114 lib/Thrift/Transport/TBufferedTransport.php \
Roger Meier6aacd4c2014-07-26 00:19:02 +0200115 lib/Thrift/Transport/TCurlClient.php \
Roger Meier21c0a852012-09-05 19:47:14 +0000116 lib/Thrift/Transport/TFramedTransport.php \
117 lib/Thrift/Transport/THttpClient.php \
118 lib/Thrift/Transport/TMemoryBuffer.php \
119 lib/Thrift/Transport/TNullTransport.php \
120 lib/Thrift/Transport/TPhpStream.php \
121 lib/Thrift/Transport/TSocket.php \
122 lib/Thrift/Transport/TSocketPool.php \
123 lib/Thrift/Transport/TTransport.php
124
125phptypedir = $(phpdir)/Type
126phptype_DATA = \
127 lib/Thrift/Type/TMessageType.php \
Maxime Mouial622ef032015-11-12 11:26:08 +0100128 lib/Thrift/Type/TType.php \
129 lib/Thrift/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 \
Nobuaki Sukegawa73d16372016-03-19 23:32:11 +0900136 src/ext/thrift_protocol/php_thrift_protocol7.cpp \
jfarrell16ff2332013-08-16 09:48:42 -0400137 src/ext/thrift_protocol/php_thrift_protocol.cpp \
jfarrell102c6002013-08-15 21:20:19 -0400138 src/ext/thrift_protocol/php_thrift_protocol.h \
jfarrell8fd8c632014-07-10 09:14:51 -0400139 src/ext/thrift_protocol/run-tests.php \
jfarrell102c6002013-08-15 21:20:19 -0400140 src/Thrift.php \
141 src/TStringUtils.php \
jfarrellf13e4312015-08-25 00:39:29 -0400142 coding_standards.md \
jfarrell16ff2332013-08-16 09:48:42 -0400143 thrift_protocol.ini \
jfarrell8fd8c632014-07-10 09:14:51 -0400144 README.apache.md \
145 README.md
David Reiss653eada2010-10-05 02:38:58 +0000146
jfarrell16ff2332013-08-16 09:48:42 -0400147MAINTAINERCLEANFILES = \
148 Makefile \
149 Makefile.in
150