mirror of https://github.com/KLayout/klayout.git
Fixed non-Qt-binding case
This commit is contained in:
parent
684ece41d1
commit
585aa4667f
|
|
@ -30,7 +30,6 @@ SOURCES = \
|
|||
# Enabled without Qt:
|
||||
|
||||
HEADERS += \
|
||||
antForceLink.h \
|
||||
antConfig.h \
|
||||
antObject.h \
|
||||
antPlugin.h \
|
||||
|
|
@ -40,7 +39,6 @@ HEADERS += \
|
|||
antCommon.h
|
||||
|
||||
SOURCES += \
|
||||
antForceLink.cc \
|
||||
antConfig.cc \
|
||||
antObject.cc \
|
||||
antPlugin.cc \
|
||||
|
|
|
|||
|
|
@ -160,7 +160,7 @@ Class<lay::PixelBuffer> decl_PixelBuffer ("lay", "PixelBuffer",
|
|||
gsi::method ("fill", &lay::PixelBuffer::fill, gsi::arg ("color"),
|
||||
"@brief Fills the pixel buffer with the given pixel value\n"
|
||||
) +
|
||||
#if defined(HAVE_QT)
|
||||
#if defined(HAVE_QT) && defined(HAVE_QTBINDINGS)
|
||||
gsi::method_ext ("fill", &fill_with_qcolor, gsi::arg ("color"),
|
||||
"@brief Fills the pixel buffer with the given QColor\n"
|
||||
) +
|
||||
|
|
@ -352,7 +352,7 @@ Class<lay::BitmapBuffer> decl_BitmapBuffer ("lay", "BitmapBuffer",
|
|||
gsi::method ("fill", &lay::BitmapBuffer::fill, gsi::arg ("color"),
|
||||
"@brief Fills the pixel buffer with the given pixel value\n"
|
||||
) +
|
||||
#if defined(HAVE_QT)
|
||||
#if defined(HAVE_QT) && defined(HAVE_QTBINDINGS)
|
||||
gsi::method_ext ("fill", &fill_with_qcolor, gsi::arg ("color"),
|
||||
"@brief Fills the pixel buffer with the given QColor\n"
|
||||
) +
|
||||
|
|
|
|||
|
|
@ -260,7 +260,7 @@ TEST(13)
|
|||
}
|
||||
#endif
|
||||
|
||||
#if defined(HAVE_PNG) || defined(HAVE_QT)
|
||||
#if defined(HAVE_PNG) && defined(HAVE_QT)
|
||||
TEST(21)
|
||||
{
|
||||
lay::LayoutView lv (0, false, 0);
|
||||
|
|
|
|||
|
|
@ -425,6 +425,16 @@ class LAYLayoutView_TestClass < TestBase
|
|||
|
||||
def test_4
|
||||
|
||||
# check if PNG support is compiled in
|
||||
# TODO: remove this once PNG support is available on all platforms
|
||||
begin
|
||||
RBA::PixelBuffer.read_png(File.join($ut_testsrc, "testdata/lay/au_lv1.png"))
|
||||
rescue => ex
|
||||
# PNG support missing
|
||||
puts "WARNING: PNG support not compiled in - skipping test"
|
||||
return
|
||||
end
|
||||
|
||||
# standalone image generation (see C++ tests)
|
||||
lv = RBA::LayoutView::new
|
||||
lv.set_config("inst-color", "#000000")
|
||||
|
|
|
|||
Loading…
Reference in New Issue