[DEBUG] correct the android build dependency order'

This commit is contained in:
Edouard DUPIN 2016-08-01 00:28:18 +02:00
parent beb97f4bed
commit 8fa25bb8ec
4 changed files with 9 additions and 7 deletions

View File

@ -70,8 +70,7 @@ def compile(file, binary, target, depancy, flags, path, name, basic_path, module
target.cc,
"-o", file_dst,
target.arch,
target.sysroot,
target.global_include_cc]
target.sysroot]
for view in ["export", "local"]:
try:
cmd.append(tools.add_prefix("-I", path[view]["c"]))
@ -81,6 +80,7 @@ def compile(file, binary, target, depancy, flags, path, name, basic_path, module
cmd.append(tools.add_prefix("-I", depancy.path["c"]))
except:
pass
cmd.append(target.global_include_cc)
try:
cmd.append(get_version_compilation_flags(flags, depancy.flags))
except:

View File

@ -75,8 +75,7 @@ def compile(file, binary, target, depancy, flags, path, name, basic_path, module
target.xx,
"-o", file_dst,
target.arch,
target.sysroot,
target.global_include_cc
target.sysroot
]
for view in ["export", "local"]:
for type in ["c", "c++"]:
@ -89,6 +88,7 @@ def compile(file, binary, target, depancy, flags, path, name, basic_path, module
cmd.append(tools.add_prefix("-I",depancy.path[type]))
except:
pass
cmd.append(target.global_include_cc)
try:
cmd.append(get_version_compilation_flags(flags, depancy.flags))
except:

View File

@ -65,8 +65,7 @@ def compile(file, binary, target, depancy, flags, path, name, basic_path, module
target.cc,
"-o", file_dst,
target.arch,
target.sysroot,
target.global_include_cc]
target.sysroot]
for view in ["export", "local"]:
try:
cmd.append(tools.add_prefix("-I", path[view]["c"]))
@ -76,6 +75,7 @@ def compile(file, binary, target, depancy, flags, path, name, basic_path, module
cmd.append(tools.add_prefix("-I", depancy.path["c"]))
except:
pass
cmd.append(target.global_include_cc)
try:
cmd.append(target.global_flags["c"])
except:

View File

@ -174,13 +174,15 @@ class Target(target.Target):
# -----------------------
self.add_flag("c", [
"-mfpu=neon",
"-march=armv7-a",
"-mfloat-abi=softfp",
"-D__ARM_ARCH_7__",
"-D__ARM_NEON__"
])
self.add_flag("link", [
"-mfpu=neon",
"-mfloat-abi=softfp"
"-mfloat-abi=softfp",
"-Wl,--fix-cortex-a8",
])
# the -mthumb must be set for all the android produc, some ot the not work coretly without this one ... (all android code is generated with this flags)