mirror of
https://github.com/valitydev/thrift.git
synced 2024-11-06 18:35:19 +00:00
5ddabb8e3f
There are three major parts of this: 1/ New callback-style interfaces for for a few key Thrift components: TAsyncProcessor for servers and TAsyncChannel for clients. 2/ Concrete implementations of TAsyncChannel and a server for TAsyncProcessor based on evhttp. 3/ Async-style code generation for C++ git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@1005127 13f79535-47bb-0310-9956-ffa450edef68
34 lines
735 B
Makefile
34 lines
735 B
Makefile
THRIFT = thrift
|
|
CXXFLAGS = `pkg-config --cflags thrift thrift-nb` -levent
|
|
LDLIBS = `pkg-config --libs thrift thrift-nb` -levent
|
|
CXXFLAGS += -g -O0
|
|
|
|
GENNAMES = Aggr aggr_types
|
|
GENHEADERS = $(addsuffix .h, $(GENNAMES))
|
|
GENSRCS = $(addsuffix .cpp, $(GENNAMES))
|
|
GENOBJS = $(addsuffix .o, $(GENNAMES))
|
|
|
|
PYLIBS = aggr/__init__.py
|
|
|
|
PROGS = test-server
|
|
|
|
all: $(PYLIBS) $(PROGS)
|
|
|
|
test-server: test-server.o $(GENOBJS)
|
|
|
|
test-server.o: $(GENSRCS)
|
|
|
|
aggr/__init__.py: aggr.thrift
|
|
$(RM) $(dir $@)
|
|
$(THRIFT) --gen py:newstyle $<
|
|
mv gen-py/$(dir $@) .
|
|
|
|
$(GENSRCS): aggr.thrift
|
|
$(THRIFT) --gen cpp:cob_style $<
|
|
mv $(addprefix gen-cpp/, $(GENSRCS) $(GENHEADERS)) .
|
|
|
|
clean:
|
|
$(RM) -r *.o $(PROGS) $(GENSRCS) $(GENHEADERS) gen-* aggr
|
|
|
|
.PHONY: clean
|