blob: 51da3ba4220fe2e0c192519056a75e43aac486f0 [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
Nobuaki Sukegawabd165302016-01-19 11:10:07 +090020SUBDIRS = features
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
Nobuaki Sukegawa88c5ee72016-09-04 18:49:18 +090028if WITH_MONO
29SUBDIRS += csharp
30PRECROSS_TARGET += precross-csharp
31endif
32
Roger Meierd3b9dca2011-06-24 14:01:10 +000033if WITH_CPP
34SUBDIRS += cpp
Nobuaki Sukegawa03f0e182015-05-09 18:33:42 +090035PRECROSS_TARGET += precross-cpp
Roger Meierd3b9dca2011-06-24 14:01:10 +000036endif
37
Roger Meier0580d8d2012-01-10 22:11:36 +000038if WITH_PERL
39SUBDIRS += perl
Nobuaki Sukegawa03f0e182015-05-09 18:33:42 +090040PRECROSS_TARGET += precross-perl
Roger Meier0580d8d2012-01-10 22:11:36 +000041endif
42
Roger Meierb33967b2012-01-21 09:18:05 +000043if WITH_PHP
44SUBDIRS += php
Nobuaki Sukegawa03f0e182015-05-09 18:33:42 +090045PRECROSS_TARGET += precross-php
Roger Meierb33967b2012-01-21 09:18:05 +000046endif
47
Mark Erickson932c4702015-08-29 10:46:51 -050048if WITH_DART
49SUBDIRS += dart
50PRECROSS_TARGET += precross-dart
51endif
52
David Reiss82c1bab2008-06-11 01:16:53 +000053if WITH_PYTHON
David Reiss1a140912008-06-11 01:16:37 +000054SUBDIRS += py
Nobuaki Sukegawa03f0e182015-05-09 18:33:42 +090055PRECROSS_TARGET += precross-py
Chris Piro20c81ad2013-03-07 11:32:48 -050056SUBDIRS += py.tornado
Nobuaki Sukegawabf9fa902016-09-04 18:49:21 +090057if WITH_TWISTED_TEST
58SUBDIRS += py.twisted
59endif
David Reiss1a140912008-06-11 01:16:37 +000060endif
61
David Reiss8d07e1d2008-07-11 08:04:12 +000062if WITH_RUBY
Kevin Clark4bd89162008-07-08 00:47:49 +000063SUBDIRS += rb
Nobuaki Sukegawa03f0e182015-05-09 18:33:42 +090064PRECROSS_TARGET += precross-rb
Kevin Clark4bd89162008-07-08 00:47:49 +000065endif
66
Bryan Duxburyc6574472010-10-06 00:12:33 +000067if WITH_HASKELL
68SUBDIRS += hs
69endif
David Reiss48141bf2009-03-18 23:59:56 +000070
Jens Geyerbd52f1a2014-07-28 01:25:30 +020071if WITH_HAXE
72SUBDIRS += haxe
73endif
74
Volodymyr Gotrab587a122016-09-14 19:18:48 -050075if WITH_DOTNETCORE
76SUBDIRS += netcore
77endif
78
Jens Geyerf4598682014-05-08 23:18:44 +020079if WITH_GO
80SUBDIRS += go
Nobuaki Sukegawa03f0e182015-05-09 18:33:42 +090081PRECROSS_TARGET += precross-go
Jens Geyerf4598682014-05-08 23:18:44 +020082endif
83
alisdair sullivan06d0fa02014-08-05 19:54:57 -070084if WITH_ERLANG
85SUBDIRS += erl
Nobuaki Sukegawa826ea992015-10-28 22:19:45 +090086PRECROSS_TARGET += precross-erl
alisdair sullivan06d0fa02014-08-05 19:54:57 -070087endif
88
Nobuaki Sukegawad094e792016-02-01 21:47:49 +090089if WITH_LUA
90SUBDIRS += lua
91PRECROSS_TARGET += precross-lua
92endif
93
Roger Meier99b36722012-05-03 21:21:43 +000094#
95# generate html for ThriftTest.thrift
96#
97check-local:
Jens Geyer79f988c2014-10-03 20:42:54 +020098 $(top_builddir)/compiler/cpp/thrift --gen html -r $(top_srcdir)/test/ThriftTest.thrift
Roger Meier99b36722012-05-03 21:21:43 +000099
jfarrellf13e4312015-08-25 00:39:29 -0400100clean-local:
101 rm -rf $(top_srcdir)/test/gen-html
102
David Reiss48141bf2009-03-18 23:59:56 +0000103EXTRA_DIST = \
jfarrellf13e4312015-08-25 00:39:29 -0400104 audit \
105 crossrunner \
Jens Geyer79f988c2014-10-03 20:42:54 +0200106 keys \
Jens Geyer79f988c2014-10-03 20:42:54 +0200107 c_glib \
108 cpp \
Nobuaki Sukegawae134cbc2016-03-18 15:13:36 +0900109 dart \
Jens Geyer79f988c2014-10-03 20:42:54 +0200110 erl \
111 hs \
112 lua \
113 ocaml \
114 perl \
115 php \
116 py \
117 py.twisted \
118 py.tornado \
119 rb \
120 threads \
121 AnnotationTest.thrift \
122 BrokenConstants.thrift \
123 ConstantsDemo.thrift \
124 DebugProtoTest.thrift \
125 DenseLinkingTest.thrift \
126 DocTest.thrift \
jfarrellf13e4312015-08-25 00:39:29 -0400127 EnumTest.thrift \
Nobuaki Sukegawae134cbc2016-03-18 15:13:36 +0900128 FullCamelTest.thrift \
Jens Geyer79f988c2014-10-03 20:42:54 +0200129 Include.thrift \
130 JavaBeansTest.thrift \
BCG7ab125a2016-10-31 23:32:18 -0400131 JavaTypes.thrift \
jfarrellf13e4312015-08-25 00:39:29 -0400132 JsDeepConstructorTest.thrift \
Jens Geyer79f988c2014-10-03 20:42:54 +0200133 ManyOptionals.thrift \
134 ManyTypedefs.thrift \
135 NameConflictTest.thrift \
136 OptionalRequiredTest.thrift \
137 Recursive.thrift \
138 ReuseObjects.thrift \
139 SmallTest.thrift \
140 StressTest.thrift \
141 ThriftTest.thrift \
jfarrellf13e4312015-08-25 00:39:29 -0400142 TypedefTest.thrift \
Nobuaki Sukegawae134cbc2016-03-18 15:13:36 +0900143 known_failures_Linux.json \
144 test.py \
145 tests.json \
Nobuaki Sukegawa73d16372016-03-19 23:32:11 +0900146 rebuild_known_failures.sh \
Nobuaki Sukegawabd165302016-01-19 11:10:07 +0900147 result.js \
148 index.html \
jfarrellf13e4312015-08-25 00:39:29 -0400149 README.md \
150 valgrind.suppress
Roger Meier41ad4342015-03-24 22:30:40 +0100151
152precross-%:
153 $(MAKE) -C $* precross
Nobuaki Sukegawa03f0e182015-05-09 18:33:42 +0900154precross: $(PRECROSS_TARGET)