From 9194f83b5faa1f1ffbb47105099f6257fc69db39 Mon Sep 17 00:00:00 2001 From: Iceyer Date: Fri, 13 Apr 2018 09:54:46 +0800 Subject: [PATCH] fix: build failed when no static build Change-Id: I4f607261fc778663dd20a2fa91105a93f470cd96 --- src/dtkwidget_global.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/dtkwidget_global.h b/src/dtkwidget_global.h index 841a576d3..21e44514e 100644 --- a/src/dtkwidget_global.h +++ b/src/dtkwidget_global.h @@ -29,14 +29,18 @@ #define DWIDGET_END_NAMESPACE }} #define DWIDGET_USE_NAMESPACE using namespace DTK_WIDGET_NAMESPACE; +#if defined(DTK_STATIC_LIB) void inline dtk_windget_init_resource() { Q_INIT_RESOURCE(icons); Q_INIT_RESOURCE(dui_theme_dark); Q_INIT_RESOURCE(dui_theme_light); // TODO: use marco create by dtk_build +#if defined(DTK_STATIC_TRANSLATION) Q_INIT_RESOURCE(dtkwidget_translations); +#endif } +#endif namespace Dtk {