~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} \
2119.4.1 by Monty Taylor
Turns on -fvisibility=hidden by default. Symbols intended to be used by
24
	       $(GCOV_LIBS)
779.2.1 by Monty Taylor
Added new pthread m4 file. Changing lib checks to use AC_LIB_HAVE_LINKFLAGS
25
2119.4.1 by Monty Taylor
Turns on -fvisibility=hidden by default. Symbols intended to be used by
26
MESSAGE_AM_CXXFLAGS = ${AM_CXXFLAGS} ${PROTOSKIP_WARNINGS} ${NO_VISIBILITY}
1192.3.54 by Robert Collins
Merged from Robert: Eliminate separate Makefile.am for drizzled/hash and drizzled/message.
27
1273.19.14 by Brian Aker
Adding in schema_writer tool (aka... lets actually setup the correct
28
noinst_PROGRAMS+= \
1960.1.4 by Brian Aker
First pass through on creating proto.
29
		  drizzled/message/catalog_reader \
30
		  drizzled/message/catalog_writer \
1273.19.14 by Brian Aker
Adding in schema_writer tool (aka... lets actually setup the correct
31
		  drizzled/message/schema_reader \
32
		  drizzled/message/schema_writer \
33
		  drizzled/message/table_raw_reader \
34
		  drizzled/message/table_reader \
35
		  drizzled/message/table_writer \
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
2157.2.1 by Monty Taylor
Provide pkg-config files and also stick drizzle plugin files in a place
45
nobase_dist_pkginclude_HEADERS+= \
1960.1.12 by Brian Aker
Add in the schema and table make_shared methods.
46
			      drizzled/message/statement_transform.h
1039.5.67 by Jay Pipes
Fix incorrect Makefile additions for command_transform.h/cc
47
1960.1.11 by Brian Aker
Merge in trunk.
48
nodist_drizzled_message_libdrizzledmessage_la_SOURCES= \
2200.2.2 by Stewart Smith
add very basic ALTER TABLE protobuf message and add the DEFAULT/OFFLINE/ONLINE build method member to it, assert that we're doing the right thing.
49
						       drizzled/message/alter_table.pb.cc \
1960.1.11 by Brian Aker
Merge in trunk.
50
						       drizzled/message/catalog.pb.cc \
51
						       drizzled/message/engine.pb.cc \
52
						       drizzled/message/event.pb.cc \
2241.6.2 by Brian Aker
This adds the concept of a definer to a table definition.
53
						       drizzled/message/access.pb.cc \
2172.3.2 by Brian Aker
Merge in replicate_options.proto
54
						       drizzled/message/replication_options.pb.cc \
1960.1.11 by Brian Aker
Merge in trunk.
55
						       drizzled/message/resultset.pb.cc \
56
						       drizzled/message/schema.pb.cc \
57
						       drizzled/message/table.pb.cc \
58
						       drizzled/message/transaction.pb.cc
685.1.8 by Monty Taylor
Added missing things to Makefiles for distcheck.
59
2157.2.1 by Monty Taylor
Provide pkg-config files and also stick drizzle plugin files in a place
60
nobase_nodist_pkginclude_HEADERS+= \
2200.2.2 by Stewart Smith
add very basic ALTER TABLE protobuf message and add the DEFAULT/OFFLINE/ONLINE build method member to it, assert that we're doing the right thing.
61
				drizzled/message/alter_table.pb.h \
1960.1.4 by Brian Aker
First pass through on creating proto.
62
				drizzled/message/catalog.pb.h \
63
				drizzled/message/engine.pb.h \
1819.4.1 by David Shrewsbury
Add server startup and shutdown events to the replication stream.
64
				drizzled/message/event.pb.h \
2241.6.2 by Brian Aker
This adds the concept of a definer to a table definition.
65
				drizzled/message/access.pb.h \
2172.3.2 by Brian Aker
Merge in replicate_options.proto
66
				drizzled/message/replication_options.pb.h \
1960.1.11 by Brian Aker
Merge in trunk.
67
				drizzled/message/resultset.pb.h \
1960.1.4 by Brian Aker
First pass through on creating proto.
68
				drizzled/message/schema.pb.h \
1960.1.11 by Brian Aker
Merge in trunk.
69
				drizzled/message/table.pb.h \
70
				drizzled/message/transaction.pb.h
1192.3.54 by Robert Collins
Merged from Robert: Eliminate separate Makefile.am for drizzled/hash and drizzled/message.
71
72
noinst_HEADERS+= \
1960.1.11 by Brian Aker
Merge in trunk.
73
		 drizzled/message/ioutil.h
1192.3.54 by Robert Collins
Merged from Robert: Eliminate separate Makefile.am for drizzled/hash and drizzled/message.
74
1960.1.4 by Brian Aker
First pass through on creating proto.
75
drizzled_message_catalog_reader_SOURCES =  drizzled/message/catalog_reader.cc
76
drizzled_message_catalog_reader_LDADD = ${MESSAGE_LDADD}
77
drizzled_message_catalog_reader_CXXFLAGS = ${MESSAGE_AM_CXXFLAGS}
78
79
drizzled_message_catalog_writer_SOURCES =  drizzled/message/catalog_writer.cc
80
drizzled_message_catalog_writer_LDADD = ${MESSAGE_LDADD}
81
drizzled_message_catalog_writer_CXXFLAGS = ${MESSAGE_AM_CXXFLAGS}
1192.3.54 by Robert Collins
Merged from Robert: Eliminate separate Makefile.am for drizzled/hash and drizzled/message.
82
83
drizzled_message_schema_reader_SOURCES =  drizzled/message/schema_reader.cc
84
drizzled_message_schema_reader_LDADD = ${MESSAGE_LDADD}
1192.3.64 by Monty Taylor
Fixed some non-linux build issues.
85
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.
86
1273.19.14 by Brian Aker
Adding in schema_writer tool (aka... lets actually setup the correct
87
drizzled_message_schema_writer_SOURCES =  drizzled/message/schema_writer.cc
88
drizzled_message_schema_writer_LDADD = ${MESSAGE_LDADD}
89
drizzled_message_schema_writer_CXXFLAGS = ${MESSAGE_AM_CXXFLAGS}
90
1192.3.54 by Robert Collins
Merged from Robert: Eliminate separate Makefile.am for drizzled/hash and drizzled/message.
91
drizzled_message_table_reader_SOURCES =  drizzled/message/table_reader.cc
92
drizzled_message_table_reader_LDADD = ${MESSAGE_LDADD}
1192.3.64 by Monty Taylor
Fixed some non-linux build issues.
93
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.
94
95
drizzled_message_table_raw_reader_SOURCES =  drizzled/message/table_raw_reader.cc
96
drizzled_message_table_raw_reader_LDADD = ${MESSAGE_LDADD}
1192.3.64 by Monty Taylor
Fixed some non-linux build issues.
97
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.
98
99
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.
100
drizzled_message_table_writer_LDADD = ${MESSAGE_LDADD} ${BOOST_LIBS}
1192.3.64 by Monty Taylor
Fixed some non-linux build issues.
101
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.
102
1300.5.23 by Monty Taylor
Merged in revs removing depend on the plugin tree.
103
drizzled_message_transaction_writer_SOURCES =  drizzled/message/transaction_writer.cc
1259.6.2 by Joe Daly
rename hash_algorithm to algorithm
104
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.
105
drizzled_message_transaction_writer_CXXFLAGS = ${MESSAGE_AM_CXXFLAGS} ${NO_WERROR}
106
107
EXTRA_DIST += \
2200.2.2 by Stewart Smith
add very basic ALTER TABLE protobuf message and add the DEFAULT/OFFLINE/ONLINE build method member to it, assert that we're doing the right thing.
108
	      ${MESSAGE_DIR}/alter_table.proto \
1960.1.11 by Brian Aker
Merge in trunk.
109
	      ${MESSAGE_DIR}/catalog.proto \
110
	      ${MESSAGE_DIR}/engine.proto \
111
	      ${MESSAGE_DIR}/event.proto \
2241.6.2 by Brian Aker
This adds the concept of a definer to a table definition.
112
	      ${MESSAGE_DIR}/access.proto \
2172.3.2 by Brian Aker
Merge in replicate_options.proto
113
	      ${MESSAGE_DIR}/replication_options.proto \
1960.1.11 by Brian Aker
Merge in trunk.
114
	      ${MESSAGE_DIR}/resultset.proto \
115
	      ${MESSAGE_DIR}/schema.proto \
116
	      ${MESSAGE_DIR}/table.proto \
117
	      ${MESSAGE_DIR}/transaction.proto
1192.3.54 by Robert Collins
Merged from Robert: Eliminate separate Makefile.am for drizzled/hash and drizzled/message.
118
119
BUILT_SOURCES += \
2200.2.2 by Stewart Smith
add very basic ALTER TABLE protobuf message and add the DEFAULT/OFFLINE/ONLINE build method member to it, assert that we're doing the right thing.
120
		 ${MESSAGE_DIR}/alter_table.pb.h \
1960.1.11 by Brian Aker
Merge in trunk.
121
		 ${MESSAGE_DIR}/catalog.pb.h \
122
		 ${MESSAGE_DIR}/engine.pb.h \
123
		 ${MESSAGE_DIR}/event.pb.h \
2241.6.2 by Brian Aker
This adds the concept of a definer to a table definition.
124
		 ${MESSAGE_DIR}/access.pb.h \
2172.3.2 by Brian Aker
Merge in replicate_options.proto
125
		 ${MESSAGE_DIR}/replication_options.pb.h \
1960.1.11 by Brian Aker
Merge in trunk.
126
		 ${MESSAGE_DIR}/resultset.pb.h \
127
		 ${MESSAGE_DIR}/schema.pb.h \
128
		 ${MESSAGE_DIR}/table.pb.h \
129
		 ${MESSAGE_DIR}/transaction.pb.h
1192.3.54 by Robert Collins
Merged from Robert: Eliminate separate Makefile.am for drizzled/hash and drizzled/message.
130
131
CLEANFILES += \
2200.2.2 by Stewart Smith
add very basic ALTER TABLE protobuf message and add the DEFAULT/OFFLINE/ONLINE build method member to it, assert that we're doing the right thing.
132
	      ${MESSAGE_DIR}/alter_table.pb.cc \
133
	      ${MESSAGE_DIR}/alter_table.pb.h \
1960.1.11 by Brian Aker
Merge in trunk.
134
	      ${MESSAGE_DIR}/catalog.pb.cc \
135
	      ${MESSAGE_DIR}/catalog.pb.h \
136
	      ${MESSAGE_DIR}/engine.pb.cc \
137
	      ${MESSAGE_DIR}/engine.pb.h \
138
	      ${MESSAGE_DIR}/event.pb.cc \
139
	      ${MESSAGE_DIR}/event.pb.h \
2241.6.2 by Brian Aker
This adds the concept of a definer to a table definition.
140
	      ${MESSAGE_DIR}/access.pb.cc \
141
	      ${MESSAGE_DIR}/access.pb.h \
2172.3.2 by Brian Aker
Merge in replicate_options.proto
142
	      ${MESSAGE_DIR}/replication_options.pb.cc \
143
	      ${MESSAGE_DIR}/replication_options.pb.h \
1960.1.11 by Brian Aker
Merge in trunk.
144
	      ${MESSAGE_DIR}/resultset.pb.cc \
145
	      ${MESSAGE_DIR}/resultset.pb.h \
146
	      ${MESSAGE_DIR}/schema.pb.cc \
147
	      ${MESSAGE_DIR}/schema.pb.h \
148
	      ${MESSAGE_DIR}/table.pb.cc \
149
	      ${MESSAGE_DIR}/table.pb.h \
150
	      ${MESSAGE_DIR}/transaction.pb.cc \
151
	      ${MESSAGE_DIR}/transaction.pb.h
1192.3.54 by Robert Collins
Merged from Robert: Eliminate separate Makefile.am for drizzled/hash and drizzled/message.
152
153
SUFFIXES += .proto .pb.cc .pb.h
154
1192.3.55 by Robert Collins
Merged from Robert: changed subdir make files to be included makefiles.
155
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.
156
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.
157
.proto.pb.cc:
1192.3.54 by Robert Collins
Merged from Robert: Eliminate separate Makefile.am for drizzled/hash and drizzled/message.
158
	$(PROTOC) --proto_path=${MESSAGE_PROTO_PATH} \
159
		--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.
160
.proto.pb.h:
1192.3.54 by Robert Collins
Merged from Robert: Eliminate separate Makefile.am for drizzled/hash and drizzled/message.
161
	$(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.
162
		--cpp_out=${top_builddir}/drizzled/message $<