2014-02-10 09:10:30 +08:00
|
|
|
Import('env')
|
|
|
|
|
|
|
|
javascript_files = [
|
|
|
|
"os_javascript.cpp",
|
|
|
|
"audio_driver_javascript.cpp",
|
|
|
|
"javascript_main.cpp"
|
|
|
|
]
|
|
|
|
|
|
|
|
#obj = env.SharedObject('godot_javascript.cpp')
|
|
|
|
|
|
|
|
env_javascript = env.Clone()
|
|
|
|
if env['target'] == "profile":
|
|
|
|
env_javascript.Append(CPPFLAGS=['-DPROFILER_ENABLED'])
|
|
|
|
|
|
|
|
javascript_objects=[]
|
|
|
|
for x in javascript_files:
|
|
|
|
javascript_objects.append( env_javascript.Object( x ) )
|
|
|
|
|
|
|
|
prog = None
|
|
|
|
|
|
|
|
#env_javascript.SharedLibrary("#platform/javascript/libgodot_javascript.so",[javascript_objects])
|
|
|
|
|
2014-10-07 12:31:49 +08:00
|
|
|
env.Program('#bin/godot',javascript_objects,PROGSUFFIX=env["PROGSUFFIX"]+".html")
|