xerces does not depend on SDL, so not rebuilt when libSDL version changes

This commit is contained in:
pelya
2010-10-19 17:14:30 +03:00
parent 105ddf3627
commit 23575576ca
2 changed files with 10 additions and 2 deletions

View File

@@ -6,7 +6,7 @@ XERCES_SUBDIRS := $(patsubst $(LOCAL_PATH)/%, %, $(shell find $(LOCAL_PATH)/src/
LOCAL_MODULE := xerces
LOCAL_CFLAGS := -DHAVE_CONFIG_H -I$(LOCAL_PATH) -I$(LOCAL_PATH)/src -I$(LOCAL_PATH)/.. -I$(LOCAL_PATH)/../sdl-$(SDL_VERSION)/include
LOCAL_CFLAGS := -DHAVE_CONFIG_H -I$(LOCAL_PATH) -I$(LOCAL_PATH)/src -I$(LOCAL_PATH)/..
LOCAL_CPP_EXTENSION := .cpp

View File

@@ -7,7 +7,15 @@
extern "C" {
#endif
#include <SDL.h>
// #include <SDL.h> // We'll have to rebuild xerces if we'll include this file and change SDL version, so just provide declarations here
typedef struct _SDL_iconv_t *SDL_iconv_t;
extern SDL_iconv_t SDL_iconv_open(const char *tocode, const char *fromcode);
extern int SDL_iconv_close(SDL_iconv_t cd);
extern size_t SDL_iconv(SDL_iconv_t cd, const char **inbuf, size_t *inbytesleft, char **outbuf, size_t *outbytesleft);
extern char * SDL_iconv_string(const char *tocode, const char *fromcode, const char *inbuf, size_t inbytesleft);
#define iconv_t SDL_iconv_t
#define iconv SDL_iconv
#define iconv_open SDL_iconv_open