Commit 07c35de3 authored by crimsonwoods's avatar crimsonwoods

Implement 'ldflags'.

This is the first step of implementing 'ldflags'.
parent c38a2718
...@@ -164,7 +164,25 @@ Set ANDROID_NDK_HOME environment variable or set :ndk_home parameter ...@@ -164,7 +164,25 @@ Set ANDROID_NDK_HOME environment variable or set :ndk_home parameter
end end
def ldflags def ldflags
%W(-D__android__ -mandroid --sysroot="#{sysroot}") flags = []
case toolchain
when :gcc
flags = %W(-D__android__ -mandroid --sysroot="#{sysroot}")
case arch
when /arm64/
flags += %W() #add required flags
when /armeabi/
flags += %W() #add required flags
when /mips64/
flags += %W() #add required flags
when /mips/
flags += %W() #add required flags
when /x86_64/
flags += %W() #add required flags
when /x86/
flags += %W() #add required flags
end
end
end end
def ar def ar
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment