"Fossies" - the Fresh Open Source Software Archive

Member "jitsi-meet-6193/Makefile" (20 May 2022, 3524 Bytes) of package /linux/misc/jitsi-meet-6193.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the last Fossies "Diffs" side-by-side code changes report for "Makefile": jitsi-meet_7210_vs_jitsi-meet_7287.

    1 BUILD_DIR = build
    2 CLEANCSS = ./node_modules/.bin/cleancss
    3 DEPLOY_DIR = libs
    4 LIBJITSIMEET_DIR = node_modules/lib-jitsi-meet
    5 OLM_DIR = node_modules/@matrix-org/olm
    6 TF_WASM_DIR = node_modules/@tensorflow/tfjs-backend-wasm/dist/
    7 RNNOISE_WASM_DIR = node_modules/rnnoise-wasm/dist
    8 TFLITE_WASM = react/features/stream-effects/virtual-background/vendor/tflite
    9 MEET_MODELS_DIR  = react/features/stream-effects/virtual-background/vendor/models
   10 FACE_MODELS_DIR = node_modules/@vladmandic/human-models/models
   11 NODE_SASS = ./node_modules/.bin/sass
   12 NPM = npm
   13 OUTPUT_DIR = .
   14 STYLES_BUNDLE = css/all.bundle.css
   15 STYLES_DESTINATION = css/all.css
   16 STYLES_MAIN = css/main.scss
   17 WEBPACK = ./node_modules/.bin/webpack
   18 WEBPACK_DEV_SERVER = ./node_modules/.bin/webpack serve --mode development
   19 
   20 all: compile deploy clean
   21 
   22 compile:
   23 	$(WEBPACK)
   24 
   25 clean:
   26 	rm -fr $(BUILD_DIR)
   27 
   28 .NOTPARALLEL:
   29 deploy: deploy-init deploy-appbundle deploy-rnnoise-binary deploy-tflite deploy-meet-models deploy-lib-jitsi-meet deploy-olm deploy-tf-wasm deploy-css deploy-local deploy-face-landmarks
   30 
   31 deploy-init:
   32 	rm -fr $(DEPLOY_DIR)
   33 	mkdir -p $(DEPLOY_DIR)
   34 
   35 deploy-appbundle:
   36 	cp \
   37 		$(BUILD_DIR)/app.bundle.min.js \
   38 		$(BUILD_DIR)/app.bundle.min.js.map \
   39 		$(BUILD_DIR)/do_external_connect.min.js \
   40 		$(BUILD_DIR)/do_external_connect.min.js.map \
   41 		$(BUILD_DIR)/external_api.min.js \
   42 		$(BUILD_DIR)/external_api.min.js.map \
   43 		$(BUILD_DIR)/dial_in_info_bundle.min.js \
   44 		$(BUILD_DIR)/dial_in_info_bundle.min.js.map \
   45 		$(BUILD_DIR)/alwaysontop.min.js \
   46 		$(BUILD_DIR)/alwaysontop.min.js.map \
   47 		$(OUTPUT_DIR)/analytics-ga.js \
   48 		$(BUILD_DIR)/analytics-ga.min.js \
   49 		$(BUILD_DIR)/analytics-ga.min.js.map \
   50 		$(BUILD_DIR)/face-landmarks-worker.min.js \
   51 		$(BUILD_DIR)/face-landmarks-worker.min.js.map \
   52 		$(DEPLOY_DIR)
   53 	cp \
   54 		$(BUILD_DIR)/close3.min.js \
   55 		$(BUILD_DIR)/close3.min.js.map \
   56 		$(DEPLOY_DIR) || true
   57 
   58 deploy-lib-jitsi-meet:
   59 	cp \
   60 		$(LIBJITSIMEET_DIR)/dist/umd/lib-jitsi-meet.min.js \
   61 		$(LIBJITSIMEET_DIR)/dist/umd/lib-jitsi-meet.min.map \
   62 		$(LIBJITSIMEET_DIR)/dist/umd/lib-jitsi-meet.e2ee-worker.js \
   63 		$(LIBJITSIMEET_DIR)/connection_optimization/external_connect.js \
   64 		$(LIBJITSIMEET_DIR)/modules/browser/capabilities.json \
   65 		$(DEPLOY_DIR)
   66 
   67 deploy-olm:
   68 	cp \
   69 		$(OLM_DIR)/olm.wasm \
   70 		$(DEPLOY_DIR)
   71 
   72 deploy-tf-wasm:
   73 	cp \
   74 		$(TF_WASM_DIR)/*.wasm \
   75 		$(DEPLOY_DIR)
   76 
   77 deploy-rnnoise-binary:
   78 	cp \
   79 		$(RNNOISE_WASM_DIR)/rnnoise.wasm \
   80 		$(DEPLOY_DIR)
   81 
   82 deploy-tflite:
   83 	cp \
   84 		$(TFLITE_WASM)/*.wasm \
   85 		$(DEPLOY_DIR)
   86 
   87 deploy-meet-models:
   88 	cp \
   89 		$(MEET_MODELS_DIR)/*.tflite \
   90 		$(DEPLOY_DIR)
   91 
   92 deploy-face-landmarks:
   93 	cp \
   94 		$(FACE_MODELS_DIR)/blazeface-front.bin \
   95 		$(FACE_MODELS_DIR)/blazeface-front.json \
   96 		$(FACE_MODELS_DIR)/emotion.bin \
   97 		$(FACE_MODELS_DIR)/emotion.json \
   98 		$(DEPLOY_DIR)
   99 
  100 deploy-css:
  101 	$(NODE_SASS) $(STYLES_MAIN) $(STYLES_BUNDLE) && \
  102 	$(CLEANCSS) --skip-rebase $(STYLES_BUNDLE) > $(STYLES_DESTINATION) && \
  103 	rm $(STYLES_BUNDLE)
  104 
  105 deploy-local:
  106 	([ ! -x deploy-local.sh ] || ./deploy-local.sh)
  107 
  108 .NOTPARALLEL:
  109 dev: deploy-init deploy-css deploy-rnnoise-binary deploy-tflite deploy-meet-models deploy-lib-jitsi-meet deploy-olm deploy-tf-wasm deploy-face-landmarks
  110 	$(WEBPACK_DEV_SERVER)
  111 
  112 source-package:
  113 	mkdir -p source_package/jitsi-meet/css && \
  114 	cp -r *.js *.html resources/*.txt connection_optimization favicon.ico fonts images libs static sounds LICENSE lang source_package/jitsi-meet && \
  115 	cp css/all.css source_package/jitsi-meet/css && \
  116 	(cd source_package ; tar cjf ../jitsi-meet.tar.bz2 jitsi-meet) && \
  117 	rm -rf source_package