Skip to content

Commit

Permalink
fix: build failed when no static build
Browse files Browse the repository at this point in the history
Change-Id: I4f607261fc778663dd20a2fa91105a93f470cd96
  • Loading branch information
Iceyer committed Apr 13, 2018
1 parent 0732643 commit 9194f83
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/dtkwidget_global.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down

0 comments on commit 9194f83

Please sign in to comment.