summaryrefslogtreecommitdiff
path: root/scripts/build-d8.bat
diff options
context:
space:
mode:
authorBen Smith <binji@chromium.org>2016-03-12 17:47:21 -0800
committerBen Smith <binji@chromium.org>2016-03-12 20:45:00 -0800
commitd792fbeb9cc851b07693784218ff764fcf5b0a15 (patch)
tree504c8e33ad2d5794bc6266dfba903f073496f751 /scripts/build-d8.bat
parent5412aba9830d022827ddb60ba8b5f154ec7bed1d (diff)
downloadwabt-d792fbeb9cc851b07693784218ff764fcf5b0a15.tar.gz
wabt-d792fbeb9cc851b07693784218ff764fcf5b0a15.tar.bz2
wabt-d792fbeb9cc851b07693784218ff764fcf5b0a15.zip
add build-d8.bat file for building on Windows
Diffstat (limited to 'scripts/build-d8.bat')
-rw-r--r--scripts/build-d8.bat43
1 files changed, 43 insertions, 0 deletions
diff --git a/scripts/build-d8.bat b/scripts/build-d8.bat
new file mode 100644
index 00000000..afdd9da0
--- /dev/null
+++ b/scripts/build-d8.bat
@@ -0,0 +1,43 @@
+@echo off
+rem
+rem Copyright 2016 WebAssembly Community Group participants
+rem
+rem Licensed under the Apache License, Version 2.0 (the "License");
+rem you may not use this file except in compliance with the License.
+rem You may obtain a copy of the License at
+rem
+rem http://www.apache.org/licenses/LICENSE-2.0
+rem
+rem Unless required by applicable law or agreed to in writing, software
+rem distributed under the License is distributed on an "AS IS" BASIS,
+rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+rem See the License for the specific language governing permissions and
+rem limitations under the License.
+rem
+
+setlocal
+
+set CONFIG=Release
+
+if "%1" == "/Debug" (
+ set CONFIG=Debug
+)
+
+set SCRIPT_DIR=%~dp0
+set ROOT_DIR=%SCRIPT_DIR%\..
+set V8_DIR=%ROOT_DIR%\third_party\v8
+set DEPOT_TOOLS_DIR=%V8_DIR%\depot_tools
+
+cd %V8_DIR%
+
+if not exist %DEPOT_TOOLS_DIR% (
+ call git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
+)
+
+set PATH=%DEPOT_TOOLS_DIR%;%PATH%
+call gclient sync
+
+cd v8
+set GYP_GENERATORS=ninja
+call python build\gyp_v8 -Dv8_wasm=1
+call ninja -C out\%CONFIG% d8.exe