Merge lp:~vkolesnikov/pbxt/pbxt-mysql-tree-dropin into lp:pbxt

Proposed by Vladimir Kolesnikov
Status: Merged
Merged at revision: not available
Proposed branch: lp:~vkolesnikov/pbxt/pbxt-mysql-tree-dropin
Merge into: lp:pbxt
Diff against target: None lines
To merge this branch: bzr merge lp:~vkolesnikov/pbxt/pbxt-mysql-tree-dropin
Reviewer Review Type Date Requested Status
PBXT Core Pending
Review via email: mp+11963@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Vladimir Kolesnikov (vkolesnikov) wrote :

With these changes one can simply put pbxt directory under <mysql-root>/storage and build PBXT engine as a part of source tree. The engine will be linked statically. Be sure to specify the WITH_PBXT_STORAGE_ENGINE option when running win\configure.js

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== added file 'CMakeLists.txt'
2--- CMakeLists.txt 1970-01-01 00:00:00 +0000
3+++ CMakeLists.txt 2009-09-17 10:59:05 +0000
4@@ -0,0 +1,104 @@
5+# Copyright (c) 2008 PrimeBase Technologies GmbH
6+#
7+# PrimeBase XT
8+#
9+# This program is free software; you can redistribute it and/or modify
10+# it under the terms of the GNU General Public License as published by
11+# the Free Software Foundation; either version 2 of the License, or
12+# (at your option) any later version.
13+#
14+# This program is distributed in the hope that it will be useful,
15+# but WITHOUT ANY WARRANTY; without even the implied warranty of
16+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17+# GNU General Public License for more details.
18+#
19+# You should have received a copy of the GNU General Public License
20+# along with this program; if not, write to the Free Software
21+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
22+#
23+# 2006-03-22 Paul McCullagh
24+#
25+# H&G2JCtL
26+#
27+# This file is used to make the Windows version
28+
29+SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DMYSQL_SERVER")
30+SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DMYSQL_SERVER")
31+
32+SET(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -DMYSQL_SERVER -DSAFEMALLOC -DSAFE_MUTEX -DDEBUG")
33+SET(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -DMYSQL_SERVER -DSAFEMALLOC -DSAFE_MUTEX -DDEBUG")
34+
35+INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/include ${CMAKE_SOURCE_DIR}/sql
36+ ${CMAKE_SOURCE_DIR}/regex
37+ ${CMAKE_SOURCE_DIR}/extra/yassl/include)
38+
39+SET(PBXT_SOURCES src/backup_xt.cc
40+src/backup_xt.h
41+src/bsearch_xt.cc
42+src/bsearch_xt.h
43+src/cache_xt.cc
44+src/cache_xt.h
45+src/ccutils_xt.cc
46+src/ccutils_xt.h
47+src/database_xt.cc
48+src/database_xt.h
49+src/datadic_xt.cc
50+src/datadic_xt.h
51+src/datalog_xt.cc
52+src/datalog_xt.h
53+src/discover_xt.cc
54+src/discover_xt.h
55+src/filesys_xt.cc
56+src/filesys_xt.h
57+src/hashtab_xt.cc
58+src/hashtab_xt.h
59+src/ha_pbxt.cc
60+src/ha_pbxt.h
61+src/ha_xtsys.cc
62+src/ha_xtsys.h
63+src/heap_xt.cc
64+src/heap_xt.h
65+src/index_xt.cc
66+src/index_xt.h
67+src/linklist_xt.cc
68+src/linklist_xt.h
69+src/locklist_xt.cc
70+src/locklist_xt.h
71+src/lock_xt.cc
72+src/lock_xt.h
73+src/memory_xt.cc
74+src/memory_xt.h
75+src/myxt_xt.cc
76+src/myxt_xt.h
77+src/pbms.h
78+src/pbms_enabled.cc
79+src/pbms_enabled.h
80+src/pthread_xt.cc
81+src/pthread_xt.h
82+src/restart_xt.cc
83+src/restart_xt.h
84+src/sortedlist_xt.cc
85+src/sortedlist_xt.h
86+src/strutil_xt.cc
87+src/strutil_xt.h
88+src/systab_xt.cc
89+src/systab_xt.h
90+src/tabcache_xt.cc
91+src/tabcache_xt.h
92+src/table_xt.cc
93+src/table_xt.h
94+src/thread_xt.cc
95+src/thread_xt.h
96+src/trace_xt.cc
97+src/trace_xt.h
98+src/util_xt.cc
99+src/util_xt.h
100+src/xaction_xt.cc
101+src/xaction_xt.h
102+src/xactlog_xt.cc
103+src/xactlog_xt.h
104+src/xt_config.h
105+src/xt_defs.h
106+src/xt_errno.h)
107+
108+MYSQL_STORAGE_ENGINE(PBXT)
109
110=== removed file 'src/CMakeLists.txt'
111--- src/CMakeLists.txt 2008-11-04 13:53:25 +0000
112+++ src/CMakeLists.txt 1970-01-01 00:00:00 +0000
113@@ -1,53 +0,0 @@
114-# Copyright (c) 2008 PrimeBase Technologies GmbH
115-#
116-# PrimeBase XT
117-#
118-# This program is free software; you can redistribute it and/or modify
119-# it under the terms of the GNU General Public License as published by
120-# the Free Software Foundation; either version 2 of the License, or
121-# (at your option) any later version.
122-#
123-# This program is distributed in the hope that it will be useful,
124-# but WITHOUT ANY WARRANTY; without even the implied warranty of
125-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
126-# GNU General Public License for more details.
127-#
128-# You should have received a copy of the GNU General Public License
129-# along with this program; if not, write to the Free Software
130-# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
131-#
132-# 2006-03-22 Paul McCullagh
133-#
134-# H&G2JCtL
135-#
136-# This file is used to make the Windows version
137-
138-SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DMYSQL_SERVER")
139-SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DMYSQL_SERVER")
140-
141-SET(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -DMYSQL_SERVER -DSAFEMALLOC -DSAFE_MUTEX -DDEBUG")
142-SET(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -DMYSQL_SERVER -DSAFEMALLOC -DSAFE_MUTEX -DDEBUG")
143-
144-INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/include ${CMAKE_SOURCE_DIR}/sql
145- ${CMAKE_SOURCE_DIR}/regex
146- ${CMAKE_SOURCE_DIR}/extra/yassl/include)
147-
148-SET(PBXT_SOURCES ha_pbxt.cc bsearch_xt.cc index_xt.cc strutil_xt.cc cache_xt.cc linklist_xt.cc
149- ccutils_xt.cc lock_xt.cc table_xt.cc database_xt.cc thread_xt.cc
150- datadic_xt.cc memory_xt.cc trace_xt.cc datalog_xt.cc myxt_xt.cc util_xt.cc
151- filesys_xt.cc pthread_xt.cc xaction_xt.cc restart_xt.cc xactlog_xt.cc
152- hashtab_xt.cc sortedlist_xt.cc heap_xt.cc streaming_xt.cc tabcache_xt.cc
153- systab_xt.cc ha_xtsys.cc discover_xt.cc
154- bsearch_xt.h linklist_xt.h tabcache_xt.h cache_xt.h lock_xt.h table_xt.h
155- ccutils_xt.h thread_xt.h database_xt.h memory_xt.h trace_xt.h
156- datadic_xt.h pbms.h util_xt.h datalog_xt.h myxt_xt.h xaction_xt.h
157- filesys_xt.h pthread_xt.h xactlog_xt.h ha_pbxt.h restart_xt.h xt_config.h
158- hashtab_xt.h sortedlist_xt.h xt_defs.h heap_xt.h streaming_xt.h xt_errno.h
159- systab_xt.h ha_xtsys.h discover_xt.h
160- index_xt.h strutil_xt.h)
161-
162-IF(NOT SOURCE_SUBLIBS)
163- ADD_LIBRARY(pbxt ${PBXT_SOURCES})
164- ADD_DEPENDENCIES(pbxt GenError)
165-ENDIF(NOT SOURCE_SUBLIBS)
166-
167
168=== modified file 'src/xt_config.h'
169--- src/xt_config.h 2009-09-10 12:12:18 +0000
170+++ src/xt_config.h 2009-09-17 10:54:30 +0000
171@@ -77,7 +77,7 @@
172 #endif
173
174 #ifdef XT_WIN
175-#ifdef _DEBUG
176+#if defined(_DEBUG) && !defined(DEBUG)
177 #define DEBUG
178 #endif // _DEBUG
179 #else

Subscribers

People subscribed via source and target branches