Commit Graph

275 Commits

Author SHA1 Message Date
Matt Ebb
c8c8edb527 Updated paths on mac os x to be like makefiles (/usr/local/ ... ). Remember to delete config.opts for it to be recreated with the new EXR options! 2006-01-09 12:26:14 +00:00
Kent Mein
c693e01b8d Ton forgot a few modifications to the Scons and Makefile build systems.
These should make it so that other people can compile with OpenEXR support.

(I also added the OPENAL fix erwin commited to bf-blender since I
need it for my machine, and this syncs up the file)

Kent
2006-01-09 02:18:11 +00:00
Johnny Matthews
936ed99cc6 Adding libtiff for win32 build 2005-11-23 14:53:51 +00:00
Toni Alatalo
590e1c1e4a uh should have read the patch better, i did test it and it works :) 2005-11-23 14:31:47 +00:00
Toni Alatalo
d40b4dbaf8 adding libtiff info to scons, applying http://vidar.gimp.org/tmp/scons-linux.diff 2005-11-23 14:28:40 +00:00
Matt Ebb
6d8a7d7819 * Attempting to fix scons for mac os x. It seems to be correct, if I've made a
mistake, someone can please help fix, just trying to get things to compile here
in the studio. You'll need to delete config.opts
2005-11-23 13:44:58 +00:00
Erwin Coumans
0dde486eea applied patch [ #3260 ] Enable compile bullet and sumo with scons 2005-10-28 04:48:01 +00:00
Erwin Coumans
745fc2f9d0 updated SConstruct and Makefile so that if you compile the gameengine, is always enables bullet, independent of sumo/ode.
So for the 2.4 release, both bullet AND sumo will be enabled. You can choose in the world buttons which physics engine is active for a scene.

sorry if this breaks your builds!
2005-10-23 17:55:19 +00:00
D.J. Capelis
edad7a67b4 Build system - Bug Fix/Cleanup: Moving use_fluidsim variable to platform specific section where it belongs as per ML and IRC discussion. This allows platform maintainers some flexibility in determining what should be compiling on each system. Right now fluidsim is set as true everywhere and there is no functional change from before. 2005-10-12 11:55:56 +00:00
Ton Roosendaal
bcbaffc8c2 Look, in one commit!
- test build alpha splash
- version update to 239 in code
- release names are 2.40-alpha1

Note about release names; this is really an alpha still, not a release
candidate, so cannot call it 2.40-pre either.
Naming conventions is a discussion still... hope this works as a compromise
for now.
2005-10-11 14:04:57 +00:00
Nils Thuerey
328eeaf10b - added option to switch off compiling elbeem to scons files (set USE_FLUIDSIM=true)
in this case only the new blenderdummy.cpp and utilities.cpp have to be compiled
- restructured gui:
   * domain options split up into 2 sections
	 * added compressibility and refinement settings
	 * added inflow/outflow object types
- increased progress bar by 1
2005-10-10 06:59:47 +00:00
Jens Ole Wund
b9e6e0c2ec make compiling with free ms vc7 toolkit easier
hum .. do we need that ODBC .. looks like no
2005-10-08 22:40:58 +00:00
Jean-Luc Peurière
0006f8ad14 update to xcode
added a workaround for scons
2005-08-12 21:41:22 +00:00
Jean-Luc Peurière
b12f801681 updates to the OS X build system :
- XCode project
- Scons :
    scons stopped working for Os X in the last month (dont know when) :

     * the '.' and '..' keywords in CCPPATH
          are not recognized anymore for sconscripts compiling files at
          a sub level
     * when doing a scons clean, the 3 subdirs in build dir are removed
      and scons then fail to recreate them (exten, intern, source)

this commit solve the first problem as a temp workaround
for the latter simply recreate the dirs manually

I will investigate that further when on vacations,  which i should already
 be.
 ;(

all 3 build systems are now working on Os X
2005-08-04 16:05:28 +00:00
Simon Clitherow
671235b69b Finalised support for compiling BULLET on linux.
Bullet is now off by default on all platforms until we get an OK
from Erwin. To enable it, change USE_PHYSICS to 'bullet' in your
config.opts.
2005-08-02 18:54:11 +00:00
D.J. Capelis
fc5eca101b Modifications for bullet were made and variables were defined only for windows. This commit defines these variables for the other blender platforms helping SCons not to barf quite as quickly. Scons is still unable to compile a fresh CVS checkout at the present time on linux, but now at least allows config.opts to be properly created.
The new defines for use_bullet are currently set as false until testing can take place to ensure proper compilation on those systems.  The existing use_bullet='true' on the windows platform was left untouched.

Please ensure that variables are defined on _all_ platforms in the future instead of just defining them for the system you're currently developing under.
2005-08-02 12:40:52 +00:00
Simon Clitherow
208da2a5d0 Added support for compiling BULLET with scons on windows
using bandoler's patch as a basis (thanks!).

A couple of notes:

-  This is for windows only, I did not have a chance to try linux yet.

-  SConscript for PHY_Bullet may need tweaking (plus support
 for other platforms), but at least it's in there :)

Any problems, shout :)
2005-08-01 21:19:41 +00:00
Johnny Matthews
aa3a45ddfc Linking to wrong zlib library. fixed! 2005-07-28 18:50:39 +00:00
Johnny Matthews
0f3303b7c5 Fix for zlib with MSVC/SCONS. Should compile now. This does not fix the bullet issues yet. But with this Blender should compile without the gameengine. 2005-07-28 18:11:10 +00:00
Ton Roosendaal
7eee2e7f8a SConstruct is 2.37a now 2005-06-13 20:56:19 +00:00
Ton Roosendaal
df89dbfbab Version codes for release building + splash.jpg 2005-05-29 19:14:21 +00:00
Jean-Luc Peurière
4e98a84cee change for libpng includes path on openBSD
requested some times ago by Nathan houghton
2005-05-29 12:06:53 +00:00
Nathan Letwory
bcd5d1c9ed * integrate bFTGL with Scons
* add some ENV = os.environ's here and there (help those who have msvc toolkit installed)

Note for OSX users: check from your config.opts the correct info for the precompiled ftgl lib is used.
2005-05-06 13:37:18 +00:00
Stephen Swaney
3428362140 Remove USE_CCGSUBSURFLIB stuff since it is always on now. 2005-03-31 16:21:08 +00:00
Stephen Swaney
9b6febecd3 Two scons changes:
1) fix evil use of internal scons interfaces that breaks latest scons version.

