Skip to content

Commit 037c5f0

Browse files
committed
Android.mk changes to produce statically linked apps for Android.
1 parent a12fc87 commit 037c5f0

File tree

9 files changed

+29
-22
lines changed

9 files changed

+29
-22
lines changed

android/Haggle/AndroidManifest.xml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,12 @@
33
package="org.haggle.kernel"
44
android:versionCode="1"
55
android:versionName="0.4">
6-
<application android:label="Haggle">
7-
<service android:enabled="true" android:exported="true" android:name=".Haggle" />
6+
<application android:label="Haggle"
7+
android:icon="@drawable/haggle_launch_icon" >
8+
<service android:enabled="true"
9+
android:exported="true"
10+
android:name=".Haggle"
11+
android:icon="@drawable/ic_stat_notify_haggle"/>
812
<activity android:name="StatusView"
913
android:label="@string/app_name">
1014
<intent-filter>

android/Haggle/jni/Android.mk

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,3 @@ subdirs := $(addprefix $(APP_PROJECT_PATH)/../../,$(addsuffix /Android.mk, \
99
EXTRA_LIBS_PATH := $(APP_PROJECT_PATH)/../extlibs/external
1010

1111
include $(subdirs)
12-
13-
#$(call __ndk_info,$(LOCAL_MAKEFILE):$(LOCAL_MODULE): subdirs are : $(subdirs))
14-
15-
#$(call import-module,sqlite/dist)
16-
#$(call import-module,dbus)
17-
#$(call import-module,bluetooth/bluez)
18-
#$(call import-module,zlib)
19-
#$(call import-module,openssl/crypto)
2.73 KB
Loading
2.73 KB
Loading

android/PhotoShare/AndroidManifest.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
android:versionCode="1"
55
android:versionName="0.4">
66
<application android:name=".PhotoShare"
7-
android:label="@string/app_name" android:icon="@drawable/haggle_launch_icon">
7+
android:label="@string/app_name"
8+
android:icon="@drawable/haggle_launch_icon">
89
<!-- uses-library android:name="org.haggle"/ -->
910
<activity android:name=".PhotoView"
1011
android:label="@string/app_name"

resources/HaggleLogo-512x512.png

204 KB
Loading

src/hagglekernel/Android.mk

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -112,16 +112,16 @@ LOCAL_STATIC_LIBRARIES += \
112112
libcpphaggle \
113113
libhaggle-xml2
114114

115-
EXTRA_DEFINES:= \
115+
LOCAL_DEFINES:= \
116116
-DHAVE_CONFIG \
117117
-DOS_ANDROID \
118118
-DHAVE_EXCEPTION=0 \
119119
-DENABLE_ETHERNET \
120120
-DENABLE_BLUETOOTH \
121-
-DDEBUG
121+
$(EXTRA_DEFINES)
122122

123-
LOCAL_CFLAGS :=-O2 -g $(EXTRA_DEFINES)
124-
LOCAL_CPPFLAGS +=$(EXTRA_DEFINES)
123+
LOCAL_CFLAGS :=-O2 -g $(LOCAL_DEFINES)
124+
LOCAL_CPPFLAGS +=$(LOCAL_DEFINES)
125125
LOCAL_LDFLAGS +=-L$(EXTRA_LIBS_PATH)/../libs/$(TARGET_ARCH_ABI)
126126

127127
ifneq ($(BOARD_WLAN_TI_STA_DK_ROOT),)

src/libcpphaggle/Android.mk

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,20 @@ LOCAL_SRC_FILES := \
1515
Signal.cpp \
1616
Reference.cpp
1717

18-
LOCAL_C_INCLUDES += $(LOCAL_PATH)/include $(LOCAL_PATH)/../utils
18+
LOCAL_C_INCLUDES += \
19+
$(LOCAL_PATH)/include \
20+
$(LOCAL_PATH)/../utils
1921

2022
LOCAL_MODULE := libcpphaggle
2123

22-
EXTRA_DEFINES:=-DHAVE_CONFIG -DOS_ANDROID -DHAVE_EXCEPTION=0 -DDEBUG -DDEBUG_LEAKS
23-
LOCAL_CFLAGS :=-O2 -g $(EXTRA_DEFINES)
24-
LOCAL_CPPFLAGS +=$(EXTRA_DEFINES)
24+
LOCAL_DEFINES := \
25+
-DHAVE_CONFIG \
26+
-DOS_ANDROID \
27+
-DHAVE_EXCEPTION=0 \
28+
$(EXTRA_DEFINES)
29+
30+
LOCAL_CFLAGS :=-O2 -g $(LOCAL_DEFINES)
31+
LOCAL_CPPFLAGS +=$(LOCAL_DEFINES)
2532

2633
include $(BUILD_STATIC_LIBRARY)
2734

src/libhaggle/Android.mk

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,12 @@ LOCAL_C_INCLUDES += \
2525
LOCAL_SHARED_LIBRARIES := libdl liblog
2626
LOCAL_STATIC_LIBRARIES := libhaggle-xml2
2727

28-
EXTRA_DEFINES=-DOS_ANDROID -DDEBUG
29-
LOCAL_CFLAGS :=-O2 -g -std=gnu99 $(EXTRA_DEFINES)
30-
LOCAL_CPPFLAGS +=$(EXTRA_DEFINES)
28+
LOCAL_DEFINES = \
29+
-DOS_ANDROID \
30+
$(EXTRA_DEFINES)
31+
32+
LOCAL_CFLAGS :=-O2 -g -std=gnu99 $(LOCAL_DEFINES)
33+
LOCAL_CPPFLAGS +=$(LOCAL_DEFINES)
3134

3235
LOCAL_PRELINK_MODULE := false
3336

0 commit comments

Comments
 (0)