"Fossies" - the Fresh Open Source Software Archive

Member "jitsi-meet-4420/Makefile" (18 Sep 2020, 3082 Bytes) of package /linux/misc/jitsi-meet-4420.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": 4407_vs_4411.

    1 BUILD_DIR = build
    2 CLEANCSS = ./node_modules/.bin/cleancss
    3 DEPLOY_DIR = libs
    4 LIBJITSIMEET_DIR = node_modules/lib-jitsi-meet/
    5 LIBFLAC_DIR = node_modules/libflacjs/dist/min/
    6 OLM_DIR = node_modules/olm
    7 RNNOISE_WASM_DIR = node_modules/rnnoise-wasm/dist/
    8 NODE_SASS = ./node_modules/.bin/sass
    9 NPM = npm
   10 OUTPUT_DIR = .
   11 STYLES_BUNDLE = css/all.bundle.css
   12 STYLES_DESTINATION = css/all.css
   13 STYLES_MAIN = css/main.scss
   14 WEBPACK = ./node_modules/.bin/webpack
   15 WEBPACK_DEV_SERVER = ./node_modules/.bin/webpack-dev-server
   16 
   17 all: compile deploy clean
   18 
   19 compile:
   20 	$(WEBPACK) -p
   21 
   22 clean:
   23 	rm -fr $(BUILD_DIR)
   24 
   25 .NOTPARALLEL:
   26 deploy: deploy-init deploy-appbundle deploy-rnnoise-binary deploy-lib-jitsi-meet deploy-libflac deploy-olm deploy-css deploy-local
   27 
   28 deploy-init:
   29 	rm -fr $(DEPLOY_DIR)
   30 	mkdir -p $(DEPLOY_DIR)
   31 
   32 deploy-appbundle:
   33 	cp \
   34 		$(BUILD_DIR)/app.bundle.min.js \
   35 		$(BUILD_DIR)/app.bundle.min.map \
   36 		$(BUILD_DIR)/do_external_connect.min.js \
   37 		$(BUILD_DIR)/do_external_connect.min.map \
   38 		$(BUILD_DIR)/external_api.min.js \
   39 		$(BUILD_DIR)/external_api.min.map \
   40 		$(BUILD_DIR)/flacEncodeWorker.min.js \
   41 		$(BUILD_DIR)/flacEncodeWorker.min.map \
   42 		$(BUILD_DIR)/device_selection_popup_bundle.min.js \
   43 		$(BUILD_DIR)/device_selection_popup_bundle.min.map \
   44 		$(BUILD_DIR)/dial_in_info_bundle.min.js \
   45 		$(BUILD_DIR)/dial_in_info_bundle.min.map \
   46 		$(BUILD_DIR)/alwaysontop.min.js \
   47 		$(BUILD_DIR)/alwaysontop.min.map \
   48 		$(OUTPUT_DIR)/analytics-ga.js \
   49 		$(BUILD_DIR)/analytics-ga.min.js \
   50 		$(BUILD_DIR)/analytics-ga.min.map \
   51 		$(BUILD_DIR)/video-blur-effect.min.js \
   52 		$(BUILD_DIR)/video-blur-effect.min.map \
   53 		$(BUILD_DIR)/rnnoise-processor.min.js \
   54 		$(BUILD_DIR)/rnnoise-processor.min.map \
   55 		$(BUILD_DIR)/close3.min.js \
   56 		$(BUILD_DIR)/close3.min.map \
   57 		$(DEPLOY_DIR)
   58 
   59 deploy-lib-jitsi-meet:
   60 	cp \
   61 		$(LIBJITSIMEET_DIR)/lib-jitsi-meet.min.js \
   62 		$(LIBJITSIMEET_DIR)/lib-jitsi-meet.min.map \
   63 		$(LIBJITSIMEET_DIR)/lib-jitsi-meet.e2ee-worker.js \
   64 		$(LIBJITSIMEET_DIR)/connection_optimization/external_connect.js \
   65 		$(LIBJITSIMEET_DIR)/modules/browser/capabilities.json \
   66 		$(DEPLOY_DIR)
   67 
   68 deploy-libflac:
   69 	cp \
   70 		$(LIBFLAC_DIR)/libflac4-1.3.2.min.js \
   71 		$(LIBFLAC_DIR)/libflac4-1.3.2.min.js.mem \
   72 		$(DEPLOY_DIR)
   73 
   74 deploy-olm:
   75 	cp \
   76 		$(OLM_DIR)/olm.wasm \
   77 		$(DEPLOY_DIR)
   78 
   79 deploy-rnnoise-binary:
   80 	cp \
   81 		$(RNNOISE_WASM_DIR)/rnnoise.wasm \
   82 		$(DEPLOY_DIR)
   83 
   84 deploy-css:
   85 	$(NODE_SASS) $(STYLES_MAIN) $(STYLES_BUNDLE) && \
   86 	$(CLEANCSS) --skip-rebase $(STYLES_BUNDLE) > $(STYLES_DESTINATION) ; \
   87 	rm $(STYLES_BUNDLE)
   88 
   89 deploy-local:
   90 	([ ! -x deploy-local.sh ] || ./deploy-local.sh)
   91 
   92 .NOTPARALLEL:
   93 dev: deploy-init deploy-css deploy-rnnoise-binary deploy-lib-jitsi-meet deploy-libflac deploy-olm
   94 	$(WEBPACK_DEV_SERVER) --detect-circular-deps
   95 
   96 source-package:
   97 	mkdir -p source_package/jitsi-meet/css && \
   98 	cp -r *.js *.html resources/*.txt connection_optimization favicon.ico fonts images libs static sounds LICENSE lang source_package/jitsi-meet && \
   99 	cp css/all.css source_package/jitsi-meet/css && \
  100 	(cd source_package ; tar cjf ../jitsi-meet.tar.bz2 jitsi-meet) && \
  101 	rm -rf source_package