android/build.py: add -Iroot/include and -Lroot/lib
Allow library auto-detection without pkg-config.
This commit is contained in:
parent
4dcf0b8ae0
commit
25977d56c8
|
@ -79,8 +79,8 @@ def select_toolchain(use_cxx, use_clang):
|
||||||
|
|
||||||
cflags = '-Os -g ' + target_arch
|
cflags = '-Os -g ' + target_arch
|
||||||
cxxflags = '-Os -g ' + target_arch
|
cxxflags = '-Os -g ' + target_arch
|
||||||
cppflags = '--sysroot=' + target_root
|
cppflags = '--sysroot=' + target_root + ' -I' + root_path + '/include'
|
||||||
ldflags = '--sysroot=' + target_root
|
ldflags = '--sysroot=' + target_root + ' -L' + root_path + '/lib'
|
||||||
libs = ''
|
libs = ''
|
||||||
|
|
||||||
if use_cxx:
|
if use_cxx:
|
||||||
|
|
Loading…
Reference in New Issue