2) a hack to turn on new CCGSUBSURF stuff by adding -DUSE_CCGSUBSURFLIB
to extra_flags.  This is currently the default for all platforms except
win32 (due solely to my ignorance of win32 compiler flags).
2005-03-30 12:13:02 +00:00
Kent Mein
ecf6de151c This commit reverses the OpenEXR specific stuff in the OpenEXR commit I
did last friday.  A patch will be available in the patches tracker
that will have the current stuff there until everything is working.

Kent
2005-03-14 14:56:40 +00:00
Kent Mein
48b4329170 *sigh* I obviously rushed this. I honestly thought that this commit would
not affect anyone.

Changed:
if user_openexr == 'false':
	defines += ['WITH_OPENEXR']

To what it was suppose to be:
user_openexr = 'false':
if user_openexr == 'true':
	defines += ['WITH_OPENEXR']

This was messed up on most platforms, somewhere when adding them all
I switched to the bad version and continued with that...

I'm on irc if anyone else has any commits to clean this up.  I'm going
through things and trying to make sure its working for everyone.

Sorry,

Kent
2005-03-12 16:32:32 +00:00
Kent Mein
a1919e6db4 Gernot Ziegler's patch to add OpenEXR support to blender.
To enable it you will need to download OpenEXR and install it.
For the Makefiles you will need to set WITH_OPENEXR=true
and set NAN_OPENEXR to point to where OpenEXR is installed.

For scons you'll need to remove config.opts to get the new options
so you can enable OpenEXR, I was not able to get blender to link
with scons so the scons stuff may need to be tweaked a little but
I think it should work.

For other platform managers  The OpenEXR stuff is similar to QUICKTIME
you need to define WITH_OPENEXR and setup the library stuff and
as you'll notice in this commit there are two extra files.

Kent
2005-03-11 20:16:14 +00:00
Kent Mein
427ff274a2 Joseph Gilbert's fixes for the linux2 build target.
Kent
2005-02-15 13:06:08 +00:00
Jean-Luc Peurière
d0aa7eac41 support for new SDL build in makefiles and scons for Os X 2005-02-02 22:13:23 +00:00
Jean-Luc Peurière
1927dfa241 update to scons for Ton SDL threads 2005-01-02 16:35:48 +00:00
Ton Roosendaal
610cec55c7 Biiig commit! Thanks to 2-3 weeks of cvs freeze...
Render:
- New; support for dual CPU render (SDL thread)
  Currently only works with alternating scanlines, but gives excellent
  performance. For both normal render as unified implemented.
  Note the "mutex" locks on z-transp buffer render and imbuf loads.
- This has been made possible by major cleanups in render code, especially
  getting rid of globals (example Tin Tr Tg Tb Ta for textures) or struct
  OSA or using Materials or Texture data to write to.
- Made normal render fully 4x32 floats too, and removed all old optimizes
  with chars or shorts.
- Made normal render and unified render use same code for sky and halo
  render, giving equal (and better) results for halo render. Old render
  now also uses PostProcess options (brightness, mul, gamma)
- Added option ("FBuf") in F10 Output Panel, this keeps a 4x32 bits buffer
  after render. Using PostProcess menu you will note an immediate re-
  display of image too (32 bits RGBA)
- Added "Hue" and "Saturation" sliders to PostProcess options

