Skip to content

Commit

Permalink
Fix Bazel build
Browse files Browse the repository at this point in the history
Most bazel tests are failing, alas.
  • Loading branch information
eustas committed Dec 27, 2024
1 parent ac19b28 commit e93f889
Show file tree
Hide file tree
Showing 7 changed files with 172 additions and 1,210 deletions.
4 changes: 2 additions & 2 deletions MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
"""JPEG XL reference implementation"""

module(
name = "libjxl",
repo_name = "libjxl",
name = "jpegli",
repo_name = "jpegli",
)

bazel_dep(name = "bazel_skylib", version = "1.7.1")
Expand Down
1 change: 1 addition & 0 deletions lib/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,7 @@ TESTS = [path.partition(".")[0] for path in libjxl_tests + libjxl_jpegli_tests]
timeout = libjxl_test_timeouts.get(test, "moderate"),
srcs = [
test + ".cc",
"base/testing.h",
"jpegli/testing.h",
],
data = ["//:testdata"],
Expand Down
5 changes: 3 additions & 2 deletions lib/jxl_extras.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,14 @@ include(jxl_lists.cmake)
list(APPEND JPEGXL_EXTRAS_CORE_SOURCES
"${JPEGXL_INTERNAL_EXTRAS_SOURCES}"
"${JPEGXL_INTERNAL_CODEC_APNG_SOURCES}"
../third_party/apngdis/dec.cc
../third_party/apngdis/enc.cc
"${JPEGXL_INTERNAL_CODEC_EXR_SOURCES}"
"${JPEGXL_INTERNAL_CODEC_GIF_SOURCES}"
"${JPEGXL_INTERNAL_CODEC_JPG_SOURCES}"
"${JPEGXL_INTERNAL_CODEC_PGX_SOURCES}"
"${JPEGXL_INTERNAL_CODEC_PNM_SOURCES}"
"${JPEGXL_INTERNAL_CODEC_NPY_SOURCES}"
extras/dec/gif.cc
extras/dec/gif.h
)
foreach(LIB jxl_extras_core-obj jxl_extras_core_nocodec-obj)
add_library("${LIB}" OBJECT "${JPEGXL_EXTRAS_CORE_SOURCES}")
Expand Down
Loading

0 comments on commit e93f889

Please sign in to comment.