From 0f2c6e0d3ba5a37dd9c16fe6c20ab0fdfc79298f Mon Sep 17 00:00:00 2001 From: Jean-Michel Trivi Date: Fri, 24 Apr 2015 17:14:02 -0700 Subject: Fix mac build: do not hardcode linux paths Change-Id: I70996fcbc0c0d60c51fde207dfd8cae25265c79b --- bindings/python/Android.mk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bindings/python/Android.mk b/bindings/python/Android.mk index 977ffb7..fa5b7b8 100644 --- a/bindings/python/Android.mk +++ b/bindings/python/Android.mk @@ -48,7 +48,7 @@ LOCAL_SHARED_LIBRARIES := libparameter_host LOCAL_STATIC_LIBRARIES := libxmlserializer_host LOCAL_C_INCLUDES := \ - prebuilts/python/linux-x86/2.7.5/include/python2.7 \ + prebuilts/python/$(HOST_PREBUILT_TAG)/2.7.5/include/python2.7 \ $(HOST_OUT_HEADERS)/parameter # The 'unused-but-set-variable' warning must be disabled because SWIG generates @@ -82,7 +82,7 @@ $(generated-sources-dir)/pfw_wrap.cxx: $(LOCAL_PATH)/pfw.i @echo "Generating Python binding files" mkdir -p $(dir $@) # surprisingly, path is not generated by build system mkdir -p $(HOST_LIBRARY_PATH) - prebuilts/misc/linux-x86_64/swig/swig \ + prebuilts/misc/$(HOST_OS)-$(HOST_ARCH)/swig/swig \ -Iprebuilts/misc/common/swig/include/2.0.11/python/ \ -Iprebuilts/misc/common/swig/include/2.0.11/ \ -Wall -Werror -v -python -c++ -outdir $(HOST_LIBRARY_PATH)/ -o $@ $^ -- cgit v1.1