Complete basic rewrite

This commit is contained in:
Jerome Wu
2022-09-30 17:21:03 +08:00
parent 2f18a2d806
commit a136b8b1bb
39 changed files with 3586 additions and 8769 deletions

View File

@@ -9,13 +9,13 @@ PROD_CFLAGS := -O3 -msimd128
PROD_MT_CFLAGS := $(PROD_CFLAGS) $(MT_FLAGS)
clean:
rm -rf ./packages/ffmpeg$(PKG_SUFFIX)/dist
rm -rf ./packages/ffmpeg$(PKG_SUFFIX)/types
rm -rf ./packages/core$(PKG_SUFFIX)/dist
rm -rf ./packages/core$(PKG_SUFFIX)/types
.PHONY: build
build:
make clean PKG_SUFFIX="$(PKG_SUFFIX)"
cp -r src/types/ffmpeg packages/ffmpeg$(PKG_SUFFIX)/types
cp -r src/types/ffmpeg-core packages/core$(PKG_SUFFIX)/types
EXTRA_CFLAGS="$(EXTRA_CFLAGS)" \
EXTRA_LDFLAGS="$(EXTRA_LDFLAGS)" \
FFMPEG_ST="$(FFMPEG_ST)" \
@@ -25,7 +25,7 @@ build:
--build-arg EXTRA_LDFLAGS \
--build-arg FFMPEG_MT \
--build-arg FFMPEG_ST \
-o ./packages/ffmpeg$(PKG_SUFFIX) \
-o ./packages/core$(PKG_SUFFIX) \
$(EXTRA_ARGS) \
.
@@ -49,3 +49,6 @@ prd:
prd-mt:
make build-mt EXTRA_CFLAGS="$(PROD_MT_CFLAGS)"
test:
npm run test