- Render module is still not having a "nice" API, but amount of dependencies
  went down a lot. Next todo: remove abusive "previewrender" code.
  The last main global in Render (struct Render) now can be re-used for fully
  controlling a render, to allow multiple "instances" of render to open.

- Renderwindow now displays a smal bar on top with the stats, and keeps the
  stats after render too. Including "spare" page support.
  Not only easier visible that way, but also to remove the awkward code that
  was drawing stats in the Info header (extreme slow on some ATIs too)

- Cleaned up blendef.h and BKE_utildefines.h, these two had overlapping
  defines.

- I might have forgotten stuff... and will write a nice doc on the architecture!
2004-12-27 19:28:52 +00:00
Ton Roosendaal
2d7289f3f5 Accidentally committed corrupt SConstruct.... here's the one fixed 2004-12-21 17:00:25 +00:00
Ton Roosendaal
0ef03ae620 Upped sconstruct for 2.36 release 2004-12-21 16:25:37 +00:00
Wouter van Heyst
fe50974370 bump version to 2.35a for scons 2004-11-18 15:39:05 +00:00
Nathan Letwory
1e7370c535 Buildinfo would give player instead of dynamic 2004-11-14 20:37:32 +00:00
Nathan Letwory
044052328b bump version to 2.35 for scons 2004-11-14 20:31:32 +00:00
Jean-Luc Peurière
cd7b789907 more conservative default build options for OS X
O3 works thought on my system, but should not be set on reference releases
2004-11-14 14:38:03 +00:00
Jean-Luc Peurière
70c576ab37 added correct new defaults for building solid.
We used previously the precompiled lib
2004-11-07 21:34:17 +00:00
Michel Selten
461e07aedd SConstruct now looks for tools/scons/bs for the files. This used to be just
bs.
2004-10-20 20:17:42 +00:00
Nathan Letwory
9781fec228 indentation commit -> use hard tabs (as decided in meeting) 2004-09-26 10:56:38 +00:00
Nathan Letwory
f9542b45bc This commit makes a structural change to SConstruct. Many of the functionality for it has been split of in a new package bs. This structural change is in preperation for changes Michel has planned against the option jungle.
More information on the wiki: http://wiki.blender.org/bin/view.pl/Blenderdev/SconsRefactoring
2004-09-25 20:44:57 +00:00
Kester Maddock
3eddbfa942 Fix link ordering for blenderplayer. 2004-09-20 10:41:16 +00:00
Hans Lambermont
0ce1304e1b Theodore Schundler's patches to add FreeBSD support to the scons build
system.
2004-08-15 18:09:37 +00:00
Nathan Letwory
924cd728e2 This commit prepares for 2.34:
* LarstiQ patched SConstruct to have it name tarballs and zips better for 'scons release'
* bump version numbers to 234
* added splash.jpg and datatoc'ed version
* add release notes

People can now do still some final tests. Can you feel the heat?
2004-08-04 22:00:41 +00:00
Nathan Letwory
d3a9eae00d * make sure all contents of bpydata are included in installer and archives 2004-08-02 11:02:14 +00:00
Simon Clitherow
2a749931ba - added missing py scripts to the non-sconsered NSIS installer script
- uninstall files now done semi-automatic for 'scons wininst'
2004-08-01 21:13:41 +00:00
Jean-Luc Peurière
4f278a78d4 python scripts are not found if they are not placed in a .blender folder
inside MacOs folder of bundle.

their previous location (ressource folder) would however be more logical.
2004-07-29 23:21:05 +00:00
Jean-Luc Peurière
1f9f2d66eb bug correction for bundle creation on OS X. 2004-07-28 23:45:52 +00:00
Simon Clitherow
6f30f4aaab - added python23.zip & zlib.pyd (bundled python modules for Win32)
provided by IanWill (thanks!)

- updated build systems to suit
2004-07-28 18:28:17 +00:00
Simon Clitherow
d2da4f7160 - small fix for the scons 'wininst' target, plus a typo correction :) 2004-07-28 17:24:37 +00:00
Jean-Luc Peurière
09dc9c4066 forgot to copy back a change from my config.opt to SConstruct 2004-07-28 09:09:32 +00:00
Jean-Luc Peurière
0b9cf9006a compile options for macos X builds 2004-07-27 20:31:03 +00:00
Brecht Van Lommel
5881af9306 Fix bug #1466: Crash on decimating non-manifold mesh in scons build.
- Enabled the NDEBUG define (to disable assertions) on all platforms in scons.
  This is already the default in Makefiles.
