mirror of https://github.com/vitalif/phantomjs
Add the importer script to include Qt source.
http://code.google.com/p/phantomjs/issues/detail?id=2261.5
parent
ddc0a7d623
commit
da078de819
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,8 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
QT_FOLDER=$PWD/../src/qt
|
||||||
|
|
||||||
|
rm -rf $QT_FOLDER
|
||||||
|
rsync --files-from=filelist.txt ~/temp/qt $QT_FOLDER/
|
||||||
|
cp preconfig.sh $QT_FOLDER/
|
||||||
|
cp qscriptengine.h $QT_FOLDER/src/script/api/
|
|
@ -0,0 +1,76 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
COMPILE_JOBS=4
|
||||||
|
|
||||||
|
export MAKEFLAGS=-j$COMPILE_JOBS
|
||||||
|
|
||||||
|
CFG=''
|
||||||
|
|
||||||
|
CFG+=' -opensource' # Use the open-source license
|
||||||
|
CFG+=' -confirm-license' # Silently acknowledge the license confirmation
|
||||||
|
|
||||||
|
CFG+=' -release' # Build only for release (no debugging support)
|
||||||
|
CFG+=' -static' # Compile for static libraries
|
||||||
|
CFG+=' -fast' # Accelerate Makefiles generation
|
||||||
|
CFG+=' -nomake demos' # Don't build with the demos
|
||||||
|
CFG+=' -nomake docs' # Don't generate the documentatio
|
||||||
|
CFG+=' -nomake examples' # Don't build any examples
|
||||||
|
CFG+=' -nomake translations' # Ignore the translations
|
||||||
|
CFG+=' -nomake tools' # Don't built the tools
|
||||||
|
|
||||||
|
CFG+=' -no-exceptions' # Don't use C++ exception
|
||||||
|
CFG+=' -no-stl' # No need for STL compatibility
|
||||||
|
|
||||||
|
# Irrelevant Qt features (keep compatibility)
|
||||||
|
CFG+=' -no-avx'
|
||||||
|
CFG+=' -no-libmng'
|
||||||
|
CFG+=' -no-libtiff'
|
||||||
|
CFG+=' -no-neon'
|
||||||
|
|
||||||
|
# Unnecessary Qt modules
|
||||||
|
CFG+=' -no-declarative'
|
||||||
|
CFG+=' -no-multimedia'
|
||||||
|
CFG+=' -no-opengl'
|
||||||
|
CFG+=' -no-openvg'
|
||||||
|
CFG+=' -no-phonon'
|
||||||
|
CFG+=' -no-qt3support'
|
||||||
|
CFG+=' -no-script'
|
||||||
|
CFG+=' -no-scripttools'
|
||||||
|
CFG+=' -no-svg'
|
||||||
|
CFG+=' -no-xmlpatterns'
|
||||||
|
|
||||||
|
# Graphics
|
||||||
|
CFG+=' -graphicssystem raster' # default is the software rasterizer
|
||||||
|
CFG+=' -harfbuzz' # use HarfBuzz for text layout (even on Mac)
|
||||||
|
|
||||||
|
# Mac
|
||||||
|
CFG+=' -cocoa' # Cocoa only, ignore Carbon
|
||||||
|
CFG+=' -no-cups' # Disable CUPS support
|
||||||
|
CFG+=' -no-dwarf2'
|
||||||
|
|
||||||
|
# Unix
|
||||||
|
CFG+=' -no-dbus' # Disable D-Bus feature
|
||||||
|
CFG+=' -no-glib' # No need for Glib integration
|
||||||
|
CFG+=' -no-gstreamer' # Turn off GStreamer support
|
||||||
|
CFG+=' -no-gtkstyle' # Disable theming integration with Gtk+
|
||||||
|
CFG+=' -no-sm'
|
||||||
|
CFG+=' -no-xinerama'
|
||||||
|
CFG+=' -no-xkb'
|
||||||
|
|
||||||
|
# Use the bundled libraries, vs system-installed
|
||||||
|
CFG+=' -qt-libjpeg'
|
||||||
|
CFG+=' -qt-libpng'
|
||||||
|
CFG+=' -qt-zlib'
|
||||||
|
|
||||||
|
# Useless styles
|
||||||
|
CFG+=' -D QT_NO_STYLESHEET'
|
||||||
|
CFG+=' -D QT_NO_STYLE_CDE'
|
||||||
|
CFG+=' -D QT_NO_STYLE_CLEANLOOKS'
|
||||||
|
CFG+=' -D QT_NO_STYLE_MOTIF'
|
||||||
|
|
||||||
|
./configure -prefix $PWD $CFG
|
||||||
|
make -j$COMPILE_JOBS
|
||||||
|
|
||||||
|
# Extra step to ensure the static libraries are found
|
||||||
|
cp -rp src/3rdparty/webkit/Source/JavaScriptCore/release/* lib/
|
||||||
|
cp -rp src/3rdparty/webkit/Source/WebCore/release/* lib/
|
|
@ -0,0 +1,41 @@
|
||||||
|
/****************************************************************************
|
||||||
|
**
|
||||||
|
** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
|
||||||
|
** All rights reserved.
|
||||||
|
** Contact: Nokia Corporation (qt-info@nokia.com)
|
||||||
|
**
|
||||||
|
** This file is part of the QtScript module of the Qt Toolkit.
|
||||||
|
**
|
||||||
|
** $QT_BEGIN_LICENSE:LGPL-ONLY$
|
||||||
|
** GNU Lesser General Public License Usage
|
||||||
|
** This file may be used under the terms of the GNU Lesser
|
||||||
|
** General Public License version 2.1 as published by the Free Software
|
||||||
|
** Foundation and appearing in the file LICENSE.LGPL included in the
|
||||||
|
** packaging of this file. Please review the following information to
|
||||||
|
** ensure the GNU Lesser General Public License version 2.1 requirements
|
||||||
|
** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
|
||||||
|
**
|
||||||
|
** If you have questions regarding the use of this file, please contact
|
||||||
|
** Nokia at qt-info@nokia.com.
|
||||||
|
** $QT_END_LICENSE$
|
||||||
|
**
|
||||||
|
****************************************************************************/
|
||||||
|
|
||||||
|
#ifndef QSCRIPTENGINE_H
|
||||||
|
#define QSCRIPTENGINE_H
|
||||||
|
|
||||||
|
QT_BEGIN_HEADER
|
||||||
|
|
||||||
|
QT_BEGIN_NAMESPACE
|
||||||
|
|
||||||
|
QT_MODULE(Script)
|
||||||
|
|
||||||
|
struct QScriptEngine {
|
||||||
|
enum ValueOwnership {
|
||||||
|
QtOwnership,
|
||||||
|
ScriptOwnership,
|
||||||
|
AutoOwnership
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif // QSCRIPTENGINE_H
|
Loading…
Reference in New Issue