From 0e5cc70bee0a41038bde450dbcd871425eb4528a 2008-08-28 16:49:14 From: ezust Date: 2008-08-28 16:49:14 Subject: [PATCH] oops. Forgot to move the 'build' directory. I'm used to thinking that's a generated dir. git-svn-id: svn://svn.code.sf.net/p/pythonqt/code/trunk@35 ea8d5007-eb21-0410-b261-ccb3ea6e24a9 --- diff --git a/build/PythonQt.prf b/build/PythonQt.prf new file mode 100644 index 0000000..058477b --- /dev/null +++ b/build/PythonQt.prf @@ -0,0 +1,15 @@ +# profile for non-mevis users to link to PythonQt + +include ( python.prf ) + +INCLUDEPATH += $$PWD/../src + +# check if debug or release +CONFIG(debug, debug|release) { + DEBUG_EXT = _d +} else { + DEBUG_EXT = +} + +win32::LIBS += $$PWD/../lib/PythonQt$${DEBUG_EXT}.lib +unix::LIBS += -L$$PWD/../lib -lPythonQt$${DEBUG_EXT} diff --git a/build/PythonQtGui.prf b/build/PythonQtGui.prf new file mode 100644 index 0000000..ed96f61 --- /dev/null +++ b/build/PythonQtGui.prf @@ -0,0 +1,13 @@ +# profile for non-mevis users to link to PythonQtGui + +INCLUDEPATH += $$PWD/../extensions/PythonQtGui + +# check if debug or release +CONFIG(debug, debug|release) { + DEBUG_EXT = _d +} else { + DEBUG_EXT = +} + +win32::LIBS += $$PWD/../lib/PythonQtGui$${DEBUG_EXT}.lib +unix::LIBS += -L$$PWD/../lib -lPythonQtGui$${DEBUG_EXT} diff --git a/build/common.prf b/build/common.prf new file mode 100644 index 0000000..5c9a0f0 --- /dev/null +++ b/build/common.prf @@ -0,0 +1,18 @@ + +# depending on your Qt configuration, you want to enable or disable +# one of the release/debug builds (if all three lines are commented, +# the default of your Qt installation will used) + +# build with both debug and release mode +#CONFIG += debug_and_release build_all + +# build with release mode only +#CONFIG += release + +# build with debug mode only +#CONFIG += debug + +# for all debug builds, add "_d" extension to target +CONFIG(debug, debug|release) { + TARGET = $${TARGET}_d +} diff --git a/build/python.prf b/build/python.prf new file mode 100644 index 0000000..c5ba984 --- /dev/null +++ b/build/python.prf @@ -0,0 +1,42 @@ +# profile to include and link Python + +# Change this variable to your python version (2.3, 2.4, 2.5) +win32:PYTHON_VERSION=25 +unix:PYTHON_VERSION=2.5 + +macx { + # for macx you need to have Python development kit installed as framework + INCLUDEPATH += /System/Library/Frameworks/Python.framework/Headers + LIBS += -F/System/Library/Frameworks -framework Python +} else:win32 { + # for windows install a Python development kit or build Python yourself from the sources + # Make sure that you set the environment variable PYTHON_PATH to point to your + # python installation (or the python sources/header files when building from source). + # Make sure that you set the environment variable PYTHON_LIB to point to + # the directory where the python libs are located. + # + # When using the prebuild Python installer, this will be: + # set PYTHON_PATH = c:\Python25 + # set PYTHON_LIB = c:\Python25\libs + # + # When using the python sources, this will be something like: + # set PYTHON_PATH = c:\yourDir\Python-2.5.1\ + # set PYTHON_LIB = c:\yourDir\Python-2.5.1\PCbuild8\Win32 + + # check if debug or release + CONFIG(debug, debug|release) { + DEBUG_EXT = _d + } else { + DEBUG_EXT = + } + + win32:INCLUDEPATH += $(PYTHON_PATH)/PC $(PYTHON_PATH)/include + win32:LIBS += $(PYTHON_LIB)/python$${PYTHON_VERSION}$${DEBUG_EXT}.lib + +} else:unix { + # on linux, python-config is used to autodetect Python. + # make sure that you have installed a matching python-dev package. + + unix:LIBS += $$system(python$${PYTHON_VERSION}-config --libs) + unix:QMAKE_CXXFLAGS += $$system(python$${PYTHON_VERSION}-config --includes) +}