From 29cd838eab01ed7110f3ccb2e8c6a35c8a31dbcc Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Thu, 11 Apr 2024 10:21:29 +0200 Subject: Adding upstream version 1:0.1.9998svn3589+dfsg. Signed-off-by: Daniel Baumann --- kBuild/units/qt-Q_OBJECT.sed | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 kBuild/units/qt-Q_OBJECT.sed (limited to 'kBuild/units/qt-Q_OBJECT.sed') diff --git a/kBuild/units/qt-Q_OBJECT.sed b/kBuild/units/qt-Q_OBJECT.sed new file mode 100644 index 0000000..1ac1786 --- /dev/null +++ b/kBuild/units/qt-Q_OBJECT.sed @@ -0,0 +1,36 @@ +# $Id: qt-Q_OBJECT.sed 3558 2022-03-02 00:47:18Z bird $ +## @file +# Qt unit - sed script for checking for Q_OBJECT in a file. +# +# This is not very sophisticated, but it helps avoid generating +# files we don't need. It outputs '1' when Q_OBJECT is found +# and then quits, allowing us to do $(if $(shell ...),moc_...). +# is +# + +# +# Copyright (c) 2008-2010 knut st. osmundsen +# +# This file is part of kBuild. +# +# kBuild is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# kBuild 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 General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with kBuild; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA +# +# + +/Q_OBJECT/!b skip +s/^.*$/1/ +q 0 +:skip +d -- cgit v1.2.3