Mercurial > MadButterfly
annotate Android/mb/Android.mk @ 494:ebc431f2af70 Android_Skia
Fix issue of replace realloc and malloc.
Since autoconf always say malloc and realloc are not defined when it is
running for cross-compiling. We use a predefined configure cache file
to hard set for the realloc and malloc.
author | Thinker K.F. Li <thinker@branda.to> |
---|---|
date | Thu, 26 Nov 2009 15:03:00 +0800 |
parents | aebfb7c7de46 |
children | 6fc6061fff58 |
rev | line source |
---|---|
488
aebfb7c7de46
Makefile to build libmbfly.a for Android.
Thinker K.F. Li <thinker@branda.to>
parents:
diff
changeset
|
1 LOCAL_PATH:= $(call my-dir) |
494
ebc431f2af70
Fix issue of replace realloc and malloc.
Thinker K.F. Li <thinker@branda.to>
parents:
488
diff
changeset
|
2 MB_LOCAL_PATH := $(LOCAL_PATH) |
488
aebfb7c7de46
Makefile to build libmbfly.a for Android.
Thinker K.F. Li <thinker@branda.to>
parents:
diff
changeset
|
3 include $(CLEAR_VARS) |
aebfb7c7de46
Makefile to build libmbfly.a for Android.
Thinker K.F. Li <thinker@branda.to>
parents:
diff
changeset
|
4 |
aebfb7c7de46
Makefile to build libmbfly.a for Android.
Thinker K.F. Li <thinker@branda.to>
parents:
diff
changeset
|
5 LOCAL_MODULE := MadButterfly |
aebfb7c7de46
Makefile to build libmbfly.a for Android.
Thinker K.F. Li <thinker@branda.to>
parents:
diff
changeset
|
6 LOCAL_CONFIGURE := $(LOCAL_PATH)/../../configure |
494
ebc431f2af70
Fix issue of replace realloc and malloc.
Thinker K.F. Li <thinker@branda.to>
parents:
488
diff
changeset
|
7 LOCAL_CONFIGURE_ARGS := --enable-skia --config-cache |
488
aebfb7c7de46
Makefile to build libmbfly.a for Android.
Thinker K.F. Li <thinker@branda.to>
parents:
diff
changeset
|
8 LOCAL_CFLAGS := -I$(shell pwd)/$(call include-path-for,corecg) \ |
aebfb7c7de46
Makefile to build libmbfly.a for Android.
Thinker K.F. Li <thinker@branda.to>
parents:
diff
changeset
|
9 -I$(shell pwd)/$(call include-path-for,corecg)/../effects/ \ |
aebfb7c7de46
Makefile to build libmbfly.a for Android.
Thinker K.F. Li <thinker@branda.to>
parents:
diff
changeset
|
10 -I$(shell pwd)/$(call include-path-for,frameworks-base) |
494
ebc431f2af70
Fix issue of replace realloc and malloc.
Thinker K.F. Li <thinker@branda.to>
parents:
488
diff
changeset
|
11 LOCAL_CONFIGURE_CACHE := config.cache |
488
aebfb7c7de46
Makefile to build libmbfly.a for Android.
Thinker K.F. Li <thinker@branda.to>
parents:
diff
changeset
|
12 |
aebfb7c7de46
Makefile to build libmbfly.a for Android.
Thinker K.F. Li <thinker@branda.to>
parents:
diff
changeset
|
13 include $(BUILD_AUTOCONF) |
aebfb7c7de46
Makefile to build libmbfly.a for Android.
Thinker K.F. Li <thinker@branda.to>
parents:
diff
changeset
|
14 |
aebfb7c7de46
Makefile to build libmbfly.a for Android.
Thinker K.F. Li <thinker@branda.to>
parents:
diff
changeset
|
15 MB_INTERMEDIATES:=$(strip $(intermediates)) |
aebfb7c7de46
Makefile to build libmbfly.a for Android.
Thinker K.F. Li <thinker@branda.to>
parents:
diff
changeset
|
16 |
494
ebc431f2af70
Fix issue of replace realloc and malloc.
Thinker K.F. Li <thinker@branda.to>
parents:
488
diff
changeset
|
17 $(LOCAL_BUILT_MODULE): $(MB_INTERMEDIATES)/build/config.cache |
ebc431f2af70
Fix issue of replace realloc and malloc.
Thinker K.F. Li <thinker@branda.to>
parents:
488
diff
changeset
|
18 |
ebc431f2af70
Fix issue of replace realloc and malloc.
Thinker K.F. Li <thinker@branda.to>
parents:
488
diff
changeset
|
19 $(MB_INTERMEDIATES)/build/config.cache: |
ebc431f2af70
Fix issue of replace realloc and malloc.
Thinker K.F. Li <thinker@branda.to>
parents:
488
diff
changeset
|
20 $(hide) mkdir -p $(MB_INTERMEDIATES)/build/; |
ebc431f2af70
Fix issue of replace realloc and malloc.
Thinker K.F. Li <thinker@branda.to>
parents:
488
diff
changeset
|
21 cp $(strip $(MB_LOCAL_PATH))/config.cache $(MB_INTERMEDIATES)/build/ |
ebc431f2af70
Fix issue of replace realloc and malloc.
Thinker K.F. Li <thinker@branda.to>
parents:
488
diff
changeset
|
22 |
488
aebfb7c7de46
Makefile to build libmbfly.a for Android.
Thinker K.F. Li <thinker@branda.to>
parents:
diff
changeset
|
23 include $(CLEAR_VARS) |
aebfb7c7de46
Makefile to build libmbfly.a for Android.
Thinker K.F. Li <thinker@branda.to>
parents:
diff
changeset
|
24 |
aebfb7c7de46
Makefile to build libmbfly.a for Android.
Thinker K.F. Li <thinker@branda.to>
parents:
diff
changeset
|
25 LOCAL_MODULE:= libmbfly |
aebfb7c7de46
Makefile to build libmbfly.a for Android.
Thinker K.F. Li <thinker@branda.to>
parents:
diff
changeset
|
26 LOCAL_MODULE_SUFFIX:= .a |
aebfb7c7de46
Makefile to build libmbfly.a for Android.
Thinker K.F. Li <thinker@branda.to>
parents:
diff
changeset
|
27 LOCAL_SRC_FILES:= $(MB_INTERMEDIATES)/build/src/.libs/libmbfly.a |
aebfb7c7de46
Makefile to build libmbfly.a for Android.
Thinker K.F. Li <thinker@branda.to>
parents:
diff
changeset
|
28 LOCAL_MODULE_CLASS:= STATIC_LIBRARIES |
aebfb7c7de46
Makefile to build libmbfly.a for Android.
Thinker K.F. Li <thinker@branda.to>
parents:
diff
changeset
|
29 LOCAL_REQUIRED_MODULES:= MadButterfly |
aebfb7c7de46
Makefile to build libmbfly.a for Android.
Thinker K.F. Li <thinker@branda.to>
parents:
diff
changeset
|
30 LOCAL_COPY_HEADERS:= \ |
aebfb7c7de46
Makefile to build libmbfly.a for Android.
Thinker K.F. Li <thinker@branda.to>
parents:
diff
changeset
|
31 ../../src/include/mb_prop.h \ |
aebfb7c7de46
Makefile to build libmbfly.a for Android.
Thinker K.F. Li <thinker@branda.to>
parents:
diff
changeset
|
32 ../../src/include/mb_graph_engine.h \ |
aebfb7c7de46
Makefile to build libmbfly.a for Android.
Thinker K.F. Li <thinker@branda.to>
parents:
diff
changeset
|
33 ../../src/include/mb_redraw_man.h \ |
aebfb7c7de46
Makefile to build libmbfly.a for Android.
Thinker K.F. Li <thinker@branda.to>
parents:
diff
changeset
|
34 ../../src/include/mb.h \ |
aebfb7c7de46
Makefile to build libmbfly.a for Android.
Thinker K.F. Li <thinker@branda.to>
parents:
diff
changeset
|
35 ../../src/include/mb_graph_engine_cairo.h \ |
aebfb7c7de46
Makefile to build libmbfly.a for Android.
Thinker K.F. Li <thinker@branda.to>
parents:
diff
changeset
|
36 ../../src/include/mb_shapes.h \ |
aebfb7c7de46
Makefile to build libmbfly.a for Android.
Thinker K.F. Li <thinker@branda.to>
parents:
diff
changeset
|
37 ../../src/include/mb_X_supp.h \ |
aebfb7c7de46
Makefile to build libmbfly.a for Android.
Thinker K.F. Li <thinker@branda.to>
parents:
diff
changeset
|
38 ../../src/include/mb_graph_engine_skia.h \ |
aebfb7c7de46
Makefile to build libmbfly.a for Android.
Thinker K.F. Li <thinker@branda.to>
parents:
diff
changeset
|
39 ../../src/include/mb_so.h \ |
aebfb7c7de46
Makefile to build libmbfly.a for Android.
Thinker K.F. Li <thinker@branda.to>
parents:
diff
changeset
|
40 ../../src/include/mb_af.h \ |
aebfb7c7de46
Makefile to build libmbfly.a for Android.
Thinker K.F. Li <thinker@branda.to>
parents:
diff
changeset
|
41 ../../src/include/mb_img_ldr.h \ |
aebfb7c7de46
Makefile to build libmbfly.a for Android.
Thinker K.F. Li <thinker@branda.to>
parents:
diff
changeset
|
42 ../../src/include/mb_timer.h \ |
aebfb7c7de46
Makefile to build libmbfly.a for Android.
Thinker K.F. Li <thinker@branda.to>
parents:
diff
changeset
|
43 ../../src/include/mb_ani_menu.h \ |
aebfb7c7de46
Makefile to build libmbfly.a for Android.
Thinker K.F. Li <thinker@branda.to>
parents:
diff
changeset
|
44 ../../src/include/mb_obj.h \ |
aebfb7c7de46
Makefile to build libmbfly.a for Android.
Thinker K.F. Li <thinker@branda.to>
parents:
diff
changeset
|
45 ../../src/include/mb_tools.h \ |
aebfb7c7de46
Makefile to build libmbfly.a for Android.
Thinker K.F. Li <thinker@branda.to>
parents:
diff
changeset
|
46 ../../src/include/mb_animate.h \ |
aebfb7c7de46
Makefile to build libmbfly.a for Android.
Thinker K.F. Li <thinker@branda.to>
parents:
diff
changeset
|
47 ../../src/include/mb_observer.h \ |
aebfb7c7de46
Makefile to build libmbfly.a for Android.
Thinker K.F. Li <thinker@branda.to>
parents:
diff
changeset
|
48 ../../src/include/mb_types.h \ |
aebfb7c7de46
Makefile to build libmbfly.a for Android.
Thinker K.F. Li <thinker@branda.to>
parents:
diff
changeset
|
49 ../../src/include/mb_basic_types.h \ |
aebfb7c7de46
Makefile to build libmbfly.a for Android.
Thinker K.F. Li <thinker@branda.to>
parents:
diff
changeset
|
50 ../../src/include/mb_paint.h \ |
aebfb7c7de46
Makefile to build libmbfly.a for Android.
Thinker K.F. Li <thinker@branda.to>
parents:
diff
changeset
|
51 ../../src/include/mbbutton.h |
aebfb7c7de46
Makefile to build libmbfly.a for Android.
Thinker K.F. Li <thinker@branda.to>
parents:
diff
changeset
|
52 LOCAL_COPY_HEADERS_TO:= libmbfly |
aebfb7c7de46
Makefile to build libmbfly.a for Android.
Thinker K.F. Li <thinker@branda.to>
parents:
diff
changeset
|
53 |
aebfb7c7de46
Makefile to build libmbfly.a for Android.
Thinker K.F. Li <thinker@branda.to>
parents:
diff
changeset
|
54 include $(BUILD_DUMMY) |
aebfb7c7de46
Makefile to build libmbfly.a for Android.
Thinker K.F. Li <thinker@branda.to>
parents:
diff
changeset
|
55 |
aebfb7c7de46
Makefile to build libmbfly.a for Android.
Thinker K.F. Li <thinker@branda.to>
parents:
diff
changeset
|
56 $(eval $(call copy-one-header,$(MB_INTERMEDIATES)/build/include/mb_config.h,$(TARGET_OUT_HEADERS)/$(LOCAL_COPY_HEADERS_TO)/mb_config.h)) |
aebfb7c7de46
Makefile to build libmbfly.a for Android.
Thinker K.F. Li <thinker@branda.to>
parents:
diff
changeset
|
57 all_copied_headers: $(TARGET_OUT_HEADERS)/$(LOCAL_COPY_HEADERS_TO)/mb_config.h |
aebfb7c7de46
Makefile to build libmbfly.a for Android.
Thinker K.F. Li <thinker@branda.to>
parents:
diff
changeset
|
58 |
aebfb7c7de46
Makefile to build libmbfly.a for Android.
Thinker K.F. Li <thinker@branda.to>
parents:
diff
changeset
|
59 $(MB_INTERMEDIATES)/build/src/.libs/libmbfly.a: MadButterfly |
494
ebc431f2af70
Fix issue of replace realloc and malloc.
Thinker K.F. Li <thinker@branda.to>
parents:
488
diff
changeset
|
60 |