2008-02-15 01:10:23 +00:00
|
|
|
SUBDIRS = py
|
|
|
|
|
2008-02-23 22:07:46 +00:00
|
|
|
if ENABLE_JAVA
|
|
|
|
SUBDIRS += java
|
|
|
|
endif
|
|
|
|
|
2008-04-07 23:45:00 +00:00
|
|
|
noinst_LTLIBRARIES = libtestgencpp.la
|
|
|
|
libtestgencpp_la_SOURCES = \
|
|
|
|
gen-cpp/DebugProtoTest_types.cpp \
|
|
|
|
gen-cpp/OptionalRequiredTest_types.cpp \
|
|
|
|
gen-cpp/DebugProtoTest_types.cpp \
|
|
|
|
gen-cpp/PartiallyReflectable.cpp \
|
|
|
|
gen-cpp/Service.cpp \
|
|
|
|
gen-cpp/StressTest_types.cpp \
|
|
|
|
gen-cpp/SecondService.cpp \
|
|
|
|
gen-cpp/ThriftTest_constants.cpp \
|
|
|
|
gen-cpp/ThriftTest.cpp \
|
|
|
|
gen-cpp/ThriftTest_types.cpp
|
|
|
|
|
|
|
|
libtestgencpp_la_LIBADD = $(top_srcdir)/lib/cpp/libthrift.la
|
|
|
|
|
|
|
|
noinst_PROGRAMS = Benchmark
|
|
|
|
|
|
|
|
Benchmark_SOURCES = \
|
|
|
|
Benchmark.cpp
|
|
|
|
|
|
|
|
Benchmark_LDADD = libtestgencpp.la
|
|
|
|
|
2008-02-04 21:14:14 +00:00
|
|
|
check_PROGRAMS = \
|
|
|
|
DebugProtoTest \
|
2008-02-18 01:49:37 +00:00
|
|
|
JSONProtoTest \
|
2008-02-04 21:14:14 +00:00
|
|
|
OptionalRequiredTest \
|
2008-04-07 23:45:00 +00:00
|
|
|
ReflectionTest \
|
|
|
|
UnitTests
|
2008-02-04 21:14:14 +00:00
|
|
|
|
|
|
|
TESTS = \
|
|
|
|
$(check_PROGRAMS)
|
|
|
|
|
2008-04-07 23:45:00 +00:00
|
|
|
UnitTests_SOURCES = \
|
|
|
|
UnitTestMain.cpp \
|
|
|
|
TMemoryBufferTest.cpp
|
|
|
|
|
|
|
|
UnitTests_LDADD = libtestgencpp.la
|
2008-02-04 21:14:14 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# DebugProtoTest
|
|
|
|
#
|
|
|
|
DebugProtoTest_SOURCES = \
|
|
|
|
DebugProtoTest.cpp
|
|
|
|
|
2008-04-07 23:45:00 +00:00
|
|
|
DebugProtoTest_LDADD = libtestgencpp.la
|
2008-02-04 21:14:14 +00:00
|
|
|
|
|
|
|
|
2008-02-18 01:49:37 +00:00
|
|
|
#
|
|
|
|
# JSONProtoTest
|
|
|
|
#
|
|
|
|
JSONProtoTest_SOURCES = \
|
|
|
|
JSONProtoTest.cpp
|
|
|
|
|
2008-04-07 23:45:00 +00:00
|
|
|
JSONProtoTest_LDADD = libtestgencpp.la
|
2008-02-18 01:49:37 +00:00
|
|
|
|
2008-02-04 21:14:14 +00:00
|
|
|
#
|
|
|
|
# OptionalRequiredTest
|
|
|
|
#
|
|
|
|
OptionalRequiredTest_SOURCES = \
|
|
|
|
OptionalRequiredTest.cpp
|
|
|
|
|
2008-04-07 23:45:00 +00:00
|
|
|
OptionalRequiredTest_LDADD = libtestgencpp.la
|
2008-02-04 21:14:14 +00:00
|
|
|
|
|
|
|
|
|
|
|
#
|
|
|
|
# ReflectionTest
|
|
|
|
#
|
|
|
|
ReflectionTest_SOURCES = \
|
|
|
|
ReflectionTest.cpp
|
|
|
|
|
2008-04-07 23:45:00 +00:00
|
|
|
ReflectionTest_LDADD = libtestgencpp.la
|
2008-02-04 21:14:14 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# Common thrift code generation rules
|
|
|
|
#
|
|
|
|
THRIFT = $(top_srcdir)/compiler/cpp/thrift
|
|
|
|
|
|
|
|
gen-cpp/DebugProtoTest_types.cpp gen-cpp/PartiallyReflectable.cpp: DebugProtoTest.thrift
|
2008-02-27 07:45:05 +00:00
|
|
|
$(THRIFT) --gen cpp:dense,reflection_limited $<
|
2008-02-04 21:14:14 +00:00
|
|
|
|
|
|
|
gen-cpp/OptionalRequiredTest_types.cpp: OptionalRequiredTest.thrift
|
2008-02-27 07:45:05 +00:00
|
|
|
$(THRIFT) --gen cpp:dense $<
|
2008-02-04 21:14:14 +00:00
|
|
|
|
|
|
|
gen-cpp/Service.cpp gen-cpp/StressTest_types.cpp: StressTest.thrift
|
2008-02-27 07:45:05 +00:00
|
|
|
$(THRIFT) --gen cpp:dense,reflection_limited $<
|
2008-02-04 21:14:14 +00:00
|
|
|
|
2008-04-07 23:45:00 +00:00
|
|
|
gen-cpp/SecondService.cpp gen-cpp/ThriftTest_constants.cpp gen-cpp/ThriftTest.cpp gen-cpp/ThriftTest_types.cpp: ThriftTest.thrift
|
|
|
|
$(THRIFT) --gen cpp:dense,reflection_limited $<
|
2008-02-04 21:14:14 +00:00
|
|
|
|
|
|
|
INCLUDES = \
|
|
|
|
-I$(top_srcdir)/lib/cpp/src
|
|
|
|
|
|
|
|
AM_CPPFLAGS = $(BOOST_CPPFLAGS)
|
|
|
|
|
|
|
|
clean-local:
|
2008-02-24 16:42:18 +00:00
|
|
|
$(RM) -r gen-cpp
|