Use qmake/make instead of scons as build-system
Stefan Bund [Tue, 26 Oct 2010 08:29:46 +0000 (10:29 +0200)]
.gitignore
.gitmodules [deleted file]
SConscript [deleted file]
SConstruct [deleted file]
pykit.pro [new file with mode: 0644]
site_scons/qtscons [deleted submodule]

index 3f1142b..2daed2e 100644 (file)
@@ -4,3 +4,4 @@ moc_*
 .sconsign*
 *.moc
 /pykit
+/Makefile
diff --git a/.gitmodules b/.gitmodules
deleted file mode 100644 (file)
index e0d07f9..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-[submodule "site_scons/qtscons"]
-       path = site_scons/qtscons
-       url = git://git.j32.de/qtscons.git
diff --git a/SConscript b/SConscript
deleted file mode 100644 (file)
index 2614eb2..0000000
+++ /dev/null
@@ -1,17 +0,0 @@
-# -*- python -*-
-
-import os.path
-Import('env')
-
-env.Tool('qt4', [ os.path.join('site_scons','qtscons') ])
-
-# QtSvg and QtXml are needed by some plugins ...
-env.EnableQt4Modules([ 'QtWebKit', 'QtNetwork', 'QtSvg', 'QtXml', 'QtGui', 'QtCore' ])
-
-env.Append(
-    CXXFLAGS = [ '-Wall', '-Wextra' ],
-    LIBS     = [ '$BOOSTPYLIBS', '$POPPLERLIBS' ],
-)
-
-pykit = env.Program('pykit', env.Qt4Glob())
-env.Default(pykit)
diff --git a/SConstruct b/SConstruct
deleted file mode 100644 (file)
index a5b3878..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-# -*- python -*-
-
-import os
-
-env = Environment(ENV = os.environ)
-
-env.SetDefault(
-    BOOSTPYLIBS = [ 'boost_python' ],
-    POPPLERLIBS = [ 'poppler', 'poppler-qt4' ],
-)
-
-env.MergeFlags('!python-config --cflags')
-env.MergeFlags('!python-config --ldflags')
-
-Export('env')
-env.SConscript("SConscript")
diff --git a/pykit.pro b/pykit.pro
new file mode 100644 (file)
index 0000000..63d9604
--- /dev/null
+++ b/pykit.pro
@@ -0,0 +1,29 @@
+TEMPLATE = app
+TARGET = pykit
+DEPENDPATH += .
+INCLUDEPATH += .
+QT += webkit network gui core
+
+# boost_python
+LIBS += -lboost_python
+
+# python
+QMAKE_CXXFLAGS += $$system(python-config --cflags)
+QMAKE_CFFLAGS += $$system(python-config --cflags)
+LIBS += $$system(python-config --ldflags)
+
+# poppler
+LIBS += -lpoppler-qt4 -lpoppler
+
+# Input
+HEADERS += MainWindow.hh \
+           Publisher.hh \
+           PythonPublisher.hh \
+           Viewer.hh \
+           PDFWidget.hh
+SOURCES += main.cc \
+           MainWindow.cc \
+           Publisher.cc \
+           PythonPublisher.cc \
+           Viewer.cc \
+           PDFWidget.cc
diff --git a/site_scons/qtscons b/site_scons/qtscons
deleted file mode 160000 (submodule)
index d2af983..0000000
+++ /dev/null
@@ -1 +0,0 @@
-Subproject commit d2af983e689640420972f36d446dab0ed0c2e22e