Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mruby
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
mruby
Commits
887ebb8c
Commit
887ebb8c
authored
Mar 09, 2013
by
crimsonwoods
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
more CFLAGS and LDFLAGS are specified automatically.
parent
e63425a8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
2 deletions
+22
-2
tasks/toolchains/androideabi.rake
tasks/toolchains/androideabi.rake
+22
-2
No files found.
tasks/toolchains/androideabi.rake
View file @
887ebb8c
...
...
@@ -25,6 +25,7 @@ MRuby::Toolchain.new(:androideabi) do |conf|
ANDROID_NDK_HOME
=
ENV
[
'ANDROID_NDK_HOME'
]
ANDROID_TARGET_ARCH
=
ENV
[
'ANDROID_TARGET_ARCH'
]
||
DEFAULT_ANDROID_TARGET_ARCH
ANDROID_TARGET_ARCH_ABI
=
ENV
[
'ANDROID_TARGET_ARCH_ABI'
]
||
DEFAULT_ANDROID_TARGET_ARCH_ABI
ANDROID_TOOLCHAIN
=
ENV
[
'ANDROID_TOOLCHAIN'
]
||
DEFAULT_ANDROID_TOOLCHAIN
case
ANDROID_TARGET_ARCH
.
downcase
...
...
@@ -79,13 +80,32 @@ MRuby::Toolchain.new(:androideabi) do |conf|
SYSROOT
=
path_to_sysroot
case
ANDROID_TARGET_ARCH
.
downcase
when
'arch-arm'
,
'arm'
then
if
ANDROID_TARGET_ARCH_ABI
.
downcase
==
'armeabi-v7a'
then
ARCH_CFLAGS
=
%W(-march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16)
ARCH_LDFLAGS
=
%W(-march=armv7-a -Wl,--fix-cortex-a8)
else
ARCH_CFLAGS
=
%W(-march=armv5te -mtune=xscale -msoft-float)
ARCH_LDFLAGS
=
%W()
end
when
'arch-x86'
,
'x86'
then
ARCH_CFLAGS
=
%W()
ARCH_LDFLAGS
=
%W()
when
'arch-mips'
,
'mips'
then
ARCH_CFLAGS
=
%W(-fpic -fno-strict-aliasing -finline-functions -fmessage-length=0 -fno-inline-functions-called-once -fgcse-after-reload -frerun-cse-after-loop -frename-registers)
ARCH_LDFLAGS
=
%W()
else
# Notify error
end
case
ANDROID_TOOLCHAIN
.
downcase
when
'gcc'
then
ANDROID_CC
=
path_to_toolchain
+
'/bin/'
+
toolchain_prefix
+
'gcc'
ANDROID_LD
=
path_to_toolchain
+
'/bin/'
+
toolchain_prefix
+
'gcc'
ANDROID_AR
=
path_to_toolchain
+
'/bin/'
+
toolchain_prefix
+
'ar'
ANDROID_CFLAGS
=
GCC_COMMON_CFLAGS
+
%W(-mandroid --sysroot=
#{
SYSROOT
}
)
ANDROID_LDFLAGS
=
GCC_COMMON_LDFLAGS
+
%W(-mandroid --sysroot=
#{
SYSROOT
}
)
ANDROID_CFLAGS
=
GCC_COMMON_CFLAGS
+
%W(-mandroid --sysroot=
#{
SYSROOT
}
)
+
ARCH_CFLAGS
ANDROID_LDFLAGS
=
GCC_COMMON_LDFLAGS
+
%W(-mandroid --sysroot=
#{
SYSROOT
}
)
+
ARCH_LDFLAGS
when
'clang'
then
# clang is not supported yet.
when
'clang31'
,
'clang3.1'
then
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment