Opened 15 years ago

Closed 15 years ago

Last modified 6 years ago

#9062 closed patch

Support for mingw32ce toolchain in buildbot configuration

Reported by: CeRiAl Owned by: dhewg
Priority: normal Component: Port: WinCE
Version: Keywords:
Cc: Game:

Description

This patch adds support for the mingw32ce toolchain to the buildbot master.cfg

Ticket imported from: #2828673. Ticket imported from: patches/1167.

Attachments (2)

20090729-master.cfg.patch (1.1 KB ) - added by CeRiAl 15 years ago.
SVN Diff
20090730-master.cfg.patch (1.2 KB ) - added by CeRiAl 15 years ago.
New SVN Diff (2009-07-30 22:49)

Download all attachments as: .zip

Change History (13)

comment:1 by CeRiAl, 15 years ago

Owner: set to fingolfin

comment:2 by fingolfin, 15 years ago

This should set some more env vars. Compare with what we use for Mingw32: scumm_env_mingw_w32["CXX"] = "ccache i586-mingw32msvc-g++" scumm_env_mingw_w32["CXXFLAGS"] = "-isystem %s/include" % scumm_root_mingw_w32; scumm_env_mingw_w32["LDFLAGS"] = "-L%s/lib" % scumm_root_mingw_w32;

* CXX is set to ensure ccache gets used (which speeds up recompilation); it also ensures that the right cross compiler gets used

* CXXFLAGS specifies -isystem to make the compiler use the right toolchain include dir, which would contain all 3rd party libs (such as SDL) to be used by the port

* LDFLAGS does hte same for libs instead of header files.

I am somewhat surprised that it builds fine in your test setup without those. Is the compiler somehow specially tweaked to look for 3rd party libs in the "right" directory, or what?

comment:3 by CeRiAl, 15 years ago

The point with CXX is good, i will include this in my test config. Regarding the lib and include paths: Yes, it seems that the toolchain looks in "special" paths for its libs and includes:

$ arm-wince-mingw32ce-gcc -print-search-dirs install: /opt/mingw32ce/lib/gcc/arm-wince-mingw32ce/4.1.0/ programs: =/opt/mingw32ce-0.5.1/bin/../libexec/gcc/arm-wince-mingw32ce/4.1.0/:/opt/mingw32ce-0.5.1/bin/../libexec/gcc/:/opt/mingw32ce/libexec/gcc/arm-wince-mingw32ce/4.1.0/:/opt/mingw32ce/libexec/gcc/arm-wince-mingw32ce/4.1.0/:/opt/mingw32ce/libexec/gcc/arm-wince-mingw32ce/:/opt/mingw32ce/lib/gcc/arm-wince-mingw32ce/4.1.0/:/opt/mingw32ce/lib/gcc/arm-wince-mingw32ce/:/usr/libexec/gcc/arm-wince-mingw32ce/4.1.0/:/usr/libexec/gcc/arm-wince-mingw32ce/:/usr/lib/gcc/arm-wince-mingw32ce/4.1.0/:/usr/lib/gcc/arm-wince-mingw32ce/:/opt/mingw32ce-0.5.1/bin/../lib/gcc/arm-wince-mingw32ce/4.1.0/../../../../arm-wince-mingw32ce/bin/arm-wince-mingw32ce/4.1.0/:/opt/mingw32ce-0.5.1/bin/../lib/gcc/arm-wince-mingw32ce/4.1.0/../../../../arm-wince-mingw32ce/bin/:/opt/mingw32ce/lib/gcc/arm-wince-mingw32ce/4.1.0/../../../../arm-wince-mingw32ce/bin/arm-wince-mingw32ce/4.1.0/:/opt/mingw32ce/lib/gcc/arm-wince-mingw32ce/4.1.0/../../../../arm-wince-mingw32ce/bin/ libraries: =/opt/mingw32ce-0.5.1/bin/../lib/gcc/arm-wince-mingw32ce/4.1.0/:/opt/mingw32ce-0.5.1/bin/../lib/gcc/:/opt/mingw32ce/lib/gcc/arm-wince-mingw32ce/4.1.0/:/usr/lib/gcc/arm-wince-mingw32ce/4.1.0/:/opt/mingw32ce-0.5.1/bin/../lib/gcc/arm-wince-mingw32ce/4.1.0/../../../../arm-wince-mingw32ce/lib/arm-wince-mingw32ce/4.1.0/:/opt/mingw32ce-0.5.1/bin/../lib/gcc/arm-wince-mingw32ce/4.1.0/../../../../arm-wince-mingw32ce/lib/:/opt/mingw32ce/lib/gcc/arm-wince-mingw32ce/4.1.0/../../../../arm-wince-mingw32ce/lib/arm-wince-mingw32ce/4.1.0/:/opt/mingw32ce/lib/gcc/arm-wince-mingw32ce/4.1.0/../../../../arm-wince-mingw32ce/lib/

comment:4 by CeRiAl, 15 years ago

I will check if everything still works correctly when when i move the toolchain to /opt/toolchains and set CXXFLAGS and LDFLAGS accordingly.

comment:5 by CeRiAl, 15 years ago

Ok, added ccache and CXX, CXXFLAGS and LDFLAGS env.vars to the buildbot config after moving the toolchain to /opt/toolchains. Everything still works great. I've attached a new patch reflecting these modifications.

by CeRiAl, 15 years ago

Attachment: 20090729-master.cfg.patch added

SVN Diff

comment:6 by fingolfin, 15 years ago

Looks excellent! Now I'd commit this instantly, but I think it makes no sense to do so before the corresponding tools have been setup on the buildbot. Kostas... ?

comment:7 by fingolfin, 15 years ago

Owner: changed from fingolfin to SF/knakos

by CeRiAl, 15 years ago

Attachment: 20090730-master.cfg.patch added

New SVN Diff (2009-07-30 22:49)

comment:8 by CeRiAl, 15 years ago

Changed the config a little bit (include search paths for SDL and tremolo) and added new attachment (20090730-master.cfg.patch) This configuration works in conjunction with patch #2828646. Please note that for a successful wince-buildbot config also patch #2828669 still has be committed (or some alternative for that).

comment:9 by dhewg, 15 years ago

Commited with a few changes: - lib/ and include/ of libs like SDL reside in the toolchain root, not in the "arm-wince-mingw32ce" subfolder - the buildbot port is only active on trunk, not on the branch (the configure patches are not part of the branch)

thanks alot!

comment:10 by dhewg, 15 years ago

Owner: changed from SF/knakos to dhewg
Status: newclosed

comment:11 by digitall, 6 years ago

Component: Port: WinCE
Note: See TracTickets for help on using tickets.