use mapnik-settings.env
This commit is contained in:
parent
4841e04b80
commit
ea6f217ad9
3 changed files with 12 additions and 13 deletions
6
Makefile
6
Makefile
|
@ -59,7 +59,7 @@ uninstall:
|
|||
@$(PYTHON) scons/scons.py -j$(JOBS) --config=cache --implicit-cache --max-drift=1 uninstall
|
||||
|
||||
test:
|
||||
@source localize.sh && ./test/unit/run && \
|
||||
@source localize.sh && source mapnik-settings.env && ./test/unit/run && \
|
||||
for FILE in test/standalone/*-bin; do \
|
||||
$${FILE}; \
|
||||
done;
|
||||
|
@ -80,9 +80,11 @@ pep8:
|
|||
@pep8 -r --select=W391 -q --filename=*.py `pwd`/tests/ | xargs ged -i '/./,/^$$/!d'
|
||||
|
||||
grind:
|
||||
@for FILE in test/standalone/*-bin; do \
|
||||
@source localize.sh && source mapnik-settings.env && \
|
||||
for FILE in test/standalone/*-bin; do \
|
||||
valgrind --leak-check=full --log-fd=1 $${FILE} | grep definitely; \
|
||||
done
|
||||
@source localize.sh && source mapnik-settings.env && \
|
||||
valgrind --leak-check=full --log-fd=1 ./test/unit/run | grep definitely
|
||||
|
||||
render:
|
||||
|
|
|
@ -115,9 +115,10 @@ SAMPLE_INPUT_PLUGINS = True
|
|||
}
|
||||
|
||||
function setup_runtime_settings() {
|
||||
export PROJ_LIB=${MASON_LINKED_ABS}/share/proj
|
||||
export ICU_DATA=${MASON_LINKED_ABS}/share/icu/54.1
|
||||
export GDAL_DATA=${MASON_LINKED_ABS}/share/gdal
|
||||
echo "export PROJ_LIB=${MASON_LINKED_ABS}/share/proj" > mapnik-settings.env
|
||||
echo "export ICU_DATA=${MASON_LINKED_ABS}/share/icu/54.1" >> mapnik-settings.env
|
||||
echo "export GDAL_DATA=${MASON_LINKED_ABS}/share/gdal" >> mapnik-settings.env
|
||||
source mapnik-settings.env
|
||||
}
|
||||
|
||||
function main() {
|
||||
|
|
|
@ -1,12 +1,8 @@
|
|||
#!/bin/bash
|
||||
UNAME=$(uname -s)
|
||||
# TODO - use rpath to avoid needing this to run tests locally
|
||||
export CURRENT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
if [ ${UNAME} = 'Darwin' ]; then
|
||||
if [ $(uname -s) = 'Darwin' ]; then
|
||||
export DYLD_LIBRARY_PATH="${CURRENT_DIR}/src/":${DYLD_LIBRARY_PATH}
|
||||
else
|
||||
export LD_LIBRARY_PATH="${CURRENT_DIR}/src/":${LD_LIBRARY_PATH}
|
||||
fi
|
||||
export MAPNIK_FONT_DIRECTORY="${CURRENT_DIR}/fonts/dejavu-fonts-ttf-2.34/ttf/"
|
||||
export MAPNIK_INPUT_PLUGINS_DIRECTORY="${CURRENT_DIR}/plugins/input/"
|
||||
export PATH="${CURRENT_DIR}/utils/mapnik-config":${PATH}
|
||||
export PATH="${CURRENT_DIR}/utils/nik2img":${PATH}
|
||||
|
|
Loading…
Reference in a new issue