Mercurial > MadButterfly
annotate Android/mb/Android.mk @ 509:3e0d63d7c7ae Android_Skia
Remove absolute pathes from config.cache.
Absolute pathes in config.cache would be the source of problems when
the source tree of Android is different from what is in config.cache.
So, these cached values are removed and re-computed when running
configure.
author | Thinker K.F. Li <thinker@branda.to> |
---|---|
date | Tue, 01 Dec 2009 22:55:27 +0800 |
parents | 6fc6061fff58 |
children | 371d88fc655f |
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:= \ |
498
6fc6061fff58
Fix path of header files
Thinker K.F. Li <thinker@branda.to>
parents:
494
diff
changeset
|
31 ../../include/mb_prop.h \ |
6fc6061fff58
Fix path of header files
Thinker K.F. Li <thinker@branda.to>
parents:
494
diff
changeset
|
32 ../../include/mb_graph_engine.h \ |
6fc6061fff58
Fix path of header files
Thinker K.F. Li <thinker@branda.to>
parents:
494
diff
changeset
|
33 ../../include/mb_redraw_man.h \ |
6fc6061fff58
Fix path of header files
Thinker K.F. Li <thinker@branda.to>
parents:
494
diff
changeset
|
34 ../../include/mb.h \ |
6fc6061fff58
Fix path of header files
Thinker K.F. Li <thinker@branda.to>
parents:
494
diff
changeset
|
35 ../../include/mb_graph_engine_cairo.h \ |
6fc6061fff58
Fix path of header files
Thinker K.F. Li <thinker@branda.to>
parents:
494
diff
changeset
|
36 ../../include/mb_shapes.h \ |
6fc6061fff58
Fix path of header files
Thinker K.F. Li <thinker@branda.to>
parents:
494
diff
changeset
|
37 ../../include/mb_X_supp.h \ |
6fc6061fff58
Fix path of header files
Thinker K.F. Li <thinker@branda.to>
parents:
494
diff
changeset
|
38 ../../include/mb_graph_engine_skia.h \ |
6fc6061fff58
Fix path of header files
Thinker K.F. Li <thinker@branda.to>
parents:
494
diff
changeset
|
39 ../../include/mb_so.h \ |
6fc6061fff58
Fix path of header files
Thinker K.F. Li <thinker@branda.to>
parents:
494
diff
changeset
|
40 ../../include/mb_af.h \ |
6fc6061fff58
Fix path of header files
Thinker K.F. Li <thinker@branda.to>
parents:
494
diff
changeset
|
41 ../../include/mb_img_ldr.h \ |
6fc6061fff58
Fix path of header files
Thinker K.F. Li <thinker@branda.to>
parents:
494
diff
changeset
|
42 ../../include/mb_timer.h \ |
6fc6061fff58
Fix path of header files
Thinker K.F. Li <thinker@branda.to>
parents:
494
diff
changeset
|
43 ../../include/mb_ani_menu.h \ |
6fc6061fff58
Fix path of header files
Thinker K.F. Li <thinker@branda.to>
parents:
494
diff
changeset
|
44 ../../include/mb_obj.h \ |
6fc6061fff58
Fix path of header files
Thinker K.F. Li <thinker@branda.to>
parents:
494
diff
changeset
|
45 ../../include/mb_tools.h \ |
6fc6061fff58
Fix path of header files
Thinker K.F. Li <thinker@branda.to>
parents:
494
diff
changeset
|
46 ../../include/mb_animate.h \ |
6fc6061fff58
Fix path of header files
Thinker K.F. Li <thinker@branda.to>
parents:
494
diff
changeset
|
47 ../../include/mb_observer.h \ |
6fc6061fff58
Fix path of header files
Thinker K.F. Li <thinker@branda.to>
parents:
494
diff
changeset
|
48 ../../include/mb_types.h \ |
6fc6061fff58
Fix path of header files
Thinker K.F. Li <thinker@branda.to>
parents:
494
diff
changeset
|
49 ../../include/mb_basic_types.h \ |
6fc6061fff58
Fix path of header files
Thinker K.F. Li <thinker@branda.to>
parents:
494
diff
changeset
|
50 ../../include/mb_paint.h \ |
6fc6061fff58
Fix path of header files
Thinker K.F. Li <thinker@branda.to>
parents:
494
diff
changeset
|
51 ../../include/mbbutton.h |
488
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 |