- Free MEdge data after decimating, it is not valid anymore.
2004-07-25 10:49:25 +00:00
Jean-Luc Peurière
f6a6a5a279 made Scons work again for Os X bundle creation 2004-07-18 19:02:56 +00:00
Nathan Letwory
ce51ed822d Make sure that the hex value is checked as a hexvalue. On some systems this was apparently a problem. 2004-07-15 17:47:43 +00:00
Nathan Letwory
3dbd149de2 * on OS X the 'blender$PROGSUFFIX' caused problems due to SCons expanding it too late.
This is now fixed by manually setting target to 'blender'
2004-07-15 08:26:17 +00:00
Nathan Letwory
04408c3d76 * the clean target was doing some strange dependency stuff, so I changed that. As a bonus, it doens't read the SConscripts anymore, but just deletes the directories with object files. I leave the signature databases, since deleting them tended to give warning messages on subsequent runs.
ps. if it doesn't work, shoot me (and Jens, since he tested too ;)
2004-07-14 20:55:17 +00:00
Nathan Letwory
09cda2e74b * use sys.exit() instead of exit()
* scons clean -> does a quick(er) clean. No need to think, just scons clean (it removes all content of root_build_dir)
2004-07-14 18:14:49 +00:00
Nathan Letwory
ef8254d05f * Tell compilers they really need Python 2.3 when trying to SCons it all. 2004-07-14 17:26:04 +00:00
Nathan Letwory
80dc492a5e * rewrote part of the targets code
* added 'scons wininst'. This will create a NSIS installer for blender.
  This will need the NSIS tool in your path (makensis.exe).
  The needed scriptfile will be committed seperately, so remember
  to 'cvs update -d'

* tested on windows and linux, so other platform maintainers, please
  check that the build process is not broken.
