Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
13e5ef4a
Commit
13e5ef4a
authored
Sep 15, 2010
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oqgraph and sphinx on windows
parent
b8b84c7f
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
42 additions
and
23 deletions
+42
-23
mysql-test/suite/oqgraph/suite.opt
mysql-test/suite/oqgraph/suite.opt
+1
-1
mysql-test/suite/oqgraph/suite.pm
mysql-test/suite/oqgraph/suite.pm
+1
-1
storage/oqgraph/CMakeLists.txt
storage/oqgraph/CMakeLists.txt
+21
-6
storage/oqgraph/Makefile.am
storage/oqgraph/Makefile.am
+9
-9
storage/oqgraph/graphcore.cc
storage/oqgraph/graphcore.cc
+2
-2
storage/oqgraph/plug.in
storage/oqgraph/plug.in
+1
-1
storage/pbxt/CMakeLists.txt
storage/pbxt/CMakeLists.txt
+3
-0
storage/sphinx/CMakeLists.txt
storage/sphinx/CMakeLists.txt
+4
-3
No files found.
mysql-test/suite/oqgraph/suite.opt
View file @
13e5ef4a
--plugin-load=$
OQGRAPH_ENGINE
_SO
--plugin-load=$
HA_OQGRAPH
_SO
mysql-test/suite/oqgraph/suite.pm
View file @
13e5ef4a
...
...
@@ -2,7 +2,7 @@ package My::Suite::OQGraph;
@ISA
=
qw(My::Suite)
;
return
"
No OQGraph
"
unless
$ENV
{
OQGRAPH_ENGINE
_SO
};
return
"
No OQGraph
"
unless
$ENV
{
HA_OQGRAPH
_SO
};
bless
{
};
storage/oqgraph/CMake
File
s.txt
→
storage/oqgraph/CMake
List
s.txt
View file @
13e5ef4a
...
...
@@ -13,10 +13,25 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
SET(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -DSAFEMALLOC -DSAFE_MUTEX")
SET(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -DSAFEMALLOC -DSAFE_MUTEX")
INCLUDE
(
CheckCXXSourceCompiles
)
CHECK_CXX_SOURCE_COMPILES
(
"#include <boost/version.hpp>
#if BOOST_VERSION >= 104000
#else
#error oops
#endif
int main() { return 0; }"
BOOST_OK
)
INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/include ${CMAKE_SOURCE_DIR}/sql
IF
(
BOOST_OK
)
INCLUDE
(
"
${
PROJECT_SOURCE_DIR
}
/storage/mysql_storage_engine.cmake"
)
SET
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
-DHAVE_OQGRAPH /EHsc"
)
INCLUDE_DIRECTORIES
(
${
CMAKE_SOURCE_DIR
}
/include
${
CMAKE_SOURCE_DIR
}
/sql
${
CMAKE_SOURCE_DIR
}
/regex
${
CMAKE_SOURCE_DIR
}
/extra/yassl/include
)
ADD_LIBRARY(oqgraph ha_oqgraph.cc)
SET
(
OQGRAPH_SOURCES ha_oqgraph.cc graphcore.cc
)
MYSQL_STORAGE_ENGINE
(
OQGRAPH
)
ENDIF
()
storage/oqgraph/Makefile.am
View file @
13e5ef4a
...
...
@@ -47,11 +47,11 @@ BOOST_CXXFLAGS+= -funroll-loops -fno-trapping-math
EXTRA_DIST
=
ha_oqgraph.h ha_oqgraph.cc graphcore.cc
\
graphcore-graph.h graphcore-types.h graphcore.h
\
CMake
File
s.txt plug.in oqgraph_probes.d
CMake
List
s.txt plug.in oqgraph_probes.d
# DTRACE = @DTRACE@
# DTRACEFLAGS = @DTRACEFLAGS@
# DTRACEFILES = .libs/lib
oqgraph_engine
_la-ha_oqgraph.o
# DTRACEFILES = .libs/lib
ha_oqgraph
_la-ha_oqgraph.o
ORIG_CXXFLAGS
=
@CXXFLAGS@
CXXFLAGS
=
...
...
@@ -71,18 +71,18 @@ else
INCLUDES
=
-I
$(top_srcdir)
/include
-I
$(top_builddir)
/include
-I
$(top_srcdir)
/regex
-I
$(top_srcdir)
/sql
-I
$(srcdir)
-DHAVE_OQGRAPH
endif
!BUILD_OQGRAPH_STANDALONE
EXTRA_LTLIBRARIES
=
oqgraph_engine
.la
EXTRA_LTLIBRARIES
=
ha_oqgraph
.la
mysqlplugin_LTLIBRARIES
=
@plugin_oqgraph_shared_target@
oqgraph_engine
_la_SOURCES
=
ha_oqgraph.cc
oqgraph_engine
_la_LIBADD
=
libgraphcore.la
ha_oqgraph
_la_SOURCES
=
ha_oqgraph.cc
ha_oqgraph
_la_LIBADD
=
libgraphcore.la
# if HAVE_DTRACE
#
oqgraph_engine
_la_LIBADD += oqgraph_probes.o
#
ha_oqgraph
_la_LIBADD += oqgraph_probes.o
# endif
oqgraph_engine_la_LDFLAGS
=
-module
-rpath
$(mysqlplugindir)
oqgraph_engine
_la_CFLAGS
=
$(ORIG_CFLAGS)
-DMYSQL_DYNAMIC_PLUGIN
oqgraph_engine
_la_CXXFLAGS
=
$(ORIG_CXXFLAGS)
-DMYSQL_DYNAMIC_PLUGIN
ha_oqgraph_la_LDFLAGS
=
-shared
-module
-rpath
$(mysqlplugindir)
ha_oqgraph
_la_CFLAGS
=
$(ORIG_CFLAGS)
-DMYSQL_DYNAMIC_PLUGIN
ha_oqgraph
_la_CXXFLAGS
=
$(ORIG_CXXFLAGS)
-DMYSQL_DYNAMIC_PLUGIN
# oqgraph_probes.h: oqgraph_probes.d
# $(DTRACE) $(DTRACEFLAGS) -h -s oqgraph_probes.d
...
...
storage/oqgraph/graphcore.cc
View file @
13e5ef4a
...
...
@@ -24,7 +24,7 @@
======================================================================
*/
#include <string
s
.h>
#include <string.h>
#define BOOST_ALL_NO_LIB 1
...
...
@@ -997,7 +997,7 @@ int stack_cursor::fetch_row(const row &row_info, row &result,
const
reference
&
ref
)
{
last
=
ref
;
if
(
optional
<
Vertex
>
v
=
last
.
vertex
())
if
(
last
.
vertex
())
{
optional
<
int
>
seq
;
optional
<
EdgeWeight
>
w
;
...
...
storage/oqgraph/plug.in
View file @
13e5ef4a
MYSQL_STORAGE_ENGINE(oqgraph,,[Graph Storage Engine],
[Open Query Graph Computation Engine], [])
MYSQL_PLUGIN_DYNAMIC(oqgraph, [
oqgraph_engine
.la])
MYSQL_PLUGIN_DYNAMIC(oqgraph, [
ha_oqgraph
.la])
MYSQL_PLUGIN_DEPENDS_ON_MYSQL_INTERNALS(oqgraph, [ha_oqgraph.cc])
MYSQL_PLUGIN_ACTIONS(oqgraph,[
AC_LANG_PUSH([C++])
...
...
storage/pbxt/CMakeLists.txt
View file @
13e5ef4a
...
...
@@ -22,6 +22,8 @@
#
# This file is used to make the Windows version
INCLUDE
(
"
${
PROJECT_SOURCE_DIR
}
/storage/mysql_storage_engine.cmake"
)
SET
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
-DMYSQL_SERVER"
)
SET
(
CMAKE_C_FLAGS
"
${
CMAKE_C_FLAGS
}
-DMYSQL_SERVER"
)
...
...
@@ -101,3 +103,4 @@ src/xt_defs.h
src/xt_errno.h
)
MYSQL_STORAGE_ENGINE
(
PBXT
)
storage/sphinx/CMakeLists.txt
View file @
13e5ef4a
SET
(
CMAKE_CXX_FLAGS_DEBUG
"
${
CMAKE_CXX_FLAGS_DEBUG
}
-DSAFEMALLOC -DSAFE_MUTEX
"
)
SET
(
CMAKE_C_FLAGS_DEBUG
"
${
CMAKE_C_FLAGS_DEBUG
}
-DSAFEMALLOC -DSAFE_MUTEX"
)
INCLUDE
(
"
${
PROJECT_SOURCE_DIR
}
/storage/mysql_storage_engine.cmake
"
)
ADD_DEFINITIONS
(
-DMYSQL_SERVER
)
INCLUDE_DIRECTORIES
(
${
CMAKE_SOURCE_DIR
}
/include
...
...
@@ -8,4 +8,5 @@ INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/include
${
CMAKE_SOURCE_DIR
}
/regex
)
SET
(
SPHINX_SOURCES ha_sphinx.cc
)
ADD_LIBRARY
(
sphinx ha_sphinx.cc
)
SET
(
SPHINX_LIBS ws2_32.lib
)
MYSQL_STORAGE_ENGINE
(
SPHINX
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment