Skip to content

Commit

Permalink
app.libs is now a Hash (key is architecture)
Browse files Browse the repository at this point in the history
  • Loading branch information
lrz authored and Watson1978 committed Aug 12, 2015
1 parent 7fb36c6 commit 1bee57a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/motion/project/template/android.rb
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@
App.info 'Create', libpayload_path
FileUtils.mkdir_p(File.dirname(libpayload_path))
sh "#{App.config.cc} #{App.config.cflags(arch)} -c \"#{payload_c}\" -o \"#{payload_o}\""
sh "#{App.config.cxx} #{App.config.ldflags(arch)} \"#{payload_o}\" #{ruby_objs.map { |o, _| "\"" + o + "\"" }.join(' ')} -o \"#{libpayload_path}\" #{App.config.ldlibs_pre(arch)} #{App.config.libs.join(' ')} #{App.config.ldlibs_post(arch)}"
sh "#{App.config.cxx} #{App.config.ldflags(arch)} \"#{payload_o}\" #{ruby_objs.map { |o, _| "\"" + o + "\"" }.join(' ')} -o \"#{libpayload_path}\" #{App.config.ldlibs_pre(arch)} #{App.config.libs[App.config.armeabi_directory_name(arch)].join(' ')} #{App.config.ldlibs_post(arch)}"
end

# Copy the gdb server.
Expand Down
2 changes: 1 addition & 1 deletion lib/motion/project/template/android/config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ def initialize(project_dir, build_mode)
@application_class = nil
@theme = "@android:style/Theme.Holo"
@vm_debug_logs = false
@libs = []
@libs = Hash.new([])

if Motion::Project::Config.evaluation?
@archs = ['x86']
Expand Down

0 comments on commit 1bee57a

Please sign in to comment.