Skip to content

Commit

Permalink
Merge pull request #7 from sincos2854/main
Browse files Browse the repository at this point in the history
Update libjxl version to v0.9.0
  • Loading branch information
uyjulian authored Dec 23, 2023
2 parents e956aef + 5eb4333 commit 7242811
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ ARCHIVE ?= $(PROJECT_BASENAME).$(TARGET_ARCH).7z

DEPENDENCY_BUILD_DIRECTORY_LIBJXL := $(DEPENDENCY_BUILD_DIRECTORY)/libjxl

LIBJXL_LIBS += $(DEPENDENCY_OUTPUT_DIRECTORY)/lib/libjxl.a $(DEPENDENCY_OUTPUT_DIRECTORY)/lib/libjxl_threads.a $(DEPENDENCY_OUTPUT_DIRECTORY)/lib/libhwy.a $(DEPENDENCY_OUTPUT_DIRECTORY)/lib/libbrotlicommon-static.a $(DEPENDENCY_OUTPUT_DIRECTORY)/lib/libbrotlidec-static.a
LIBJXL_LIBS += $(DEPENDENCY_OUTPUT_DIRECTORY)/lib/libjxl.a $(DEPENDENCY_OUTPUT_DIRECTORY)/lib/libjxl_threads.a $(DEPENDENCY_OUTPUT_DIRECTORY)/lib/libhwy.a $(DEPENDENCY_OUTPUT_DIRECTORY)/lib/libbrotlicommon.a $(DEPENDENCY_OUTPUT_DIRECTORY)/lib/libbrotlidec.a
SOURCES := extractor.c spi00in.c ifjxl.rc
OBJECTS := $(SOURCES:.c=$(OBJECT_EXTENSION))
OBJECTS := $(OBJECTS:.cpp=$(OBJECT_EXTENSION))
Expand Down Expand Up @@ -161,12 +161,12 @@ DEPENDENCY_SOURCE_DIRECTORY_LIBJXL := $(DEPENDENCY_SOURCE_DIRECTORY)/libjxl
DEPENDENCY_SOURCE_URL_LIBJXL := https://github.com/libjxl/libjxl.git

$(DEPENDENCY_SOURCE_DIRECTORY_LIBJXL): | $(DEPENDENCY_SOURCE_DIRECTORY)
git clone --depth 1 --branch v0.8.2 --recursive --shallow-submodules $(DEPENDENCY_SOURCE_URL_LIBJXL) $@
git clone --depth 1 --branch v0.9.0 --recursive --shallow-submodules $(DEPENDENCY_SOURCE_URL_LIBJXL) $@

$(DEPENDENCY_OUTPUT_DIRECTORY)/lib/libjxl_threads.a: $(DEPENDENCY_OUTPUT_DIRECTORY)/lib/libjxl.a
$(DEPENDENCY_OUTPUT_DIRECTORY)/lib/libhwy.a: $(DEPENDENCY_OUTPUT_DIRECTORY)/lib/libjxl.a
$(DEPENDENCY_OUTPUT_DIRECTORY)/lib/libbrotlicommon-static.a: $(DEPENDENCY_OUTPUT_DIRECTORY)/lib/libjxl.a
$(DEPENDENCY_OUTPUT_DIRECTORY)/lib/libbrotlidec-static.a: $(DEPENDENCY_OUTPUT_DIRECTORY)/lib/libjxl.a
$(DEPENDENCY_OUTPUT_DIRECTORY)/lib/libbrotlicommon.a: $(DEPENDENCY_OUTPUT_DIRECTORY)/lib/libjxl.a
$(DEPENDENCY_OUTPUT_DIRECTORY)/lib/libbrotlidec.a: $(DEPENDENCY_OUTPUT_DIRECTORY)/lib/libjxl.a

$(DEPENDENCY_OUTPUT_DIRECTORY)/lib/libjxl.a: | $(DEPENDENCY_SOURCE_DIRECTORY_LIBJXL) $(DEPENDENCY_OUTPUT_DIRECTORY)
cmake \
Expand Down Expand Up @@ -195,7 +195,7 @@ $(DEPENDENCY_OUTPUT_DIRECTORY)/lib/libjxl.a: | $(DEPENDENCY_SOURCE_DIRECTORY_LIB
-DBUILD_TESTING=OFF \
-DJPEGXL_ENABLE_TOOLS=OFF \
-DJPEGXL_ENABLE_VIEWERS=OFF \
-DJPEGXL_STATIC=ON \
-DBUILD_SHARED_LIBS=OFF \
&& \
cmake --build $(DEPENDENCY_BUILD_DIRECTORY_LIBJXL) && \
cmake --build $(DEPENDENCY_BUILD_DIRECTORY_LIBJXL) --target install

0 comments on commit 7242811

Please sign in to comment.