David Reiss | ea2cba8 | 2009-03-30 21:35:00 +0000 | [diff] [blame] | 1 | # |
| 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 Sukegawa | bd16530 | 2016-01-19 11:10:07 +0900 | [diff] [blame] | 20 | SUBDIRS = features |
Nobuaki Sukegawa | 03f0e18 | 2015-05-09 18:33:42 +0900 | [diff] [blame] | 21 | PRECROSS_TARGET = |
David Reiss | 9ff3b9d | 2008-02-15 01:10:23 +0000 | [diff] [blame] | 22 | |
Roger Meier | b3c8409 | 2014-09-01 21:53:40 +0200 | [diff] [blame] | 23 | if WITH_C_GLIB |
| 24 | SUBDIRS += c_glib |
Nobuaki Sukegawa | 03f0e18 | 2015-05-09 18:33:42 +0900 | [diff] [blame] | 25 | PRECROSS_TARGET += precross-c_glib |
Roger Meier | b3c8409 | 2014-09-01 21:53:40 +0200 | [diff] [blame] | 26 | endif |
| 27 | |
Max-Gerd Retzlaff | 04057ac | 2022-08-23 17:38:34 +0200 | [diff] [blame] | 28 | if WITH_CL |
| 29 | SUBDIRS += cl |
| 30 | PRECROSS_TARGET += precross-cl |
| 31 | endif |
| 32 | |
Roger Meier | d3b9dca | 2011-06-24 14:01:10 +0000 | [diff] [blame] | 33 | if WITH_CPP |
| 34 | SUBDIRS += cpp |
Nobuaki Sukegawa | 03f0e18 | 2015-05-09 18:33:42 +0900 | [diff] [blame] | 35 | PRECROSS_TARGET += precross-cpp |
Roger Meier | d3b9dca | 2011-06-24 14:01:10 +0000 | [diff] [blame] | 36 | endif |
| 37 | |
Roger Meier | 0580d8d | 2012-01-10 22:11:36 +0000 | [diff] [blame] | 38 | if WITH_PERL |
| 39 | SUBDIRS += perl |
Nobuaki Sukegawa | 03f0e18 | 2015-05-09 18:33:42 +0900 | [diff] [blame] | 40 | PRECROSS_TARGET += precross-perl |
Roger Meier | 0580d8d | 2012-01-10 22:11:36 +0000 | [diff] [blame] | 41 | endif |
| 42 | |
Roger Meier | b33967b | 2012-01-21 09:18:05 +0000 | [diff] [blame] | 43 | if WITH_PHP |
| 44 | SUBDIRS += php |
Nobuaki Sukegawa | 03f0e18 | 2015-05-09 18:33:42 +0900 | [diff] [blame] | 45 | PRECROSS_TARGET += precross-php |
Roger Meier | b33967b | 2012-01-21 09:18:05 +0000 | [diff] [blame] | 46 | endif |
| 47 | |
Mark Erickson | 932c470 | 2015-08-29 10:46:51 -0500 | [diff] [blame] | 48 | if WITH_DART |
| 49 | SUBDIRS += dart |
| 50 | PRECROSS_TARGET += precross-dart |
| 51 | endif |
| 52 | |
David Reiss | 82c1bab | 2008-06-11 01:16:53 +0000 | [diff] [blame] | 53 | if WITH_PYTHON |
David Reiss | 1a14091 | 2008-06-11 01:16:37 +0000 | [diff] [blame] | 54 | SUBDIRS += py |
Nobuaki Sukegawa | 03f0e18 | 2015-05-09 18:33:42 +0900 | [diff] [blame] | 55 | PRECROSS_TARGET += precross-py |
Chris Piro | 20c81ad | 2013-03-07 11:32:48 -0500 | [diff] [blame] | 56 | SUBDIRS += py.tornado |
Nobuaki Sukegawa | bf9fa90 | 2016-09-04 18:49:21 +0900 | [diff] [blame] | 57 | if WITH_TWISTED_TEST |
| 58 | SUBDIRS += py.twisted |
| 59 | endif |
David Reiss | 1a14091 | 2008-06-11 01:16:37 +0000 | [diff] [blame] | 60 | endif |
| 61 | |
David Reiss | 8d07e1d | 2008-07-11 08:04:12 +0000 | [diff] [blame] | 62 | if WITH_RUBY |
Kevin Clark | 4bd8916 | 2008-07-08 00:47:49 +0000 | [diff] [blame] | 63 | SUBDIRS += rb |
Nobuaki Sukegawa | 03f0e18 | 2015-05-09 18:33:42 +0900 | [diff] [blame] | 64 | PRECROSS_TARGET += precross-rb |
Kevin Clark | 4bd8916 | 2008-07-08 00:47:49 +0000 | [diff] [blame] | 65 | endif |
| 66 | |
Jens Geyer | bd52f1a | 2014-07-28 01:25:30 +0200 | [diff] [blame] | 67 | if WITH_HAXE |
| 68 | SUBDIRS += haxe |
| 69 | endif |
| 70 | |
Jens Geyer | aa0c8b3 | 2019-01-28 23:27:45 +0100 | [diff] [blame] | 71 | if WITH_DOTNET |
Jens Geyer | aa0c8b3 | 2019-01-28 23:27:45 +0100 | [diff] [blame] | 72 | SUBDIRS += netstd |
Volodymyr Gotra | b587a12 | 2016-09-14 19:18:48 -0500 | [diff] [blame] | 73 | endif |
| 74 | |
Jens Geyer | f459868 | 2014-05-08 23:18:44 +0200 | [diff] [blame] | 75 | if WITH_GO |
| 76 | SUBDIRS += go |
Nobuaki Sukegawa | 03f0e18 | 2015-05-09 18:33:42 +0900 | [diff] [blame] | 77 | PRECROSS_TARGET += precross-go |
Jens Geyer | f459868 | 2014-05-08 23:18:44 +0200 | [diff] [blame] | 78 | endif |
| 79 | |
alisdair sullivan | 06d0fa0 | 2014-08-05 19:54:57 -0700 | [diff] [blame] | 80 | if WITH_ERLANG |
| 81 | SUBDIRS += erl |
Nobuaki Sukegawa | 826ea99 | 2015-10-28 22:19:45 +0900 | [diff] [blame] | 82 | PRECROSS_TARGET += precross-erl |
alisdair sullivan | 06d0fa0 | 2014-08-05 19:54:57 -0700 | [diff] [blame] | 83 | endif |
| 84 | |
Nobuaki Sukegawa | d094e79 | 2016-02-01 21:47:49 +0900 | [diff] [blame] | 85 | if WITH_LUA |
| 86 | SUBDIRS += lua |
| 87 | PRECROSS_TARGET += precross-lua |
| 88 | endif |
| 89 | |
Allen George | 8b96bfb | 2016-11-02 08:01:08 -0400 | [diff] [blame] | 90 | if WITH_RS |
| 91 | SUBDIRS += rs |
| 92 | PRECROSS_TARGET += precross-rs |
| 93 | endif |
| 94 | |
Kino Roy | a9da9eb | 2022-10-07 23:13:01 -0700 | [diff] [blame] | 95 | if WITH_SWIFT |
| 96 | SUBDIRS += swift |
| 97 | PRECROSS_TARGET += precross-swift |
| 98 | endif |
| 99 | |
Roger Meier | 99b3672 | 2012-05-03 21:21:43 +0000 | [diff] [blame] | 100 | # |
Sebastian Zenker | 2ec93c8 | 2019-01-31 02:14:27 +0100 | [diff] [blame] | 101 | # generate html for ThriftTest.thrift AND validate it! |
Roger Meier | 99b3672 | 2012-05-03 21:21:43 +0000 | [diff] [blame] | 102 | # |
Sebastian Zenker | 2ec93c8 | 2019-01-31 02:14:27 +0100 | [diff] [blame] | 103 | if WITH_NODEJS |
Roger Meier | 99b3672 | 2012-05-03 21:21:43 +0000 | [diff] [blame] | 104 | check-local: |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 105 | $(top_builddir)/compiler/cpp/thrift --gen html -r $(top_srcdir)/test/ThriftTest.thrift |
Sebastian Zenker | 2ec93c8 | 2019-01-31 02:14:27 +0100 | [diff] [blame] | 106 | $(top_builddir)/node_modules/.bin/html-validator --file=gen-html/index.html --verbose |
| 107 | $(top_builddir)/node_modules/.bin/html-validator --file=gen-html/ThriftTest.html --verbose |
| 108 | else |
| 109 | check-local: |
| 110 | $(top_builddir)/compiler/cpp/thrift --gen html -r $(top_srcdir)/test/ThriftTest.thrift |
| 111 | endif |
Roger Meier | 99b3672 | 2012-05-03 21:21:43 +0000 | [diff] [blame] | 112 | |
jfarrell | f13e431 | 2015-08-25 00:39:29 -0400 | [diff] [blame] | 113 | clean-local: |
James E. King III | b96c438 | 2019-01-24 17:45:07 -0500 | [diff] [blame] | 114 | $(RM) -r $(top_srcdir)/test/gen-html/ |
| 115 | find . -type d -name "__pycache__" | xargs rm -rf |
| 116 | find . -type f -name "*.pyc" | xargs rm -f |
| 117 | |
| 118 | dist-hook: |
| 119 | $(RM) -r $(distdir)/gen-html/ |
| 120 | find $(distdir) -type d -name "__pycache__" | xargs rm -rf |
| 121 | find $(distdir) -type f -name "*.pyc" | xargs rm -f |
jfarrell | f13e431 | 2015-08-25 00:39:29 -0400 | [diff] [blame] | 122 | |
Thomas | 63f0458 | 2024-03-21 22:51:07 +0900 | [diff] [blame] | 123 | distdir: |
| 124 | $(MAKE) $(AM_MAKEFLAGS) distdir-am |
| 125 | |
David Reiss | 48141bf | 2009-03-18 23:59:56 +0000 | [diff] [blame] | 126 | EXTRA_DIST = \ |
jfarrell | f13e431 | 2015-08-25 00:39:29 -0400 | [diff] [blame] | 127 | audit \ |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 128 | c_glib \ |
Max-Gerd Retzlaff | 04057ac | 2022-08-23 17:38:34 +0200 | [diff] [blame] | 129 | cl \ |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 130 | cpp \ |
James E. King III | b96c438 | 2019-01-24 17:45:07 -0500 | [diff] [blame] | 131 | crossrunner \ |
Nobuaki Sukegawa | e134cbc | 2016-03-18 15:13:36 +0900 | [diff] [blame] | 132 | dart \ |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 133 | erl \ |
James E. King III | b96c438 | 2019-01-24 17:45:07 -0500 | [diff] [blame] | 134 | keys \ |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 135 | lua \ |
| 136 | ocaml \ |
| 137 | perl \ |
| 138 | php \ |
| 139 | py \ |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 140 | py.tornado \ |
James E. King III | b96c438 | 2019-01-24 17:45:07 -0500 | [diff] [blame] | 141 | py.twisted \ |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 142 | rb \ |
Allen George | 8b96bfb | 2016-11-02 08:01:08 -0400 | [diff] [blame] | 143 | rs \ |
Kino Roy | a9da9eb | 2022-10-07 23:13:01 -0700 | [diff] [blame] | 144 | swift \ |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 145 | threads \ |
Jens Geyer | a10d401 | 2022-02-02 22:57:46 +0100 | [diff] [blame] | 146 | partial \ |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 147 | AnnotationTest.thrift \ |
| 148 | BrokenConstants.thrift \ |
| 149 | ConstantsDemo.thrift \ |
Jens Geyer | 0d0ac75 | 2024-03-12 21:49:28 +0100 | [diff] [blame] | 150 | v0.16/ConstantsDemo.thrift \ |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 151 | DebugProtoTest.thrift \ |
Jens Geyer | f066d84 | 2022-06-13 23:37:25 +0200 | [diff] [blame] | 152 | v0.16/DebugProtoTest.thrift \ |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 153 | DenseLinkingTest.thrift \ |
| 154 | DocTest.thrift \ |
James E. King III | b96c438 | 2019-01-24 17:45:07 -0500 | [diff] [blame] | 155 | DoubleConstantsTest.thrift \ |
| 156 | EnumContainersTest.thrift \ |
jfarrell | f13e431 | 2015-08-25 00:39:29 -0400 | [diff] [blame] | 157 | EnumTest.thrift \ |
Nobuaki Sukegawa | e134cbc | 2016-03-18 15:13:36 +0900 | [diff] [blame] | 158 | FullCamelTest.thrift \ |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 159 | Include.thrift \ |
Jens Geyer | 2ef0113 | 2021-02-04 22:41:50 +0100 | [diff] [blame] | 160 | Identifiers.thrift \ |
James E. King III | b96c438 | 2019-01-24 17:45:07 -0500 | [diff] [blame] | 161 | Int64Test.thrift \ |
jfarrell | f13e431 | 2015-08-25 00:39:29 -0400 | [diff] [blame] | 162 | JsDeepConstructorTest.thrift \ |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 163 | ManyOptionals.thrift \ |
| 164 | ManyTypedefs.thrift \ |
| 165 | NameConflictTest.thrift \ |
Jens Geyer | 0d0ac75 | 2024-03-12 21:49:28 +0100 | [diff] [blame] | 166 | v0.16/NameConflictTest.thrift \ |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 167 | OptionalRequiredTest.thrift \ |
| 168 | Recursive.thrift \ |
| 169 | ReuseObjects.thrift \ |
| 170 | SmallTest.thrift \ |
| 171 | StressTest.thrift \ |
| 172 | ThriftTest.thrift \ |
Jens Geyer | f066d84 | 2022-06-13 23:37:25 +0200 | [diff] [blame] | 173 | v0.16/ThriftTest.thrift \ |
jfarrell | f13e431 | 2015-08-25 00:39:29 -0400 | [diff] [blame] | 174 | TypedefTest.thrift \ |
Jens Geyer | 2ef0113 | 2021-02-04 22:41:50 +0100 | [diff] [blame] | 175 | Types.thrift \ |
Ben Podgursky | 50bfc56 | 2018-04-16 23:21:46 -0700 | [diff] [blame] | 176 | UnsafeTypes.thrift \ |
Jens Geyer | 2ef0113 | 2021-02-04 22:41:50 +0100 | [diff] [blame] | 177 | Service.thrift \ |
Zezeng Wang | 371d92f | 2020-04-28 14:23:15 +0800 | [diff] [blame] | 178 | SpecificNameTest.thrift \ |
Alex Kormukhin | c9b7bd7 | 2022-02-18 21:04:14 +0300 | [diff] [blame] | 179 | VoidMethExceptionsTest.thrift \ |
Yuxuan 'fishy' Wang | c4f2ba1 | 2022-01-26 11:21:47 -0800 | [diff] [blame] | 180 | partial/thrift_test_schema.thrift \ |
Jens Geyer | 4d493e8 | 2022-08-31 22:08:03 +0200 | [diff] [blame] | 181 | keys/keygen/.gitignore \ |
Nobuaki Sukegawa | e134cbc | 2016-03-18 15:13:36 +0900 | [diff] [blame] | 182 | known_failures_Linux.json \ |
| 183 | test.py \ |
| 184 | tests.json \ |
Nobuaki Sukegawa | 73d1637 | 2016-03-19 23:32:11 +0900 | [diff] [blame] | 185 | rebuild_known_failures.sh \ |
Nobuaki Sukegawa | bd16530 | 2016-01-19 11:10:07 +0900 | [diff] [blame] | 186 | result.js \ |
| 187 | index.html \ |
jfarrell | f13e431 | 2015-08-25 00:39:29 -0400 | [diff] [blame] | 188 | README.md \ |
| 189 | valgrind.suppress |
Roger Meier | 41ad434 | 2015-03-24 22:30:40 +0100 | [diff] [blame] | 190 | |
| 191 | precross-%: |
| 192 | $(MAKE) -C $* precross |
Nobuaki Sukegawa | 03f0e18 | 2015-05-09 18:33:42 +0900 | [diff] [blame] | 193 | precross: $(PRECROSS_TARGET) |