Check-in [b0fcd7911d]
Overview
Comment:Updated to produce "Android.mk" in the SDK if the compile looks like Android
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: b0fcd7911d4ee7d87c2b6bd1372f3701b88fd97c
User & Date: rkeene on 2013-05-14 20:14:10
Other Links: manifest | tags
Context
2013-05-18
18:44
Added patches for Tcl 8.6.0 related to not having a writable /tmp check-in: 6d957a95a7 user: rkeene tags: trunk
2013-05-14
20:14
Updated to produce "Android.mk" in the SDK if the compile looks like Android check-in: b0fcd7911d user: rkeene tags: trunk
2013-05-13
23:43
Updated to not reference "main" for KitDLL, which likely prevents getting the executable path check-in: de3dbf5d8c user: rkeene tags: trunk
Changes

Modified common/post/sdk.sh from [f6db47fdb8] to [9d644e9ea9].

102
103
104
105
106
107
108





























109
110
111
112
113
114




115
116
117
118
119
120
121
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154







+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+






+
+
+
+







_EOF_
			cat 'tkConfig.sh.new'
		) > 'tkConfig.sh'
		rm -f 'tkConfig.sh.new'
	fi
)

# Create android makefile snippet, used by "ndk-build"
(
	is_android='0'
	if echo "${CC}" | grep -i 'android' >/dev/null; then
		is_android='1'
	fi

	if [ "${KITCREATOR_ANDROID}" = '1' ]; then
		is_android='1'
	fi

	if [ "${is_android}" != '1' ]; then
		exit 0
	fi

	cd __tmp__ || exit 1

	tclkitlibfile="$(cd lib/ && ls -1 libtclkit* | head -n 1 | sed 's@^.*/@@')"
	tclkitlibname="$(echo "${tclkitlibfile}" | sed 's@^lib@@;s@\..*$@@')"

	cat << _EOF_ > Android.mk
LOCAL_PATH := \$(call my-dir)
include \$(CLEAR_VARS)
LOCAL_MODULE := ${tclkitlibname}
LOCAL_SRC_FILES := \$(LOCAL_PATH)/lib/${tclkitlibfile}
include \$(PREBUILT_SHARED_LIBRARY)
_EOF_
)

(
	cd '__tmp__' || exit 1

	mkdir "libtclkit-sdk-${TCLVERS}"

	mv 'lib' 'include' 'doc' "libtclkit-sdk-${TCLVERS}/"

	if [ -e 'Android.mk' ]; then
		mv 'Android.mk' "libtclkit-sdk-${TCLVERS}/"
	fi

	tar -cf - "libtclkit-sdk-${TCLVERS}" | gzip -9c > "../libtclkit-sdk-${TCLVERS}.tar.gz"
)

rm -rf '__tmp__'

exit 0