blob: 4e5f26d52a39d577da05adc623956dd077ca8078 (
plain)
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
|
Import('env')
common_flash=[\
"godot_flash.cpp",
"os_flash.cpp",
"rasterizer_flash.cpp",
#"dir_access_flash.cpp",
]
abc = env.Command('#platform/flash/Console.abc', '#platform/flash/Console.as',
"""
java -jar $ALCHEMY/usr/lib/asc2.jar -md -strict -optimize -AS3 \
-import $ALCHEMY/usr/lib/builtin.abc \
-import $ALCHEMY/usr/lib/playerglobal.abc \
-import $ALCHEMY/usr/lib/CModule.abc \
-import $ALCHEMY/usr/lib/ISpecialFile.abc \
-import platform/flash/lib/libGL.abc \
platform/flash/Console.as
""")
exe = env.Program('#bin/godot',common_flash, PROGSUFFIX=env['PROGSUFFIX']+".exe")
swf = env.Program('#bin/godot',common_flash, PROGSUFFIX=env['PROGSUFFIX']+".swf", LINKFLAGS=env['LINKFLAGS']+['-emit-swf'])
env.Depends(exe, abc)
env.Depends(swf, abc)
"""
java -jar $ALCHEMY/usr/lib/asc2.jar -md -strict -optimize -AS3 \
-import $ALCHEMY/usr/lib/builtin.abc \
-import $ALCHEMY/usr/lib/playerglobal.abc \
-import $ALCHEMY/usr/lib/CModule.abc \
-import $ALCHEMY/usr/lib/ISpecialFile.abc \
-import ../platform/flash/lib/libGL.abc \
../platform/flash/Console.as
"""
|