copy android kernel files, use proper arch name in the sub-directory

This commit is contained in:
Laurent Sansonetti
2014-01-10 17:50:06 +01:00
parent b0435cfb47
commit bd68f2c299

View File

@@ -425,15 +425,16 @@ end
# TODO - merge to main task # TODO - merge to main task
ANDROID_API_PACKAGES = %w{java android} ANDROID_API_PACKAGES = %w{java android}
ANDROID_ARCHS = ['armv5'] # XXX add more targets?
task :android do task :android do
ANDROID_API_VERSIONS.each do |api_vers| ANDROID_API_VERSIONS.each do |api_vers|
# Copy runtime library # Copy runtime library and kernel file
archs = %w{arm} ANDROID_ARCHS.each do |arch|
archs.each do |arch| dest_lib_path = "android/#{api_vers}/#{arch}"
vm_lib_path = "../vm/android-#{api_vers}-#{arch}.objs/librubymotion-static.a"
dest_lib_path = "android/#{api_vers}/arm"
mkdir_p dest_lib_path mkdir_p dest_lib_path
cp vm_lib_path, dest_lib_path vm_objs_dir = "../vm/android-#{api_vers}-#{arch}.objs"
cp "#{vm_objs_dir}/librubymotion-static.a", dest_lib_path
cp "#{vm_objs_dir}/kernel-#{arch}.bc", dest_lib_path
end end
# Generate .bridgesupport files # Generate .bridgesupport files