Check-in [b0fcd7911d]
Overview
SHA1:b0fcd7911d4ee7d87c2b6bd1372f3701b88fd97c
Date: 2013-05-14 20:14:10
User: rkeene
Comment:Updated to produce "Android.mk" in the SDK if the compile looks like Android
Timelines: family | ancestors | descendants | both | trunk
Downloads: Tarball | ZIP archive
Other Links: files | file ages | folders | manifest
Tags And Properties
Context
2013-05-18
18:44
[6d957a95a7] Added patches for Tcl 8.6.0 related to not having a writable /tmp (user: rkeene, tags: trunk)
2013-05-14
20:14
[b0fcd7911d] Updated to produce "Android.mk" in the SDK if the compile looks like Android (user: rkeene, tags: trunk)
2013-05-13
23:43
[de3dbf5d8c] Updated to not reference "main" for KitDLL, which likely prevents getting the executable path (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
_EOF_
			cat 'tkConfig.sh.new'
		) > 'tkConfig.sh'
		rm -f 'tkConfig.sh.new'
	fi
)






























(
	cd '__tmp__' || exit 1

	mkdir "libtclkit-sdk-${TCLVERS}"

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





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

rm -rf '__tmp__'

exit 0







>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>






>
>
>
>







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