Lines 177-183
Link Here
|
177 |
multijob_finish |
177 |
multijob_finish |
178 |
elibtoolize |
178 |
elibtoolize |
179 |
|
179 |
|
180 |
if [[ ${PV} == "9999" ]] || use java ; then #558798 |
180 |
# Cross-compiler support |
|
|
181 |
# We need JsonSchemaBuilder and TexturePacker binaries for the host system |
182 |
# Later we need libsquish for the target system |
183 |
if tc-is-cross-compiler ; then |
184 |
mkdir "${WORKDIR}"/${CBUILD} |
185 |
pushd "${WORKDIR}"/${CBUILD} >/dev/null |
186 |
einfo "Building host tools" |
187 |
cp -a $S/{tools,xbmc} ./ |
188 |
local tools=(JsonSchemaBuilder) |
189 |
use texturepacker && tools+=(TexturePacker) |
190 |
einfo ${tools[@]} |
191 |
for tool in ${tools[@]} ; do |
192 |
tc-env_build emake -C tools/depends/native/$tool |
193 |
mkdir $S/tools/depends/native/$tool/bin |
194 |
ln -s "${WORKDIR}"/${CBUILD}/tools/depends/native/$tool/bin/$tool $S/tools/depends/native/$tool/bin/$tool |
195 |
done |
196 |
popd >/dev/null |
197 |
|
198 |
emake -f codegenerator.mk |
199 |
|
200 |
# Binary kodi.bin links against libsquish, |
201 |
# so we need libsquish compiled for the target system |
202 |
emake -C tools/depends/native/libsquish-native/ CXX=$(tc-getCXX) |
203 |
elif [[ ${PV} == "9999" ]] || use java ; then #558798 |
181 |
tc-env_build emake -f codegenerator.mk |
204 |
tc-env_build emake -f codegenerator.mk |
182 |
fi |
205 |
fi |
183 |
|
206 |
|