8cab401d08
-=-=-=-=-=-=-=-=-=-=-=-=-=- 3D Physics: -Fixed "Bounce" parameter in 3D -Fixed bug affecting Area (sometims it would not detect properly) -Vehicle Body has seen heavy work -Added Query API for doing space queries in 3D. Needs some docs though. -Added JOINTS! Adapted Bullet Joints: and created easy gizmos for setting them up: -PinJoint -HingeJoint (with motor) -SliderJoint -ConeTwistJoint -Generic6DOFJoint -Added OBJECT PICKING! based on the new query API. Any physics object now (Area or Body) has the following signals and virtual functions: -input_event (mouse or multitouch input over the body) -mouse_enter (mouse entered the body area) -mouse_exit (mouse exited body area) For Area it needs to be activated manually, as it isn't by default (ray goes thru). Other: -Begun working on Windows 8 (RT) port. Compiles but does not work yet. -Added TheoraPlayer library for improved to-texture and portable video support. -Fixed a few bugs in the renderer, collada importer, collada exporter, etc.
71 lines
1.7 KiB
Text
71 lines
1.7 KiB
Text
import shutil
|
|
|
|
Import('env')
|
|
|
|
android_files = [
|
|
|
|
'os_android.cpp',
|
|
'godot_android.cpp',
|
|
'file_access_android.cpp',
|
|
'dir_access_android.cpp',
|
|
'audio_driver_opensl.cpp',
|
|
'file_access_jandroid.cpp',
|
|
'dir_access_jandroid.cpp',
|
|
'thread_jandroid.cpp',
|
|
'audio_driver_jandroid.cpp',
|
|
'ifaddrs_android.cpp',
|
|
'android_native_app_glue.c',
|
|
'java_glue.cpp',
|
|
'cpu-features.c',
|
|
'java_class_wrapper.cpp'
|
|
]
|
|
|
|
#env.Depends('#core/math/vector3.h', 'vector3_psp.h')
|
|
|
|
#obj = env.SharedObject('godot_android.cpp')
|
|
|
|
env_android = env.Clone()
|
|
if env['target'] == "profile":
|
|
env_android.Append(CPPFLAGS=['-DPROFILER_ENABLED'])
|
|
|
|
android_objects=[]
|
|
for x in android_files:
|
|
android_objects.append( env_android.SharedObject( x ) )
|
|
|
|
prog = None
|
|
|
|
abspath=env.Dir(".").abspath
|
|
|
|
|
|
pp_basein = open(abspath+"/project.properties.template","rb")
|
|
pp_baseout = open(abspath+"/java/project.properties","wb")
|
|
pp_baseout.write( pp_basein.read() )
|
|
|
|
refcount=1
|
|
|
|
for x in env.android_source_modules:
|
|
pp_baseout.write("android.library.reference."+str(refcount)+"="+x+"\n")
|
|
refcount+=1
|
|
|
|
|
|
|
|
pp_baseout.close()
|
|
|
|
|
|
pp_basein = open(abspath+"/AndroidManifest.xml.template","rb")
|
|
pp_baseout = open(abspath+"/java/AndroidManifest.xml","wb")
|
|
manifest = pp_basein.read()
|
|
manifest = manifest.replace("$$ADD_APPLICATION_CHUNKS$$",env.android_manifest_chunk)
|
|
pp_baseout.write( manifest )
|
|
|
|
|
|
for x in env.android_source_files:
|
|
shutil.copy(x,abspath+"/java/src/com/android/godot")
|
|
|
|
for x in env.android_module_libraries:
|
|
shutil.copy(x,abspath+"/java/libs")
|
|
|
|
|
|
env_android.SharedLibrary("#platform/android/libgodot_android.so",[android_objects])
|
|
|
|
env.Command('#bin/libgodot_android.so', '#platform/android/libgodot_android.so', Copy('bin/libgodot_android.so', 'platform/android/libgodot_android.so'))
|