~drizzle-trunk/drizzle/development

1273.19.14 by Brian Aker
Adding in schema_writer tool (aka... lets actually setup the correct
1
# vim:ft=automake
316 by Brian Aker
First pass of new sql_db.cc work
2
# Copyright (C) 2000-2006 MySQL AB
1273.19.14 by Brian Aker
Adding in schema_writer tool (aka... lets actually setup the correct
3
# Copyright (C) 2010 Brian Aker
316 by Brian Aker
First pass of new sql_db.cc work
4
# 
5
# This program is free software; you can redistribute it and/or modify
6
# it under the terms of the GNU General Public License as published by
7
# the Free Software Foundation; version 2 of the License.
8
# 
9
# This program is distributed in the hope that it will be useful,
10
# but WITHOUT ANY WARRANTY; without even the implied warranty of
11
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12
# GNU General Public License for more details.
13
# 
14
# You should have received a copy of the GNU General Public License
15
# along with this program; if not, write to the Free Software
1802.10.2 by Monty Taylor
Update all of the copyright headers to include the correct address.
16
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
316 by Brian Aker
First pass of new sql_db.cc work
17
1192.3.54 by Robert Collins
Merged from Robert: Eliminate separate Makefile.am for drizzled/hash and drizzled/message.
18
MESSAGE_DIR=drizzled/message
1497.3.3 by Monty Taylor
Fixed lcov builds. Fixed the dtrace enabling.
19
MESSAGE_LDADD= \
20
	       ${MESSAGE_DIR}/libdrizzledmessage.la \
21
	       ${LIBPROTOBUF} \
22
	       ${LIBUUID} \
23
	       ${LTLIBINTL} \
24
	       $(GCOV_LIBS) \
1638.9.16 by Stewart Smith
link fix for libdrizzled_message
25
		drizzled/internal/libinternal.la
779.2.1 by Monty Taylor
Added new pthread m4 file. Changing lib checks to use AC_LIB_HAVE_LINKFLAGS
26
1192.3.64 by Monty Taylor
Fixed some non-linux build issues.
27
MESSAGE_AM_CXXFLAGS = ${AM_CXXFLAGS} ${PROTOSKIP_WARNINGS}
1192.3.54 by Robert Collins
Merged from Robert: Eliminate separate Makefile.am for drizzled/hash and drizzled/message.
28
1273.19.14 by Brian Aker
Adding in schema_writer tool (aka... lets actually setup the correct
29
noinst_PROGRAMS+= \
30
		  drizzled/message/schema_reader \
31
		  drizzled/message/schema_writer \
32
		  drizzled/message/table_raw_reader \
33
		  drizzled/message/table_reader \
34
		  drizzled/message/table_writer \
35
		  drizzled/message/transaction_reader \
36
		  drizzled/message/transaction_writer
1192.3.54 by Robert Collins
Merged from Robert: Eliminate separate Makefile.am for drizzled/hash and drizzled/message.
37
1300.5.2 by Monty Taylor
Changed build to build the almost all of drizzle into libdrizzled and then
38
lib_LTLIBRARIES += drizzled/message/libdrizzledmessage.la
1192.3.54 by Robert Collins
Merged from Robert: Eliminate separate Makefile.am for drizzled/hash and drizzled/message.
39
40
drizzled_message_libdrizzledmessage_la_CXXFLAGS = ${MESSAGE_AM_CXXFLAGS} ${NO_WERROR}
41
42
drizzled_message_libdrizzledmessage_la_SOURCES = drizzled/message/statement_transform.cc
1638.9.16 by Stewart Smith
link fix for libdrizzled_message
43
drizzled_message_libdrizzledmessage_la_LIBADD= ${LTLIBPROTOBUF} $(GCOV_LIBS) drizzled/libcharset.la
1638.9.15 by Stewart Smith
fix linking of drizzled/message lib and libcharset
44
1253.2.2 by Monty Taylor
Fixed header install.
45
nobase_dist_include_HEADERS+= drizzled/message/statement_transform.h
1039.5.67 by Jay Pipes
Fix incorrect Makefile additions for command_transform.h/cc
46
1192.3.54 by Robert Collins
Merged from Robert: Eliminate separate Makefile.am for drizzled/hash and drizzled/message.
47
nodist_drizzled_message_libdrizzledmessage_la_SOURCES = \
1819.4.1 by David Shrewsbury
Add server startup and shutdown events to the replication stream.
48
							drizzled/message/event.pb.cc \
1502.1.31 by Brian Aker
Merge engine options for schema/table.
49
							drizzled/message/engine.pb.cc \
50
							drizzled/message/transaction.pb.cc \
51
							drizzled/message/schema.pb.cc \
1643.6.1 by Djellel E. Difallah
Added hook points and the interface for the Query Cache plugin
52
                                                        drizzled/message/resultset.pb.cc \
1502.1.31 by Brian Aker
Merge engine options for schema/table.
53
							drizzled/message/table.pb.cc
685.1.8 by Monty Taylor
Added missing things to Makefiles for distcheck.
54
1253.2.2 by Monty Taylor
Fixed header install.
55
nobase_nodist_include_HEADERS+= \
1819.4.1 by David Shrewsbury
Add server startup and shutdown events to the replication stream.
56
				drizzled/message/event.pb.h \
1502.1.31 by Brian Aker
Merge engine options for schema/table.
57
				drizzled/message/engine.pb.h \
58
				drizzled/message/transaction.pb.h \
59
				drizzled/message/schema.pb.h \
1643.6.1 by Djellel E. Difallah
Added hook points and the interface for the Query Cache plugin
60
                                drizzled/message/resultset.pb.h \
1502.1.31 by Brian Aker
Merge engine options for schema/table.
61
				drizzled/message/table.pb.h 
1192.3.54 by Robert Collins
Merged from Robert: Eliminate separate Makefile.am for drizzled/hash and drizzled/message.
62
63
noinst_HEADERS+= \
64
		drizzled/message/ioutil.h \
1780.3.1 by David Shrewsbury
Add code to manage multi-GPB-message transactions and output them atomically.
65
		drizzled/message/all.h \
66
		drizzled/message/transaction_manager.h
1192.3.54 by Robert Collins
Merged from Robert: Eliminate separate Makefile.am for drizzled/hash and drizzled/message.
67
68
69
drizzled_message_schema_reader_SOURCES =  drizzled/message/schema_reader.cc
70
drizzled_message_schema_reader_LDADD = ${MESSAGE_LDADD}
1192.3.64 by Monty Taylor
Fixed some non-linux build issues.
71
drizzled_message_schema_reader_CXXFLAGS = ${MESSAGE_AM_CXXFLAGS}
1192.3.54 by Robert Collins
Merged from Robert: Eliminate separate Makefile.am for drizzled/hash and drizzled/message.
72
1273.19.14 by Brian Aker
Adding in schema_writer tool (aka... lets actually setup the correct
73
drizzled_message_schema_writer_SOURCES =  drizzled/message/schema_writer.cc
74
drizzled_message_schema_writer_LDADD = ${MESSAGE_LDADD}
75
drizzled_message_schema_writer_CXXFLAGS = ${MESSAGE_AM_CXXFLAGS}
76
1192.3.54 by Robert Collins
Merged from Robert: Eliminate separate Makefile.am for drizzled/hash and drizzled/message.
77
drizzled_message_table_reader_SOURCES =  drizzled/message/table_reader.cc
78
drizzled_message_table_reader_LDADD = ${MESSAGE_LDADD}
1192.3.64 by Monty Taylor
Fixed some non-linux build issues.
79
drizzled_message_table_reader_CXXFLAGS = ${MESSAGE_AM_CXXFLAGS}
1192.3.54 by Robert Collins
Merged from Robert: Eliminate separate Makefile.am for drizzled/hash and drizzled/message.
80
81
drizzled_message_table_raw_reader_SOURCES =  drizzled/message/table_raw_reader.cc
82
drizzled_message_table_raw_reader_LDADD = ${MESSAGE_LDADD}
1192.3.64 by Monty Taylor
Fixed some non-linux build issues.
83
drizzled_message_table_raw_reader_CXXFLAGS = ${MESSAGE_AM_CXXFLAGS}
1192.3.54 by Robert Collins
Merged from Robert: Eliminate separate Makefile.am for drizzled/hash and drizzled/message.
84
85
drizzled_message_table_writer_SOURCES =  drizzled/message/table_writer.cc
1702.2.1 by Monty Taylor
Removed gnulib and the last usage of normal getopt.
86
drizzled_message_table_writer_LDADD = ${MESSAGE_LDADD} ${BOOST_LIBS}
1192.3.64 by Monty Taylor
Fixed some non-linux build issues.
87
drizzled_message_table_writer_CXXFLAGS = ${MESSAGE_AM_CXXFLAGS}
1192.3.54 by Robert Collins
Merged from Robert: Eliminate separate Makefile.am for drizzled/hash and drizzled/message.
88
1300.5.23 by Monty Taylor
Merged in revs removing depend on the plugin tree.
89
drizzled_message_transaction_writer_SOURCES =  drizzled/message/transaction_writer.cc
1259.6.2 by Joe Daly
rename hash_algorithm to algorithm
90
drizzled_message_transaction_writer_LDADD = ${MESSAGE_LDADD} ${top_builddir}/drizzled/algorithm/libhash.la
1192.3.54 by Robert Collins
Merged from Robert: Eliminate separate Makefile.am for drizzled/hash and drizzled/message.
91
drizzled_message_transaction_writer_CXXFLAGS = ${MESSAGE_AM_CXXFLAGS} ${NO_WERROR}
92
1780.3.1 by David Shrewsbury
Add code to manage multi-GPB-message transactions and output them atomically.
93
drizzled_message_transaction_reader_SOURCES =  drizzled/message/transaction_reader.cc \
94
                                               drizzled/message/transaction_manager.cc
1259.6.2 by Joe Daly
rename hash_algorithm to algorithm
95
drizzled_message_transaction_reader_LDADD = ${MESSAGE_LDADD} ${top_builddir}/drizzled/algorithm/libhash.la ${top_builddir}/drizzled/util/libutil.la
1192.3.54 by Robert Collins
Merged from Robert: Eliminate separate Makefile.am for drizzled/hash and drizzled/message.
96
drizzled_message_transaction_reader_CXXFLAGS = ${MESSAGE_AM_CXXFLAGS} ${NO_WERROR}
97
98
EXTRA_DIST += \
1819.4.1 by David Shrewsbury
Add server startup and shutdown events to the replication stream.
99
		${MESSAGE_DIR}/event.proto \
1502.1.31 by Brian Aker
Merge engine options for schema/table.
100
		${MESSAGE_DIR}/engine.proto \
1192.3.54 by Robert Collins
Merged from Robert: Eliminate separate Makefile.am for drizzled/hash and drizzled/message.
101
		${MESSAGE_DIR}/schema.proto \
102
		${MESSAGE_DIR}/table.proto \
1643.6.1 by Djellel E. Difallah
Added hook points and the interface for the Query Cache plugin
103
                ${MESSAGE_DIR}/resultset.proto \
1280.1.10 by Monty Taylor
Put everything in drizzled into drizzled namespace.
104
		${MESSAGE_DIR}/transaction.proto
1192.3.54 by Robert Collins
Merged from Robert: Eliminate separate Makefile.am for drizzled/hash and drizzled/message.
105
106
BUILT_SOURCES += \
1819.4.1 by David Shrewsbury
Add server startup and shutdown events to the replication stream.
107
		${MESSAGE_DIR}/event.pb.h \
1502.1.32 by Brian Aker
Remove old master list bits.
108
		${MESSAGE_DIR}/engine.pb.h \
1192.3.54 by Robert Collins
Merged from Robert: Eliminate separate Makefile.am for drizzled/hash and drizzled/message.
109
		${MESSAGE_DIR}/schema.pb.h \
110
		${MESSAGE_DIR}/table.pb.h \
1643.6.1 by Djellel E. Difallah
Added hook points and the interface for the Query Cache plugin
111
                ${MESSAGE_DIR}/resultset.pb.h \
1502.1.31 by Brian Aker
Merge engine options for schema/table.
112
		${MESSAGE_DIR}/transaction.pb.h
1192.3.54 by Robert Collins
Merged from Robert: Eliminate separate Makefile.am for drizzled/hash and drizzled/message.
113
114
CLEANFILES += \
1819.4.1 by David Shrewsbury
Add server startup and shutdown events to the replication stream.
115
	    ${MESSAGE_DIR}/event.pb.h \
116
	    ${MESSAGE_DIR}/event.pb.cc \
1502.1.31 by Brian Aker
Merge engine options for schema/table.
117
	    ${MESSAGE_DIR}/engine.pb.h \
118
	    ${MESSAGE_DIR}/engine.pb.cc \
1192.3.54 by Robert Collins
Merged from Robert: Eliminate separate Makefile.am for drizzled/hash and drizzled/message.
119
	    ${MESSAGE_DIR}/schema.pb.h \
120
	    ${MESSAGE_DIR}/schema.pb.cc \
121
	    ${MESSAGE_DIR}/table.pb.h \
122
	    ${MESSAGE_DIR}/table.pb.cc \
1643.6.1 by Djellel E. Difallah
Added hook points and the interface for the Query Cache plugin
123
            ${MESSAGE_DIR}/resultset.pb.h \
124
            ${MESSAGE_DIR}/resultset.pb.cc \
1192.3.54 by Robert Collins
Merged from Robert: Eliminate separate Makefile.am for drizzled/hash and drizzled/message.
125
	    ${MESSAGE_DIR}/transaction.pb.h \
1502.1.31 by Brian Aker
Merge engine options for schema/table.
126
	    ${MESSAGE_DIR}/transaction.pb.cc
1192.3.54 by Robert Collins
Merged from Robert: Eliminate separate Makefile.am for drizzled/hash and drizzled/message.
127
128
SUFFIXES += .proto .pb.cc .pb.h
129
1192.3.55 by Robert Collins
Merged from Robert: changed subdir make files to be included makefiles.
130
MESSAGE_PROTO_PATH=${top_builddir}/${MESSAGE_DIR}:${top_srcdir}/${MESSAGE_DIR}
1192.3.54 by Robert Collins
Merged from Robert: Eliminate separate Makefile.am for drizzled/hash and drizzled/message.
131
722.1.1 by Monty Taylor
Removed Gnu-Make-isms, since there were only two and we really don't need them and I'm sick of having make break when I accidentally type "make" (silly me) on Solaris.
132
.proto.pb.cc:
1192.3.54 by Robert Collins
Merged from Robert: Eliminate separate Makefile.am for drizzled/hash and drizzled/message.
133
	$(PROTOC) --proto_path=${MESSAGE_PROTO_PATH} \
134
		--cpp_out=${top_builddir}/${MESSAGE_DIR} $<
722.1.1 by Monty Taylor
Removed Gnu-Make-isms, since there were only two and we really don't need them and I'm sick of having make break when I accidentally type "make" (silly me) on Solaris.
135
.proto.pb.h:
1192.3.54 by Robert Collins
Merged from Robert: Eliminate separate Makefile.am for drizzled/hash and drizzled/message.
136
	$(PROTOC) --proto_path=${MESSAGE_PROTO_PATH} \
988.1.1 by Jay Pipes
Changes libserialize to libdrizzledmessage per ML discussion. All GPB messages are now in the drizzled::message namespace.
137
		--cpp_out=${top_builddir}/drizzled/message $<