From 8ad2a3af80022fddbf98ac4af7286d9ddaf565f9 Mon Sep 17 00:00:00 2001 From: Mathias Agopian Date: Tue, 2 Apr 2013 15:29:13 -0700 Subject: [PATCH] update include paths and symbols for eclipse - we define __SIZE_TYPE__ and __PTRDIFF_TYPE__ in symbols because for some reason Eclipse barfs on stddef.h otherwise. This seems to solve the problem entirely. - removed symbols for HAVE_xxx because those should come from AndroidConfig.h NOTE: make sure to set ${ProjDirPath}/build/core/combo/include/arch/linux-arm/AndroidConfig.h in Eclipse's "Paths and Symbols" / "Include Files" tab. This tab is NOT shown by default, it needs to be enabled in the global preference panel under "C/C++" / "Property Pages Settings". As far as I can tell this setting is not exportable. Change-Id: I1aa185b4b3564118cb9da19b2f932b7b37b81167 --- ide/eclipse/android-include-paths.xml | 15 ++++- ide/eclipse/android-symbols.xml | 81 ++++++++++++++++++--------- 2 files changed, 66 insertions(+), 30 deletions(-) diff --git a/ide/eclipse/android-include-paths.xml b/ide/eclipse/android-include-paths.xml index 7aee69ee7..be188bd47 100644 --- a/ide/eclipse/android-include-paths.xml +++ b/ide/eclipse/android-include-paths.xml @@ -5,6 +5,7 @@ +${ProjDirPath}/prebuilts/gcc/darwin-x86/arm/arm-eabi-4.7/lib/gcc/arm-eabi/4.7/include ${ProjDirPath}/build/core/combo/include/arch/linux-arm ${ProjDirPath}/system/core/include ${ProjDirPath}/bionic/libc/arch-arm/include @@ -27,10 +28,13 @@ ${ProjDirPath}/external/skia/include ${ProjDirPath}/external/skia/include/core ${ProjDirPath}/libnativehelper/include/nativehelper -${ProjDirPath}/prebuilts/gcc/darwin-x86/arm/arm-linux-androideabi-4.6/lib/gcc/arm-linux-androideabi/4.6.x-google/include +${ProjDirPath}/system/core/include/arch/linux-arm +${ProjDirPath}/dalvik/libnativehelper/include +${ProjDirPath}/dalvik/libnativehelper/include/nativehelper +${ProjDirPath}/prebuilts/gcc/darwin-x86/arm/arm-eabi-4.7/lib/gcc/arm-eabi/4.7/include ${ProjDirPath}/build/core/combo/include/arch/linux-arm ${ProjDirPath}/system/core/include ${ProjDirPath}/bionic/libc/arch-arm/include @@ -53,10 +57,13 @@ ${ProjDirPath}/external/skia/include ${ProjDirPath}/external/skia/include/core ${ProjDirPath}/libnativehelper/include/nativehelper -${ProjDirPath}/prebuilts/gcc/darwin-x86/arm/arm-linux-androideabi-4.6/lib/gcc/arm-linux-androideabi/4.6.x-google/include +${ProjDirPath}/system/core/include/arch/linux-arm +${ProjDirPath}/dalvik/libnativehelper/include +${ProjDirPath}/dalvik/libnativehelper/include/nativehelper +${ProjDirPath}/prebuilts/gcc/darwin-x86/arm/arm-eabi-4.7/lib/gcc/arm-eabi/4.7/include ${ProjDirPath}/build/core/combo/include/arch/linux-arm ${ProjDirPath}/system/core/include ${ProjDirPath}/bionic/libc/arch-arm/include @@ -79,7 +86,9 @@ ${ProjDirPath}/external/skia/include ${ProjDirPath}/external/skia/include/core ${ProjDirPath}/libnativehelper/include/nativehelper -${ProjDirPath}/prebuilts/gcc/darwin-x86/arm/arm-linux-androideabi-4.6/lib/gcc/arm-linux-androideabi/4.6.x-google/include +${ProjDirPath}/system/core/include/arch/linux-arm +${ProjDirPath}/dalvik/libnativehelper/include +${ProjDirPath}/dalvik/libnativehelper/include/nativehelper diff --git a/ide/eclipse/android-symbols.xml b/ide/eclipse/android-symbols.xml index 3fae03fbb..f503a6d6b 100644 --- a/ide/eclipse/android-symbols.xml +++ b/ide/eclipse/android-symbols.xml @@ -6,9 +6,6 @@ -HAVE_ANDROID_OS1 - - NDEBUG1 @@ -21,24 +18,33 @@ __OPTIMIZE__1 -HAVE_FUTEX1 - - -HAVE_PTHREADS1 - - EGL_TRACE1 LOG_TAG"tag" + +__STDC_HOSTED__1 + + +USE_OPENGL_RENDERER1 + + +__STDC__1 + + +__ANDROID__1 + + +__SIZE_TYPE__unsigned int + + +__PTRDIFF_TYPE__int + -HAVE_ANDROID_OS1 - - NDEBUG1 @@ -51,24 +57,33 @@ __OPTIMIZE__1 -HAVE_FUTEX1 - - -HAVE_PTHREADS1 - - EGL_TRACE1 LOG_TAG"tag" + +__STDC_HOSTED__1 + + +USE_OPENGL_RENDERER1 + + +__STDC__1 + + +__ANDROID__1 + + +__SIZE_TYPE__unsigned int + + +__PTRDIFF_TYPE__int + -HAVE_ANDROID_OS1 - - NDEBUG1 @@ -81,17 +96,29 @@ __OPTIMIZE__1 -HAVE_FUTEX1 - - -HAVE_PTHREADS1 - - EGL_TRACE1 LOG_TAG"tag" + +__STDC_HOSTED__1 + + +USE_OPENGL_RENDERER1 + + +__STDC__1 + + +__ANDROID__1 + + +__SIZE_TYPE__unsigned int + + +__PTRDIFF_TYPE__int +