blob: c1fd589cf0e48cb9f3c01e33982f2f4187e437e5 [file] [log] [blame]
David Reissea2cba82009-03-30 21:35:00 +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 Meier8909cbd2014-01-26 11:44:27 +010020SUBDIRS =
Nobuaki Sukegawa03f0e182015-05-09 18:33:42 +090021PRECROSS_TARGET =
David Reiss9ff3b9d2008-02-15 01:10:23 +000022
Roger Meierb3c84092014-09-01 21:53:40 +020023if WITH_C_GLIB
24SUBDIRS += c_glib
Nobuaki Sukegawa03f0e182015-05-09 18:33:42 +090025PRECROSS_TARGET += precross-c_glib
Roger Meierb3c84092014-09-01 21:53:40 +020026endif
27
Roger Meierd3b9dca2011-06-24 14:01:10 +000028if WITH_CPP
29SUBDIRS += cpp
Nobuaki Sukegawa03f0e182015-05-09 18:33:42 +090030PRECROSS_TARGET += precross-cpp
Roger Meierd3b9dca2011-06-24 14:01:10 +000031endif
32
Roger Meier0580d8d2012-01-10 22:11:36 +000033if WITH_PERL
34SUBDIRS += perl
Nobuaki Sukegawa03f0e182015-05-09 18:33:42 +090035PRECROSS_TARGET += precross-perl
Roger Meier0580d8d2012-01-10 22:11:36 +000036endif
37
Roger Meierb33967b2012-01-21 09:18:05 +000038if WITH_PHP
39SUBDIRS += php
Nobuaki Sukegawa03f0e182015-05-09 18:33:42 +090040PRECROSS_TARGET += precross-php
Roger Meierb33967b2012-01-21 09:18:05 +000041endif
42
Mark Erickson932c4702015-08-29 10:46:51 -050043if WITH_DART
44SUBDIRS += dart
45PRECROSS_TARGET += precross-dart
46endif
47
David Reiss82c1bab2008-06-11 01:16:53 +000048if WITH_PYTHON
David Reiss1a140912008-06-11 01:16:37 +000049SUBDIRS += py
Nobuaki Sukegawa03f0e182015-05-09 18:33:42 +090050PRECROSS_TARGET += precross-py
Roger Meier50e43492010-10-08 17:46:06 +000051SUBDIRS += py.twisted
Chris Piro20c81ad2013-03-07 11:32:48 -050052SUBDIRS += py.tornado
David Reiss1a140912008-06-11 01:16:37 +000053endif
54
David Reiss8d07e1d2008-07-11 08:04:12 +000055if WITH_RUBY
Kevin Clark4bd89162008-07-08 00:47:49 +000056SUBDIRS += rb
Nobuaki Sukegawa03f0e182015-05-09 18:33:42 +090057PRECROSS_TARGET += precross-rb
Kevin Clark4bd89162008-07-08 00:47:49 +000058endif
59
Bryan Duxburyc6574472010-10-06 00:12:33 +000060if WITH_HASKELL
61SUBDIRS += hs
62endif
David Reiss48141bf2009-03-18 23:59:56 +000063
Jens Geyerbd52f1a2014-07-28 01:25:30 +020064if WITH_HAXE
65SUBDIRS += haxe
66endif
67
Jens Geyerf4598682014-05-08 23:18:44 +020068if WITH_GO
69SUBDIRS += go
Nobuaki Sukegawa03f0e182015-05-09 18:33:42 +090070PRECROSS_TARGET += precross-go
Jens Geyerf4598682014-05-08 23:18:44 +020071endif
72
alisdair sullivan06d0fa02014-08-05 19:54:57 -070073if WITH_ERLANG
74SUBDIRS += erl
Nobuaki Sukegawa826ea992015-10-28 22:19:45 +090075PRECROSS_TARGET += precross-erl
alisdair sullivan06d0fa02014-08-05 19:54:57 -070076endif
77
Roger Meier99b36722012-05-03 21:21:43 +000078#
79# generate html for ThriftTest.thrift
80#
81check-local:
Jens Geyer79f988c2014-10-03 20:42:54 +020082 $(top_builddir)/compiler/cpp/thrift --gen html -r $(top_srcdir)/test/ThriftTest.thrift
Roger Meier99b36722012-05-03 21:21:43 +000083
jfarrellf13e4312015-08-25 00:39:29 -040084clean-local:
85 rm -rf $(top_srcdir)/test/gen-html
86
David Reiss48141bf2009-03-18 23:59:56 +000087EXTRA_DIST = \
jfarrellf13e4312015-08-25 00:39:29 -040088 audit \
89 crossrunner \
Jens Geyer79f988c2014-10-03 20:42:54 +020090 keys \
Jens Geyer79f988c2014-10-03 20:42:54 +020091 c_glib \
92 cpp \
93 erl \
94 hs \
95 lua \
96 ocaml \
97 perl \
98 php \
99 py \
100 py.twisted \
101 py.tornado \
102 rb \
103 threads \
104 AnnotationTest.thrift \
105 BrokenConstants.thrift \
106 ConstantsDemo.thrift \
107 DebugProtoTest.thrift \
108 DenseLinkingTest.thrift \
109 DocTest.thrift \
jfarrellf13e4312015-08-25 00:39:29 -0400110 EnumTest.thrift \
111 known_failures_Linux.json \
Jens Geyer79f988c2014-10-03 20:42:54 +0200112 Include.thrift \
113 JavaBeansTest.thrift \
jfarrellf13e4312015-08-25 00:39:29 -0400114 JsDeepConstructorTest.thrift \
Jens Geyer79f988c2014-10-03 20:42:54 +0200115 ManyOptionals.thrift \
116 ManyTypedefs.thrift \
117 NameConflictTest.thrift \
118 OptionalRequiredTest.thrift \
119 Recursive.thrift \
120 ReuseObjects.thrift \
121 SmallTest.thrift \
122 StressTest.thrift \
jfarrellf13e4312015-08-25 00:39:29 -0400123 test.py \
124 tests.json \
Jens Geyer79f988c2014-10-03 20:42:54 +0200125 ThriftTest.thrift \
jfarrellf13e4312015-08-25 00:39:29 -0400126 TypedefTest.thrift \
jfarrellf13e4312015-08-25 00:39:29 -0400127 result.html \
128 README.md \
129 valgrind.suppress
Roger Meier41ad4342015-03-24 22:30:40 +0100130
131precross-%:
132 $(MAKE) -C $* precross
Nobuaki Sukegawa03f0e182015-05-09 18:33:42 +0900133precross: $(PRECROSS_TARGET)