Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,6 @@ cc_library(
],
strip_include_prefix = "include",
deps = [
"@sqlite//:sqlite3",
"//sqlite",
],
)
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ set(sl3_MINOR_VERSION 3)
# sqlite major is always 3, no need to use that here
# set(internal_SQLITE_MAJOR_V 3)
set(internal_SQLITE_MINOR_V 51)
set(internal_SQLITE_PATCH_V 2)
set(internal_SQLITE_PATCH_V 3)

# sqlite uses (X*1000000 + Y*1000 + Z),
# but minor patch used since major is always 3
Expand Down
5 changes: 3 additions & 2 deletions MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# SQLite version configuration - single source of truth
SQLITE3_MINOR = 51

SQLITE3_PATCH = 2
SQLITE3_PATCH = 3

SQLITE3_VERSION = "3.{}.{}".format(SQLITE3_MINOR, SQLITE3_PATCH)

Expand All @@ -17,5 +17,6 @@ bazel_dep(name = "rules_cc", version = "0.2.17")
bazel_dep(name = "platforms", version = "1.0.0")

# Library dependencies from the Bazel Central Registry
bazel_dep(name = "sqlite3", version = SQLITE3_VERSION, repo_name = "sqlite")
bazel_dep(name = "doctest", version = "2.4.12.bcr.1")
# sqlite can be done, but use the own one sice bcr is sometimes slow to catch up with versions
# bazel_dep(name = "sqlite3", version = SQLITE3_VERSION, repo_name = "sqlite")
24 changes: 0 additions & 24 deletions MODULE.bazel.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion REPO.bazel
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
"""Files to ignore for bazel query and build commands."""
ignore_directories(["build", "sqlite",])
ignore_directories(["build"])
23 changes: 23 additions & 0 deletions sqlite/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
load("@rules_cc//cc:cc_library.bzl", "cc_library")

package(default_visibility = ["//visibility:public"])

# keep my own here, since bcr sometimes catches up too slow with versions

cc_library(
name = "sqlite",
srcs = ["sqlite3.c"],
hdrs = ["sqlite3.h", "sqlite3ext.h"],
includes = ["."],
# Some Unix platforms have pthread and/or dlopen in separate libraries.
linkopts = select({
"@platforms//os:freebsd": ["-lpthread"],
"@platforms//os:linux": [
"-lpthread",
"-ldl",
],
"@platforms//os:netbsd": ["-lpthread"],
"@platforms//os:openbsd": ["-lpthread"],
"//conditions:default": [],
}),
)
Loading
Loading