2009-03-30 21:35:00 +00:00
|
|
|
#
|
|
|
|
# Licensed to the Apache Software Foundation (ASF) under one
|
|
|
|
# or more contributor license agreements. See the NOTICE file
|
|
|
|
# distributed with this work for additional information
|
|
|
|
# regarding copyright ownership. The ASF licenses this file
|
|
|
|
# to you under the Apache License, Version 2.0 (the
|
|
|
|
# "License"); you may not use this file except in compliance
|
|
|
|
# with the License. You may obtain a copy of the License at
|
|
|
|
#
|
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
#
|
|
|
|
# Unless required by applicable law or agreed to in writing,
|
|
|
|
# software distributed under the License is distributed on an
|
|
|
|
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
|
|
# KIND, either express or implied. See the License for the
|
|
|
|
# specific language governing permissions and limitations
|
|
|
|
# under the License.
|
|
|
|
#
|
|
|
|
|
2016-01-19 02:10:07 +00:00
|
|
|
SUBDIRS = features
|
2015-05-09 09:33:42 +00:00
|
|
|
PRECROSS_TARGET =
|
2008-02-15 01:10:23 +00:00
|
|
|
|
2014-09-01 19:53:40 +00:00
|
|
|
if WITH_C_GLIB
|
|
|
|
SUBDIRS += c_glib
|
2015-05-09 09:33:42 +00:00
|
|
|
PRECROSS_TARGET += precross-c_glib
|
2014-09-01 19:53:40 +00:00
|
|
|
endif
|
|
|
|
|
2017-09-19 07:16:43 +00:00
|
|
|
if WITH_CL
|
|
|
|
SUBDIRS += cl
|
|
|
|
PRECROSS_TARGET += precross-cl
|
|
|
|
endif
|
|
|
|
|
2011-06-24 14:01:10 +00:00
|
|
|
if WITH_CPP
|
|
|
|
SUBDIRS += cpp
|
2015-05-09 09:33:42 +00:00
|
|
|
PRECROSS_TARGET += precross-cpp
|
2011-06-24 14:01:10 +00:00
|
|
|
endif
|
|
|
|
|
2012-01-10 22:11:36 +00:00
|
|
|
if WITH_PERL
|
|
|
|
SUBDIRS += perl
|
2015-05-09 09:33:42 +00:00
|
|
|
PRECROSS_TARGET += precross-perl
|
2012-01-10 22:11:36 +00:00
|
|
|
endif
|
|
|
|
|
2012-01-21 09:18:05 +00:00
|
|
|
if WITH_PHP
|
|
|
|
SUBDIRS += php
|
2015-05-09 09:33:42 +00:00
|
|
|
PRECROSS_TARGET += precross-php
|
2012-01-21 09:18:05 +00:00
|
|
|
endif
|
|
|
|
|
2015-08-29 15:46:51 +00:00
|
|
|
if WITH_DART
|
|
|
|
SUBDIRS += dart
|
|
|
|
PRECROSS_TARGET += precross-dart
|
|
|
|
endif
|
|
|
|
|
2008-06-11 01:16:53 +00:00
|
|
|
if WITH_PYTHON
|
2008-06-11 01:16:37 +00:00
|
|
|
SUBDIRS += py
|
2015-05-09 09:33:42 +00:00
|
|
|
PRECROSS_TARGET += precross-py
|
2013-03-07 16:32:48 +00:00
|
|
|
SUBDIRS += py.tornado
|
2016-09-04 09:49:21 +00:00
|
|
|
if WITH_TWISTED_TEST
|
|
|
|
SUBDIRS += py.twisted
|
|
|
|
endif
|
2008-06-11 01:16:37 +00:00
|
|
|
endif
|
|
|
|
|
2008-07-11 08:04:12 +00:00
|
|
|
if WITH_RUBY
|
2008-07-08 00:47:49 +00:00
|
|
|
SUBDIRS += rb
|
2015-05-09 09:33:42 +00:00
|
|
|
PRECROSS_TARGET += precross-rb
|
2008-07-08 00:47:49 +00:00
|
|
|
endif
|
|
|
|
|
2010-10-06 00:12:33 +00:00
|
|
|
if WITH_HASKELL
|
|
|
|
SUBDIRS += hs
|
|
|
|
endif
|
2009-03-18 23:59:56 +00:00
|
|
|
|
2014-07-27 23:25:30 +00:00
|
|
|
if WITH_HAXE
|
|
|
|
SUBDIRS += haxe
|
|
|
|
endif
|
|
|
|
|
2019-01-28 22:27:45 +00:00
|
|
|
if WITH_DOTNET
|
|
|
|
SUBDIRS += netstd
|
2016-09-15 00:18:48 +00:00
|
|
|
endif
|
|
|
|
|
2014-05-08 21:18:44 +00:00
|
|
|
if WITH_GO
|
|
|
|
SUBDIRS += go
|
2015-05-09 09:33:42 +00:00
|
|
|
PRECROSS_TARGET += precross-go
|
2014-05-08 21:18:44 +00:00
|
|
|
endif
|
|
|
|
|
2014-08-06 02:54:57 +00:00
|
|
|
if WITH_ERLANG
|
|
|
|
SUBDIRS += erl
|
2015-10-28 13:19:45 +00:00
|
|
|
PRECROSS_TARGET += precross-erl
|
2014-08-06 02:54:57 +00:00
|
|
|
endif
|
|
|
|
|
2016-02-01 12:47:49 +00:00
|
|
|
if WITH_LUA
|
|
|
|
SUBDIRS += lua
|
|
|
|
PRECROSS_TARGET += precross-lua
|
|
|
|
endif
|
|
|
|
|
2016-11-02 12:01:08 +00:00
|
|
|
if WITH_RS
|
|
|
|
SUBDIRS += rs
|
|
|
|
PRECROSS_TARGET += precross-rs
|
|
|
|
endif
|
|
|
|
|
2012-05-03 21:21:43 +00:00
|
|
|
#
|
2019-01-31 01:14:27 +00:00
|
|
|
# generate html for ThriftTest.thrift AND validate it!
|
2012-05-03 21:21:43 +00:00
|
|
|
#
|
2019-01-31 01:14:27 +00:00
|
|
|
if WITH_NODEJS
|
2012-05-03 21:21:43 +00:00
|
|
|
check-local:
|
2014-10-03 18:42:54 +00:00
|
|
|
$(top_builddir)/compiler/cpp/thrift --gen html -r $(top_srcdir)/test/ThriftTest.thrift
|
2019-01-31 01:14:27 +00:00
|
|
|
$(top_builddir)/node_modules/.bin/html-validator --file=gen-html/index.html --verbose
|
|
|
|
$(top_builddir)/node_modules/.bin/html-validator --file=gen-html/ThriftTest.html --verbose
|
|
|
|
else
|
|
|
|
check-local:
|
|
|
|
$(top_builddir)/compiler/cpp/thrift --gen html -r $(top_srcdir)/test/ThriftTest.thrift
|
|
|
|
endif
|
2012-05-03 21:21:43 +00:00
|
|
|
|
2015-08-25 04:39:29 +00:00
|
|
|
clean-local:
|
2019-01-24 22:45:07 +00:00
|
|
|
$(RM) -r $(top_srcdir)/test/gen-html/
|
|
|
|
find . -type d -name "__pycache__" | xargs rm -rf
|
|
|
|
find . -type f -name "*.pyc" | xargs rm -f
|
|
|
|
|
|
|
|
dist-hook:
|
|
|
|
$(RM) -r $(distdir)/gen-html/
|
|
|
|
find $(distdir) -type d -name "__pycache__" | xargs rm -rf
|
|
|
|
find $(distdir) -type f -name "*.pyc" | xargs rm -f
|
2015-08-25 04:39:29 +00:00
|
|
|
|
2009-03-18 23:59:56 +00:00
|
|
|
EXTRA_DIST = \
|
2015-08-25 04:39:29 +00:00
|
|
|
audit \
|
2014-10-03 18:42:54 +00:00
|
|
|
c_glib \
|
2017-09-19 07:16:43 +00:00
|
|
|
cl \
|
2014-10-03 18:42:54 +00:00
|
|
|
cpp \
|
2019-01-24 22:45:07 +00:00
|
|
|
crossrunner \
|
2016-03-18 06:13:36 +00:00
|
|
|
dart \
|
2014-10-03 18:42:54 +00:00
|
|
|
erl \
|
|
|
|
hs \
|
2019-01-24 22:45:07 +00:00
|
|
|
keys \
|
2014-10-03 18:42:54 +00:00
|
|
|
lua \
|
|
|
|
ocaml \
|
|
|
|
perl \
|
|
|
|
php \
|
|
|
|
py \
|
|
|
|
py.tornado \
|
2019-01-24 22:45:07 +00:00
|
|
|
py.twisted \
|
2014-10-03 18:42:54 +00:00
|
|
|
rb \
|
2016-11-02 12:01:08 +00:00
|
|
|
rs \
|
2014-10-03 18:42:54 +00:00
|
|
|
threads \
|
|
|
|
AnnotationTest.thrift \
|
|
|
|
BrokenConstants.thrift \
|
|
|
|
ConstantsDemo.thrift \
|
|
|
|
DebugProtoTest.thrift \
|
|
|
|
DenseLinkingTest.thrift \
|
|
|
|
DocTest.thrift \
|
2019-01-24 22:45:07 +00:00
|
|
|
DoubleConstantsTest.thrift \
|
|
|
|
EnumContainersTest.thrift \
|
2015-08-25 04:39:29 +00:00
|
|
|
EnumTest.thrift \
|
2016-03-18 06:13:36 +00:00
|
|
|
FullCamelTest.thrift \
|
2014-10-03 18:42:54 +00:00
|
|
|
Include.thrift \
|
2021-02-04 21:41:50 +00:00
|
|
|
Identifiers.thrift \
|
2019-01-24 22:45:07 +00:00
|
|
|
Int64Test.thrift \
|
2014-10-03 18:42:54 +00:00
|
|
|
JavaBeansTest.thrift \
|
2019-09-20 15:15:04 +00:00
|
|
|
JavaBinaryDefault.thrift \
|
2017-04-18 16:27:49 +00:00
|
|
|
JavaDeepCopyTest.thrift \
|
2016-11-01 03:32:18 +00:00
|
|
|
JavaTypes.thrift \
|
2015-08-25 04:39:29 +00:00
|
|
|
JsDeepConstructorTest.thrift \
|
2014-10-03 18:42:54 +00:00
|
|
|
ManyOptionals.thrift \
|
|
|
|
ManyTypedefs.thrift \
|
|
|
|
NameConflictTest.thrift \
|
|
|
|
OptionalRequiredTest.thrift \
|
|
|
|
Recursive.thrift \
|
|
|
|
ReuseObjects.thrift \
|
|
|
|
SmallTest.thrift \
|
|
|
|
StressTest.thrift \
|
|
|
|
ThriftTest.thrift \
|
2015-08-25 04:39:29 +00:00
|
|
|
TypedefTest.thrift \
|
2021-02-04 21:41:50 +00:00
|
|
|
Types.thrift \
|
2018-04-17 06:21:46 +00:00
|
|
|
UnsafeTypes.thrift \
|
2021-02-04 21:41:50 +00:00
|
|
|
Service.thrift \
|
2020-04-28 06:23:15 +00:00
|
|
|
SpecificNameTest.thrift \
|
2016-03-18 06:13:36 +00:00
|
|
|
known_failures_Linux.json \
|
|
|
|
test.py \
|
|
|
|
tests.json \
|
2016-03-19 14:32:11 +00:00
|
|
|
rebuild_known_failures.sh \
|
2016-01-19 02:10:07 +00:00
|
|
|
result.js \
|
|
|
|
index.html \
|
2015-08-25 04:39:29 +00:00
|
|
|
README.md \
|
|
|
|
valgrind.suppress
|
2015-03-24 21:30:40 +00:00
|
|
|
|
|
|
|
precross-%:
|
|
|
|
$(MAKE) -C $* precross
|
2015-05-09 09:33:42 +00:00
|
|
|
precross: $(PRECROSS_TARGET)
|