1 # -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
3 # This file is part of the LibreOffice project.
5 # This Source Code Form is subject to the terms of the Mozilla Public
6 # License, v. 2.0. If a copy of the MPL was not distributed with this
7 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
10 $(eval
$(call gb_CustomTarget_CustomTarget
,static
/qt5-mandelbrot
))
12 $(call gb_CustomTarget_get_target
,static
/qt5-mandelbrot
) : \
13 $(call gb_CustomTarget_get_workdir
,static
/qt5-mandelbrot
)/renderthread.moc \
14 $(call gb_CustomTarget_get_workdir
,static
/qt5-mandelbrot
)/mandelbrotwidget.moc \
16 qt5_mandelbrot_MOCDEFS_H
:= $(call gb_CustomTarget_get_workdir
,static
/qt5-mandelbrot
)/moc_predefs.h
17 qt5_mandelbrot_MOCDEFS_CXX
:= $(call gb_CustomTarget_get_workdir
,static
/qt5-mandelbrot
)/moc_dummy.
cxx
18 qt5_mandelbrot_WORKDIR
:= $(call gb_CustomTarget_get_workdir
,static
/qt5-mandelbrot
)/.
dir
20 $(qt5_mandelbrot_MOCDEFS_CXX
): |
$(qt5_mandelbrot_WORKDIR
)
23 $(qt5_mandelbrot_MOCDEFS_H
): $(qt5_mandelbrot_MOCDEFS_CXX
) |
$(qt5_mandelbrot_WORKDIR
)
24 $(call gb_Output_announce
,$(subst $(WORKDIR
)/,,$@
),$(true
),CXX
,1)
25 $(call gb_Trace_StartRange
,$(subst $(WORKDIR
)/,,$@
),CXX
)
26 $(CXX
) -pipe
-O2
-std
=gnu
++11 -fno-exceptions
$(gb_EMSCRIPTEN_CPPFLAGS
) -dM
-E
-o
$@
$<
27 $(call gb_Trace_EndRange
,$(subst $(WORKDIR
)/,,$@
),MOC
)
29 $(call gb_CustomTarget_get_workdir
,static
/qt5-mandelbrot
)/%.moc
: \
30 $(SRCDIR
)/static
/source
/qt5-mandelbrot
/%.h \
31 $(qt5_mandelbrot_MOCDEFS_H
) |
$(qt5_mandelbrot_WORKDIR
)
32 $(call gb_Output_announce
,$(subst $(WORKDIR
)/,,$@
),$(true
),MOC
,1)
33 $(call gb_Trace_StartRange
,$(subst $(WORKDIR
)/,,$@
),MOC
)
34 $(MOC5
) --include $(qt5_mandelbrot_MOCDEFS_H
) $(gb_EMSCRIPTEN_QTDEFS
) $< -o
$@
35 $(call gb_Trace_EndRange
,$(subst $(WORKDIR
)/,,$@
),MOC
)