10000 put jpeg+png in static lib, if we are doing dynamic, system will be u… · abgoyal/python-for-android@ea20613 · GitHub
[go: up one dir, main page]

Skip to content

Commit ea20613

Browse files
committed
put jpeg+png in static lib, if we are doing dynamic, system will be used instead of static. But static are included twice (sdl_image + pygame.imageext). must fix it.
1 parent b6a0752 commit ea20613

File tree

3 files changed

+15
-2
lines changed

3 files changed

+15
-2
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
--- Python-2.7.2/Makefile.pre.in.orig 2012-01-07 18:25:42.097075564 +0100
2+
+++ Python-2.7.2/Makefile.pre.in 2012-01-07 18:26:03.289074810 +0100
3+
@@ -410,8 +410,8 @@
4+
# Build the shared modules
5+
sharedmods: $(BUILDPYTHON)
6+
@case $$MAKEFLAGS in \
7+
- *s*) $(RUNSHARED) CC='$(CC)' LDSHARED='$(BLDSHARED)' OPT='$(OPT)' PYTHONXCPREFIX='$(DESTDIR)$(prefix)' $(HOSTPYTHON) -E $(srcdir)/setup.py -q build;; \
8+
- *) $(RUNSHARED) CC='$(CC)' LDSHARED='$(BLDSHARED)' OPT='$(OPT)' PYTHONXCPREFIX='$(DESTDIR)$(prefix)' $(HOSTPYTHON) -E $(srcdir)/setup.py build;; \
9+
+ *s*) $(RUNSHARED) CC='$(CC)' LDSHARED='$(BLDSHARED)' OPT='$(OPT)' PYTHONXCPREFIX='$(DESTDIR)$(prefix)' $(HOSTPYTHON) -E $(srcdir)/setup.py build -v;; \
10+
+ *) $(RUNSHARED) CC='$(CC)' LDSHARED='$(BLDSHARED)' OPT='$(OPT)' PYTHONXCPREFIX='$(DESTDIR)$(prefix)' $(HOSTPYTHON) -E $(srcdir)/setup.py build -v;; \
11+
esac
12+
13+
# Build static library

src/jni/jpeg/Android.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,4 @@ LOCAL_CFLAGS += -O3 -fstrict-aliasing -fprefetch-loop-arrays
3434

3535
LOCAL_MODULE:= jpeg
3636

37-
include $(BUILD_SHARED_LIBRARY)
37+
include $(BUILD_STATIC_LIBRARY)

src/jni/png/Android.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,5 +38,5 @@ LOCAL_MODULE:= png
3838
LOCAL_COPY_HEADERS_TO := $(common_COPY_HEADERS_TO)
3939
LOCAL_COPY_HEADERS := $(common_COPY_HEADERS)
4040

41-
include $(BUILD_SHARED_LIBRARY)
41+
include $(BUILD_STATIC_LIBRARY)
4242

0 commit comments

Comments
 (0)
0