2004-07-14 14:10:39 +00:00
Nathan Letwory
7a04f91f32 * the default 'scons' process now just builds Blender, but does no packaging, zipping or tarballing
* 'release' must be explicitely given as target to get all nicely wrapped up
2004-07-14 06:09:29 +00:00
Nathan Letwory
bf8c3e2020 * colon after def printadd() added to have correct and running python again :) (sorry, must've been subconsious spasm)
* made the build not depend on blenderplayer, so that it continues even when you have not the blenderplayer enabled
2004-07-13 19:10:34 +00:00
Nathan Letwory
9f8eea7882 * Added a release target to SConstruct -> 'scons release':
- after building blender and blenderplayer an archive is created in bin/ containing all necessary files
      - you'll need now python2.3 or newer for SConstruct to go through correctly. This is not a problem,
        since Blender requires python2.3 now anyway.
      - the release target has been done for linux, win32 and os x, other platforms get a
        warning message after blender has been built, just no package. See warning message for instructions
      - for linux, osx and win32 the blenderplayer target has been enabled for default
      - the build is logged to build.log for all platforms except win32. If you want it, you'll need tee.exe from
        http://unxutils.sf.net in your path (I put it in C:\\windows) and change the first if check in the
        SConstruct accordingly
2004-07-13 17:01:58 +00:00
Brecht Van Lommel
4f1c674ee0 Added SuperLU 3.0:
http://crd.lbl.gov/~xiaoye/SuperLU/

This is a library to solve sparse matrix systems (type A*x=B). It is able
to solve large systems very FAST. Only the necessary parts of the library
are included to limit file size and compilation time. This means the example
files, fortran interface, test files, matlab interface, cblas library,
complex number part and build system have been left out. All (gcc) warnings
have been fixed too.

This library will be used for LSCM UV unwrapping. With this library, LSCM
unwrapping can be calculated in a split second, making the unwrapping proces
much more interactive.

Added OpenNL (Open Numerical Libary):
http://www.loria.fr/~levy/OpenNL/

OpenNL is a library to easily construct and solve sparse linear systems. We
use a stripped down version, as an interface to SuperLU.

This library was kindly given to use by Bruno Levy.
2004-07-13 11:42:13 +00:00
Nathan Letwory
84b399364c * Fixed action conflict (win32):
When also enabling the blenderplayer there would be a action conflict for the resource building.
2004-07-11 20:14:54 +00:00
Nathan Letwory
ae4afb8268 * ensure winblender.res gets build too. 2004-07-03 22:01:04 +00:00
Nathan Letwory
3bf5e671d0 * Syntax error on line 1050 prevented scons from starting the compile process.
* Corrected some indenting
2004-06-23 14:56:30 +00:00
Kester Maddock
7d840a256e Correct blenderplayer target for sys.platform == win32 2004-06-07 10:10:13 +00:00
Kester Maddock
372636c116 Scons build fixes from lukep:
Remove Physics libraries from non gameblender builds
Add Quicktime to player
From Chris Keith:
Remove Quicktime framework (MacOSX!) on Windows builds.
2004-06-07 00:57:31 +00:00
Kester Maddock
4b544c75c0 blenderplayer target for SCons.
Would someone on MacOSX please check the bundle creation.
2004-06-04 12:58:46 +00:00
Jean-Luc Peurière
3118986baf completed build for release on mac Os X, no more manual operations
build for debug still to be completed
2004-05-12 22:11:39 +00:00
Wouter van Heyst
32e3efb59f - sync version up with blender/release/VERSION 2004-05-12 20:58:46 +00:00
Jean-Luc Peurière
a2d9c2b905 Fixed Sconstruct file so that blender.app Bundle builds correctly
with all needed files in Ressources dir (.Blanguages, .bfont.ttf, locale)
and with unwanted CVS dirs and DS_Store files removed.

binary is also stripped before inclusion in Bundle.
2004-05-08 22:29:56 +00:00
Jean-Luc Peurière
ac47d081c4 post 2.33 release commit of the modified SCons files for Os X.
Sconstruct modified so that Blender build on 10.3 without any additionnal
download than source + darwin libs.
defaults settings correct for 10.3.

fixed bug # 1260 : added MT_NDEBUG flag at top-level.
2004-05-08 01:34:39 +00:00
Nathan Letwory
d835cc8f16 * bump VERSION to 2.33
* change python2.2 in python2.3 for win32
2004-05-07 13:50:22 +00:00
Nathan Letwory
bac4439d6a bumped VERSION to 2.33-cvs and enable gameengine+solid per default for Linux 2004-05-03 06:11:58 +00:00
Nathan Letwory
892720ffad [SCONS] Optimisation flags for msvc 2004-04-22 04:50:41 +00:00
Nathan Letwory
39a8c014c4 This commit removes the glue from Blender, and with it
the directories decrypt, deflate, encrypt, inflate, readstreamglue,
sign, writeblenfile and writestreamglue.

Sirdude was so kind to modify the makefiles, so SCons and
Make are ready to build with the new Blender.

Visual Studio workspaces, solutions and projectfiles still need
to be updated (I'll do the .vcprojs and .sln myself after this commit).

Runtimes created with the Blender Publisher are not anymore
recognised - if you want these available, you'll have to convert
them first to .blends with the Publisher.
2004-04-16 15:55:16 +00:00
Michel Selten
b78641f524 SCons updates
* Links on Cygwin now.
  Blender has trouble in starting up though. That's the next step.
2004-04-11 22:28:16 +00:00
Chris Want
29bbd90047 Updated libs/includes for windows-gcc 2004-04-11 21:53:26 +00:00
Michel Selten
450fdbfd82 SCons updates
* Updates to the cygwin build.
  the dna.c file used to be generated with a full path. Cygwin doesn't like
  this. The problem was with some cflags and linkflags that are used to build
  makesdna.exe
  Hos nicely pointed this out and proposed a solution.
  Now, these flags are only added to the command when the platform != 'cygwin'.
* Updated some variables in SConstruct.
2004-04-11 21:11:18 +00:00
Michel Selten
c78184e331 SCons updates
* Updates to the cygwin build. All variables are now included, but the build
  itself is not yet working.
  This is a work in progress.SCons updates
2004-04-11 19:49:03 +00:00
Michel Selten
f2db673444 SCons update
* False was used in a comparisson. Only recent Python versions support this.
  Changed it to 0.
2004-04-11 13:09:10 +00:00
Kester Maddock
d3e88eae71 Remove GamePlayer libraries from the Scons build - they have to be linked into their own target. 2004-04-11 02:27:20 +00:00
Nathan Letwory
fc080d30d6 Added preliminary support for GamePlayer building with SCons. GPG_ghost and GPC_common are now being built. These will be built by setting BUILD_BLENDER_PLAYER to true in config.opts. BUILD_GAMEENGINE must be set to true, too. 2004-04-08 10:40:12 +00:00
Nathan Letwory
43595d21e4 Removed the -W warning flag so 'unnecessary' warnings are not shown. We should first get everything to compile cleanly with -Wall, after that we can enable more warnings. 2004-04-07 11:09:50 +00:00
Michel Selten
64c127d742 SCons update.
* Bug fix for latest commit. SCons would choke when the <root_build_dir> did
  not exist. First action now is to create the root_build_dir.
2004-04-04 13:57:28 +00:00
Michel Selten
b298ecbfac SCons update.
* .sconsign files are no longer written to the source tree.
  The output is now written to <root_build_dir>/scons-signatures
2004-04-04 13:03:14 +00:00
Kester Maddock
8e5fd5bba3 Added blender python module to game engine.
Updated Scons & Makefile
2004-04-02 13:21:04 +00:00
Nathan Letwory
fc275fd72f On Windows linking to the FTGL library was problematic for some users. This is solved by adding FTGL_LIBRARY_STATIC to the defines for win32.
Thanks go to BjornMoose and alien-xmp.
2004-03-29 18:46:17 +00:00
Nathan Letwory
00291b5cf4 [GameEngine] Commit all Kester's changes made to the gameengine to restore 2.25 like physics.
[SCons] Build with Solid as default when enabling the gameengine in the build process
[SCons] Build solid and qhull from the extern directory and link statically against them

That was about it.

There are a few things that needs double checking:

* Makefiles
* Projectfiles
* All the other systems than Linux and Windows on which the build (with scons) has been successfully tested.
2004-03-22 22:02:18 +00:00
Kent Mein
60955da36d Douglas Bischoff's fix for OSX (removing the spaces from link_env.Append
link_env.Append (LINKFLAGS=' -framework Carbon')
is now
 link_env.Append (LINKFLAGS='-framework')
 link_env.Append (LINKFLAGS='Carbon')


Kent
2004-03-18 15:06:48 +00:00
Michel Selten
2baab8323f SCons updates
* A little environment cleanup.
2004-03-17 13:18:03 +00:00
Nathan Letwory
67ccc51920 - [SCONS] Adding the creation of an Object Browser database (Source browser in MSVC6) when building a debug binary.
This is contributed by Jonathan Harris. I paste here his comments for further reference:

MSVC will open the database automatically when you debug blender.exe.
The database needs to be explicitly closed before rebuilding by removing
it from the MSVC7 "Solution Explorer" window. Add it back after the build.

TODO: .sbr intermediate files are created in the build tree. These
should be removed by a clean but aren't.
2004-03-16 21:45:46 +00:00
Michel Selten
90d179f014 SCons updates
* Added the following flags to config.opts:
  - PYTHON_LINKFLAGS
  - PLATFORM_LIBS
  - PLATFORM_LIBPATH
  - PLATFORM_LINKFLAGS
  Backup your original config.opts file and run scons again to get these new
  options.
* Use freetype-config instead of pkg-config for determining the freetype2
  flags.
* The new PYTHON_LINKFLAGS now enable the dynamic linking on Linux and
  possibly other platforms as well. This should resolve all linking problems
  reported to the mailing lists. (At least for Linux, I can't test other
  platforms).
2004-03-15 19:55:11 +00:00
Kent Mein
24954c9f3f Modifications to get scons to work under Solaris. Currently
its setup to use gcc and you need to edit config.opts and replace cc and CC
with gcc and g++ but other than that it compiles now.

Kent
2004-03-10 19:16:08 +00:00
Nathan Letwory
3081f4a635 - [SCONS] Added building of qhull and Solid from extern when selecting the Solid gameengine. The gameengine has not been updated with the Tuhopuu2 one, so it is not wise to do that yet. This is in preparation for that and won't effect the current build process. 2004-03-09 21:14:03 +00:00
Michel Selten
a2dc5f8f8e SCons updates
* Default build dir is now: ../build/<platform>/
  with <platform> ofcourse the platform you're building on.
  This option is still configurable in config.opts. It was just a feature
  request.
* Allow the user to specify a different config.opts file from the command
  line. This one was at my todo, but Kester was kind enough to implement this
  in Tuhopuu2 already. Thanks Kester!
  To generate/use a different options file:
  scons CONFIG=your_config_options_file
2004-03-09 20:02:38 +00:00
Nathan Letwory
cd0b492ca1 * Added linux-i386 to appease Mandrake 9 users
* Added stdc++ to the platform libs for linux2/linux-i386 for the same users
2004-03-07 20:27:27 +00:00
Nathan Letwory
9076b80db6 * [SCons] enable BUILD_DATE for win32. Basically SCons creates an extra file in source/creator, which is included by buildinfo.c whenever BUILD_DATE is on and building on Windows. SCons automatically takes care of this dependency. 2004-03-05 15:20:52 +00:00
Nathan Letwory
af2c3a4c10 Added OpenBSD3.x to the SCons build system. 2004-03-02 08:40:19 +00:00
Michel Selten
70a4ead0ae SCons updates
* Blender static now links. By default this option is disabled on all
  platforms. Simply set the option in config.opts to 'true'.
* Added the following flags to config.opts:
  - HOST_CC.    This is the C compiler for the host platform. This value is the
                same as TARGET_CC when not cross compiling.
  - HOST_CXX.   This is the C++ compiler for the host platform. This value is
                the same as TARGET_CXX when not cross compiling.
  - TARGET_CC.  This is the C compiler for the target platform.
  - TARGET_CXX. This is the C++ compiler for the target platform.
  - TARGET_AR.  This is the linker command for linking libraries.
  - PATH        This is the standard search path
  All SConscript files have been updated to reflect these changes. Now it's
  possible to change only the root SConstruct file, and all compiler specific
  variables are passed automatically to all SConscript files. Of course, this
  does not apply to makesdna because there the host and target platform is
  different from all other libraries.
  To pass a variable that applies to all platforms, all we now have to do is
  set the correct value in library_env


Note: as usual, to get the latest options in the config.opts file, first
      remove your version.
2004-02-29 21:40:48 +00:00
Daniel Dunbar
2c9b1d0005 - SCons prob, options file strings were printed with %s, changed
to %r so special characters are quoted properly
2004-02-29 15:08:18 +00:00
Michel Selten
8023fb4282 SCons updates
* Added the options to build (configurable via config.opts):
  - blender dynamic (default enabled),
  - blender static (default disabled). Not working because of a linking order
    problem. The /usr/lib/libGL.a and /usr/lib/libGLU.a flags need to be
    appended at the end of the link command, not directly after the linker.
    Mailed the SCons mail list for a possible solution.
  - blender player (default disabled). Not implemented yet anyway.
  - blender plugin (default disabled). Not implemented yet anyway.
* Added the following variables to the config.opts:
  - OPENGL_STATIC. This flag is only needed when building blender static.
  - USE_BUILDINFO (true/false). Display build information in the splash
    screen. When enabled, it will always rebuild source/creator/buildinfo.c,
    so for compilation speed reasons, it is not adviced to enable this all the
    time.

I had to make some adjustments specifically for the windows build
(winblender.res) file. This file is only compiled when building the dynamic
blender. I hope this is correct.
2004-02-24 20:03:27 +00:00
Michel Selten
d4b27baa2b SCons updates
* OpenAL support is now available on Linux. By default this feature is
  disabled since it is only necessary when building the game engine. And the
  game engine is disabled by default as well, so...
* Added 3 configurable options to config.opts. These apply to OpenAL settings.

NOTE: remove your current config.opts file to get the new options. (remember
      your current settings though ;) )

2nd NOTE: All options* are now configurable via the config.opts file. If the
          default settings for your platform are not correct, you should be
          able to only update the config.opts file.
  * FMOD is still not available - and I do not know if it is necessary to
    enable this feature.
2004-02-23 16:18:28 +00:00
Michel Selten
874d454d67 SCons updates
* Removed the I18N_DEFINES from the config.opts file. This define is not a
  user setting. The defines depend on what options the user enables in the top
  of the config.opts file (USE_INTERNATIONAL).
* Moved the defines to the correct SConscript files.
  Only the relevant libraries now use these defines.
* Windows fix for the python settings. There were missing brackets [ and ] for
  these settings.
2004-02-23 14:39:08 +00:00
Michel Selten
e1ab3cf480 SCons updates
* Game engine can now be build on Linux. By default this feature is disabled.
  The reason is that you need to have a precompiled version of the ode library
  for your gcc version.
  To enable ode support you need to do the following:
  - compile ode.
  - set BUILD_GAMEENGINE = 'true' in the config.opts file.
  - set USE_PHYSICS='ode' in the config.opts file.
  - set the ODE_INCLUDE and ODE_LIBPATH to valid locations.

* Linking order has changed for the game engine
  There are cyclic dependencies between libraries. On linux we have to do some
  duplicate linking. I looked at the order of linking in source/Makefile, and
  did some clean up.
2004-02-22 19:01:12 +00:00
Michel Selten
2cc629eaa7 SCons updates
* Internationalization support is now available on Linux. By default this
  feature is disabled. The reason is that you need to have a precompiled
  version of the ftgl library for your gcc version.
  To enable ftgl support you need to do the following:
  - compile ftgl.
  - set USE_INTERNATIONAL='true' in the config.opts file
  - set the FTGL_INCLUDE and FTGL_LIBPATH to valid locations.
  Freetype2 is detected automatically on your system by using pkg-config.

  There was a problem with linking libraries. I took a look at how the
  Makefile environment did it, and copied the mechanism. Now we're linking:
  freetype, blender_ftf, ftgl and freetype. (Yes, 2x freetype).

* Minor variable cleanup.
  sdl flags are now collected in one Environment() in stead of two. Adapted
  all relevant platform variables accordingly.
2004-02-22 13:39:00 +00:00
Chris Want
c05901d98a Making the scons build create a mips3 binary. 2004-02-21 16:36:49 +00:00
Michel Selten
9e238d385d SCons updates
* Almost all library settings are now available in the config.opts user option
  file.
* All platform variables had to be updated to make this possible. Things are
  much clearer now, but I only was able to test the changes on Linux. I've
  tried to update all other platform variables, but things are most likely to
  be broken. Please contact me how to resolve the issues.


Note: Before running scons, remove your existing config.opts file to get all
      new options.
2004-02-21 15:13:15 +00:00
Nathan Letwory
32fb5478a8 * [WIN32] Make SCons build with debuggable info when BUILD_BINARY set to 'debug' in config.opts 2004-02-18 14:35:36 +00:00
Michel Selten
9330e553e8 SCons updates
* libraries are now generated in [BUILD_DIR]/lib
* passed the user_options to all libraries now.
  This means I could remove a couple of Export/Import lines.
* Changed the order in source/blender/src/SConscript and
  source/gameengine/SConscript.
  All libraries are now sorted alphabetically. This has no impact on the build
  process.
2004-02-15 19:25:32 +00:00
Michel Selten
95dc219ff8 SCons updates
* All output is now generated in a seperate directory. By default this is
  ../build/
  Currently all .lib / .a files are still build in lib/
  So, I guess I need to update all SConscript files to build the lib now also
  in the build_dir. TODO
* User configurable options have been added.
  When running SCons for the first time, a new config.opts file is generated.
  The defaults are taken from each section currently in SConstruct.
  Currently implemented options:
  - VERSION             // Blender version. not used at the moment
  - BUILD_BINARY        // release or debug
  - BUILD_DIR           // target directory to build intermediate files
  - USE_INTERNATIONAL   // true or false
  - BUILD_GAMEENGINE    // true or false
  - USE_PHYSICS         // ode or solid
  - USE_OPENAL          // true or false
  - USE_FMOD            // true or false
  - USE_QUICKTIME       // true or false

  Note that all options are strings, so quotes are necessary (')

  There's currently some duplicate code in the SConstruct and SConscript
  files, but this currently works and cleanup can be done in small steps
  afterwards.

* Disabled international support on Linux by default for now.
  There is something wrong with this currently. I'll fix it in the near
  future.
2004-02-07 20:44:43 +00:00
Kent Mein
abe7425f3c Added Solaris specific stuff. Mostly its just a copy of the linux side
of things with a couple of tweaks.  It still needs work but I'm stuck.
Working with Michel to change compiler to gcc for solaris since Sun's c++
compiler is broken and won't compile blender.

Kent
2004-01-28 19:11:24 +00:00
Chris Want
5b5d9f9844 SCons for irix update (now does mips3 binary). 2004-01-25 21:42:18 +00:00
Nathan Letwory
314f4db5e4 - (win32) moved the .res addition to source_files to after the first use of source_files, so the addition makes sense.
- (win32) set the path for ode_include to the prebuilt library.
2004-01-21 09:05:17 +00:00
Michel Selten
2883110a54 SCons updates: (All done by jesterKing)
* Windows .exe file now includes the blender icon.
* Builds with game engine on Windows only.
  I tried building the game engine on Linux, but I get weird errors when
  building with ode. There's a dirty #include path in
  Physics/BlOde/OdePhysicsEnvironment.cpp (../ode/src/joint.h). gcc doesn't
  like this somehow.
* Other platforms need to add a couple of flags to the SConstruct:
  use_sumo, use_ode, solid_include and ode_include
2004-01-20 20:28:39 +00:00
Wouter van Heyst
7b6c2cba1a - Introduce use_precomp on Darwin to decide wether to use precompiled
libraries/headers from lib, or use the system libraries.

  At the moment just use sdl-config output for SDL.
2004-01-09 11:13:58 +00:00
Stefan Gartner
2830db381e fix building with quicktime support on os x.
some platform specific sections had link_env.Append(CPPDEFINES=defines)
(darwin was not one of them). I moved that line to the global part of
SConstruct and added "defines = []" to the platforms that didn't have
it (sunos and hp-ux). I hope I didn't break anything...
2004-01-08 16:14:09 +00:00
Michel Selten
906c75396a SCons updates:
* Removed debug print in ftfont.
* Added FreeType/FTGL support to the Linux build.
  NOTE: This feature is on by default, but depends on the pre-build libraries.
  So checkout the lib directory. The lib dir should be on the same level as
  the blender dir. (In case you didn't know).
2004-01-05 21:30:26 +00:00
Michel Selten
f78c0478f5 Fix building a bundle for MacOS. (SCons related).
This is a dirty solution. Maybe when we get to understand SCons better, we can
come up with a better one. For now, it works - and that's important!
2004-01-05 19:39:20 +00:00
Nathan Letwory
a66108134c - Added the SConscripts for ftfont and quicktime
- [win32] python_include was missing, there was a double python_libpath. Corrected
- [win32] the soundsystem SConscript broke the win32 build.
2004-01-05 18:17:23 +00:00
Stefan Gartner
3cf499e044 update scons files to build with yafray support 2004-01-05 15:33:32 +00:00
Michel Selten
d3e1fc8870 SCons build system files added.
You'll need SCons (www.scons.org) to build.
Platforms currently working:
* Linux (me)
  - options for quicktime, openal and international disabled
  - uses the system libs and include files for building - no option to build
    with the precompiled libraries yet.
* Windows (jesterKing)
  - builds with quicktime (optional)
  - builds with openal (optional)
  - builds with international support (optional)
  - Use the DOS box to build
  - builds with precompiled libraries
* Irix (Hos)
  - Uses default Irix compiler
  - Not all optimization levels correct yet
  - options for quicktime, openal and international disabled
  - builds with precompiled libraries
* Cygwin (me)
  - has a problem in the linking stage
  - uses free build tools (gcc)
  - options for quicktime, openal and international disabled
  - uses the system libs and include files for building - no option to build
    with the precompiled libraries yet.
* MacOS (sgefant)
  - builds with quicktime (optional)
  - options for openal and international disabled
  - builds a nice bundle
  - builds with precompiled libraries

Thanks to IanWill for a bugfix in the Linux build.
Note: This is a work in progress. A lot still has to be done - for example the
      optional parts are only to be enabled by directly setting 'true' or
      'false' in the SConstruct file. This needs to be moved to a user config
      file. Also, the .o/.obj files are stored in the source tree. This needs
      to be fixed as well.
      The game engine is not yet built.
2004-01-04 21:11:59 +00:00