"Fossies" - the Fresh Open Source Software Archive

Member "google-gadgets-for-linux-0.11.2/hosts/qt/Makefile.am" (2 Dec 2009, 4572 Bytes) of package /linux/misc/old/google-gadgets-for-linux-0.11.2.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 #
    2 # Copyright 2008 Google Inc.
    3 #
    4 # Licensed under the Apache License, Version 2.0 (the "License");
    5 # you may not use this file except in compliance with the License.
    6 # You may obtain a copy of the License at
    7 #
    8 #      http://www.apache.org/licenses/LICENSE-2.0
    9 #
   10 # Unless required by applicable law or agreed to in writing, software
   11 # distributed under the License is distributed on an "AS IS" BASIS,
   12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   13 # See the License for the specific language governing permissions and
   14 # limitations under the License.
   15 #
   16 
   17 if GGL_BUILD_QT_HOST
   18 
   19 MOC_FILES		= qt_host_internal.moc
   20 
   21 INCLUDES		= -I$(top_builddir) \
   22 			  -I$(top_srcdir)
   23 
   24 noinst_HEADERS		= qt_host.h \
   25 			  qt_host_internal.h \
   26 			  gadget_browser_host.h
   27 
   28 bin_PROGRAMS		= ggl-qt
   29 
   30 ggl_qt_SOURCES		= main.cc \
   31 			  qt_host.cc
   32 
   33 nodist_ggl_qt_SOURCES	= $(MOC_FILES)
   34 
   35 ggl_qt_CPPFLAGS 	= $(QT4_CFLAGS) \
   36 			  $(PREDEFINED_MACROS) \
   37 			  -DGGL_APP_NAME=\"ggl-qt\"
   38 
   39 ggl_qt_CXXFLAGS		= $(DEFAULT_COMPILE_FLAGS)
   40 
   41 ggl_qt_LDADD		= $(QT4_LIBS) \
   42 			  $(top_builddir)/ggadget/libggadget@GGL_EPOCH@.la \
   43 			  $(top_builddir)/ggadget/qt/libggadget-qt@GGL_EPOCH@.la
   44 
   45 if GGL_HAVE_XLIB
   46 ggl_qt_LDADD += $(X_LIBS) -lXrender
   47 endif
   48 
   49 # For static build mode, all necessary modules must be linked into binary
   50 # directly.
   51 if GGL_DISABLE_SHARED
   52 ggl_qt_LDADD += \
   53 	-dlpreopen $(top_builddir)/extensions/analytics_usage_collector/analytics-usage-collector.la \
   54 	-dlpreopen $(top_builddir)/extensions/default_framework/default-framework.la \
   55 	-dlpreopen $(top_builddir)/extensions/default_options/default-options.la \
   56 	-dlpreopen $(top_builddir)/extensions/google_gadget_manager/google-gadget-manager.la \
   57 	-dlpreopen $(top_builddir)/extensions/qt_edit_element/qt-edit-element.la \
   58 	-dlpreopen $(top_builddir)/extensions/qt_system_framework/qt-system-framework.la
   59 
   60 if GGL_BUILD_LIBXML2_XML_PARSER
   61 ggl_qt_LDADD += \
   62 	-dlpreopen $(top_builddir)/extensions/libxml2_xml_parser/libxml2-xml-parser.la
   63 endif
   64 if GGL_BUILD_QT_XML_HTTP_REQUEST
   65 ggl_qt_LDADD += \
   66 	-dlpreopen $(top_builddir)/extensions/qt_xml_http_request/qt-xml-http-request.la
   67 endif
   68 if GGL_BUILD_SMJS_SCRIPT_RUNTIME
   69 ggl_qt_LDADD += \
   70 	-dlpreopen $(top_builddir)/extensions/smjs_script_runtime/smjs-script-runtime.la
   71 endif
   72 if GGL_BUILD_LIBGGADGET_DBUS
   73 ggl_qt_LDADD += \
   74 	-dlpreopen $(top_builddir)/extensions/dbus_script_class/dbus-script-class.la
   75 endif
   76 if GGL_BUILD_GST_AUDIO_FRAMEWORK
   77 ggl_qt_LDADD += \
   78 	-dlpreopen $(top_builddir)/extensions/gst_audio_framework/gst-audio-framework.la
   79 endif
   80 if GGL_BUILD_GST_VIDEO_ELEMENT
   81 ggl_qt_LDADD += \
   82 	-dlpreopen $(top_builddir)/extensions/gst_video_element/gst-video-element.la
   83 endif
   84 if GGL_BUILD_QTWEBKIT_BROWSER_ELEMENT
   85 ggl_qt_LDADD += \
   86 	-dlpreopen $(top_builddir)/extensions/qtwebkit_browser_element/qtwebkit-browser-element.la
   87 endif
   88 if GGL_HOST_LINUX
   89 ggl_qt_LDADD += \
   90 	-dlpreopen $(top_builddir)/extensions/linux_system_framework/linux-system-framework.la
   91 endif
   92 endif
   93 
   94 BUILT_SOURCES		= $(MOC_FILES)
   95 qt_host_internal.moc:qt_host_internal.h
   96 	$(MOC) $< -o $@
   97 
   98 # TODO: install these files into correct path.
   99 all-local:
  100 	[ ! -f $(top_builddir)/resources/resources.gg ] || cp $(top_builddir)/resources/resources.gg .
  101 #	[ ! -f $(top_builddir)/extensions/gtkmoz_browser_element/gtkmoz_browser_child ] || cp $(top_builddir)/extensions/gtkmoz_browser_element/gtkmoz_browser_child .
  102 
  103 noinst_SCRIPTS=ggl-qt.sh
  104 
  105 .PHONY: ggl-qt.sh
  106 
  107 ggl-qt.sh: ggl-qt$(EXEEXT)
  108 	(echo '#!/bin/sh' > $@; \
  109 	 echo 'GGL_MODULE_PATH=`pwd`' >> $@; \
  110 	 echo 'for i in $(abs_top_builddir)/extensions/*; do' >> $@; \
  111 	 echo '  if test -d $$i; then' >> $@; \
  112 	 echo '    GGL_MODULE_PATH=$$GGL_MODULE_PATH:$$i' >> $@; \
  113 	 echo '  fi' >> $@; \
  114 	 echo 'done' >> $@; \
  115 	 echo 'export GGL_MODULE_PATH' >> $@; \
  116 	 echo '$(LIBTOOL) --mode=execute $$MEMCHECK_COMMAND $(abs_builddir)/ggl-qt $$@' >> $@; \
  117 	 chmod 0755 $@)
  118 
  119 desktopdir = $(datadir)/applications
  120 desktop_in_files = ggl-qt.desktop.in
  121 desktop_DATA = $(desktop_in_files:.desktop.in=.desktop)
  122 
  123 ggl-qt.desktop : ggl-qt.desktop.in
  124 	echo $(bindir)
  125 	$(SED) -e 's|@bindir[@]|$(bindir)|g' -e 's|@datadir[@]|$(datadir)|g' $< > $@.tmp
  126 	$(top_builddir)/xdg/intl-desktop-file.sh $@.tmp $@
  127 	rm -f $@.tmp
  128 
  129 EXTRA_DIST = $(desktop_in_files) CMakeLists.txt
  130 
  131 if GGL_ENABLE_UPDATE_DESKTOP_DATABASE
  132 install-data-hook:
  133 	@if test -z "$(DESTDIR)"; then \
  134 	  $(UPDATE_DESKTOP_DATABASE) "$(DESTDIR)$(desktopdir)"; \
  135 	fi
  136 
  137 uninstall-hook:
  138 	@if test -z "$(DESTDIR)"; then \
  139 	  $(UPDATE_DESKTOP_DATABASE) "$(DESTDIR)$(desktopdir)"; \
  140 	fi
  141 endif
  142 
  143 CLEANFILES 		= $(desktop_DATA) $(MOC_FILES)
  144 
  145 endif