[Kde-bindings] KDE/kdebindings/perl

Maciej Mrozowski reavertm at gmail.com
Sun May 23 04:05:42 UTC 2010


SVN commit 1129638 by mmrozowski:

Cleanup Perl bindings CMake stuff (same option names like for Ruby/CSharp and similar handling) and sync PerlQt4 with Smoke (smokebase link needed).

CCMAIL: kde-bindings at kde.org
CCMAIL: chrisburel at gmail.com

 M  +16 -20    CMakeLists.txt  
 M  +1 -0      qtcore/src/CMakeLists.txt  


--- trunk/KDE/kdebindings/perl/CMakeLists.txt #1129637:1129638
@@ -1,29 +1,25 @@
-#####################################################################
-# PerlQt4
+project(Perl)
 
-OPTION(ENABLE_PERLQT4 "build PerlQt4" ON)
-OPTION(ENABLE_PERLQTCORE4 "build PerlQtCore4" ON)
-OPTION(ENABLE_PERLQTGUI4 "build PerlQtGui4" ON)
-OPTION(ENABLE_PERLQTTEST4 "build PerlQtTest4" ON)
-OPTION(ENABLE_PERLKDECORE4 "build PerlKDECore4" ON)
-OPTION(ENABLE_PERLKDEUI4 "build PerlKDEUi4" ON)
-OPTION(ENABLE_PERLKIO4 "build PerlKIO4" ON)
-OPTION(ENABLE_PERLPLASMA4 "build PerlPlasma4" ON)
+find_package(Perl)
+find_package(PerlLibs)
 
+if (NOT PERL_FOUND OR NOT PERL_LIBRARY)
+    return()
+endif (NOT PERL_FOUND OR NOT PERL_LIBRARY)
+
 add_definitions( -DDEBUG )
-FIND_PACKAGE ( Perl )
-FIND_PACKAGE ( PerlLibs )
 
 include (FindPerlMore)
-SET(CUSTOM_PERL_SITE_ARCH_DIR ${PERL_SITE_ARCH_DIR} CACHE DIR "Custom installation directory for perl binary extension" )
+set(CUSTOM_PERL_SITE_ARCH_DIR ${PERL_SITE_ARCH_DIR} CACHE DIR "Custom installation directory for perl binary extension")
 
-macro_optional_add_bindings(QT_QTCORE_FOUND "PerlQtCore" qtcore)
-macro_optional_add_bindings(QT_QTGUI_FOUND "PerlQtGui" qtgui)
-macro_optional_add_bindings(QT_QTTEST_FOUND "PerlQtTest" qttest)
+add_subdirectory(qtcore)
 
-macro_optional_add_bindings(KDE4_FOUND "PerlKDECore" kdecore)
-macro_optional_add_bindings(KDE4_FOUND "PerlKDEUi" kdeui)
-macro_optional_add_bindings(KDE4_FOUND "PerlKIO" kio)
-macro_optional_add_bindings(KDE4_FOUND "PerlPlasma" plasma)
+macro_optional_add_bindings(QT_QTGUI_FOUND "QtGui" qtgui)
+macro_optional_add_bindings(QT_QTTEST_FOUND "QtTest" qttest)
 
+macro_optional_add_bindings(KDE4_FOUND "KDECore" kdecore)
+macro_optional_add_bindings(KDE4_FOUND "KDEUi" kdeui)
+macro_optional_add_bindings(KDE4_FOUND "KIO" kio)
+macro_optional_add_bindings(KDE4_FOUND "Plasma" plasma)
+
 macro_display_bindings_log()
--- trunk/KDE/kdebindings/perl/qtcore/src/CMakeLists.txt #1129637:1129638
@@ -34,6 +34,7 @@
     ${QT_QTNETWORK_LIBRARY}
     ${QT_QTDBUS_LIBRARY}
     ${PERL_LIBRARY}
+    smokebase
     smokeqtcore
     smokeqtgui
     smokeqtnetwork



More information about the Kde-bindings mailing list