Skip to content

Commit f819b5a

Browse files
committed
haxe compiletest
1 parent 808d16e commit f819b5a

File tree

4 files changed

+414
-0
lines changed

4 files changed

+414
-0
lines changed
Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<!--
3+
#
4+
# Licensed to the Apache Software Foundation (ASF) under one
5+
# or more contributor license agreements. See the NOTICE file
6+
# distributed with this work for additional information
7+
# regarding copyright ownership. The ASF licenses this file
8+
# to you under the Apache License, Version 2.0 (the
9+
# "License"); you may not use this file except in compliance
10+
# with the License. You may obtain a copy of the License at
11+
#
12+
# http://www.apache.org/licenses/LICENSE-2.0
13+
#
14+
# Unless required by applicable law or agreed to in writing,
15+
# software distributed under the License is distributed on an
16+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17+
# KIND, either express or implied. See the License for the
18+
# specific language governing permissions and limitations
19+
# under the License.
20+
#
21+
-->
22+
<project version="2">
23+
<!-- Output SWF options -->
24+
<output>
25+
<movie outputType="Application" />
26+
<movie input="" />
27+
<movie path="bin\TestOutput.js" />
28+
<movie fps="0" />
29+
<movie width="0" />
30+
<movie height="0" />
31+
<movie version="0" />
32+
<movie minorVersion="0" />
33+
<movie platform="JavaScript" />
34+
<movie background="#FFFFFF" />
35+
</output>
36+
<!-- Other classes to be compiled into your SWF -->
37+
<classpaths>
38+
<class path="src" />
39+
</classpaths>
40+
<!-- Build options -->
41+
<build>
42+
<option directives="" />
43+
<option flashStrict="False" />
44+
<option noInlineOnDebug="False" />
45+
<option mainClass="Main" />
46+
<option enabledebug="False" />
47+
<option additional="" />
48+
</build>
49+
<!-- haxelib libraries -->
50+
<haxelib>
51+
<library name="thrift" />
52+
</haxelib>
53+
<!-- Class files to compile (other referenced classes will automatically be included) -->
54+
<compileTargets>
55+
<compile path="src\Main.hx" />
56+
</compileTargets>
57+
<!-- Paths to exclude from the Project Explorer tree -->
58+
<hiddenPaths>
59+
<hidden path="obj" />
60+
</hiddenPaths>
61+
<!-- Executed before build -->
62+
<preBuildCommand />
63+
<!-- Executed after build -->
64+
<postBuildCommand alwaysRun="False" />
65+
<!-- Other project options -->
66+
<options>
67+
<option showHiddenPaths="False" />
68+
<option testMovie="Webserver" />
69+
<option testMovieCommand="bin/index.html" />
70+
</options>
71+
<!-- Plugin storage -->
72+
<storage />
73+
</project>

lib/haxe/codegen/README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
Prerequisites
2+
----------------------------------------------
3+
- a suitable dcc32.exe must be reachable via normal search path
4+
- the Thrift compiler thrift.exe is searched in this order
5+
- under the `compiler` subdir, where debug is preferred over release
6+
- otherwise via normal search path
7+
8+
How to use the test case:
9+
----------------------------------------------
10+
- run the POSH script
11+
- if any error messages occur, that's a bad sign
12+
- there may be known but unfixed issues, these are listed accordingly
13+
14+
15+
*EOF*

lib/haxe/codegen/html5.hxml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
#
2+
# Licensed to the Apache Software Foundation (ASF) under one
3+
# or more contributor license agreements. See the NOTICE file
4+
# distributed with this work for additional information
5+
# regarding copyright ownership. The ASF licenses this file
6+
# to you under the Apache License, Version 2.0 (the
7+
# "License"); you may not use this file except in compliance
8+
# with the License. You may obtain a copy of the License at
9+
#
10+
# http://www.apache.org/licenses/LICENSE-2.0
11+
#
12+
# Unless required by applicable law or agreed to in writing,
13+
# software distributed under the License is distributed on an
14+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15+
# KIND, either express or implied. See the License for the
16+
# specific language governing permissions and limitations
17+
# under the License.
18+
#
19+
20+
# integrate files to classpath
21+
-cp src
22+
-cp gen-haxe
23+
24+
# this class wil be used as entry point for your app.
25+
-main Main
26+
27+
# libs
28+
-lib uuid
29+
-lib thrift
30+
31+
# add debug information
32+
-debug
33+
34+
# forced compile of all source files
35+
--macro include('thrift', true)
36+
37+
# script output
38+
-js bin/html5/Output.js
39+
40+
# eof

0 commit comments

Comments
 (0)