]>
Commit | Line | Data |
---|---|---|
f67539c2 TL |
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 | ||
20 | SUBDIRS = features | |
21 | PRECROSS_TARGET = | |
22 | ||
23 | if WITH_C_GLIB | |
24 | SUBDIRS += c_glib | |
25 | PRECROSS_TARGET += precross-c_glib | |
26 | endif | |
27 | ||
28 | if WITH_CL | |
29 | SUBDIRS += cl | |
30 | PRECROSS_TARGET += precross-cl | |
31 | endif | |
32 | ||
33 | if WITH_MONO | |
34 | SUBDIRS += csharp | |
35 | PRECROSS_TARGET += precross-csharp | |
36 | endif | |
37 | ||
38 | if WITH_CPP | |
39 | SUBDIRS += cpp | |
40 | PRECROSS_TARGET += precross-cpp | |
41 | endif | |
42 | ||
43 | if WITH_PERL | |
44 | SUBDIRS += perl | |
45 | PRECROSS_TARGET += precross-perl | |
46 | endif | |
47 | ||
48 | if WITH_PHP | |
49 | SUBDIRS += php | |
50 | PRECROSS_TARGET += precross-php | |
51 | endif | |
52 | ||
53 | if WITH_DART | |
54 | SUBDIRS += dart | |
55 | PRECROSS_TARGET += precross-dart | |
56 | endif | |
57 | ||
58 | if WITH_PYTHON | |
59 | SUBDIRS += py | |
60 | PRECROSS_TARGET += precross-py | |
61 | SUBDIRS += py.tornado | |
62 | if WITH_TWISTED_TEST | |
63 | SUBDIRS += py.twisted | |
64 | endif | |
65 | endif | |
66 | ||
67 | if WITH_RUBY | |
68 | SUBDIRS += rb | |
69 | PRECROSS_TARGET += precross-rb | |
70 | endif | |
71 | ||
72 | if WITH_HASKELL | |
73 | SUBDIRS += hs | |
74 | endif | |
75 | ||
76 | if WITH_HAXE | |
77 | SUBDIRS += haxe | |
78 | endif | |
79 | ||
80 | if WITH_DOTNET | |
81 | SUBDIRS += netcore | |
82 | SUBDIRS += netstd | |
83 | endif | |
84 | ||
85 | if WITH_GO | |
86 | SUBDIRS += go | |
87 | PRECROSS_TARGET += precross-go | |
88 | endif | |
89 | ||
90 | if WITH_ERLANG | |
91 | SUBDIRS += erl | |
92 | PRECROSS_TARGET += precross-erl | |
93 | endif | |
94 | ||
95 | if WITH_LUA | |
96 | SUBDIRS += lua | |
97 | PRECROSS_TARGET += precross-lua | |
98 | endif | |
99 | ||
100 | if WITH_RS | |
101 | SUBDIRS += rs | |
102 | PRECROSS_TARGET += precross-rs | |
103 | endif | |
104 | ||
105 | # | |
106 | # generate html for ThriftTest.thrift AND validate it! | |
107 | # | |
108 | if WITH_NODEJS | |
109 | check-local: | |
110 | $(top_builddir)/compiler/cpp/thrift --gen html -r $(top_srcdir)/test/ThriftTest.thrift | |
111 | $(top_builddir)/node_modules/.bin/html-validator --file=gen-html/index.html --verbose | |
112 | $(top_builddir)/node_modules/.bin/html-validator --file=gen-html/ThriftTest.html --verbose | |
113 | else | |
114 | check-local: | |
115 | $(top_builddir)/compiler/cpp/thrift --gen html -r $(top_srcdir)/test/ThriftTest.thrift | |
116 | endif | |
117 | ||
118 | clean-local: | |
119 | $(RM) -r $(top_srcdir)/test/gen-html/ | |
120 | find . -type d -name "__pycache__" | xargs rm -rf | |
121 | find . -type f -name "*.pyc" | xargs rm -f | |
122 | ||
123 | dist-hook: | |
124 | $(RM) -r $(distdir)/gen-html/ | |
125 | find $(distdir) -type d -name "__pycache__" | xargs rm -rf | |
126 | find $(distdir) -type f -name "*.pyc" | xargs rm -f | |
127 | ||
128 | EXTRA_DIST = \ | |
129 | audit \ | |
130 | c_glib \ | |
131 | cl \ | |
132 | cpp \ | |
133 | crossrunner \ | |
134 | dart \ | |
135 | erl \ | |
136 | hs \ | |
137 | keys \ | |
138 | lua \ | |
139 | ocaml \ | |
140 | perl \ | |
141 | php \ | |
142 | py \ | |
143 | py.tornado \ | |
144 | py.twisted \ | |
145 | rb \ | |
146 | rs \ | |
147 | threads \ | |
148 | AnnotationTest.thrift \ | |
149 | BrokenConstants.thrift \ | |
150 | ConstantsDemo.thrift \ | |
151 | DebugProtoTest.thrift \ | |
152 | DenseLinkingTest.thrift \ | |
153 | DocTest.thrift \ | |
154 | DoubleConstantsTest.thrift \ | |
155 | EnumContainersTest.thrift \ | |
156 | EnumTest.thrift \ | |
157 | FullCamelTest.thrift \ | |
158 | Include.thrift \ | |
159 | Int64Test.thrift \ | |
160 | JavaBeansTest.thrift \ | |
161 | JavaBinaryDefault.thrift \ | |
162 | JavaDeepCopyTest.thrift \ | |
163 | JavaTypes.thrift \ | |
164 | JsDeepConstructorTest.thrift \ | |
165 | ManyOptionals.thrift \ | |
166 | ManyTypedefs.thrift \ | |
167 | NameConflictTest.thrift \ | |
168 | OptionalRequiredTest.thrift \ | |
169 | Recursive.thrift \ | |
170 | ReuseObjects.thrift \ | |
171 | SmallTest.thrift \ | |
172 | StressTest.thrift \ | |
173 | ThriftTest.thrift \ | |
174 | TypedefTest.thrift \ | |
175 | UnsafeTypes.thrift \ | |
176 | known_failures_Linux.json \ | |
177 | test.py \ | |
178 | tests.json \ | |
179 | rebuild_known_failures.sh \ | |
180 | result.js \ | |
181 | index.html \ | |
182 | README.md \ | |
183 | valgrind.suppress | |
184 | ||
185 | precross-%: | |
186 | $(MAKE) -C $* precross | |
187 | precross: $(PRECROSS_TARGET) |