diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-11 08:21:29 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-11 08:21:29 +0000 |
commit | 29cd838eab01ed7110f3ccb2e8c6a35c8a31dbcc (patch) | |
tree | 63ef546b10a81d461e5cf5ed9e98a68cd7dee1aa /kBuild/units/qt-Q_OBJECT.sed | |
parent | Initial commit. (diff) | |
download | kbuild-29cd838eab01ed7110f3ccb2e8c6a35c8a31dbcc.tar.xz kbuild-29cd838eab01ed7110f3ccb2e8c6a35c8a31dbcc.zip |
Adding upstream version 1:0.1.9998svn3589+dfsg.upstream/1%0.1.9998svn3589+dfsg
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'kBuild/units/qt-Q_OBJECT.sed')
-rw-r--r-- | kBuild/units/qt-Q_OBJECT.sed | 36 |
1 files changed, 36 insertions, 0 deletions
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 <bird-kBuild-spamx@anduin.net> +# +# 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 |