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
|
|
|
|
LIBJITSIMEET_DIR = node_modules/lib-jitsi-meet/
|
2018-08-02 15:39:20 +00:00
|
|
|
LIBFLAC_DIR = node_modules/libflacjs/dist/min/
|
2020-05-07 09:54:02 +00:00
|
|
|
OLM_DIR = node_modules/olm
|
2019-10-04 10:55:18 +00:00
|
|
|
RNNOISE_WASM_DIR = node_modules/rnnoise-wasm/dist/
|
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
|
|
|
|
WEBPACK = ./node_modules/.bin/webpack
|
2018-04-20 09:37:28 +00:00
|
|
|
WEBPACK_DEV_SERVER = ./node_modules/.bin/webpack-dev-server
|
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
|
|
|
|
2021-02-04 23:04:36 +00:00
|
|
|
compile: compile-load-test
|
2016-09-22 05:57:22 +00:00
|
|
|
$(WEBPACK) -p
|
2016-06-17 20:35:40 +00:00
|
|
|
|
2021-02-04 23:04:36 +00:00
|
|
|
compile-load-test:
|
|
|
|
${NPM} install --prefix load-test && ${NPM} run build --prefix load-test
|
|
|
|
|
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:
|
2020-05-07 09:54:02 +00:00
|
|
|
deploy: deploy-init deploy-appbundle deploy-rnnoise-binary deploy-lib-jitsi-meet deploy-libflac deploy-olm deploy-css deploy-local
|
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 \
|
|
|
|
$(BUILD_DIR)/app.bundle.min.map \
|
2017-04-11 23:27:43 +00:00
|
|
|
$(BUILD_DIR)/do_external_connect.min.js \
|
|
|
|
$(BUILD_DIR)/do_external_connect.min.map \
|
2016-09-22 05:57:22 +00:00
|
|
|
$(BUILD_DIR)/external_api.min.js \
|
|
|
|
$(BUILD_DIR)/external_api.min.map \
|
2018-06-19 16:43:33 +00:00
|
|
|
$(BUILD_DIR)/flacEncodeWorker.min.js \
|
|
|
|
$(BUILD_DIR)/flacEncodeWorker.min.map \
|
2017-06-04 03:12:04 +00:00
|
|
|
$(BUILD_DIR)/device_selection_popup_bundle.min.js \
|
|
|
|
$(BUILD_DIR)/device_selection_popup_bundle.min.map \
|
2018-02-13 19:46:47 +00:00
|
|
|
$(BUILD_DIR)/dial_in_info_bundle.min.js \
|
|
|
|
$(BUILD_DIR)/dial_in_info_bundle.min.map \
|
2017-11-10 17:11:45 +00:00
|
|
|
$(BUILD_DIR)/alwaysontop.min.js \
|
|
|
|
$(BUILD_DIR)/alwaysontop.min.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 \
|
|
|
|
$(BUILD_DIR)/analytics-ga.min.map \
|
2019-06-28 17:18:47 +00:00
|
|
|
$(BUILD_DIR)/video-blur-effect.min.js \
|
|
|
|
$(BUILD_DIR)/video-blur-effect.min.map \
|
2019-10-04 10:55:18 +00:00
|
|
|
$(BUILD_DIR)/rnnoise-processor.min.js \
|
|
|
|
$(BUILD_DIR)/rnnoise-processor.min.map \
|
2020-08-28 16:10:55 +00:00
|
|
|
$(BUILD_DIR)/close3.min.js \
|
|
|
|
$(BUILD_DIR)/close3.min.map \
|
2016-09-22 05:57:22 +00:00
|
|
|
$(DEPLOY_DIR)
|
2016-01-28 23:43:48 +00:00
|
|
|
|
|
|
|
deploy-lib-jitsi-meet:
|
2016-09-22 05:57:22 +00:00
|
|
|
cp \
|
|
|
|
$(LIBJITSIMEET_DIR)/lib-jitsi-meet.min.js \
|
|
|
|
$(LIBJITSIMEET_DIR)/lib-jitsi-meet.min.map \
|
2020-08-12 08:28:25 +00:00
|
|
|
$(LIBJITSIMEET_DIR)/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
|
|
|
|
2018-06-19 16:43:33 +00:00
|
|
|
deploy-libflac:
|
|
|
|
cp \
|
2018-07-27 12:16:48 +00:00
|
|
|
$(LIBFLAC_DIR)/libflac4-1.3.2.min.js \
|
|
|
|
$(LIBFLAC_DIR)/libflac4-1.3.2.min.js.mem \
|
2018-06-19 16:43:33 +00:00
|
|
|
$(DEPLOY_DIR)
|
|
|
|
|
2020-05-07 09:54:02 +00:00
|
|
|
deploy-olm:
|
|
|
|
cp \
|
|
|
|
$(OLM_DIR)/olm.wasm \
|
|
|
|
$(DEPLOY_DIR)
|
|
|
|
|
2019-10-04 10:55:18 +00:00
|
|
|
deploy-rnnoise-binary:
|
|
|
|
cp \
|
|
|
|
$(RNNOISE_WASM_DIR)/rnnoise.wasm \
|
|
|
|
$(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) && \
|
2020-07-03 08:26:43 +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:
|
2020-05-07 09:54:02 +00:00
|
|
|
dev: deploy-init deploy-css deploy-rnnoise-binary deploy-lib-jitsi-meet deploy-libflac deploy-olm
|
2020-06-04 14:09:13 +00:00
|
|
|
$(WEBPACK_DEV_SERVER) --detect-circular-deps
|
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
|