-
Notifications
You must be signed in to change notification settings - Fork 10
/
README
130 lines (83 loc) · 4.7 KB
/
README
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
Apache Royale Typedefs
====================
These Apache Royale Typedefs are libraries that contain ActionScript class
definitions for popular JavaScript Libraries like Google Closure, JQuery
and more.
Many of these libraries are created by starting with what the Google Closure
Compiler refers to as "externs" but are also referred to as "typedefs". These
are custom JavaScript files that don't contain runnable code and instead contain
"JSDOc" and function and variable declarations for an API of a JavaScript library.
The Royale Compiler has a compiler called EXTERNC that compiles these externs
into ActionScript, then the Royale Compiler's COMPC compiler turns that into
ActionScript Libraries (SWCs).
Getting the latest sources via git
==================================
Getting the source code is the recommended way to get the Apache Royale Typedefs.
The typedefs can also be installed by installing an Apache Royale SDK via NPM
or by unpacking Apache Royale binary distributions available from link on our
website at http://royale.apache.org/.
You can always checkout the latest source via git using the following
command:
git clone https://github.com/apache/royale-typedefs.git royale-typedefs
cd royale-typedefs
git checkout develop
Building the Apache Royale Typedefs
=================================
The Apache Royale Typedefs require the Apache Royale Compiler.
You can build the Apache Royale Typedefs with Apache Maven or Apache Ant.
Building the Apache Royale Typedefs with Apache Maven
-----------------------------------------------------
Before building the Apache Royale Typedefs with Apache Maven you must install
the following software.
==================================================================================
SOFTWARE
==================================================================================
Java SDK 11 or greater (*1)
Maven 3.8.1 or greater (*1)
==================================================================================
*1) The bin directories for Maven and Java should be added to your
PATH.
Then run
mvn clean install
Building the Apache Royale Typedefs with Ant
----------------------------------------------
Before building the Apache Royale Typedefs with Apache Ant you must install
the following software and set the corresponding environment variables using
absolute file paths. Relative file paths will result in build errors.
==================================================================================
SOFTWARE ENVIRONMENT VARIABLE (absolute paths)
==================================================================================
Java SDK 11 or greater (*1) JAVA_HOME
Ant 1.8 or greater (*1) ANT_HOME
==================================================================================
*1) The bin directories for ANT_HOME and JAVA_HOME should be added to your
PATH.
On Windows, set PATH to
PATH=%PATH%;%ANT_HOME%\bin;%JAVA_HOME%\bin
On the Mac (bash), set PATH to
export PATH="$PATH:$ANT_HOME/bin:$JAVA_HOME/bin"
On Linux make sure you path include ANT_HOME and JAVA_HOME.
Once you've done that, use
ant main (or just ant since the default target is main)
to download the third-party dependencies and build the source and run
some tests. Since the third-party dependencies take a little while to
download and they don't change very often, they are not cleaned with
the regular clean target.
To clean the build of everything other than the downloaded third-party
dependencies use
ant clean
To clean the build, of everything, including the downloaded third-party
dependencies use
ant wipe (which is just thirdparty-clean followed by clean)
To get a brief listing of all the targets type
ant -projecthelp
Using the Apache Royale Typedefs
=================================
Because the typedef libraries only contain classes, interfaces, constants, top-level
variables and functions, and don't contain runnable code, they must be placed on the
external-library-path when compiling a Royale application.
The typedefs libraries are packaged into a Royale SDK and are set on the
external-library-path by various config.xml files in a Royale SDK.
Thanks for using Apache Royale. Enjoy!
The Apache Royale Project
<http://royale.apache.org>