EXTRA_DIST = WebVisionVCA.html WebVisionVCA.js *.h po/*
if WebVisionIncl
noinst_LTLIBRARIES = ui_WebVision.la
ui_WebVision_la_CXXFLAGS = -DMOD_INCL -fpic
ui_WebVision_la_LIBTOOLFLAGS = --tag=disable-shared
ui_WebVision_la_LDFLAGS = -module
else
oscd_modul_LTLIBRARIES = ui_WebVision.la
ui_WebVision_la_CXXFLAGS =
ui_WebVision_la_LIBTOOLFLAGS = --tag=disable-static
ui_WebVision_la_LDFLAGS = -module -avoid-version $(LIB_MOD)
endif
ui_WebVision_la_CXXFLAGS += $(gdlib_CFLAGS)
ui_WebVision_la_LDFLAGS += $(gdlib_LIBS) $(LIB_FFTW3)
ui_WebVision_la_SOURCES = web_vision.cpp vca_sess.cpp VCAjs.cpp VCAhtml.cpp
VCAjs.cpp: WebVisionVCA.js
@cp $< $@; \
sed -i -e 's/\\/\\\\/g' -e 's/"/\\"/g' -e 's/^\(.*\)$$/ "\1\\n"/' -e "1 i const char *`echo $< | sed 's/\./_/g'`=" $@; \
echo ";" >> $@
VCAhtml.cpp: WebVisionVCA.html
@cp $< $@; \
sed -i -e 's/\\/\\\\/g' -e 's/"/\\"/g' -e 's/^\(.*\)$$/ "\1\\n"/' -e "1 i const char *`echo $< | sed 's/\./_/g'`=" $@; \
echo ";" >> $@
# @lc=`cat $< | wc -l`; let lc=lc+1; \
# il=1 ; \
# echo "const char *`echo "$<" | sed 's/\./_/g'`=" > $@ ; \
# while [ $$il -le $$lc ] ; do \
# l=" \"`cat $< | sed -n $${il}p | sed 's/\\\\/\\\\\\\\/g' | sed 's/"/\\\\"/g'`\\n\""; \
# if [ $$il -eq $$lc ]; then l="$$l;"; fi; \
# echo "$$l" >> $@ ; \
# let il=il+1 ; \
# done
I18N_mod = $(oscd_modulpref)WebVision
include ../../../../I18N.mk
clean-local:
rm -f VCAjs.cpp VCAhtml.cpp