Mercurial > fife-parpg
annotate build/freebsd8-config-dist.py @ 697:ecaa4d98f05f tip
Abstracted the GUI code and refactored the GUIChan-specific code into its own module.
* Most of the GUIChan code has been refactored into its own gui/guichan module. However, references to the GuiFont class still persist in the Engine and GuiManager code and these will need further refactoring.
* GuiManager is now an abstract base class which specific implementations (e.g. GUIChan) should subclass.
* The GUIChan GUI code is now a concrete implementation of GuiManager, most of which is in the new GuiChanGuiManager class.
* The GUI code in the Console class has been refactored out of the Console and into the GUIChan module as its own GuiChanConsoleWidget class. The rest of the Console class related to executing commands was left largely unchanged.
* Existing client code may need to downcast the GuiManager pointer received from FIFE::Engine::getGuiManager() to GuiChanGuiManager, since not all functionality is represented in the GuiManager abstract base class. Python client code can use the new GuiChanGuiManager.castTo static method for this purpose.
author | M. George Hansen <technopolitica@gmail.com> |
---|---|
date | Sat, 18 Jun 2011 00:28:40 -1000 |
parents | fe6fb0e0ed23 |
children |
rev | line source |
---|---|
377
fe6fb0e0ed23
Adding freebsd8 build support. Thanks to varnie.
prock@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff
changeset
|
1 # Needed pkg-config additions: |
fe6fb0e0ed23
Adding freebsd8 build support. Thanks to varnie.
prock@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff
changeset
|
2 # SDL_ttf & SDL_image |
fe6fb0e0ed23
Adding freebsd8 build support. Thanks to varnie.
prock@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff
changeset
|
3 # guichan, guichan_opengl & guichan_sdl |
fe6fb0e0ed23
Adding freebsd8 build support. Thanks to varnie.
prock@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff
changeset
|
4 # boost_filesystem & boost_regex |
fe6fb0e0ed23
Adding freebsd8 build support. Thanks to varnie.
prock@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff
changeset
|
5 # vorbisfile |
fe6fb0e0ed23
Adding freebsd8 build support. Thanks to varnie.
prock@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff
changeset
|
6 # openal |
fe6fb0e0ed23
Adding freebsd8 build support. Thanks to varnie.
prock@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff
changeset
|
7 |
fe6fb0e0ed23
Adding freebsd8 build support. Thanks to varnie.
prock@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff
changeset
|
8 import sys |
fe6fb0e0ed23
Adding freebsd8 build support. Thanks to varnie.
prock@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff
changeset
|
9 |
fe6fb0e0ed23
Adding freebsd8 build support. Thanks to varnie.
prock@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff
changeset
|
10 def initEnvironment(env): |
fe6fb0e0ed23
Adding freebsd8 build support. Thanks to varnie.
prock@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff
changeset
|
11 return env |
fe6fb0e0ed23
Adding freebsd8 build support. Thanks to varnie.
prock@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff
changeset
|
12 |
fe6fb0e0ed23
Adding freebsd8 build support. Thanks to varnie.
prock@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff
changeset
|
13 def addExtras(context): |
fe6fb0e0ed23
Adding freebsd8 build support. Thanks to varnie.
prock@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff
changeset
|
14 context.env.Append(CPPPATH = ['/usr/local/include/vorbis']) |
fe6fb0e0ed23
Adding freebsd8 build support. Thanks to varnie.
prock@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff
changeset
|
15 context.checkSimpleLib(['vorbisfile'], 'vorbisfile.h') |
fe6fb0e0ed23
Adding freebsd8 build support. Thanks to varnie.
prock@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff
changeset
|
16 context.checkSimpleLib(['openal'], 'AL/al.h') |
fe6fb0e0ed23
Adding freebsd8 build support. Thanks to varnie.
prock@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff
changeset
|
17 |
fe6fb0e0ed23
Adding freebsd8 build support. Thanks to varnie.
prock@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff
changeset
|
18 context.checkSimpleLib(['sdl11', 'sdl12', 'sdl'], 'SDL.h') |
fe6fb0e0ed23
Adding freebsd8 build support. Thanks to varnie.
prock@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff
changeset
|
19 context.checkSimpleLib(['SDL_ttf'], 'SDL_ttf.h') |
fe6fb0e0ed23
Adding freebsd8 build support. Thanks to varnie.
prock@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff
changeset
|
20 context.checkSimpleLib(['SDL_image'], 'SDL_image.h') |
fe6fb0e0ed23
Adding freebsd8 build support. Thanks to varnie.
prock@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff
changeset
|
21 context.checkSimpleLib(['guichan']) |
fe6fb0e0ed23
Adding freebsd8 build support. Thanks to varnie.
prock@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff
changeset
|
22 context.checkSimpleLib(['guichan_sdl']) |
fe6fb0e0ed23
Adding freebsd8 build support. Thanks to varnie.
prock@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff
changeset
|
23 context.checkSimpleLib(['boost_filesystem']) |
fe6fb0e0ed23
Adding freebsd8 build support. Thanks to varnie.
prock@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff
changeset
|
24 context.checkSimpleLib(['boost_regex']) |
fe6fb0e0ed23
Adding freebsd8 build support. Thanks to varnie.
prock@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff
changeset
|
25 context.checkSimpleLib(['xcursor']) |
fe6fb0e0ed23
Adding freebsd8 build support. Thanks to varnie.
prock@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff
changeset
|
26 context.checkSimpleLib(['png'], 'png.h') |
fe6fb0e0ed23
Adding freebsd8 build support. Thanks to varnie.
prock@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff
changeset
|
27 |
fe6fb0e0ed23
Adding freebsd8 build support. Thanks to varnie.
prock@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff
changeset
|
28 if context.env['opengl']: |
fe6fb0e0ed23
Adding freebsd8 build support. Thanks to varnie.
prock@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff
changeset
|
29 context.env.Append(LIBS = ['GL', 'GLU']) |
fe6fb0e0ed23
Adding freebsd8 build support. Thanks to varnie.
prock@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff
changeset
|
30 context.env.Append(CPPPATH = ['/usr/local/include']) |
fe6fb0e0ed23
Adding freebsd8 build support. Thanks to varnie.
prock@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff
changeset
|
31 context.env.Append(LIBPATH = ['/usr/local/lib']) |
fe6fb0e0ed23
Adding freebsd8 build support. Thanks to varnie.
prock@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff
changeset
|
32 context.checkSimpleLib(['guichan_opengl']) |
fe6fb0e0ed23
Adding freebsd8 build support. Thanks to varnie.
prock@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff
changeset
|
33 # For swig/python: |
fe6fb0e0ed23
Adding freebsd8 build support. Thanks to varnie.
prock@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff
changeset
|
34 context.env.Append(CPPPATH = ['/usr/local/include/python%s'%sys.version[:3]]) |