blob: 966bfa530c3925867b5e5f1b41b0ca38bdea71c6 [file] [log] [blame]
Jens Geyerbd52f1a2014-07-28 01:25:30 +02001@echo off
2rem /*
3rem * Licensed to the Apache Software Foundation (ASF) under one
4rem * or more contributor license agreements. See the NOTICE file
5rem * distributed with this work for additional information
6rem * regarding copyright ownership. The ASF licenses this file
7rem * to you under the Apache License, Version 2.0 (the
8rem * "License"); you may not use this file except in compliance
9rem * with the License. You may obtain a copy of the License at
10rem *
11rem * http://www.apache.org/licenses/LICENSE-2.0
12rem *
13rem * Unless required by applicable law or agreed to in writing,
14rem * software distributed under the License is distributed on an
15rem * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16rem * KIND, either express or implied. See the License for the
17rem * specific language governing permissions and limitations
18rem * under the License.
19rem */
20
21setlocal
22if "%HOMEDRIVE%"=="" goto MISSINGVARS
23if "%HOMEPATH%"=="" goto MISSINGVARS
24if "%HAXEPATH%"=="" goto NOTINSTALLED
25
26set path=%HAXEPATH%;%HAXEPATH%\..\neko;%path%
27
28rem # invoke Thrift comnpiler
29thrift -r -gen haxe ..\ThriftTest.thrift
30if errorlevel 1 goto STOP
31
32rem # invoke Haxe compiler for all targets
Jens Geyer2dcefad2021-02-25 09:42:52 +010033rd .buildtemp /S /Q
Jens Geyerbd52f1a2014-07-28 01:25:30 +020034for %%a in (*.hxml) do (
Jens Geyer2dcefad2021-02-25 09:42:52 +010035 echo --------------------------
36 echo Building %%a ...
37 echo --------------------------
38 haxe --cwd . %%a
39 if not exist ".buildtemp" mkdir ".buildtemp"
40 move bin ".buildtemp\%%a"
41 if errorlevel 1 pause
Jens Geyerbd52f1a2014-07-28 01:25:30 +020042)
43
Jens Geyer2dcefad2021-02-25 09:42:52 +010044rd bin /S /Q
45rename .buildtemp bin
Jens Geyerbd52f1a2014-07-28 01:25:30 +020046
47echo.
48echo done.
49pause
50goto eof
51
52:NOTINSTALLED
53echo FATAL: Either Haxe is not installed, or the HAXEPATH variable is not set.
54pause
55goto eof
56
57:MISSINGVARS
58echo FATAL: Unable to locate home folder.
59echo.
60echo Both HOMEDRIVE and HOMEPATH need to be set to point to your Home folder.
61echo The current values are:
62echo HOMEDRIVE=%HOMEDRIVE%
63echo HOMEPATH=%HOMEPATH%
64pause
65goto eof
66
67:STOP
68pause
69goto eof
70
71:eof