diff options
author | Michael Meeks <michael.meeks@novell.com> | 2011-06-14 14:07:28 +0100 |
---|---|---|
committer | Michael Meeks <michael.meeks@novell.com> | 2011-06-14 16:34:05 +0100 |
commit | 4b97ec3b5a846467d8c0bb9fa48cf704f3f7725c (patch) | |
tree | 81668e138d75a8c1e9c18edf0a819138c85218a9 /vcl | |
parent | 1c7c573899987b194916d408e878ba69544a371a (diff) |
add makefile to build gtk3 pieces
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/Library_vclplug_gtk3.mk | 129 | ||||
-rw-r--r-- | vcl/Module_vcl.mk | 5 |
2 files changed, 134 insertions, 0 deletions
diff --git a/vcl/Library_vclplug_gtk3.mk b/vcl/Library_vclplug_gtk3.mk new file mode 100644 index 000000000000..7fff2633f616 --- /dev/null +++ b/vcl/Library_vclplug_gtk3.mk @@ -0,0 +1,129 @@ +#************************************************************************* +# +# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. +# +# Copyright 2000, 2010 Oracle and/or its affiliates. +# +# OpenOffice.org - a multi-platform office productivity suite +# +# This file is part of OpenOffice.org. +# +# OpenOffice.org is free software: you can redistribute it and/or modify +# it under the terms of the GNU Lesser General Public License version 3 +# only, as published by the Free Software Foundation. +# +# OpenOffice.org is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Lesser General Public License version 3 for more details +# (a copy is included in the LICENSE file that accompanied this code). +# +# You should have received a copy of the GNU Lesser General Public License +# version 3 along with OpenOffice.org. If not, see +# <http://www.openoffice.org/license.html> +# for a copy of the LGPLv3 License. +# +#************************************************************************* + +$(eval $(call gb_Library_Library,vclplug_gtk3)) + +$(eval $(call gb_Library_set_include,vclplug_gtk3,\ + $$(INCLUDE) \ + -I$(SRCDIR)/vcl/inc \ + -I$(SRCDIR)/vcl/inc/pch \ + -I$(SRCDIR)/solenv/inc \ + -I$(OUTDIR)/inc/offuh \ + -I$(OUTDIR)/inc \ +)) + +$(eval $(call gb_Library_set_cxxflags,vclplug_gtk3,\ + $$(CXXFLAGS) \ + $$(GTK3_CFLAGS) \ +)) + +$(eval $(call gb_Library_set_defs,vclplug_gtk3,\ + $$(DEFS) \ + -DVCLPLUG_GTK_IMPLEMENTATION \ + -DVERSION=\"$(UPD)$(LAST_MINOR)\" \ +)) + +ifneq ($(ENABLE_DBUS),) +$(eval $(call gb_Library_set_include,vclplug_gtk3,\ + $$(INCLUDE) \ + $(filter -I%,$(shell pkg-config --cflags dbus-glib-1)) \ +)) +$(eval $(call gb_Library_set_defs,vclplug_gtk3,\ + $$(DEFS) \ + -DENABLE_DBUS \ +)) +$(eval $(call gb_Library_set_ldflags,vclplug_gtk3,\ + $$(LDFLAGS) \ + $(shell pkg-config --libs dbus-glib-1)\ +)) +endif + +$(eval $(call gb_Library_set_ldflags,vclplug_gtk3,\ + $$(LDFLAGS) \ + $$(GTK3_LIBS) \ + $$(GTHREAD_LIBS) \ +)) + +$(eval $(call gb_Library_add_linked_libs,vclplug_gtk3,\ + vclplug_gen \ + vcl \ + tl \ + utl \ + sot \ + ucbhelper \ + basegfx \ + comphelper \ + cppuhelper \ + icuuc \ + icule \ + i18nisolang1 \ + i18npaper \ + i18nutil \ + jvmaccess \ + cppu \ + sal \ + X11 \ + Xext \ + SM \ + ICE \ + $(gb_STDLIBS) \ +)) + +$(eval $(call gb_Library_add_exception_objects,vclplug_gtk3,\ + vcl/unx/gtk3/a11y/gtk3atkaction \ + vcl/unx/gtk3/a11y/gtk3atkbridge \ + vcl/unx/gtk3/a11y/gtk3atkcomponent \ + vcl/unx/gtk3/a11y/gtk3atkeditabletext \ + vcl/unx/gtk3/a11y/gtk3atkfactory \ + vcl/unx/gtk3/a11y/gtk3atkhypertext \ + vcl/unx/gtk3/a11y/gtk3atkimage \ + vcl/unx/gtk3/a11y/gtk3atklistener \ + vcl/unx/gtk3/a11y/gtk3atkregistry \ + vcl/unx/gtk3/a11y/gtk3atkselection \ + vcl/unx/gtk3/a11y/gtk3atktable \ + vcl/unx/gtk3/a11y/gtk3atktextattributes \ + vcl/unx/gtk3/a11y/gtk3atktext \ + vcl/unx/gtk3/a11y/gtk3atkutil \ + vcl/unx/gtk3/a11y/gtk3atkvalue \ + vcl/unx/gtk3/a11y/gtk3atkwindow \ + vcl/unx/gtk3/a11y/gtk3atkwrapper \ + vcl/unx/gtk3/app/gtk3gtkdata \ + vcl/unx/gtk3/app/gtk3gtkinst \ + vcl/unx/gtk3/app/gtk3gtksys \ + vcl/unx/gtk3/gdi/gtk3salnativewidgets-gtk \ + vcl/unx/gtk3/window/gtk3gtkframe \ + vcl/unx/gtk3/window/gtk3gtkobject \ +)) + +ifeq ($(OS),LINUX) +$(eval $(call gb_Library_add_linked_libs,vclplug_gtk3,\ + dl \ + m \ + pthread \ +)) +endif +# vim: set noet sw=4 ts=4: diff --git a/vcl/Module_vcl.mk b/vcl/Module_vcl.mk index 446bf362f933..c462e4e2c02e 100644 --- a/vcl/Module_vcl.mk +++ b/vcl/Module_vcl.mk @@ -48,6 +48,11 @@ $(eval $(call gb_Module_add_targets,vcl,\ Library_vclplug_gtk \ )) endif +ifneq ($(ENABLE_GTK3),) +$(eval $(call gb_Module_add_targets,vcl,\ + Library_vclplug_gtk3 \ +)) +endif ifneq ($(ENABLE_KDE),) $(eval $(call gb_Module_add_targets,vcl,\ Library_vclplug_kde \ |