mirror of
https://github.com/zhigang1992/RubyMotion.git
synced 2026-04-28 20:55:36 +08:00
copy android kernel files, use proper arch name in the sub-directory
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user