godot/platform/flash/SCsub

42 lines
1.1 KiB
Plaintext

Import('env')
common_flash=[\
"godot_flash.cpp",
"os_flash.cpp",
"rasterizer_flash.cpp",
#"dir_access_flash.cpp",
]
print("** path is ", env['ENV']['PATH'])
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
"""