forked from webglearth/webglearth
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild_weapp.bat
32 lines (22 loc) · 1.75 KB
/
build_weapp.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
@ECHO off
REM This simple batch file can be used to run Closure Compiler on
REM WebGL Earth source files to produce single, optimized .js file.
set PROJECT_ROOT=%CD%
set LIB_ROOT=%PROJECT_ROOT%/closure-library/closure
set LEVEL=ADVANCED_OPTIMIZATIONS
set DEFINE_FLAGS1=--define=goog.DEBUG=false
set DEFINE_FLAGS2=--define=we.CALC_FPS=true
set DEFINE_FLAGS3=--define=weapp.BING_KEY="\"AsLurrtJotbxkJmnsefUYbatUuBkeBTzTL930TvcOekeG8SaQPY9Z5LDKtiuzAOu\""
set DEFINE_FLAGS4=--define=we.scene.MIN_ZOOM=3
set WARNING_FLAGS=--compiler_flags="--summary_detail_level=3" --compiler_flags="--warning_level=VERBOSE" --compiler_flags="--jscomp_warning=deprecated" --compiler_flags="--jscomp_warning=visibility" --compiler_flags="--jscomp_warning=accessControls" --compiler_flags="--jscomp_warning=strictModuleDepCheck" --compiler_flags="--jscomp_warning=missingProperties"
REM --define=goog.DEBUG=true
@ECHO on
set HERE="%CD%"
cd "%PROJECT_ROOT%/we/"
build_shaderbank.py
cd %HERE%
%LIB_ROOT%/bin/build/depswriter.py --root_with_prefix="%PROJECT_ROOT%/we/ ../../../we" --root_with_prefix="%PROJECT_ROOT%/weapp/ ../../../weapp" --output_file="%PROJECT_ROOT%/weapp/deps.js"
%LIB_ROOT%/bin/build/closurebuilder.py --root="%LIB_ROOT%/goog/" --root="%PROJECT_ROOT%/we/" --root="%PROJECT_ROOT%/weapp/" --root="%PROJECT_ROOT%/closure-library/third_party/closure/" --namespace="weapp" --output_mode=compiled --compiler_jar="%PROJECT_ROOT%/compiler.jar" --compiler_flags="--compilation_level=%LEVEL%" --compiler_flags="%DEFINE_FLAGS1%" --compiler_flags="%DEFINE_FLAGS2%" --compiler_flags="%DEFINE_FLAGS3%" --compiler_flags="%DEFINE_FLAGS4%" %WARNING_FLAGS% --output_file="%PROJECT_ROOT%/weapp/index.js"
@ECHO off
REM --compiler_flags="--formatting=PRETTY_PRINT" --compiler_flags="--debug"
PAUSE