-rw-r--r-- | Makefile | 4 | ||||
-rw-r--r-- | Vars.make | 16 | ||||
-rw-r--r-- | config.in | 10 | ||||
-rw-r--r-- | mkspecs/qws/linux-oe-g++/qmake.conf | 86 | ||||
-rw-r--r-- | mkspecs/qws/linux-oe-g++/qplatformdefs.h | 103 |
5 files changed, 214 insertions, 5 deletions
@@ -1,132 +1,136 @@ | |||
1 | #!/usr/bin/make -f | 1 | #!/usr/bin/make -f |
2 | 2 | ||
3 | export TOPDIR:=$(OPIEDIR) | 3 | export TOPDIR:=$(OPIEDIR) |
4 | 4 | ||
5 | include $(TOPDIR)/Vars.make | 5 | include $(TOPDIR)/Vars.make |
6 | ifneq ($(wildcard $(TOPDIR)/Vars.local),) | 6 | ifneq ($(wildcard $(TOPDIR)/Vars.local),) |
7 | include $(TOPDIR)/Vars.local | 7 | include $(TOPDIR)/Vars.local |
8 | endif | 8 | endif |
9 | 9 | ||
10 | noconfig_targets := xconfig menuconfig config oldconfig randconfig \ | 10 | noconfig_targets := xconfig menuconfig config oldconfig randconfig \ |
11 | defconfig allyesconfig allnoconfig allmodconfig \ | 11 | defconfig allyesconfig allnoconfig allmodconfig \ |
12 | clean-configs $(TOPDIR)/scripts/subst $(TOPDIR)/scripts/filesubst \ | 12 | clean-configs $(TOPDIR)/scripts/subst $(TOPDIR)/scripts/filesubst \ |
13 | ipks | 13 | ipks |
14 | 14 | ||
15 | configs += $(TOPDIR)/core/applets/config.in $(TOPDIR)/core/apps/config.in $(TOPDIR)/core/multimedia/config.in $(TOPDIR)/core/pim/config.in $(TOPDIR)/core/pim/today/plugins/config.in $(TOPDIR)/core/settings/config.in $(TOPDIR)/development/config.in $(TOPDIR)/inputmethods/config.in $(TOPDIR)/libopie/pim/config.in $(TOPDIR)/noncore/applets/config.in $(TOPDIR)/noncore/apps/opie-console/test/config.in $(TOPDIR)/noncore/apps/config.in $(TOPDIR)/noncore/comm/config.in $(TOPDIR)/noncore/decorations/config.in $(TOPDIR)/noncore/games/config.in $(TOPDIR)/noncore/graphics/config.in $(TOPDIR)/noncore/multimedia/config.in $(TOPDIR)/noncore/net/config.in $(TOPDIR)/noncore/net/opietooth/config.in $(TOPDIR)/noncore/settings/config.in $(TOPDIR)/noncore/styles/config.in $(TOPDIR)/noncore/tools/config.in $(TOPDIR)/noncore/todayplugins/config.in $(TOPDIR)/examples/config.in $(TOPDIR)/noncore/securityplugins/config.in | 15 | configs += $(TOPDIR)/core/applets/config.in $(TOPDIR)/core/apps/config.in $(TOPDIR)/core/multimedia/config.in $(TOPDIR)/core/pim/config.in $(TOPDIR)/core/pim/today/plugins/config.in $(TOPDIR)/core/settings/config.in $(TOPDIR)/development/config.in $(TOPDIR)/inputmethods/config.in $(TOPDIR)/libopie/pim/config.in $(TOPDIR)/noncore/applets/config.in $(TOPDIR)/noncore/apps/opie-console/test/config.in $(TOPDIR)/noncore/apps/config.in $(TOPDIR)/noncore/comm/config.in $(TOPDIR)/noncore/decorations/config.in $(TOPDIR)/noncore/games/config.in $(TOPDIR)/noncore/graphics/config.in $(TOPDIR)/noncore/multimedia/config.in $(TOPDIR)/noncore/net/config.in $(TOPDIR)/noncore/net/opietooth/config.in $(TOPDIR)/noncore/settings/config.in $(TOPDIR)/noncore/styles/config.in $(TOPDIR)/noncore/tools/config.in $(TOPDIR)/noncore/todayplugins/config.in $(TOPDIR)/examples/config.in $(TOPDIR)/noncore/securityplugins/config.in |
16 | 16 | ||
17 | # $(TOPDIR)/.config depends on .depends.cfgs, as it depends on $(configs) | 17 | # $(TOPDIR)/.config depends on .depends.cfgs, as it depends on $(configs) |
18 | # in order to have a full set of config.in files. | 18 | # in order to have a full set of config.in files. |
19 | # .depends depends on $(TOPDIR)/.config | 19 | # .depends depends on $(TOPDIR)/.config |
20 | # everything else depends on .depends, to ensure the dependencies are | 20 | # everything else depends on .depends, to ensure the dependencies are |
21 | # intact. | 21 | # intact. |
22 | # | 22 | # |
23 | # NOTE: The order in which things happen in this makefile is | 23 | # NOTE: The order in which things happen in this makefile is |
24 | # -critical-. Do not rearrange this! | 24 | # -critical-. Do not rearrange this! |
25 | 25 | ||
26 | all : $(TOPDIR)/.config | 26 | all : $(TOPDIR)/.config |
27 | 27 | ||
28 | # | 28 | # |
29 | # The IPK creation is a very slow process. If you want to only create some | 29 | # The IPK creation is a very slow process. If you want to only create some |
30 | # IPKs, e.g. the ones in library, then do | 30 | # IPKs, e.g. the ones in library, then do |
31 | #make ipks IPK_START=library | 31 | #make ipks IPK_START=library |
32 | # and then only the *.control files in this directory will be processed | 32 | # and then only the *.control files in this directory will be processed |
33 | ipks: $(OPIEDIR)/scripts/subst $(OPIEDIR)/scripts/filesubst FORCE $(TOPDIR)/.config | 33 | ipks: $(OPIEDIR)/scripts/subst $(OPIEDIR)/scripts/filesubst FORCE $(TOPDIR)/.config |
34 | @find $(OPIEDIR)/$(IPK_START) -type f -name \*.control | ( for ctrl in `cat`; do \ | 34 | @find $(OPIEDIR)/$(IPK_START) -type f -name \*.control | ( for ctrl in `cat`; do \ |
35 | prerm=`echo $${ctrl/.control/.prerm}`; \ | 35 | prerm=`echo $${ctrl/.control/.prerm}`; \ |
36 | preinst=`echo $${ctrl/.control/.preinst}`; \ | 36 | preinst=`echo $${ctrl/.control/.preinst}`; \ |
37 | postrm=`echo $${ctrl/.control/.postrm}`; \ | 37 | postrm=`echo $${ctrl/.control/.postrm}`; \ |
38 | postinst=`echo $${ctrl/.control/.postinst}`; \ | 38 | postinst=`echo $${ctrl/.control/.postinst}`; \ |
39 | echo "Building ipk of $$ctrl"; \ | 39 | echo "Building ipk of $$ctrl"; \ |
40 | cd $(OPIEDIR); $(OPIEDIR)/scripts/mkipkg --subst=$(OPIEDIR)/scripts/subst --filesubst=$(OPIEDIR)/scripts/filesubst --control=$$ctrl --prerm=$$prerm --preinst=$$preinst --postrm=$$postrm --postinst=$$postinst --strip=$(STRIP) $(OPIEDIR); \ | 40 | cd $(OPIEDIR); $(OPIEDIR)/scripts/mkipkg --subst=$(OPIEDIR)/scripts/subst --filesubst=$(OPIEDIR)/scripts/filesubst --control=$$ctrl --prerm=$$prerm --preinst=$$preinst --postrm=$$postrm --postinst=$$postinst --strip=$(STRIP) $(OPIEDIR); \ |
41 | done ) | 41 | done ) |
42 | 42 | ||
43 | ipks-mt: $(OPIEDIR)/scripts/subst $(OPIEDIR)/scripts/filesubst FORCE $(TOPDIR)/.config | 43 | ipks-mt: $(OPIEDIR)/scripts/subst $(OPIEDIR)/scripts/filesubst FORCE $(TOPDIR)/.config |
44 | @> $(OPIEDIR)/AllThreadedPackages | 44 | @> $(OPIEDIR)/AllThreadedPackages |
45 | @find $(OPIEDIR)/ -type f -name \*.control | grep -v -- "-mt" | while read ctrl ; do \ | 45 | @find $(OPIEDIR)/ -type f -name \*.control | grep -v -- "-mt" | while read ctrl ; do \ |
46 | grep "Package[ ]*:" $${ctrl} | sed "s+Package[ ]*:[ ]*++"; \ | 46 | grep "Package[ ]*:" $${ctrl} | sed "s+Package[ ]*:[ ]*++"; \ |
47 | done | sort | uniq >> $(OPIEDIR)/AllThreadedPackages | 47 | done | sort | uniq >> $(OPIEDIR)/AllThreadedPackages |
48 | @find $(OPIEDIR)/ -type f -name \*.control | while read ctrl ; do \ | 48 | @find $(OPIEDIR)/ -type f -name \*.control | while read ctrl ; do \ |
49 | echo "Converting $$ctrl to -mt package"; \ | 49 | echo "Converting $$ctrl to -mt package"; \ |
50 | nctrl=`$(OPIEDIR)/scripts/tothreaded $$ctrl $(OPIEDIR)/AllThreadedPackages`; \ | 50 | nctrl=`$(OPIEDIR)/scripts/tothreaded $$ctrl $(OPIEDIR)/AllThreadedPackages`; \ |
51 | echo "Building ipk of $$ctrl"; \ | 51 | echo "Building ipk of $$ctrl"; \ |
52 | [ -n $$nctrl ] && cd $(OPIEDIR) && $(OPIEDIR)/scripts/mkipkg --subst=$(OPIEDIR)/scripts/subst --filesubst=$(OPIEDIR)/scripts/filesubst --control=$$nctrl --prerm=$${nctrl/\.control$$/.prerm/} --preinst=$${nctrl/\.control$$/.preinst/} --postrm=$${nctrl/\.control$$/.postrm/} --postinst=$${nctrl/\.control$$/.postinst/} --strip=$(STRIP) $(OPIEDIR); \ | 52 | [ -n $$nctrl ] && cd $(OPIEDIR) && $(OPIEDIR)/scripts/mkipkg --subst=$(OPIEDIR)/scripts/subst --filesubst=$(OPIEDIR)/scripts/filesubst --control=$$nctrl --prerm=$${nctrl/\.control$$/.prerm/} --preinst=$${nctrl/\.control$$/.preinst/} --postrm=$${nctrl/\.control$$/.postrm/} --postinst=$${nctrl/\.control$$/.postinst/} --strip=$(STRIP) $(OPIEDIR); \ |
53 | done | 53 | done |
54 | @rm -f $(OPIEDIR)/AllThreadedPackages | 54 | @rm -f $(OPIEDIR)/AllThreadedPackages |
55 | 55 | ||
56 | FORCE: | 56 | FORCE: |
57 | 57 | ||
58 | $(TOPDIR)/.config : $(TOPDIR)/.depends.cfgs | 58 | $(TOPDIR)/.config : $(TOPDIR)/.depends.cfgs |
59 | 59 | ||
60 | all menuconfig xconfig oldconfig config randconfig allyesconfig allnoconfig defconfig : $(TOPDIR)/.depends.cfgs | 60 | all menuconfig xconfig oldconfig config randconfig allyesconfig allnoconfig defconfig : $(TOPDIR)/.depends.cfgs |
61 | 61 | ||
62 | clean-configs : | 62 | clean-configs : |
63 | @echo "Wiping generated config.in files..." | 63 | @echo "Wiping generated config.in files..." |
64 | @-rm -f $(configs) | 64 | @-rm -f $(configs) |
65 | 65 | ||
66 | ifneq ($(wildcard $(TOPDIR)/.depends.cfgs),) | 66 | ifneq ($(wildcard $(TOPDIR)/.depends.cfgs),) |
67 | include $(TOPDIR)/.depends.cfgs | 67 | include $(TOPDIR)/.depends.cfgs |
68 | endif | 68 | endif |
69 | 69 | ||
70 | all menuconfig xconfig oldconfig config randconfig allyesconfig allnoconfig defconfig : $(configs) | 70 | all menuconfig xconfig oldconfig config randconfig allyesconfig allnoconfig defconfig : $(configs) |
71 | 71 | ||
72 | $(TOPDIR)/.config: $(TOPDIR)/.depends.cfgs $(configs) | 72 | $(TOPDIR)/.config: $(TOPDIR)/.depends.cfgs $(configs) |
73 | $(call descend,scripts/kconfig,conf) | 73 | $(call descend,scripts/kconfig,conf) |
74 | @if [ ! -e $@ ]; then \ | 74 | @if [ ! -e $@ ]; then \ |
75 | cp $(TOPDIR)/def-configs/opie $@; \ | 75 | cp $(TOPDIR)/def-configs/opie $@; \ |
76 | fi | 76 | fi |
77 | @$(MAKE) -C scripts/kconfig conf | 77 | @$(MAKE) -C scripts/kconfig conf |
78 | ./scripts/kconfig/conf -s ./config.in | 78 | ./scripts/kconfig/conf -s ./config.in |
79 | 79 | ||
80 | export | 80 | export |
81 | 81 | ||
82 | ifeq ($(filter $(noconfig_targets),$(MAKECMDGOALS)),) | 82 | ifeq ($(filter $(noconfig_targets),$(MAKECMDGOALS)),) |
83 | 83 | ||
84 | export include-config := 1 | 84 | export include-config := 1 |
85 | 85 | ||
86 | -include $(TOPDIR)/.config | 86 | -include $(TOPDIR)/.config |
87 | -include $(TOPDIR)/.depends | 87 | -include $(TOPDIR)/.depends |
88 | endif | 88 | endif |
89 | 89 | ||
90 | -include $(TOPDIR)/.config.cmd | 90 | -include $(TOPDIR)/.config.cmd |
91 | 91 | ||
92 | SUBDIRS = $(subdir-y) | 92 | SUBDIRS = $(subdir-y) |
93 | 93 | ||
94 | all clean install ipk: $(SUBDIRS) | 94 | all clean install ipk: $(SUBDIRS) |
95 | 95 | ||
96 | lupdate lrelease: | 96 | lupdate lrelease: |
97 | @for i in $(SUBDIRS); do $(MAKE) -C $$i $@; done | 97 | @for i in $(SUBDIRS); do $(MAKE) -C $$i $@; done |
98 | 98 | ||
99 | opie-lupdate opie-lrelease messages: | 99 | opie-lupdate opie-lrelease messages: |
100 | @for i in $(SUBDIRS); do $(MAKE) -C $$i $@; done; | 100 | @for i in $(SUBDIRS); do $(MAKE) -C $$i $@; done; |
101 | 101 | ||
102 | # from kde | 102 | # from kde |
103 | qtmessages: | 103 | qtmessages: |
104 | cd $(QTDIR)/src ; \ | 104 | cd $(QTDIR)/src ; \ |
105 | sed -e "s,#define,," xml/qxml.cpp > qxml_clean.cpp ;\ | 105 | sed -e "s,#define,," xml/qxml.cpp > qxml_clean.cpp ;\ |
106 | find . -name "*.cpp" | grep -v moc_ > list ;\ | 106 | find . -name "*.cpp" | grep -v moc_ > list ;\ |
107 | for file in qfiledialog qcolordialog qprintdialog \ | 107 | for file in qfiledialog qcolordialog qprintdialog \ |
108 | qurloperator qftp qhttp qlocal qerrormessage; do \ | 108 | qurloperator qftp qhttp qlocal qerrormessage; do \ |
109 | grep -v $$file list > list.new && mv list.new list ;\ | 109 | grep -v $$file list > list.new && mv list.new list ;\ |
110 | done ;\ | 110 | done ;\ |
111 | xgettext -C -ktr -kQT_TRANSLATE_NOOP -n `cat list` -o $(OPIEDIR)/qt-messages.pot | 111 | xgettext -C -ktr -kQT_TRANSLATE_NOOP -n `cat list` -o $(OPIEDIR)/qt-messages.pot |
112 | 112 | ||
113 | ifndef CONFIG_TARGET_OE | ||
113 | $(subdir-y) : $(if $(CONFIG_LIBQPE),$(QTDIR)/stamp-headers $(OPIEDIR)/stamp-headers) \ | 114 | $(subdir-y) : $(if $(CONFIG_LIBQPE),$(QTDIR)/stamp-headers $(OPIEDIR)/stamp-headers) \ |
114 | $(if $(CONFIG_LIBQPE-X11),$(QTDIR)/stamp-headers-x11 $(OPIEDIR)/stamp-headers-x11 ) \ | 115 | $(if $(CONFIG_LIBQPE-X11),$(QTDIR)/stamp-headers-x11 $(OPIEDIR)/stamp-headers-x11 ) \ |
115 | $(TOPDIR)/library/custom.h | 116 | $(TOPDIR)/library/custom.h |
117 | else | ||
118 | $(subdir-y) : $(if $(CONFIG_LIBQPE),$(OPIEDIR)/stamp-headers) $(TOPDIR)/library/custom.h | ||
119 | endif | ||
116 | 120 | ||
117 | clean : $(TOPDIR)/.config | 121 | clean : $(TOPDIR)/.config |
118 | make -C bin clean | 122 | make -C bin clean |
119 | make -C lib clean | 123 | make -C lib clean |
120 | make -C plugins clean | 124 | make -C plugins clean |
121 | 125 | ||
122 | apidox : | 126 | apidox : |
123 | doc/generate_apidox | 127 | doc/generate_apidox |
124 | 128 | ||
125 | mrproper : clean-configs | 129 | mrproper : clean-configs |
126 | find . -name ".moc"|xargs rm -rf | 130 | find . -name ".moc"|xargs rm -rf |
127 | find . -name ".obj"|xargs rm -rf | 131 | find . -name ".obj"|xargs rm -rf |
128 | find lib -name "lib*.*"|xargs rm -f | 132 | find lib -name "lib*.*"|xargs rm -f |
129 | find plugins -name "lib*.*"|xargs rm -f | 133 | find plugins -name "lib*.*"|xargs rm -f |
130 | find . -name "*.pro"|xargs touch | 134 | find . -name "*.pro"|xargs touch |
131 | 135 | ||
132 | include $(TOPDIR)/Rules.make | 136 | include $(TOPDIR)/Rules.make |
@@ -1,122 +1,130 @@ | |||
1 | ifndef QTDIR | ||
2 | $(error QTDIR not set) | ||
3 | endif | ||
4 | |||
5 | prefix=/opt/QtPalmtop | 1 | prefix=/opt/QtPalmtop |
6 | 2 | ||
7 | ifeq ($(OPIEDIR),) | 3 | ifeq ($(OPIEDIR),) |
8 | export OPIEDIR:=$(TOPDIR) | 4 | export OPIEDIR:=$(TOPDIR) |
9 | endif | 5 | endif |
10 | ifeq ($(IPK_DIR),) | 6 | ifeq ($(IPK_DIR),) |
11 | export IPK_DIR:=$(OPIEDIR) | 7 | export IPK_DIR:=$(OPIEDIR) |
12 | endif | 8 | endif |
13 | 9 | ||
14 | ifneq ($(wildcard $(TOPDIR)/.config),) | 10 | ifneq ($(wildcard $(TOPDIR)/.config),) |
15 | include $(TOPDIR)/.config | 11 | include $(TOPDIR)/.config |
16 | endif | 12 | endif |
17 | 13 | ||
14 | ifndef CONFIG_TARGET_OE | ||
15 | ifndef QTDIR | ||
16 | $(error QTDIR not set) | ||
17 | endif | ||
18 | else | ||
19 | OEDIR:=$(CONFIG_OE_BUILD_DIR) | ||
20 | QTDIR:=$(OEDIR)/tmp/staging/arm-linux/qt2 | ||
21 | $(shell mkdir -p $(QTDIR)/src/moc) | ||
22 | $(shell echo -e "all: \n\t" >>$(QTDIR)/src/moc/Makefile) | ||
23 | PLATFORM=sharp-linux | ||
24 | endif | ||
25 | |||
18 | ifdef CONFIG_TARGET_X86 | 26 | ifdef CONFIG_TARGET_X86 |
19 | PLATFORM=x86-linux | 27 | PLATFORM=x86-linux |
20 | endif | 28 | endif |
21 | ifdef CONFIG_TARGET_SHARP | 29 | ifdef CONFIG_TARGET_SHARP |
22 | PLATFORM=sharp-linux | 30 | PLATFORM=sharp-linux |
23 | endif | 31 | endif |
24 | ifdef CONFIG_TARGET_IPAQ | 32 | ifdef CONFIG_TARGET_IPAQ |
25 | PLATFORM=ipaq-linux | 33 | PLATFORM=ipaq-linux |
26 | endif | 34 | endif |
27 | ifdef CONFIG_TARGET_RAMSES | 35 | ifdef CONFIG_TARGET_RAMSES |
28 | PLATFORM=ramses-linux | 36 | PLATFORM=ramses-linux |
29 | endif | 37 | endif |
30 | ifdef CONFIG_TARGET_SIMPAD | 38 | ifdef CONFIG_TARGET_SIMPAD |
31 | PLATFORM=simpad-linux | 39 | PLATFORM=simpad-linux |
32 | endif | 40 | endif |
33 | 41 | ||
34 | ifdef CONFIG_TARGET_YOPY | 42 | ifdef CONFIG_TARGET_YOPY |
35 | PLATFORM=yopy-linux | 43 | PLATFORM=yopy-linux |
36 | endif | 44 | endif |
37 | ifdef CONFIG_TARGET_MACOSX | 45 | ifdef CONFIG_TARGET_MACOSX |
38 | PLATFORM=macx-darwin | 46 | PLATFORM=macx-darwin |
39 | endif | 47 | endif |
40 | 48 | ||
41 | export QMAKE:=$(OPIEDIR)/qmake/qmake | 49 | export QMAKE:=$(OPIEDIR)/qmake/qmake |
42 | export QMAKESPECSDIR=$(OPIEDIR)/mkspecs | 50 | export QMAKESPECSDIR=$(OPIEDIR)/mkspecs |
43 | 51 | ||
44 | ifeq ($(QPE_VERSION),) | 52 | ifeq ($(QPE_VERSION),) |
45 | VERSION_MAJ:=$(shell echo $$(sed -n -e 's/.*QPE_VERSION "\([0-9]*\)\..*\..*".*/\1/p' <$(OPIEDIR)/library/version.h)) | 53 | VERSION_MAJ:=$(shell echo $$(sed -n -e 's/.*QPE_VERSION "\([0-9]*\)\..*\..*".*/\1/p' <$(OPIEDIR)/library/version.h)) |
46 | VERSION_MIN:=$(shell echo $$(sed -n -e 's/.*QPE_VERSION ".*\.\([0-9]*\)\..*".*/\1/p' <$(OPIEDIR)/library/version.h)) | 54 | VERSION_MIN:=$(shell echo $$(sed -n -e 's/.*QPE_VERSION ".*\.\([0-9]*\)\..*".*/\1/p' <$(OPIEDIR)/library/version.h)) |
47 | VERSION_PAT:=$(shell echo $$(sed -n -e 's/.*QPE_VERSION ".*\..*\.\([0-9]*\).*/\1/p' <$(OPIEDIR)/library/version.h)) | 55 | VERSION_PAT:=$(shell echo $$(sed -n -e 's/.*QPE_VERSION ".*\..*\.\([0-9]*\).*/\1/p' <$(OPIEDIR)/library/version.h)) |
48 | QPE_VERSION:=$(VERSION_MAJ).$(VERSION_MIN).$(VERSION_PAT) | 56 | QPE_VERSION:=$(VERSION_MAJ).$(VERSION_MIN).$(VERSION_PAT) |
49 | 57 | ||
50 | ifeq ($(QPE_VERSION),..) | 58 | ifeq ($(QPE_VERSION),..) |
51 | QPE_VERSION=1.1.2 | 59 | QPE_VERSION=1.1.2 |
52 | endif | 60 | endif |
53 | endif | 61 | endif |
54 | export QPE_VERSION | 62 | export QPE_VERSION |
55 | 63 | ||
56 | SUB_VERSION=$(shell echo $$(sed -n -e 's,.*SUB_VERSION \"\(.*\)\".*,\1,p' <$(OPIEDIR)/library/version.h)) | 64 | SUB_VERSION=$(shell echo $$(sed -n -e 's,.*SUB_VERSION \"\(.*\)\".*,\1,p' <$(OPIEDIR)/library/version.h)) |
57 | ifeq ($(VERSION_CVS),) | 65 | ifeq ($(VERSION_CVS),) |
58 | VERSION_CVS:=$(shell date +%s) | 66 | VERSION_CVS:=$(shell date +%s) |
59 | endif | 67 | endif |
60 | ifneq ($(filter %snapshot",$(shell cat $(OPIEDIR)/library/version.h|grep QPE_VERSION)),) | 68 | ifneq ($(filter %snapshot",$(shell cat $(OPIEDIR)/library/version.h|grep QPE_VERSION)),) |
61 | SUB_VERSION:=$(VERSION_CVS) | 69 | SUB_VERSION:=$(VERSION_CVS) |
62 | endif | 70 | endif |
63 | export SUB_VERSION | 71 | export SUB_VERSION |
64 | 72 | ||
65 | ifneq ($(strip $(SUB_VERSION)),) | 73 | ifneq ($(strip $(SUB_VERSION)),) |
66 | EXTRAVERSION=-$(SUB_VERSION) | 74 | EXTRAVERSION=-$(SUB_VERSION) |
67 | endif | 75 | endif |
68 | 76 | ||
69 | ifeq ($(QTE_REVISION),) | 77 | ifeq ($(QTE_REVISION),) |
70 | QTE_REVISION=6 | 78 | QTE_REVISION=6 |
71 | endif | 79 | endif |
72 | export QTE_REVISION | 80 | export QTE_REVISION |
73 | 81 | ||
74 | export DEB_VERSION=2.0 | 82 | export DEB_VERSION=2.0 |
75 | 83 | ||
76 | ifeq ($(QTE_BASEVERSION),) | 84 | ifeq ($(QTE_BASEVERSION),) |
77 | ifneq ($(shell ls $(QTDIR)/include/qglobal.h 2>/dev/null),) | 85 | ifneq ($(shell ls $(QTDIR)/include/qglobal.h 2>/dev/null),) |
78 | QTE_BASEVERSION:=$(shell cat $(QTDIR)/include/qglobal.h|grep '^\#define QT_VERSION'|grep -v STR|sed -e 's/\#define QT_VERSION\t*//; s/.*\([0-9]\)\([0-9]\)\([0-9]\).*/\1.\2.\3/;') | 86 | QTE_BASEVERSION:=$(shell cat $(QTDIR)/include/qglobal.h|grep '^\#define QT_VERSION'|grep -v STR|sed -e 's/\#define QT_VERSION\t*//; s/.*\([0-9]\)\([0-9]\)\([0-9]\).*/\1.\2.\3/;') |
79 | else | 87 | else |
80 | QTE_BASEVERSION=2.3.7 | 88 | QTE_BASEVERSION=2.3.7 |
81 | endif | 89 | endif |
82 | endif | 90 | endif |
83 | export QTE_BASEVERSION | 91 | export QTE_BASEVERSION |
84 | 92 | ||
85 | ifeq ($(QTE_VERSION),) | 93 | ifeq ($(QTE_VERSION),) |
86 | ifneq ($(shell ls $(QTDIR)/include/qglobal.h 2>/dev/null),) | 94 | ifneq ($(shell ls $(QTDIR)/include/qglobal.h 2>/dev/null),) |
87 | QTE_VERSION:=$(shell cat $(QTDIR)/include/qglobal.h|grep '^\#define QT_VERSION_STR'|sed -e 's/\#define QT_VERSION_STR\t*//;' -e 's/.*"\([^"]*\)".*/\1/;') | 95 | QTE_VERSION:=$(shell cat $(QTDIR)/include/qglobal.h|grep '^\#define QT_VERSION_STR'|sed -e 's/\#define QT_VERSION_STR\t*//;' -e 's/.*"\([^"]*\)".*/\1/;') |
88 | else | 96 | else |
89 | QTE_VERSION=2.3.7 | 97 | QTE_VERSION=2.3.7 |
90 | endif | 98 | endif |
91 | endif | 99 | endif |
92 | export QTE_VERSION | 100 | export QTE_VERSION |
93 | 101 | ||
94 | export PATH:=$(OPIEDIR)/scripts:$(PATH) | 102 | export PATH:=$(OPIEDIR)/scripts:$(PATH) |
95 | export QMAKESPEC=$(QMAKESPECSDIR)/$(patsubst "%",%,$(CONFIG_SPECFILE)) | 103 | export QMAKESPEC=$(QMAKESPECSDIR)/$(patsubst "%",%,$(CONFIG_SPECFILE)) |
96 | 104 | ||
97 | ifdef CONFIG_OPTIMIZATIONS | 105 | ifdef CONFIG_OPTIMIZATIONS |
98 | export CFLAGS_RELEASE=$(patsubst "%,%,$(CONFIG_OPTIMIZATIONS)) | 106 | export CFLAGS_RELEASE=$(patsubst "%,%,$(CONFIG_OPTIMIZATIONS)) |
99 | export CFLAGS_RELEASE:=$(patsubst %",%,$(CFLAGS_RELEASE)) | 107 | export CFLAGS_RELEASE:=$(patsubst %",%,$(CFLAGS_RELEASE)) |
100 | endif | 108 | endif |
101 | 109 | ||
102 | ifeq ($(STRIP),) | 110 | ifeq ($(STRIP),) |
103 | ifneq ($(CONFIG_TARGET_X86),) | 111 | ifneq ($(CONFIG_TARGET_X86),) |
104 | STRIP=strip | 112 | STRIP=strip |
105 | endif | 113 | endif |
106 | ifneq ($(CONFIG_TARGET_IPAQ),) | 114 | ifneq ($(CONFIG_TARGET_IPAQ),) |
107 | STRIP=arm-linux-strip | 115 | STRIP=arm-linux-strip |
108 | endif | 116 | endif |
109 | ifneq ($(CONFIG_TARGET_SHARP),) | 117 | ifneq ($(CONFIG_TARGET_SHARP),) |
110 | STRIP=arm-linux-strip | 118 | STRIP=arm-linux-strip |
111 | endif | 119 | endif |
112 | ifneq ($(CONFIG_TARGET_RAMSES),) | 120 | ifneq ($(CONFIG_TARGET_RAMSES),) |
113 | STRIP=arm-linux-strip | 121 | STRIP=arm-linux-strip |
114 | endif | 122 | endif |
115 | ifneq ($(CONFIG_TARGET_SIMPAD),) | 123 | ifneq ($(CONFIG_TARGET_SIMPAD),) |
116 | STRIP=arm-linux-strip | 124 | STRIP=arm-linux-strip |
117 | endif | 125 | endif |
118 | ifneq ($(CONFIG_TARGET_YOPY),) | 126 | ifneq ($(CONFIG_TARGET_YOPY),) |
119 | STRIP=arm-linux-strip | 127 | STRIP=arm-linux-strip |
120 | endif | 128 | endif |
121 | endif | 129 | endif |
122 | 130 | ||
@@ -1,268 +1,276 @@ | |||
1 | mainmenu "Opie Configuration" | 1 | mainmenu "Opie Configuration" |
2 | 2 | ||
3 | menu "Build Parameters" | 3 | menu "Build Parameters" |
4 | 4 | ||
5 | choice | 5 | choice |
6 | prompt "Target Machine" | 6 | prompt "Target Machine" |
7 | default TARGET_X86 | 7 | default TARGET_X86 |
8 | help | 8 | help |
9 | Please select the architecture of the machine you will be | 9 | Please select the architecture of the machine you will be |
10 | building the OpenZaurus buildroot for. | 10 | building the OpenZaurus buildroot for. |
11 | 11 | ||
12 | config TARGET_X86 | 12 | config TARGET_X86 |
13 | boolean "Intel X86" | 13 | boolean "Intel X86" |
14 | 14 | ||
15 | config TARGET_MACOSX | 15 | config TARGET_MACOSX |
16 | boolean "Mac OS X (DARWIN)" | 16 | boolean "Mac OS X (DARWIN)" |
17 | 17 | ||
18 | config TARGET_SHARP | 18 | config TARGET_SHARP |
19 | boolean "Sharp Zaurus w/ SA1100 (5000 and 5500)" | 19 | boolean "Sharp Zaurus w/ SA1100 (5000 and 5500)" |
20 | 20 | ||
21 | config TARGET_C700 | 21 | config TARGET_C700 |
22 | boolean "Sharp Zaurus w/ PXA25x (5600, C7x0, C8x0)" | 22 | boolean "Sharp Zaurus w/ PXA25x (5600, C7x0, C8x0)" |
23 | 23 | ||
24 | config TARGET_OE | ||
25 | boolean "OpenEmbedded w/ OE build dir set below" | ||
26 | |||
24 | config TARGET_IPAQ | 27 | config TARGET_IPAQ |
25 | boolean "iPAQ" | 28 | boolean "iPAQ" |
26 | 29 | ||
27 | config TARGET_RAMSES | 30 | config TARGET_RAMSES |
28 | boolean "Ramses" | 31 | boolean "Ramses" |
29 | 32 | ||
30 | config TARGET_SIMPAD | 33 | config TARGET_SIMPAD |
31 | boolean "SIMpad" | 34 | boolean "SIMpad" |
32 | 35 | ||
33 | config TARGET_YOPY | 36 | config TARGET_YOPY |
34 | boolean "Yopy 3500/3700" | 37 | boolean "Yopy 3500/3700" |
35 | |||
36 | endchoice | 38 | endchoice |
37 | 39 | ||
40 | config OE_BUILD_DIR | ||
41 | depends TARGET_OE | ||
42 | string "OE build directory" | ||
43 | default ">>>set OpenEmbedded build directory here<<<" | ||
44 | |||
38 | config OPTIMIZE | 45 | config OPTIMIZE |
39 | boolean "Use optimizations" | 46 | boolean "Use optimizations" |
40 | default "y" if ! TARGET_X86 | 47 | default "y" if ! TARGET_X86 |
41 | 48 | ||
42 | config THREADED | 49 | config THREADED |
43 | boolean "Enable threaded build" | 50 | boolean "Enable threaded build" |
44 | default "n" | 51 | default "n" |
45 | 52 | ||
46 | config STATIC | 53 | config STATIC |
47 | boolean "Build static libraries" | 54 | boolean "Build static libraries" |
48 | default "n" | 55 | default "n" |
49 | 56 | ||
50 | config DEBUG | 57 | config DEBUG |
51 | boolean "Enable debug builds" | 58 | boolean "Enable debug builds" |
52 | default n | 59 | default n |
53 | 60 | ||
54 | config RELEASE | 61 | config RELEASE |
55 | bool | 62 | bool |
56 | default y | 63 | default y |
57 | depends !DEBUG | 64 | depends !DEBUG |
58 | 65 | ||
59 | config QUICK_LAUNCH | 66 | config QUICK_LAUNCH |
60 | boolean "Enable Quick Launch" | 67 | boolean "Enable Quick Launch" |
61 | default n if TARGET_X86 | 68 | default n if TARGET_X86 |
62 | default y if ! TARGET_X86 | 69 | default y if ! TARGET_X86 |
63 | 70 | ||
64 | config QUICKLAUNCH_PATH | 71 | config QUICKLAUNCH_PATH |
65 | string "Path to quicklauncher" | 72 | string "Path to quicklauncher" |
66 | default "./quicklauncher" if TARGET_X86 | 73 | default "./quicklauncher" if TARGET_X86 |
67 | default "/opt/QtPalmtop/bin/quicklauncher" if ! TARGET_X86 | 74 | default "/opt/QtPalmtop/bin/quicklauncher" if ! TARGET_X86 |
68 | 75 | ||
69 | config SPECFILE | 76 | config SPECFILE |
70 | string | 77 | string |
71 | default "qws/linux-generic-g++" if TARGET_X86 && (! X11) | 78 | default "qws/linux-generic-g++" if TARGET_X86 && (! X11) |
72 | default "linux-g++" if TARGET_X86 && X11 | 79 | default "linux-g++" if TARGET_X86 && X11 |
73 | default "qws/linux-sharp-g++" if TARGET_SHARP && (! X11) | 80 | default "qws/linux-sharp-g++" if TARGET_SHARP && (! X11) |
74 | default "linux-g++" if TARGET_SHARP && X11 | 81 | default "linux-g++" if TARGET_SHARP && X11 |
75 | default "qws/linux-ipaq-g++" if TARGET_IPAQ && (! X11) | 82 | default "qws/linux-ipaq-g++" if TARGET_IPAQ && (! X11) |
76 | default "linux-g++" if TARGET_IPAQ && X11 | 83 | default "linux-g++" if TARGET_IPAQ && X11 |
77 | default "qws/linux-ramses-g++" if TARGET_RAMSES && (! X11) | 84 | default "qws/linux-ramses-g++" if TARGET_RAMSES && (! X11) |
78 | default "linux-g++" if TARGET_RAMSES && X11 | 85 | default "linux-g++" if TARGET_RAMSES && X11 |
79 | default "qws/linux-simpad-g++" if TARGET_SIMPAD && (! X11) | 86 | default "qws/linux-simpad-g++" if TARGET_SIMPAD && (! X11) |
80 | default "linux-g++" if TARGET_SIMPAD && X11 | 87 | default "linux-g++" if TARGET_SIMPAD && X11 |
81 | default "qws/linux-yopy-g++" if TARGET_YOPY && (! X11) | 88 | default "qws/linux-yopy-g++" if TARGET_YOPY && (! X11) |
82 | default "qws/macx-generic-g++" if TARGET_MACOSX && (! X11) | 89 | default "qws/macx-generic-g++" if TARGET_MACOSX && (! X11) |
90 | default "qws/linux-oe-g++" if TARGET_OE && (!X11) | ||
83 | 91 | ||
84 | config CUSTOMFILE | 92 | config CUSTOMFILE |
85 | string | 93 | string |
86 | default "custom-ipaq.h" if TARGET_IPAQ | 94 | default "custom-ipaq.h" if TARGET_IPAQ |
87 | default "custom-sharp.h" if TARGET_SHARP | 95 | default "custom-sharp.h" if TARGET_SHARP |
88 | default "custom-ramses.h" if TARGET_RAMSES | 96 | default "custom-ramses.h" if TARGET_RAMSES |
89 | default "custom-ipaq.h" if TARGET_SIMPAD | 97 | default "custom-ipaq.h" if TARGET_SIMPAD |
90 | default "custom-yopy.h" if TARGET_YOPY | 98 | default "custom-yopy.h" if TARGET_YOPY |
91 | 99 | ||
92 | config OPTIMIZATIONS | 100 | config OPTIMIZATIONS |
93 | string "Optimization flags" | 101 | string "Optimization flags" |
94 | depends OPTIMIZE | 102 | depends OPTIMIZE |
95 | default "-march=armv4 -mtune=strongarm1100 -mapcs-32 -fexpensive-optimizations -fomit-frame-pointer -O2" if TARGET_IPAQ | 103 | default "-march=armv4 -mtune=strongarm1100 -mapcs-32 -fexpensive-optimizations -fomit-frame-pointer -O2" if TARGET_IPAQ |
96 | default "-march=armv4 -mtune=strongarm1100 -mapcs-32 -fexpensive-optimizations -fomit-frame-pointer -O2" if TARGET_YOPY | 104 | default "-march=armv4 -mtune=strongarm1100 -mapcs-32 -fexpensive-optimizations -fomit-frame-pointer -O2" if TARGET_YOPY |
97 | default "-march=armv4 -mtune=strongarm1100 -mapcs-32 -fexpensive-optimizations -fomit-frame-pointer -O2" if TARGET_SHARP | 105 | default "-march=armv4 -mtune=strongarm1100 -mapcs-32 -fexpensive-optimizations -fomit-frame-pointer -O2" if TARGET_SHARP |
98 | default "-march=armv4 -mtune=strongarm1100 -mapcs-32 -fexpensive-optimizations -fomit-frame-pointer -O2" if TARGET_RAMSES | 106 | default "-march=armv4 -mtune=strongarm1100 -mapcs-32 -fexpensive-optimizations -fomit-frame-pointer -O2" if TARGET_RAMSES |
99 | default "-march=armv4 -mtune=strongarm1100 -mapcs-32 -fexpensive-optimizations -fomit-frame-pointer -O2" if TARGET_SIMPAD | 107 | default "-march=armv4 -mtune=strongarm1100 -mapcs-32 -fexpensive-optimizations -fomit-frame-pointer -O2" if TARGET_SIMPAD |
100 | default "-march=armv5te -mtune=xscale -mapcs-32 -fexpensive-optimizations -fomit-frame-pointer -O2" if TARGET_C700 | 108 | default "-march=armv5te -mtune=xscale -mapcs-32 -fexpensive-optimizations -fomit-frame-pointer -O2" if TARGET_C700 |
101 | 109 | ||
102 | config EXPERIMENTAL | 110 | config EXPERIMENTAL |
103 | bool "Prompt for development and/or incomplete items" | 111 | bool "Prompt for development and/or incomplete items" |
104 | default y | 112 | default y |
105 | 113 | ||
106 | endmenu | 114 | endmenu |
107 | 115 | ||
108 | menu "Configuration" | 116 | menu "Configuration" |
109 | config OPIE_NO_OVERRIDE_QT | 117 | config OPIE_NO_OVERRIDE_QT |
110 | boolean "Build Opie against an unpatched version of Qt" | 118 | boolean "Build Opie against an unpatched version of Qt" |
111 | default n | 119 | default n |
112 | 120 | ||
113 | config OPIE_NO_ERASERECT_FIX | 121 | config OPIE_NO_ERASERECT_FIX |
114 | boolean "Disable Fixup eraseRect for HancomMobileWord,neocal.. to make libopiecore work on Sharps libqpe" | 122 | boolean "Disable Fixup eraseRect for HancomMobileWord,neocal.. to make libopiecore work on Sharps libqpe" |
115 | default n | 123 | default n |
116 | 124 | ||
117 | config OPIE_NO_BUILTIN_SHUTDOWN | 125 | config OPIE_NO_BUILTIN_SHUTDOWN |
118 | boolean "Disable the built in shutdown application" | 126 | boolean "Disable the built in shutdown application" |
119 | default y | 127 | default y |
120 | 128 | ||
121 | config OPIE_NO_BUILTIN_CALIBRATE | 129 | config OPIE_NO_BUILTIN_CALIBRATE |
122 | boolean "Disable the built in calibrate application" | 130 | boolean "Disable the built in calibrate application" |
123 | default y if TARGET_YOPY | 131 | default y if TARGET_YOPY |
124 | default n if ! TARGET_YOPY | 132 | default n if ! TARGET_YOPY |
125 | 133 | ||
126 | config OPIE_SOUND_FRAGMENT_SHIFT | 134 | config OPIE_SOUND_FRAGMENT_SHIFT |
127 | string "The sound fragment used in Opie Player I" | 135 | string "The sound fragment used in Opie Player I" |
128 | default "14" if TARGET_IPAQ | 136 | default "14" if TARGET_IPAQ |
129 | default "16" if ! TARGET_IPAQ | 137 | default "16" if ! TARGET_IPAQ |
130 | 138 | ||
131 | config USE_REALTIME_AUDIO_THREAD | 139 | config USE_REALTIME_AUDIO_THREAD |
132 | boolean "Use a realtime thread in Opie Player I" | 140 | boolean "Use a realtime thread in Opie Player I" |
133 | default y if TARGET_IPAQ || TARGET_SIMPAD || TARGET_RAMSES || TARGET_SHARP | 141 | default y if TARGET_IPAQ || TARGET_SIMPAD || TARGET_RAMSES || TARGET_SHARP |
134 | default n if ! (TARGET_IPAQ || TARGET_SIMPAD || TARGET_RAMSES || TARGET_SHARP) | 142 | default n if ! (TARGET_IPAQ || TARGET_SIMPAD || TARGET_RAMSES || TARGET_SHARP) |
135 | 143 | ||
136 | config QT_QWS_ALLOW_OVERCLOCK | 144 | config QT_QWS_ALLOW_OVERCLOCK |
137 | boolean "Allow the user to overclock the device" | 145 | boolean "Allow the user to overclock the device" |
138 | depends TARGET_RAMSES | 146 | depends TARGET_RAMSES |
139 | default n | 147 | default n |
140 | 148 | ||
141 | config USE_FILE_NOTIFICATION | 149 | config USE_FILE_NOTIFICATION |
142 | boolean "Substitute (some) polling interfaces with OFileNotifier" | 150 | boolean "Substitute (some) polling interfaces with OFileNotifier" |
143 | default y | 151 | default y |
144 | 152 | ||
145 | config OPIE_NEW_ALLOC | 153 | config OPIE_NEW_ALLOC |
146 | boolean "Use malloc and free for the implementation" | 154 | boolean "Use malloc and free for the implementation" |
147 | default y if TARGET_RAMSES || TARGET_IPAQ || TARGET_SIMPAD || TARGET_SHARP | 155 | default y if TARGET_RAMSES || TARGET_IPAQ || TARGET_SIMPAD || TARGET_SHARP |
148 | default n if ! (TARGET_IPAQ || TARGET_SIMPAD || TARGET_RAMSES || TARGET_SHARP) | 156 | default n if ! (TARGET_IPAQ || TARGET_SIMPAD || TARGET_RAMSES || TARGET_SHARP) |
149 | 157 | ||
150 | config OPIE_TASKBAR_LOCK_KEY_STATE | 158 | config OPIE_TASKBAR_LOCK_KEY_STATE |
151 | boolean "Have a KeyLock state indicator on the taskbar" | 159 | boolean "Have a KeyLock state indicator on the taskbar" |
152 | default y if TARGET_SHARP | 160 | default y if TARGET_SHARP |
153 | default n if !TARGET_SHARP | 161 | default n if !TARGET_SHARP |
154 | 162 | ||
155 | config LIBQPE_WITHROHFEEDBACK | 163 | config LIBQPE_WITHROHFEEDBACK |
156 | boolean "Build libqpe with Right-On-Hold feedback" | 164 | boolean "Build libqpe with Right-On-Hold feedback" |
157 | default y | 165 | default y |
158 | 166 | ||
159 | config OPIE_NO_SOUND_PCM_READ_BITS | 167 | config OPIE_NO_SOUND_PCM_READ_BITS |
160 | boolean "There is not a pcm_read_bits io control" | 168 | boolean "There is not a pcm_read_bits io control" |
161 | default y if TARGET_SHARP | 169 | default y if TARGET_SHARP |
162 | default n if ! TARGET_SHARP | 170 | default n if ! TARGET_SHARP |
163 | endmenu | 171 | endmenu |
164 | 172 | ||
165 | menu "Dependencies" | 173 | menu "Dependencies" |
166 | source dependencies.in | 174 | source dependencies.in |
167 | endmenu | 175 | endmenu |
168 | 176 | ||
169 | menu "Base" | 177 | menu "Base" |
170 | choice | 178 | choice |
171 | prompt "Qpe Library Selection" | 179 | prompt "Qpe Library Selection" |
172 | default LIBQPE | 180 | default LIBQPE |
173 | source library/config.in | 181 | source library/config.in |
174 | source x11/config.in | 182 | source x11/config.in |
175 | endchoice | 183 | endchoice |
176 | source libopie/config.in | 184 | source libopie/config.in |
177 | 185 | ||
178 | source libopie2/config.in | 186 | source libopie2/config.in |
179 | source libqtaux/config.in | 187 | source libqtaux/config.in |
180 | source rsync/config.in | 188 | source rsync/config.in |
181 | source core/opie-login/config.in | 189 | source core/opie-login/config.in |
182 | source core/opiealarm/config.in | 190 | source core/opiealarm/config.in |
183 | source core/tools/quicklauncher/config.in | 191 | source core/tools/quicklauncher/config.in |
184 | source core/launcher/config.in | 192 | source core/launcher/config.in |
185 | source core/symlinker/config.in | 193 | source core/symlinker/config.in |
186 | endmenu | 194 | endmenu |
187 | 195 | ||
188 | comment "" | 196 | comment "" |
189 | 197 | ||
190 | menu "Applets" | 198 | menu "Applets" |
191 | source core/applets/config.in | 199 | source core/applets/config.in |
192 | source noncore/applets/config.in | 200 | source noncore/applets/config.in |
193 | endmenu | 201 | endmenu |
194 | 202 | ||
195 | menu "Apps" | 203 | menu "Apps" |
196 | source core/apps/config.in | 204 | source core/apps/config.in |
197 | source noncore/apps/config.in | 205 | source noncore/apps/config.in |
198 | endmenu | 206 | endmenu |
199 | 207 | ||
200 | menu "Communications and Networking" | 208 | menu "Communications and Networking" |
201 | source noncore/comm/config.in | 209 | source noncore/comm/config.in |
202 | source noncore/net/config.in | 210 | source noncore/net/config.in |
203 | endmenu | 211 | endmenu |
204 | 212 | ||
205 | menu "Games" | 213 | menu "Games" |
206 | source noncore/games/config.in | 214 | source noncore/games/config.in |
207 | endmenu | 215 | endmenu |
208 | 216 | ||
209 | menu "Graphics and Multimedia" | 217 | menu "Graphics and Multimedia" |
210 | source freetype/config.in | 218 | source freetype/config.in |
211 | source noncore/graphics/config.in | 219 | source noncore/graphics/config.in |
212 | source core/multimedia/config.in | 220 | source core/multimedia/config.in |
213 | source noncore/multimedia/config.in | 221 | source noncore/multimedia/config.in |
214 | endmenu | 222 | endmenu |
215 | 223 | ||
216 | menu "Input methods" | 224 | menu "Input methods" |
217 | source inputmethods/config.in | 225 | source inputmethods/config.in |
218 | endmenu | 226 | endmenu |
219 | 227 | ||
220 | menu "Pim" | 228 | menu "Pim" |
221 | source core/obex/config.in | 229 | source core/obex/config.in |
222 | source core/pim/config.in | 230 | source core/pim/config.in |
223 | comment "Today Plugins ---" | 231 | comment "Today Plugins ---" |
224 | source noncore/todayplugins/config.in | 232 | source noncore/todayplugins/config.in |
225 | source core/pim/today/plugins/config.in | 233 | source core/pim/today/plugins/config.in |
226 | endmenu | 234 | endmenu |
227 | 235 | ||
228 | menu "Settings" | 236 | menu "Settings" |
229 | source core/settings/config.in | 237 | source core/settings/config.in |
230 | source noncore/settings/config.in | 238 | source noncore/settings/config.in |
231 | source noncore/securityplugins/config.in | 239 | source noncore/securityplugins/config.in |
232 | endmenu | 240 | endmenu |
233 | 241 | ||
234 | menu "Theming" | 242 | menu "Theming" |
235 | comment "Decorations ---" | 243 | comment "Decorations ---" |
236 | source noncore/decorations/config.in | 244 | source noncore/decorations/config.in |
237 | comment "Styles ---" | 245 | comment "Styles ---" |
238 | source noncore/styles/config.in | 246 | source noncore/styles/config.in |
239 | endmenu | 247 | endmenu |
240 | 248 | ||
241 | menu "Tools" | 249 | menu "Tools" |
242 | source noncore/tools/config.in | 250 | source noncore/tools/config.in |
243 | endmenu | 251 | endmenu |
244 | 252 | ||
245 | menu "Development" | 253 | menu "Development" |
246 | source development/keyview/config.in | 254 | source development/keyview/config.in |
247 | #source development/debugviewer/config.in | 255 | #source development/debugviewer/config.in |
248 | endmenu | 256 | endmenu |
249 | 257 | ||
250 | menu "Examples" | 258 | menu "Examples" |
251 | config EXAMPLES | 259 | config EXAMPLES |
252 | boolean "Compile Example Application" | 260 | boolean "Compile Example Application" |
253 | source examples/config.in | 261 | source examples/config.in |
254 | endmenu | 262 | endmenu |
255 | 263 | ||
256 | comment "" | 264 | comment "" |
257 | 265 | ||
258 | menu "Unsupported / Unmaintained" | 266 | menu "Unsupported / Unmaintained" |
259 | source noncore/unsupported/config.in | 267 | source noncore/unsupported/config.in |
260 | endmenu | 268 | endmenu |
261 | 269 | ||
262 | comment "" | 270 | comment "" |
263 | depends on EXPERIMENTAL | 271 | depends on EXPERIMENTAL |
264 | menu "Experimental" | 272 | menu "Experimental" |
265 | depends on EXPERIMENTAL | 273 | depends on EXPERIMENTAL |
266 | source libslcompat/config.in | 274 | source libslcompat/config.in |
267 | source core/qws/config.in | 275 | source core/qws/config.in |
268 | endmenu | 276 | endmenu |
diff --git a/mkspecs/qws/linux-oe-g++/qmake.conf b/mkspecs/qws/linux-oe-g++/qmake.conf new file mode 100644 index 0000000..c4c273f --- a/dev/null +++ b/mkspecs/qws/linux-oe-g++/qmake.conf | |||
@@ -0,0 +1,86 @@ | |||
1 | # | ||
2 | # $Id$ | ||
3 | # | ||
4 | # qmake configuration for linux-g++ using the arm-linux-g++ crosscompiler | ||
5 | # | ||
6 | |||
7 | MAKEFILE_GENERATOR= UNIX | ||
8 | TEMPLATE = app | ||
9 | CONFIG += qt link_prl | ||
10 | |||
11 | STAGING_BINDIR = $(OEDIR)/tmp/staging/i686-linux/bin | ||
12 | STAGING_CROSSDIR = $(OEDIR)/tmp/cross/bin | ||
13 | STAGING_INCDIR = $(OEDIR)/tmp/staging/arm-linux/include | ||
14 | STAGING_LIBDIR = $(OEDIR)/tmp/staging/arm-linux/lib | ||
15 | |||
16 | QMAKE_CC = $(CCACHE) $(DISTCC) $$STAGING_CROSSDIR/arm-linux-gcc | ||
17 | QMAKE_LEX = flex | ||
18 | QMAKE_LEXFLAGS = | ||
19 | QMAKE_YACC = yacc | ||
20 | QMAKE_YACCFLAGS = -d | ||
21 | QMAKE_CFLAGS = -pipe $(CFLAGS_EXTRA) | ||
22 | QMAKE_CFLAGS_WARN_ON= -Wall -W | ||
23 | QMAKE_CFLAGS_WARN_OFF= | ||
24 | QMAKE_CFLAGS_RELEASE= $(if $(CFLAGS_RELEASE),$(CFLAGS_RELEASE), -O2) | ||
25 | QMAKE_CFLAGS_DEBUG= -g | ||
26 | QMAKE_CFLAGS_SHLIB= -fPIC | ||
27 | QMAKE_CFLAGS_YACC= -Wno-unused -Wno-parentheses | ||
28 | QMAKE_CFLAGS_THREAD= -D_REENTRANT | ||
29 | |||
30 | QMAKE_CXX = $(CCACHE) $(DISTCC) $$STAGING_CROSSDIR/arm-linux-g++ -DQT_QWS_SL5XX -DQT_QWS_SHARP -DQT_QWS_EBX -DQT_QWS_CUSTOM | ||
31 | QMAKE_CXXFLAGS = $$QMAKE_CFLAGS -DQWS -fno-exceptions -fno-rtti $(CXXFLAGS_EXTRA) | ||
32 | QMAKE_CXXFLAGS_WARN_ON= $$QMAKE_CFLAGS_WARN_ON | ||
33 | QMAKE_CXXFLAGS_WARN_OFF= $$QMAKE_CFLAGS_WARN_OFF | ||
34 | QMAKE_CXXFLAGS_RELEASE= $$QMAKE_CFLAGS_RELEASE | ||
35 | QMAKE_CXXFLAGS_DEBUG= $$QMAKE_CFLAGS_DEBUG | ||
36 | QMAKE_CXXFLAGS_SHLIB= $$QMAKE_CFLAGS_SHLIB | ||
37 | QMAKE_CXXFLAGS_YACC= $$QMAKE_CFLAGS_YACC | ||
38 | QMAKE_CXXFLAGS_THREAD= $$QMAKE_CFLAGS_THREAD | ||
39 | |||
40 | QMAKE_INCDIR = $$STAGING_INCDIR | ||
41 | QMAKE_LIBDIR = $$STAGING_LIBDIR | ||
42 | QMAKE_INCDIR_X11= | ||
43 | QMAKE_LIBDIR_X11= | ||
44 | QMAKE_INCDIR_QT = $(QTDIR)/include | ||
45 | QMAKE_LIBDIR_QT = $(QTDIR)/lib | ||
46 | QMAKE_INCDIR_OPENGL= | ||
47 | QMAKE_LIBDIR_OPENGL= | ||
48 | QMAKE_INCDIR_QTOPIA= | ||
49 | QMAKE_LIBDIR_QTOPIA= | ||
50 | |||
51 | QMAKE_LINK = $$STAGING_CROSSDIR/arm-linux-g++ | ||
52 | QMAKE_LINK_SHLIB= $$STAGING_CROSSDIR/arm-linux-g++ | ||
53 | QMAKE_LFLAGS = $(LFLAGS_EXTRA) | ||
54 | QMAKE_LFLAGS_RELEASE= | ||
55 | QMAKE_LFLAGS_DEBUG= | ||
56 | QMAKE_LFLAGS_SHLIB = -shared | ||
57 | QMAKE_LFLAGS_PLUGIN = $$QMAKE_LFLAGS_SHLIB | ||
58 | QMAKE_LFLAGS_SONAME = -Wl,-soname, | ||
59 | QMAKE_LFLAGS_THREAD = | ||
60 | QMAKE_RPATH = -Wl,-rpath-link, | ||
61 | |||
62 | QMAKE_LIBS = $(LIBS_EXTRA) | ||
63 | QMAKE_LIBS_DYNLOAD = -ldl | ||
64 | QMAKE_LIBS_X11 = | ||
65 | QMAKE_LIBS_X11SM= | ||
66 | QMAKE_LIBS_QT = -lqte | ||
67 | QMAKE_LIBS_QT_THREAD = -lqte-mt | ||
68 | QMAKE_LIBS_QT_OPENGL= -lqgl | ||
69 | QMAKE_LIBS_QTOPIA= -lqpe | ||
70 | QMAKE_LIBS_THREAD = -lpthread | ||
71 | |||
72 | QMAKE_MOC = $$STAGING_BINDIR/moc | ||
73 | QMAKE_UIC = $$STAGING_BINDIR/uic | ||
74 | |||
75 | QMAKE_AR = ar cqs | ||
76 | QMAKE_RANLIB = | ||
77 | |||
78 | QMAKE_TAR = tar -cf | ||
79 | QMAKE_GZIP = gzip -9f | ||
80 | |||
81 | QMAKE_COPY = cp -f | ||
82 | QMAKE_MOVE = mv -f | ||
83 | QMAKE_DEL_FILE = rm -f | ||
84 | QMAKE_DEL_DIR = rmdir | ||
85 | QMAKE_CHK_DIR_EXISTS= test -d | ||
86 | QMAKE_MKDIR = mkdir -p | ||
diff --git a/mkspecs/qws/linux-oe-g++/qplatformdefs.h b/mkspecs/qws/linux-oe-g++/qplatformdefs.h new file mode 100644 index 0000000..8fea644 --- a/dev/null +++ b/mkspecs/qws/linux-oe-g++/qplatformdefs.h | |||
@@ -0,0 +1,103 @@ | |||
1 | #ifndef QPLATFORMDEFS_H | ||
2 | #define QPLATFORMDEFS_H | ||
3 | |||
4 | // Get Qt defines/settings | ||
5 | |||
6 | #include "qglobal.h" | ||
7 | |||
8 | // Set any POSIX/XOPEN defines at the top of this file to turn on specific APIs | ||
9 | |||
10 | // DNS system header files are a mess! | ||
11 | // <resolv.h> includes <arpa/nameser.h>. <arpa/nameser.h> is using | ||
12 | // 'u_char' and includes <sys/types.h>. Now the problem is that | ||
13 | // <sys/types.h> defines 'u_char' only if __USE_BSD is defined. | ||
14 | // __USE_BSD is defined in <features.h> if _BSD_SOURCE is defined. | ||
15 | #ifndef _BSD_SOURCE | ||
16 | # define _BSD_SOURCE | ||
17 | #endif | ||
18 | |||
19 | // 1) need to reset default environment if _BSD_SOURCE is defined | ||
20 | // 2) need to specify POSIX thread interfaces explicitly in glibc 2.0 | ||
21 | // 3) it seems older glibc need this to include the X/Open stuff | ||
22 | #ifndef _GNU_SOURCE | ||
23 | # define _GNU_SOURCE | ||
24 | #endif | ||
25 | |||
26 | #include <unistd.h> | ||
27 | |||
28 | |||
29 | // We are hot - unistd.h should have turned on the specific APIs we requested | ||
30 | |||
31 | |||
32 | #ifdef QT_THREAD_SUPPORT | ||
33 | #include <pthread.h> | ||
34 | #endif | ||
35 | |||
36 | #include <dirent.h> | ||
37 | #include <fcntl.h> | ||
38 | #include <grp.h> | ||
39 | #include <pwd.h> | ||
40 | #include <signal.h> | ||
41 | #include <dlfcn.h> | ||
42 | #define QT_RTLD_FLAGSRTLD_LAZY|RTLD_GLOBAL | ||
43 | |||
44 | #include <sys/types.h> | ||
45 | #include <sys/ioctl.h> | ||
46 | #include <sys/ipc.h> | ||
47 | #include <sys/time.h> | ||
48 | #include <sys/shm.h> | ||
49 | #include <sys/socket.h> | ||
50 | #include <sys/stat.h> | ||
51 | #include <sys/wait.h> | ||
52 | |||
53 | // DNS header files are not fully covered by X/Open specifications. | ||
54 | // In particular nothing is said about res_* :/ | ||
55 | // Header files <netinet/in.h> and <arpa/nameser.h> are not included | ||
56 | // by <resolv.h> on older versions of the GNU C library. Note that | ||
57 | // <arpa/nameser.h> must be included before <resolv.h>. | ||
58 | #include <netinet/in.h> | ||
59 | #include <arpa/nameser.h> | ||
60 | #include <resolv.h> | ||
61 | |||
62 | |||
63 | #if !defined(QT_NO_COMPAT) | ||
64 | #define QT_STATBUF struct stat | ||
65 | #define QT_STATBUF4TSTATstruct stat | ||
66 | #define QT_STAT ::stat | ||
67 | #define QT_FSTAT ::fstat | ||
68 | #define QT_STAT_REG S_IFREG | ||
69 | #define QT_STAT_DIR S_IFDIR | ||
70 | #define QT_STAT_MASK S_IFMT | ||
71 | #define QT_STAT_LNK S_IFLNK | ||
72 | #define QT_FILENO fileno | ||
73 | #define QT_OPEN ::open | ||
74 | #define QT_CLOSE ::close | ||
75 | #define QT_LSEEK ::lseek | ||
76 | #define QT_READ ::read | ||
77 | #define QT_WRITE ::write | ||
78 | #define QT_ACCESS ::access | ||
79 | #define QT_GETCWD ::getcwd | ||
80 | #define QT_CHDIR ::chdir | ||
81 | #define QT_MKDIR ::mkdir | ||
82 | #define QT_RMDIR ::rmdir | ||
83 | #define QT_OPEN_RDONLY O_RDONLY | ||
84 | #define QT_OPEN_WRONLY O_WRONLY | ||
85 | #define QT_OPEN_RDWR O_RDWR | ||
86 | #define QT_OPEN_CREAT O_CREAT | ||
87 | #define QT_OPEN_TRUNC O_TRUNC | ||
88 | #define QT_OPEN_APPEND O_APPEND | ||
89 | #endif | ||
90 | |||
91 | #define QT_SIGNAL_RETTYPEvoid | ||
92 | #define QT_SIGNAL_ARGS int | ||
93 | #define QT_SIGNAL_IGNORESIG_IGN | ||
94 | |||
95 | #define QT_SOCKLEN_T socklen_t | ||
96 | |||
97 | #if defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 500) | ||
98 | #define QT_SNPRINTF ::snprintf | ||
99 | #define QT_VSNPRINTF ::vsnprintf | ||
100 | #endif | ||
101 | |||
102 | |||
103 | #endif // QPLATFORMDEFS_H | ||