mirror of
https://github.com/GoogleChromeLabs/squoosh.git
synced 2025-11-12 00:37:19 +00:00
Make the JXL Makefile work with both tags and SHAs.
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
CODEC_URL = https://gitlab.com/wg1/jpeg-xl.git
|
CODEC_URL = https://gitlab.com/wg1/jpeg-xl.git
|
||||||
CODEC_VERSION = v0.1.1
|
CODEC_VERSION = 739e6cd1305fdec5acfa47ad414189b3d3ecb6a4
|
||||||
CODEC_DIR = node_modules/jxl
|
CODEC_DIR = node_modules/jxl
|
||||||
CODEC_BUILD_ROOT := $(CODEC_DIR)/build
|
CODEC_BUILD_ROOT := $(CODEC_DIR)/build
|
||||||
CODEC_MT_BUILD_DIR := $(CODEC_BUILD_ROOT)/mt
|
CODEC_MT_BUILD_DIR := $(CODEC_BUILD_ROOT)/mt
|
||||||
@@ -79,8 +79,11 @@ $(CODEC_MT_SIMD_BUILD_DIR)/Makefile: CXXFLAGS+=-msimd128
|
|||||||
$(<D)
|
$(<D)
|
||||||
|
|
||||||
$(CODEC_DIR)/CMakeLists.txt:
|
$(CODEC_DIR)/CMakeLists.txt:
|
||||||
mkdir -p $(@D)
|
$(RM) -r $(@D)
|
||||||
git clone $(CODEC_URL) --recursive -j`nproc` --depth 1 --branch $(CODEC_VERSION) $(@D)
|
git init $(@D)
|
||||||
|
git -C $(@D) fetch $(CODEC_URL) $(CODEC_VERSION) --depth 1
|
||||||
|
git -C $(@D) checkout FETCH_HEAD
|
||||||
|
git -C $(@D) submodule update --init --depth 1 --recursive --jobs `nproc`
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
$(RM) $(OUT_JS) $(OUT_WASM) $(OUT_WORKER)
|
$(RM) $(OUT_JS) $(OUT_WASM) $(OUT_WORKER)
|
||||||
|
|||||||
Reference in New Issue
Block a user