Refactor the GDK_NATIVE_WINDOWS patch
Follow the Fedora patch and put it into npw-viewer.sh. It's a little cleaner than in the Makefile.
This commit is contained in:
parent
66570b9b0c
commit
c7c9aa3fc0
5
Makefile
5
Makefile
|
@ -265,11 +265,6 @@ install.viewer.glue::
|
|||
echo "#!/bin/sh" > $$p; \
|
||||
echo "TARGET_OS=$(TARGET_OS)" >> $$p; \
|
||||
echo "TARGET_ARCH=$(TARGET_ARCH)" >> $$p; \
|
||||
echo 'case "$$*" in' >> $$p; \
|
||||
echo "*libflashplayer*)" >> $$p; \
|
||||
echo " export GDK_NATIVE_WINDOWS=1" >> $$p; \
|
||||
echo " ;;" >> $$p; \
|
||||
echo "esac" >> $$p; \
|
||||
echo ". $(npcommondir)/$(nploader_PROGRAM)" >> $$p; \
|
||||
chmod 755 $$p
|
||||
do.install.libnoxshm: $(libnoxshm_LIBRARY)
|
||||
|
|
|
@ -5,6 +5,12 @@
|
|||
OS="`uname -s | tr '[A-Z]' '[a-z]'`"
|
||||
ARCH="`uname -m`"
|
||||
|
||||
case "$*" in
|
||||
*libflashplayer*)
|
||||
export GDK_NATIVE_WINDOWS=1
|
||||
;;
|
||||
esac
|
||||
|
||||
if test -z "$TARGET_OS"; then
|
||||
echo "*** NSPlugin Viewer *** error, TARGET_OS not initialized"
|
||||
exit 1
|
||||
|
|
Loading…
Reference in New Issue