blob: ab87c95eec378c76343f15bc3be62e3b66ea687e [file] [log] [blame]
Bryan Duxburydef30a62009-04-08 00:19:37 +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
Chris Piro20c81ad2013-03-07 11:32:48 -050020SUBDIRS =
Roger Meierfa899322012-10-22 19:27:38 +000021
Roger Meierf168e0a2012-10-24 21:38:21 +000022if MINGW
23# do nothing, just build the compiler
24else
25
Roger Meier2814c2e2014-07-29 23:28:46 +020026if WITH_C_GLIB
27SUBDIRS += c_glib
28endif
29
Roger Meierfa899322012-10-22 19:27:38 +000030if WITH_CPP
Roger Meier18a90d12012-10-24 18:40:06 +000031SUBDIRS += cpp
Roger Meierfa899322012-10-22 19:27:38 +000032endif
33
Nobuaki Sukegawa402f6412016-02-22 22:41:25 +090034if WITH_D
35SUBDIRS += d
36endif
37
Roger Meierfa899322012-10-22 19:27:38 +000038if WITH_JAVA
39SUBDIRS += java
40SUBDIRS += js
41endif
42
Roger Meierfa899322012-10-22 19:27:38 +000043if WITH_PYTHON
Roger Meier1d66d062012-10-26 21:46:18 +000044SUBDIRS += py
45SUBDIRS += py.twisted
Chris Piro20c81ad2013-03-07 11:32:48 -050046SUBDIRS += py.tornado
Roger Meierfa899322012-10-22 19:27:38 +000047endif
48
49if WITH_RUBY
Roger Meiered817d02013-06-09 23:10:06 +020050SUBDIRS += rb
Roger Meierfa899322012-10-22 19:27:38 +000051endif
52
Jens Geyerbd52f1a2014-07-28 01:25:30 +020053if WITH_HAXE
54SUBDIRS += haxe
55endif
56
Jens Geyeraa0c8b32019-01-28 23:27:45 +010057if WITH_DOTNET
Jens Geyeraa0c8b32019-01-28 23:27:45 +010058SUBDIRS += netstd
Volodymyr Gotrab587a122016-09-14 19:18:48 -050059endif
60
Jens Geyer0e87c462013-06-18 22:25:07 +020061if WITH_GO
62SUBDIRS += go
63endif
64
Roger Meier64998e22014-01-27 21:15:56 +010065if WITH_NODEJS
66SUBDIRS += nodejs
67endif
68
Mark Erickson932c4702015-08-29 10:46:51 -050069if WITH_DART
70SUBDIRS += dart
71endif
72
Allen George8b96bfb2016-11-02 08:01:08 -040073if WITH_RS
74SUBDIRS += rs
75endif
76
Max-Gerd Retzlaff04057ac2022-08-23 17:38:34 +020077if WITH_CL
78SUBDIRS += cl
79endif
80
Kengo Seki58efe892019-10-09 22:23:16 +090081if WITH_PERL
82SUBDIRS += perl
83endif
84
Kengo Seki538e36c2019-10-18 22:09:01 +090085if WITH_PHP
86SUBDIRS += php
87endif
88
Kino Roy72d59122022-09-06 17:34:02 -070089if WITH_SWIFT
90SUBDIRS += swift
91endif
92
Roger Meierfa899322012-10-22 19:27:38 +000093#
Jens Geyerf066d842022-06-13 23:37:25 +020094# generate html for tutorial.thrift
Roger Meierfa899322012-10-22 19:27:38 +000095#
Roger Meier18a90d12012-10-24 18:40:06 +000096all-local:
Jens Geyer79f988c2014-10-03 20:42:54 +020097 $(top_builddir)/compiler/cpp/thrift --gen html -r $(top_srcdir)/tutorial/tutorial.thrift
jfarrellf13e4312015-08-25 00:39:29 -040098
99clean-local:
100 rm -rf $(top_srcdir)/tutorial/gen-html
101
Roger Meierf168e0a2012-10-24 21:38:21 +0000102endif
jfarrell102c6002013-08-15 21:20:19 -0400103
Thomas63f04582024-03-21 22:51:07 +0900104distdir:
105 $(MAKE) $(AM_MAKEFLAGS) distdir-am
106
Roger Meier64998e22014-01-27 21:15:56 +0100107# Any folders or files not listed above being added to SUBDIR need to be placed here in
108# EXTRA_DIST to be included in the release
jfarrell102c6002013-08-15 21:20:19 -0400109EXTRA_DIST = \
Jens Geyer79f988c2014-10-03 20:42:54 +0200110 d \
111 delphi \
112 erl \
Jens Geyer79f988c2014-10-03 20:42:54 +0200113 ocaml \
Jens Geyer79f988c2014-10-03 20:42:54 +0200114 shared.thrift \
115 tutorial.thrift \
116 README.md