summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Hausmann <simon.hausmann@theqtcompany.com>2014-12-14 12:51:38 +0100
committerSimon Hausmann <simon.hausmann@theqtcompany.com>2014-12-14 12:51:38 +0100
commitc756df4177fd3666b88312c90b67679fc1200b5f (patch)
tree2ac514c23cf1c47b8e15e88fb1ea046fc3bc2bd3
parentc6a8ae209fd2fe3db6d18a8f1986f6152dddb944 (diff)
Re-organize the build system to turn this into a full-fledged module
-rw-r--r--.gitignore276
-rw-r--r--.qmake.conf3
-rw-r--r--qpdf.pro6
-rw-r--r--src/qpdf/gyp2pri.py (renamed from gyp2pri.py)0
-rw-r--r--src/qpdf/pdfium.pri (renamed from pdfium.pri)0
-rw-r--r--src/qpdf/qpdf.pro7
-rw-r--r--src/src.pro2
-rw-r--r--sync.profile13
-rw-r--r--tests/auto/cmake/cmake.pro0
9 files changed, 301 insertions, 6 deletions
diff --git a/.gitignore b/.gitignore
index 6eb25f6..b0854aa 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,276 @@
+# This file is used to ignore files which are generated in the Qt build system
+# ----------------------------------------------------------------------------
+
+config.tests/*/*/*
+!config.tests/*/*/*[.]*
+config.tests/*/*/*[.]app
+
+callgrind.out.*
+pcviewer.cfg
+*~
+*.a
+*.la
+*.core
+*.moc
*.o
-Makefile
+*.obj
+*.orig
+*.swp
+*.rej
+*.so
+*.pbxuser
+*.mode1
+*.mode1v3
+*_pch.h.cpp
+*_resource.rc
+.#*
+*.*#
+core
+.qmake.cache
+.qmake.vars
+*.prl
+tags
+.DS_Store
+*.debug
+Makefile*
+!qmake/Makefile.win32*
+!qmake/Makefile.unix
+*.prl
+*.app
+*.pro.user
+*.qmlproject.user
+*.gcov
+bin/Qt*.dll
+bin/assistant*
+bin/designer*
+bin/dumpcpp*
+bin/idc*
+bin/linguist*
+bin/lrelease*
+bin/lupdate*
+bin/lconvert*
+bin/moc*
+bin/makeqpf*
+bin/pixeltool*
+bin/qmake*
+bin/qdoc3*
+bin/qt3to4*
+bin/qttracereplay*
+bin/rcc*
+bin/uic*
+bin/patternist*
+bin/phonon*
+bin/qcollectiongenerator*
+bin/qdbus*
+bin/qhelpconverter*
+bin/qhelpgenerator*
+bin/qtconfig*
+bin/xmlpatterns*
+bin/cetest*
+bin/collectiongenerator
+bin/helpconverter
+bin/helpgenerator
+bin/kmap2qmap*
+bin/qlalr*
+bin/qmlconv*
+bin/qmldebugger*
+bin/qml*
+bin/qttracereplay*
+configure.cache
+config.status
+mkspecs/default
+mkspecs/qconfig.pri
+moc_*.cpp
+qmake/qmake.exe
+qmake/Makefile.bak
+src/corelib/global/qconfig.cpp
+src/corelib/global/qconfig.h
+src/corelib/global/qconfig.h.qmake
+ui_*.h
+tests/auto/qprocess/test*/*.exe
+tests/auto/qtcpsocket/stressTest/*.exe
+tests/auto/qprocess/fileWriterProcess/*.exe
+tests/auto/qmake/testdata/quotedfilenames/*.exe
+tests/auto/compilerwarnings/*.exe
+tests/auto/qmake/testdata/quotedfilenames/test.cpp
+tests/auto/qprocess/fileWriterProcess.txt
+.com.apple.timemachine.supported
+tests/auto/qlibrary/libmylib.so*
+tests/auto/qresourceengine/runtime_resource.rcc
+tools/qtestlib/chart/chart*
+tools/qtestlib/updater/updater*
+tools/qmleasing/qmleasing
+tools/qmltestrunner/qmltestrunner
+tools/activeqt/testcon/testcon.tlb
+translations/*.qm
+translations/*_untranslated.ts
+qrc_*.cpp
+
+# Test generated files
+QObject.log
+tst_*
+!tst_*.*
+tst_*.log
+tst_*.debug
+tst_*~
+
+# xemacs temporary files
+*.flc
+
+# Vim temporary files
+.*.swp
+
+# Visual Studio generated files
+*.ib_pdb_index
+*.idb
+*.ilk
+*.pdb
+*.dll
+*.exp
+*.sln
+*.suo
+*.vcproj
+*vcproj.*.*.user
+*.ncb
+*.vcxproj
+*.vcxproj.filters
+*.vcxproj.user
+
+# MinGW generated files
+*.Debug
+*.Release
+
+# WebKit temp files
+src/3rdparty/webkit/WebCore/mocinclude.tmp
+src/3rdparty/webkit/includes.txt
+src/3rdparty/webkit/includes2.txt
+
+# Symlinks generated by configure
+tools/qvfb/qvfbhdr.h
+tools/qvfb/qlock_p.h
+tools/qvfb/qlock.cpp
+tools/qvfb/qwssignalhandler.cpp
+tools/qvfb/qwssignalhandler_p.h
+.DS_Store
+.pch
+.rcc
+*.app
+config.status
+config.tests/unix/cups/cups
+config.tests/unix/getaddrinfo/getaddrinfo
+config.tests/unix/getifaddrs/getifaddrs
+config.tests/unix/iconv/iconv
+config.tests/unix/ipv6/ipv6
+config.tests/unix/ipv6ifname/ipv6ifname
+config.tests/unix/largefile/largefile
+config.tests/unix/nis/nis
+config.tests/unix/odbc/odbc
+config.tests/unix/openssl/openssl
+config.tests/unix/stl/stl
+config.tests/unix/zlib/zlib
+config.tests/unix/3dnow/3dnow
+config.tests/unix/mmx/mmx
+config.tests/unix/sse/sse
+config.tests/unix/sse2/sse2
+
+
+
+# Directories to ignore
+# ---------------------
+
+debug
+imports/*
+examples/tools/plugandpaint/plugins
+include/*
+include/*/*
+lib/*
+!lib/fonts
+!lib/README
+plugins/*/*
+release
+tmp
+doc-build
+doc/html/*
+doc/qch
+doc-build
+doc/qtqml
+doc/qtquick
+.rcc
+.pch
+.metadata
+
+# Symbian build system generated files
+# ---------------------
+
+ABLD.BAT
+bld.inf*
+*.mmp
+*.mk
+*.rss
+*.loc
+!s60main.rss
+*.pkg
+plugin_commonu.def
+*.qtplugin
+*.sis
+*.sisx
+*.lst
+*.exe
+*.mif
+*.rsc
+*.sym
+*.lib
+
+# runonphone crash dumps
+d_exc_*.txt
+d_exc_*.stk
+
+# Generated by abldfast.bat from devtools.
+.abldsteps.*
+
+# Carbide project files
+# ---------------------
+.project
+.cproject
+.make.cache
+*.d
+
+qtc-debugging-helper
+src/corelib/lib
+src/network/lib
+src/xml/lib/
+
+.pc/
+
+# INTEGRITY generated files
+*.gpj
+*.int
+*.ael
+*.dla
+*.dnm
+*.dep
+*.map
+work
+
+#generated version headers
+src/qmltest/qtquicktestversion.h
+src/qtquick1/qtquick1version.h
+src/qmldevtools/qtqmldevtoolsversion.h
+src/quick/qtquickversion.h
+src/qml/qtqmlversion.h
+
+tests/auto/*/*.o
+tests/auto/*/*.moc
+tests/auto/*/*/*.o
+tests/auto/*/*/*.moc
+
+# Generated static plugin import sources
+*_plugin_import.cpp
+
+# Compiled python code
+*.pyc
+
+src/qml/RegExpJitTables.h
+src/qml/udis86_itab.c
+src/qml/udis86_itab.h
+
diff --git a/.qmake.conf b/.qmake.conf
new file mode 100644
index 0000000..a98bcf6
--- /dev/null
+++ b/.qmake.conf
@@ -0,0 +1,3 @@
+load(qt_build_config)
+
+MODULE_VERSION = 5.5.0
diff --git a/qpdf.pro b/qpdf.pro
index 9beab6f..58c33f2 100644
--- a/qpdf.pro
+++ b/qpdf.pro
@@ -1,5 +1 @@
-TEMPLATE = lib
-CONFIG += c++11 warn_off
-VPATH += src/3rdparty/pdfium
-linux*:QMAKE_LFLAGS += $$QMAKE_LFLAGS_NOUNDEF
-include(pdfium.pri)
+load(qt_parts)
diff --git a/gyp2pri.py b/src/qpdf/gyp2pri.py
index af3f523..af3f523 100644
--- a/gyp2pri.py
+++ b/src/qpdf/gyp2pri.py
diff --git a/pdfium.pri b/src/qpdf/pdfium.pri
index c7f96a8..c7f96a8 100644
--- a/pdfium.pri
+++ b/src/qpdf/pdfium.pri
diff --git a/src/qpdf/qpdf.pro b/src/qpdf/qpdf.pro
new file mode 100644
index 0000000..653dab6
--- /dev/null
+++ b/src/qpdf/qpdf.pro
@@ -0,0 +1,7 @@
+TARGET = QtQPdf
+QT = gui core network
+TEMPLATE = lib
+CONFIG += c++11 warn_off
+VPATH += ../3rdparty/pdfium
+include(pdfium.pri)
+load(qt_module)
diff --git a/src/src.pro b/src/src.pro
new file mode 100644
index 0000000..999b23d
--- /dev/null
+++ b/src/src.pro
@@ -0,0 +1,2 @@
+TEMPLATE = subdirs
+SUBDIRS = qpdf
diff --git a/sync.profile b/sync.profile
new file mode 100644
index 0000000..c9d0e17
--- /dev/null
+++ b/sync.profile
@@ -0,0 +1,13 @@
+%modules = ( # path to module name map
+ "QtQPdf" => "$basedir/src/qpdf",
+);
+# Module dependencies.
+# Every module that is required to build this module should have one entry.
+# Each of the module version specifiers can take one of the following values:
+# - A specific Git revision.
+# - any git symbolic ref resolvable from the module's repository (e.g. "refs/heads/master" to track master branch)
+# - an empty string to use the same branch under test (dependencies will become "refs/heads/master" if we are in the master branch)
+#
+%dependencies = (
+ "qtbase" => "",
+);
diff --git a/tests/auto/cmake/cmake.pro b/tests/auto/cmake/cmake.pro
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tests/auto/cmake/cmake.pro