Skip to content

Commit f8f2810

Browse files
committed
MDEV-36737: Research and Estimation for Adapting VIDEX to MariaDB
1 parent da149c7 commit f8f2810

File tree

11 files changed

+1785
-0
lines changed

11 files changed

+1785
-0
lines changed

storage/videx/CMakeLists.txt

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
# Copyright (c) 2025 Bytedance Ltd. and its affiliates.
2+
#
3+
# This program is free software; you can redistribute it and/or modify
4+
# it under the terms of the GNU General Public License, version 2.0,
5+
# as published by the Free Software Foundation.
6+
#
7+
# This program is also distributed with certain software (including
8+
# but not limited to OpenSSL) that is licensed under separate terms,
9+
# as designated in a particular file or component or in included license
10+
# documentation. The authors of MySQL hereby grant you an additional
11+
# permission to link the program and your derivative works with the
12+
# separately licensed software that they have included with MySQL.
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, version 2.0, 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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
22+
23+
# Check necessary dependencies
24+
FIND_PACKAGE(CURL)
25+
IF(NOT CURL_FOUND)
26+
MESSAGE(STATUS "CURL not found. VIDEX will not be compiled")
27+
RETURN()
28+
ENDIF()
29+
30+
SET_PACKAGE_PROPERTIES(CURL PROPERTIES TYPE REQUIRED)
31+
32+
INCLUDE_DIRECTORIES(
33+
${CMAKE_SOURCE_DIR}/sql
34+
${CMAKE_SOURCE_DIR}/include
35+
${CURL_INCLUDE_DIRS}
36+
${ZLIB_INCLUDE_DIRS}
37+
)
38+
39+
SET(VIDEX_SOURCES
40+
videx_utils.cc
41+
ha_videx.cc
42+
)
43+
44+
MYSQL_ADD_PLUGIN(videx
45+
${VIDEX_SOURCES}
46+
STORAGE_ENGINE
47+
LINK_LIBRARIES ${ZLIB_LIBRARIES} ${CURL_LIBRARIES}
48+
)

0 commit comments

Comments
 (0)