File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -74,10 +74,15 @@ qt_add_qml_module(scratchcpp-render
7474 cputexturemanager.h
7575 effecttransform.cpp
7676 effecttransform.h
77- blocks/penblocks.cpp
78- blocks/penblocks.h
7977)
8078
79+ if (NOT LIBSCRATCHCPP_USE_LLVM)
80+ target_sources (scratchcpp-render
81+ PRIVATE
82+ blocks/penblocks.cpp
83+ blocks/penblocks.h)
84+ endif ()
85+
8186list (APPEND QML_IMPORT_PATH ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR} )
8287list (REMOVE_DUPLICATES QML_IMPORT_PATH)
8388set (QML_IMPORT_PATH ${QML_IMPORT_PATH} CACHE STRING "" FORCE)
Original file line number Diff line number Diff line change @@ -37,8 +37,10 @@ ProjectLoader::ProjectLoader(QObject *parent) :
3737 initTimer ();
3838 m_renderTimer.start ();
3939
40+ #ifndef USE_LLVM
4041 // Register pen blocks
4142 ScratchConfiguration::registerExtension (std::make_shared<PenBlocks>());
43+ #endif
4244}
4345
4446ProjectLoader::~ProjectLoader ()
You can’t perform that action at this time.
0 commit comments