Reversed order for CPPATH

This commit is contained in:
Ivan Kravets
2015-05-25 13:18:52 +03:00
parent 146d430695
commit a1bb98fd5c

View File

@ -288,17 +288,15 @@ def BuildDependentLibraries(env, src_dir): # pylint: disable=R0914
# end internal prototypes # end internal prototypes
deplibs = _get_dep_libs(src_dir) deplibs = _get_dep_libs(src_dir)
env.Prepend( for l, ld in deplibs:
CPPPATH=[join("$BUILD_DIR", l) for (l, _) in deplibs] env.Prepend(
) CPPPATH=[join("$BUILD_DIR", l)]
)
# add automatically "utility" dir from the lib (Arduino issue) # add automatically "utility" dir from the lib (Arduino issue)
env.Prepend( if isdir(join(ld, "utility")):
CPPPATH=[ env.Prepend(
join("$BUILD_DIR", l, "utility") for (l, ld) in deplibs CPPPATH=[join("$BUILD_DIR", l, "utility")]
if isdir(join(ld, "utility")) )
]
)
libs = [] libs = []
for (libname, inc_dir) in deplibs: for (libname, inc_dir) in deplibs: