2016-09-22 05:57:22 +00:00
|
|
|
BUILD_DIR = build
|
2016-09-28 21:37:24 +00:00
|
|
|
CLEANCSS = ./node_modules/.bin/cleancss
|
|
|
|
DEPLOY_DIR = libs
|
2021-10-07 19:12:11 +00:00
|
|
|
LIBJITSIMEET_DIR = node_modules/lib-jitsi-meet
|
2021-05-24 17:13:30 +00:00
|
|
|
OLM_DIR = node_modules/@matrix-org/olm
|
2022-03-02 12:39:50 +00:00
|
|
|
TF_WASM_DIR = node_modules/@tensorflow/tfjs-backend-wasm/dist/
|
2022-07-20 12:31:17 +00:00
|
|
|
RNNOISE_WASM_DIR = node_modules/@jitsi/rnnoise-wasm/dist
|
2022-09-30 14:50:45 +00:00
|
|
|
EXCALIDRAW_DIR = node_modules/@jitsi/excalidraw/dist/excalidraw-assets
|
|
|
|
EXCALIDRAW_DIR_DEV = node_modules/@jitsi/excalidraw/dist/excalidraw-assets-dev
|
2021-02-18 15:52:47 +00:00
|
|
|
TFLITE_WASM = react/features/stream-effects/virtual-background/vendor/tflite
|
2021-10-07 19:12:11 +00:00
|
|
|
MEET_MODELS_DIR = react/features/stream-effects/virtual-background/vendor/models
|
2022-05-06 12:41:08 +00:00
|
|
|
FACE_MODELS_DIR = node_modules/@vladmandic/human-models/models
|
2020-09-17 14:12:17 +00:00
|
|
|
NODE_SASS = ./node_modules/.bin/sass
|
2016-09-22 05:57:22 +00:00
|
|
|
NPM = npm
|
|
|
|
OUTPUT_DIR = .
|
|
|
|
STYLES_BUNDLE = css/all.bundle.css
|
|
|
|
STYLES_DESTINATION = css/all.css
|
|
|
|
STYLES_MAIN = css/main.scss
|
2022-10-05 13:48:43 +00:00
|
|
|
ifeq ($(OS),Windows_NT)
|
|
|
|
WEBPACK = .\node_modules\.bin\webpack
|
|
|
|
WEBPACK_DEV_SERVER = .\node_modules\.bin\webpack serve --mode development
|
|
|
|
else
|
|
|
|
WEBPACK = ./node_modules/.bin/webpack
|
|
|
|
WEBPACK_DEV_SERVER = ./node_modules/.bin/webpack serve --mode development
|
|
|
|
endif
|
2015-01-22 15:36:12 +00:00
|
|
|
|
2017-03-08 10:16:24 +00:00
|
|
|
all: compile deploy clean
|
2014-12-17 16:21:25 +00:00
|
|
|
|
2022-05-05 07:47:22 +00:00
|
|
|
compile:
|
2022-09-28 07:45:33 +00:00
|
|
|
NODE_OPTIONS=--max-old-space-size=8192 \
|
2021-10-07 08:39:03 +00:00
|
|
|
$(WEBPACK)
|
2016-06-17 20:35:40 +00:00
|
|
|
|
2014-12-17 16:21:25 +00:00
|
|
|
clean:
|
2016-09-22 05:57:22 +00:00
|
|
|
rm -fr $(BUILD_DIR)
|
2014-12-17 16:21:25 +00:00
|
|
|
|
2020-05-14 07:27:50 +00:00
|
|
|
.NOTPARALLEL:
|
2022-09-30 14:50:45 +00:00
|
|
|
deploy: deploy-init deploy-appbundle deploy-rnnoise-binary deploy-excalidraw deploy-tflite deploy-meet-models deploy-lib-jitsi-meet deploy-olm deploy-tf-wasm deploy-css deploy-local deploy-face-landmarks
|
2016-01-28 23:43:48 +00:00
|
|
|
|
|
|
|
deploy-init:
|
2018-04-16 22:00:57 +00:00
|
|
|
rm -fr $(DEPLOY_DIR)
|
2016-01-28 23:43:48 +00:00
|
|
|
mkdir -p $(DEPLOY_DIR)
|
|
|
|
|
|
|
|
deploy-appbundle:
|
2016-09-22 05:57:22 +00:00
|
|
|
cp \
|
|
|
|
$(BUILD_DIR)/app.bundle.min.js \
|
2021-10-22 10:29:43 +00:00
|
|
|
$(BUILD_DIR)/app.bundle.min.js.map \
|
2017-04-11 23:27:43 +00:00
|
|
|
$(BUILD_DIR)/do_external_connect.min.js \
|
2021-10-22 10:29:43 +00:00
|
|
|
$(BUILD_DIR)/do_external_connect.min.js.map \
|
2016-09-22 05:57:22 +00:00
|
|
|
$(BUILD_DIR)/external_api.min.js \
|
2021-10-22 10:29:43 +00:00
|
|
|
$(BUILD_DIR)/external_api.min.js.map \
|
2018-02-13 19:46:47 +00:00
|
|
|
$(BUILD_DIR)/dial_in_info_bundle.min.js \
|
2021-10-22 10:29:43 +00:00
|
|
|
$(BUILD_DIR)/dial_in_info_bundle.min.js.map \
|
2017-11-10 17:11:45 +00:00
|
|
|
$(BUILD_DIR)/alwaysontop.min.js \
|
2021-10-22 10:29:43 +00:00
|
|
|
$(BUILD_DIR)/alwaysontop.min.js.map \
|
2018-01-03 21:24:07 +00:00
|
|
|
$(OUTPUT_DIR)/analytics-ga.js \
|
2019-01-03 13:54:02 +00:00
|
|
|
$(BUILD_DIR)/analytics-ga.min.js \
|
2021-10-22 10:29:43 +00:00
|
|
|
$(BUILD_DIR)/analytics-ga.min.js.map \
|
2022-04-06 09:10:31 +00:00
|
|
|
$(BUILD_DIR)/face-landmarks-worker.min.js \
|
|
|
|
$(BUILD_DIR)/face-landmarks-worker.min.js.map \
|
2022-07-20 12:31:17 +00:00
|
|
|
$(BUILD_DIR)/noise-suppressor-worklet.min.js \
|
|
|
|
$(BUILD_DIR)/noise-suppressor-worklet.min.js.map \
|
2021-10-07 08:39:03 +00:00
|
|
|
$(DEPLOY_DIR)
|
|
|
|
cp \
|
2020-08-28 16:10:55 +00:00
|
|
|
$(BUILD_DIR)/close3.min.js \
|
2021-10-22 10:29:43 +00:00
|
|
|
$(BUILD_DIR)/close3.min.js.map \
|
2021-10-07 08:39:03 +00:00
|
|
|
$(DEPLOY_DIR) || true
|
2016-01-28 23:43:48 +00:00
|
|
|
|
|
|
|
deploy-lib-jitsi-meet:
|
2016-09-22 05:57:22 +00:00
|
|
|
cp \
|
2021-10-07 19:11:02 +00:00
|
|
|
$(LIBJITSIMEET_DIR)/dist/umd/lib-jitsi-meet.min.js \
|
|
|
|
$(LIBJITSIMEET_DIR)/dist/umd/lib-jitsi-meet.min.map \
|
|
|
|
$(LIBJITSIMEET_DIR)/dist/umd/lib-jitsi-meet.e2ee-worker.js \
|
2016-09-22 05:57:22 +00:00
|
|
|
$(LIBJITSIMEET_DIR)/connection_optimization/external_connect.js \
|
2018-02-01 17:58:06 +00:00
|
|
|
$(LIBJITSIMEET_DIR)/modules/browser/capabilities.json \
|
2016-09-22 05:57:22 +00:00
|
|
|
$(DEPLOY_DIR)
|
2016-09-08 06:35:35 +00:00
|
|
|
|
2020-05-07 09:54:02 +00:00
|
|
|
deploy-olm:
|
|
|
|
cp \
|
|
|
|
$(OLM_DIR)/olm.wasm \
|
|
|
|
$(DEPLOY_DIR)
|
|
|
|
|
2022-03-02 12:39:50 +00:00
|
|
|
deploy-tf-wasm:
|
|
|
|
cp \
|
|
|
|
$(TF_WASM_DIR)/*.wasm \
|
|
|
|
$(DEPLOY_DIR)
|
|
|
|
|
2019-10-04 10:55:18 +00:00
|
|
|
deploy-rnnoise-binary:
|
|
|
|
cp \
|
|
|
|
$(RNNOISE_WASM_DIR)/rnnoise.wasm \
|
|
|
|
$(DEPLOY_DIR)
|
|
|
|
|
2021-02-17 15:03:33 +00:00
|
|
|
deploy-tflite:
|
|
|
|
cp \
|
|
|
|
$(TFLITE_WASM)/*.wasm \
|
2021-10-22 10:29:43 +00:00
|
|
|
$(DEPLOY_DIR)
|
2021-02-17 15:03:33 +00:00
|
|
|
|
2022-09-30 14:50:45 +00:00
|
|
|
deploy-excalidraw:
|
|
|
|
cp -R \
|
|
|
|
$(EXCALIDRAW_DIR) \
|
|
|
|
$(DEPLOY_DIR)/
|
|
|
|
|
|
|
|
deploy-excalidraw-dev:
|
|
|
|
cp -R \
|
|
|
|
$(EXCALIDRAW_DIR_DEV) \
|
|
|
|
$(DEPLOY_DIR)/
|
|
|
|
|
2021-02-17 15:03:33 +00:00
|
|
|
deploy-meet-models:
|
|
|
|
cp \
|
|
|
|
$(MEET_MODELS_DIR)/*.tflite \
|
2021-10-22 10:29:43 +00:00
|
|
|
$(DEPLOY_DIR)
|
2021-02-17 15:03:33 +00:00
|
|
|
|
2022-04-06 09:10:31 +00:00
|
|
|
deploy-face-landmarks:
|
2021-11-17 14:33:03 +00:00
|
|
|
cp \
|
2022-05-06 12:41:08 +00:00
|
|
|
$(FACE_MODELS_DIR)/blazeface-front.bin \
|
|
|
|
$(FACE_MODELS_DIR)/blazeface-front.json \
|
|
|
|
$(FACE_MODELS_DIR)/emotion.bin \
|
|
|
|
$(FACE_MODELS_DIR)/emotion.json \
|
2021-11-17 14:33:03 +00:00
|
|
|
$(DEPLOY_DIR)
|
|
|
|
|
2016-01-28 23:43:48 +00:00
|
|
|
deploy-css:
|
2016-09-02 09:53:22 +00:00
|
|
|
$(NODE_SASS) $(STYLES_MAIN) $(STYLES_BUNDLE) && \
|
2022-01-12 08:33:22 +00:00
|
|
|
$(CLEANCSS) --skip-rebase $(STYLES_BUNDLE) > $(STYLES_DESTINATION) && \
|
2016-09-02 09:53:22 +00:00
|
|
|
rm $(STYLES_BUNDLE)
|
2016-01-28 23:43:48 +00:00
|
|
|
|
|
|
|
deploy-local:
|
2015-08-03 18:16:00 +00:00
|
|
|
([ ! -x deploy-local.sh ] || ./deploy-local.sh)
|
2015-09-11 04:06:29 +00:00
|
|
|
|
2020-05-14 07:27:50 +00:00
|
|
|
.NOTPARALLEL:
|
2022-09-30 14:50:45 +00:00
|
|
|
dev: deploy-init deploy-css deploy-rnnoise-binary deploy-tflite deploy-meet-models deploy-lib-jitsi-meet deploy-olm deploy-tf-wasm deploy-excalidraw-dev deploy-face-landmarks
|
2021-10-07 08:39:03 +00:00
|
|
|
$(WEBPACK_DEV_SERVER)
|
2018-04-20 09:37:28 +00:00
|
|
|
|
2015-09-11 04:06:29 +00:00
|
|
|
source-package:
|
2015-10-06 19:50:06 +00:00
|
|
|
mkdir -p source_package/jitsi-meet/css && \
|
2020-04-10 17:19:11 +00:00
|
|
|
cp -r *.js *.html resources/*.txt connection_optimization favicon.ico fonts images libs static sounds LICENSE lang source_package/jitsi-meet && \
|
2015-10-06 20:29:26 +00:00
|
|
|
cp css/all.css source_package/jitsi-meet/css && \
|
2015-09-11 04:06:29 +00:00
|
|
|
(cd source_package ; tar cjf ../jitsi-meet.tar.bz2 jitsi-meet) && \
|
|
|
|
rm -rf source_package
|