Jens Geyer | fea00ac | 2014-10-01 02:22:48 +0200 | [diff] [blame] | 1 | @echo off |
| 2 | rem /* |
| 3 | rem * Licensed to the Apache Software Foundation (ASF) under one |
| 4 | rem * or more contributor license agreements. See the NOTICE file |
| 5 | rem * distributed with this work for additional information |
| 6 | rem * regarding copyright ownership. The ASF licenses this file |
| 7 | rem * to you under the Apache License, Version 2.0 (the |
| 8 | rem * "License"); you may not use this file except in compliance |
| 9 | rem * with the License. You may obtain a copy of the License at |
| 10 | rem * |
| 11 | rem * http://www.apache.org/licenses/LICENSE-2.0 |
| 12 | rem * |
| 13 | rem * Unless required by applicable law or agreed to in writing, |
| 14 | rem * software distributed under the License is distributed on an |
| 15 | rem * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| 16 | rem * KIND, either express or implied. See the License for the |
| 17 | rem * specific language governing permissions and limitations |
| 18 | rem * under the License. |
| 19 | rem */ |
| 20 | |
| 21 | setlocal |
| 22 | if "%HOMEDRIVE%"=="" goto MISSINGVARS |
| 23 | if "%HOMEPATH%"=="" goto MISSINGVARS |
| 24 | if "%HAXEPATH%"=="" goto NOTINSTALLED |
| 25 | |
| 26 | set path=%HAXEPATH%;%HAXEPATH%\..\neko;%path% |
| 27 | |
| 28 | rem # invoke Thrift comnpiler |
Jens Geyer | e5ff9a8 | 2014-11-11 01:39:38 +0100 | [diff] [blame] | 29 | thrift -r -gen haxe ..\..\..\test\ThriftTest.thrift |
Jens Geyer | 7628392 | 2022-06-11 14:24:33 +0200 | [diff] [blame^] | 30 | thrift -r -gen haxe ..\..\..\test\ConstantsDemo.thrift |
Jens Geyer | e5ff9a8 | 2014-11-11 01:39:38 +0100 | [diff] [blame] | 31 | thrift -r -gen haxe ..\..\..\contrib\async-test\aggr.thrift |
| 32 | thrift -r -gen haxe ..\..\..\lib\rb\benchmark\Benchmark.thrift |
Jens Geyer | fea00ac | 2014-10-01 02:22:48 +0200 | [diff] [blame] | 33 | if errorlevel 1 goto STOP |
| 34 | |
| 35 | rem # invoke Haxe compiler for all targets |
| 36 | for %%a in (*.hxml) do ( |
| 37 | rem * filter Python, as it is not supported by Haxe 3.1.3 (but will be in 3.1.4) |
| 38 | if not "%%a"=="python.hxml" ( |
| 39 | echo -------------------------- |
| 40 | echo Building %%a ... |
| 41 | echo -------------------------- |
| 42 | haxe --cwd . %%a |
| 43 | ) |
| 44 | ) |
| 45 | |
| 46 | |
| 47 | echo. |
| 48 | echo done. |
| 49 | pause |
| 50 | goto eof |
| 51 | |
| 52 | :NOTINSTALLED |
| 53 | echo FATAL: Either Haxe is not installed, or the HAXEPATH variable is not set. |
| 54 | pause |
| 55 | goto eof |
| 56 | |
| 57 | :MISSINGVARS |
| 58 | echo FATAL: Unable to locate home folder. |
| 59 | echo. |
| 60 | echo Both HOMEDRIVE and HOMEPATH need to be set to point to your Home folder. |
| 61 | echo The current values are: |
| 62 | echo HOMEDRIVE=%HOMEDRIVE% |
| 63 | echo HOMEPATH=%HOMEPATH% |
| 64 | pause |
| 65 | goto eof |
| 66 | |
| 67 | :STOP |
| 68 | pause |
| 69 | goto eof |
| 70 | |
| 71 | :eof |