diff options
Diffstat (limited to 'meta/packages/webkit/files')
-rw-r--r-- | meta/packages/webkit/files/Makefile | 22 | ||||
-rw-r--r-- | meta/packages/webkit/files/Makefile.shared | 21 | ||||
-rw-r--r-- | meta/packages/webkit/files/WebKit.pri | 64 | ||||
-rw-r--r-- | meta/packages/webkit/files/WebKit.pro | 11 |
4 files changed, 118 insertions, 0 deletions
diff --git a/meta/packages/webkit/files/Makefile b/meta/packages/webkit/files/Makefile new file mode 100644 index 0000000000..89344f7a58 --- /dev/null +++ b/meta/packages/webkit/files/Makefile | |||
@@ -0,0 +1,22 @@ | |||
1 | MODULES = JavaScriptCore JavaScriptGlue WebCore WebKit WebKitTools | ||
2 | |||
3 | all: | ||
4 | @for dir in $(MODULES); do ${MAKE} $@ -C $$dir; exit_status=$$?; \ | ||
5 | if [ $$exit_status -ne 0 ]; then exit $$exit_status; fi; done | ||
6 | |||
7 | debug d development dev develop: | ||
8 | @for dir in $(MODULES); do ${MAKE} $@ -C $$dir; exit_status=$$?; \ | ||
9 | if [ $$exit_status -ne 0 ]; then exit $$exit_status; fi; done | ||
10 | |||
11 | release r deployment dep deploy: | ||
12 | @for dir in $(MODULES); do ${MAKE} $@ -C $$dir; exit_status=$$?; \ | ||
13 | if [ $$exit_status -ne 0 ]; then exit $$exit_status; fi; done | ||
14 | |||
15 | universal u: | ||
16 | @for dir in $(MODULES); do ${MAKE} $@ -C $$dir; exit_status=$$?; \ | ||
17 | if [ $$exit_status -ne 0 ]; then exit $$exit_status; fi; done | ||
18 | |||
19 | clean: | ||
20 | @for dir in $(MODULES); do ${MAKE} $@ -C $$dir; exit_status=$$?; \ | ||
21 | if [ $$exit_status -ne 0 ]; then exit $$exit_status; fi; done | ||
22 | |||
diff --git a/meta/packages/webkit/files/Makefile.shared b/meta/packages/webkit/files/Makefile.shared new file mode 100644 index 0000000000..a036aacc50 --- /dev/null +++ b/meta/packages/webkit/files/Makefile.shared | |||
@@ -0,0 +1,21 @@ | |||
1 | SCRIPTS_PATH ?= ../WebKitTools/Scripts | ||
2 | XCODE_OPTIONS = `perl -I$(SCRIPTS_PATH) -Mwebkitdirs -e 'print XcodeOptionString()'` $(ARGS) | ||
3 | |||
4 | all: | ||
5 | ( xcodebuild $(OTHER_OPTIONS) $(XCODE_OPTIONS) | grep -v setenv && exit $${PIPESTATUS[0]} ) | ||
6 | |||
7 | debug d development dev develop: force | ||
8 | $(SCRIPTS_PATH)/set-webkit-configuration --debug | ||
9 | ( xcodebuild $(OTHER_OPTIONS) $(XCODE_OPTIONS) | grep -v setenv && exit $${PIPESTATUS[0]} ) | ||
10 | |||
11 | release r deployment dep deploy: force | ||
12 | $(SCRIPTS_PATH)/set-webkit-configuration --release | ||
13 | ( xcodebuild $(OTHER_OPTIONS) $(XCODE_OPTIONS) | grep -v setenv && exit $${PIPESTATUS[0]} ) | ||
14 | |||
15 | universal u: force | ||
16 | ( xcodebuild $(OTHER_OPTIONS) $(XCODE_OPTIONS) 'ARCHS=ppc i386' | grep -v setenv && exit $${PIPESTATUS[0]} ) | ||
17 | |||
18 | clean: | ||
19 | ( xcodebuild $(OTHER_OPTIONS) -alltargets clean $(XCODE_OPTIONS) | grep -v setenv && exit $${PIPESTATUS[0]} ) | ||
20 | |||
21 | force: ; | ||
diff --git a/meta/packages/webkit/files/WebKit.pri b/meta/packages/webkit/files/WebKit.pri new file mode 100644 index 0000000000..0c47afe7fd --- /dev/null +++ b/meta/packages/webkit/files/WebKit.pri | |||
@@ -0,0 +1,64 @@ | |||
1 | # Include file to make it easy to include WebKit into Qt projects | ||
2 | |||
3 | |||
4 | isEmpty(OUTPUT_DIR) { | ||
5 | CONFIG(release):OUTPUT_DIR=$$PWD/WebKitBuild/Release | ||
6 | CONFIG(debug):OUTPUT_DIR=$$PWD/WebKitBuild/Debug | ||
7 | } | ||
8 | |||
9 | !gtk-port:CONFIG += qt-port | ||
10 | qt-port:DEFINES += BUILDING_QT__=1 | ||
11 | qt-port:!building-libs { | ||
12 | QMAKE_LIBDIR = $$OUTPUT_DIR/lib $$QMAKE_LIBDIR | ||
13 | LIBS += -lQtWebKit | ||
14 | } | ||
15 | gtk-port:CONFIG += link_pkgconfig | ||
16 | gtk-port:PKGCONFIG += cairo cairo-ft gdk-2.0 gtk+-2.0 libcurl | ||
17 | gtk-port:DEFINES += BUILDING_GTK__=1 BUILDING_CAIRO__ | ||
18 | gtk-port:LIBS += -L$$OUTPUT_DIR/lib -lWebKitGtk $$system(icu-config --ldflags) -ljpeg -lpng | ||
19 | gtk-port:QMAKE_CXXFLAGS += $$system(icu-config --cppflags) | ||
20 | |||
21 | DEFINES += USE_SYSTEM_MALLOC | ||
22 | CONFIG(release) { | ||
23 | DEFINES += NDEBUG | ||
24 | } | ||
25 | |||
26 | BASE_DIR = $$PWD | ||
27 | qt-port:INCLUDEPATH += \ | ||
28 | $$PWD/WebKit/qt/Api | ||
29 | gtk-port:INCLUDEPATH += \ | ||
30 | $$BASE_DIR/WebCore/platform/gtk \ | ||
31 | $$BASE_DIR/WebCore/platform/network/curl \ | ||
32 | $$BASE_DIR/WebCore/platform/graphics/cairo \ | ||
33 | $$BASE_DIR/WebCore/loader/gtk \ | ||
34 | $$BASE_DIR/WebCore/page/gtk \ | ||
35 | $$BASE_DIR/WebKit/gtk/Api \ | ||
36 | $$BASE_DIR/WebKit/gtk/WebCoreSupport | ||
37 | INCLUDEPATH += \ | ||
38 | $$BASE_DIR/JavaScriptCore/ \ | ||
39 | $$BASE_DIR/JavaScriptCore/kjs \ | ||
40 | $$BASE_DIR/JavaScriptCore/bindings \ | ||
41 | $$BASE_DIR/JavaScriptCore/bindings/c \ | ||
42 | $$BASE_DIR/JavaScriptCore/wtf \ | ||
43 | $$BASE_DIR/JavaScriptCore/ForwardingHeaders \ | ||
44 | $$BASE_DIR/WebCore \ | ||
45 | $$BASE_DIR/WebCore/ForwardingHeaders \ | ||
46 | $$BASE_DIR/WebCore/platform \ | ||
47 | $$BASE_DIR/WebCore/platform/network \ | ||
48 | $$BASE_DIR/WebCore/platform/graphics \ | ||
49 | $$BASE_DIR/WebCore/loader \ | ||
50 | $$BASE_DIR/WebCore/page \ | ||
51 | $$BASE_DIR/WebCore/css \ | ||
52 | $$BASE_DIR/WebCore/dom \ | ||
53 | $$BASE_DIR/WebCore/bridge \ | ||
54 | $$BASE_DIR/WebCore/editing \ | ||
55 | $$BASE_DIR/WebCore/rendering \ | ||
56 | $$BASE_DIR/WebCore/history \ | ||
57 | $$BASE_DIR/WebCore/xml \ | ||
58 | $$BASE_DIR/WebCore/html | ||
59 | |||
60 | |||
61 | macx { | ||
62 | INCLUDEPATH += /usr/include/libxml2 | ||
63 | LIBS += -lxml2 -lxslt | ||
64 | } | ||
diff --git a/meta/packages/webkit/files/WebKit.pro b/meta/packages/webkit/files/WebKit.pro new file mode 100644 index 0000000000..aab0209a93 --- /dev/null +++ b/meta/packages/webkit/files/WebKit.pro | |||
@@ -0,0 +1,11 @@ | |||
1 | TEMPLATE = subdirs | ||
2 | CONFIG += ordered | ||
3 | !gtk-port:CONFIG += qt-port | ||
4 | qt-port:!win32-*:SUBDIRS += WebKit/qt/Plugins | ||
5 | SUBDIRS += \ | ||
6 | WebCore | ||
7 | |||
8 | qt-port:SUBDIRS += \ | ||
9 | WebKit/qt/QtLauncher | ||
10 | gtk-port:SUBDIRS += \ | ||
11 | WebKitTools/GtkLauncher | ||