godot/platform/flash/SCsub
Juan Linietsky f2a068984c -run script in editor
-add search docs dialog that returns places string was found
-added flash
2014-02-20 23:01:44 -03:00

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
"""