Nathan Letwory
708df39935
Check the os.environ at the start of the build process.
...
Print any variable that contains a value with non-ascii
characters, then abort build.
2011-02-18 09:39:15 +00:00
Campbell Barton
cf6f6c1c5e
patch [ #26063 ] Fix deb package versioning (Patch for #26062 )
...
from Shinsuke Irie (irie),
also updated pacman
2011-02-17 11:49:54 +00:00
Campbell Barton
0927ad8f4c
CMake: remove workaround for cmake 2.8.3 problem testing -Werror=strict-prototypes flag (now 2.8.4 is out).
...
This is harmless, CMake 2.8.3 just wont build with -Werror=strict-prototypes which is nice for picky devs.
2011-02-17 11:38:02 +00:00
Campbell Barton
812f238494
pep8 cleanup and remove unused vars/imports
2011-02-17 04:35:41 +00:00
Campbell Barton
fee5363912
bugfix [ #26094 ] Going to Bone Roll menu brings up python error
...
also correct for pep8 warnings.
2011-02-16 02:25:03 +00:00
Campbell Barton
c461a7ea4d
patch from IRIE Shinsuke, use systems openjpeg on *nix.
2011-02-15 19:04:51 +00:00
Campbell Barton
52c08fa4d3
CPack packaging support from Dan Eicher, tested to build redhat RPM's, a Mac bundle also defined.
2011-02-15 18:33:05 +00:00
Campbell Barton
a6765280f9
py rna api: turn class.is_register into a class property rather then a class method.
...
eg:
if MySybclass.is_registered:
...
2011-02-14 07:26:07 +00:00
Sergey Sharybin
665a0ff789
Revert incorrect fix for 26062 made in svn rev34828.
2011-02-14 06:04:40 +00:00
Sergey Sharybin
4ca2905ead
Fix #26062 : build_debian.sh gives unappropriate deb version
...
Added subverison number to debian package version. Quick tests run ok,
but haven't checked if deb version comparation also goes fine.
2011-02-13 19:47:57 +00:00
Guillermo S. Romero
6554ae1460
SVN maintenance.
2011-02-11 19:36:58 +00:00
Campbell Barton
875f554cff
patch [ #26030 ] Debian spec fix (Patch for #26028 )
...
from Shinsuke Irie (irie)
2011-02-11 10:29:47 +00:00
Campbell Barton
a3d142fce0
update pacman spec for newer python and match naming convention to debian spec.
...
also pre-compile python modiles.
2011-02-11 09:28:11 +00:00
Campbell Barton
0356e3b69f
script to build debian packages directly from svn, using blender version and svn rev for package name.
2011-02-10 07:22:56 +00:00
Campbell Barton
1eb7d3bd9e
debian package spec [ #26007 ] Debian spec
...
by Dan Eicher (dna)
2011-02-10 06:11:16 +00:00
Campbell Barton
736a7b7a22
pep8 cleanup
2011-02-04 09:27:25 +00:00
Campbell Barton
89c617a116
remove nan-makefiles
2011-01-30 15:29:22 +00:00
Nathan Letwory
71cb745941
Commit to cope with API changes in OpenCOLLADA (latest for Windows right now r827).
2011-01-27 19:39:06 +00:00
Campbell Barton
6a2e5ad599
[ #25815 ] Patch gcc 4.6
...
with minor edits, made sure it works in CMake too.
2011-01-27 00:02:25 +00:00
Campbell Barton
7a23193811
cmake attempted fix before didnt work (I cant test on OSX), this should fix.
2011-01-26 07:34:17 +00:00
Campbell Barton
fb08dc11e3
missed this when updating cmake files
2011-01-26 04:48:37 +00:00
Campbell Barton
1bd0db59f4
use cmake defined names for jpeg, png, zlib and python libs, building on *nix with non-standard libjpeg/png/zlib locations was broken.
...
in the case of python this makes it easier to move to find_package(PythonLibs) when 3.x is supported.
2011-01-25 14:43:13 +00:00
Campbell Barton
da2b490198
cmake maintenance, was missing 2 headers and made some minor improvements to cmake_consistency_check.py.
...
also converted GHOST_SystemWin32.cpp to utf8.
2011-01-25 08:35:10 +00:00
Campbell Barton
f6d54bd1ee
correction to own cmake error checking script.
2011-01-21 11:52:56 +00:00
Nathan Letwory
730634ca51
Enable sndfile by default on win64
2011-01-05 09:00:28 +00:00
Campbell Barton
5e382eb8e5
rename blenderlib to blender_add_lib
2010-12-22 23:09:30 +00:00
Guillermo S. Romero
29799bf09c
Compact -I paths in makefiles for more readble files/output.
...
Also some white space cleaning and removal of redundant parameter.
2010-12-22 22:15:20 +00:00
Campbell Barton
7006491451
bugfix [ #24469 ] Cannot add keyframes on custom properties in IDPropertyGroups
2010-12-21 11:40:12 +00:00
Campbell Barton
9d289c602d
better make_quiet.sh filter with threaded builds.
2010-12-21 04:55:46 +00:00
Campbell Barton
0d9ead00f8
fix for cmake flag detection, was not caching the resulting variable so the test ran each time.
...
also cache SSE, SSE2 checks.
2010-12-21 03:32:51 +00:00
Campbell Barton
71202e26ff
simple make wrapper to give quiet output. (more like nan-makefiles)
2010-12-20 11:21:29 +00:00
Campbell Barton
6afe713d57
script to generate qtcreator project files, advantage is they include all source which is nicer for refactoring.
2010-12-16 21:32:56 +00:00
Campbell Barton
b978bf39e3
fix for error in testing C/C++ flags
2010-12-16 17:54:00 +00:00
Campbell Barton
566bda734a
last commit to fix warnings didnt set them at all, not it works as it should.
...
also made cmakes output a lot quieter, messages can be uncommented for debugging or added back if other devs need this for some reason.
2010-12-16 12:48:30 +00:00
Campbell Barton
ed4e7271f1
CMake now tests warnings are supported, GCC 4.0 wasn't working because of unsupported warnings.
...
this can work for other compilers too, currently intel and gcc use this.
2010-12-16 09:55:35 +00:00
Campbell Barton
acd7b81c2d
bugfix [ #25230 ] Quick extrude Ctrl-LMB : wrong behaviour of 'RotateSource' option.
...
Problem is is with operator redo which click-extrude exposed.
Check if redo operator can run, otherwise lock the UI and add a label that the operator doesn't support redo.
This is clunky but IMHO better then failing silently and leaving the user confused.
- Merged redo functions into ED_undo_operator_repeat(), code was duplicated in a few places.
- added WM_operator_repeat_check to check if WM_operator_repeat() can run, avoids an undo call when redo work.
Unrelated changes
- GHOST_SystemWin32.cpp set to utf8 encoding.
- cmake_consistency_check.py now checks source files are utf8.
2010-12-15 04:06:19 +00:00
Campbell Barton
996bc87793
update for changes in cmake files.
2010-12-14 08:35:56 +00:00
Campbell Barton
afacd18498
use lowercase for cmake builtin names and macros, remove contents in else() and endif() which is no longer needed.
2010-12-08 08:43:06 +00:00
Nathan Letwory
c5613de2d5
Remove redundant VC_REDIST code, since it's not used anymore.
2010-12-07 08:37:00 +00:00
Campbell Barton
d64f46e0bb
CMake: use a global list to store libraries built rather then cmake_blender_libs.txt file.
2010-12-06 10:56:37 +00:00
Campbell Barton
263830f000
Enabled GCC -Wwrite-strings warning for CMake and replaced many 'char's for 'const char's,.
...
Only one functional change where Transform orientations passed "" to BIF_createTransformOrientation() which could then have the value written into.
2010-12-03 17:05:21 +00:00
Campbell Barton
cd97253502
- added GCC warning -Wstrict-prototypes
...
- fixed bug in paste material, exposed by stricter warnings.
- removed/renamed various shadowed vars.
- removed BGE lamp.colour, only allow lamp.color attribute.
2010-12-03 12:30:59 +00:00
Campbell Barton
3e173f4d21
disable redcode support for cmake & scons-freebsd
2010-12-01 07:25:59 +00:00
Campbell Barton
42d6603cae
Add option for CMake to build libredcode, also use CODEC prefix for ffmpeg, quicktime & sndfile options.
2010-11-30 18:52:39 +00:00
Guillermo S. Romero
7286b7a7ca
SVN maintenance.
2010-11-29 17:09:33 +00:00
Campbell Barton
e8397e6193
include headers in cmake source, added a script to check for consistency, reporting missing headers & C files.
...
this is important so IDE's using CMake integration always get blender headers. - QtCreator & MSVC for eg, probably others too.
2010-11-29 04:35:56 +00:00
Campbell Barton
94e17ff01e
fix for cmake if build flags are not defined.
2010-11-22 23:06:57 +00:00
Campbell Barton
c85c2746df
WITH_SAMPLERATE option for cmake, without this playback wont behave right so this is mainly intended for developers who build without audio enabled.
2010-11-21 14:32:55 +00:00
Campbell Barton
39b7bfe6bd
- check IF WIN32 AND NOT UNIX (for cygwin)
...
- patch from Mike S to enable OpenMP and xcode
2010-11-21 13:41:43 +00:00
Campbell Barton
741d5a6c06
fix for CMake file grouping with MSVC project files.
2010-11-08 06:31:45 +00:00
Campbell Barton
36b8ebceb5
added back include file globbing for cmake, thought this was needed for MSVC only but turns out QtCreator also needs this else it wont index headers.
2010-11-05 04:18:53 +00:00
Sergey Sharybin
228ed6f086
Global definition of _LARGEFILE_SOURCE, _FILE_OFFSET_BITS and _LARGEFILE64_SOURCE at linux and win32/mingw platforms
...
Needed to work properly with large files at 32bit system (display correct size in file browser, i.e.)
This will also fix compilation with zlib 1.2.5
2010-11-04 17:02:25 +00:00
Guillermo S. Romero
2cef9203ba
Add PREFIX support to makefiles.
2010-11-01 23:17:58 +00:00
Campbell Barton
0876fce009
rename and negate DISABLE_PYTHON --> WITH_PYTHON
2010-10-31 04:11:39 +00:00
Campbell Barton
50dab4fc37
rename definition for enabling the game engine GAMEBLENDER==1 --> WITH_GAMEENGINE
2010-10-31 03:20:33 +00:00
Nathan Letwory
f875777212
Change /WX away for now, some odd thing going on between cloned environments. Need to check after release.
2010-10-26 23:32:59 +00:00
Campbell Barton
c7ff23cc34
Added CMake macro REMOVE_STRICT_FLAGS(), this means developers can build with -Werror in their CMAKE_C_FLAGS_DEBUG (so all warnings give errors).
...
but external libs which we don't maintain & generated code will have -Werror removed.
This is GCC only, MSVC can be added easily.
2010-10-24 03:57:07 +00:00
Campbell Barton
f4415ce84a
- CMake now only uses SOURCE_GROUP with MSVC lib configuration, saves recursive header search when not using msvc.
...
- uv layout export wasn't setting the default filename.
2010-10-23 04:18:53 +00:00
Nathan Letwory
db74070778
Make C4013 throw a warning
...
-> 'function' undefined; assuming extern returning int
2010-10-19 05:42:31 +00:00
Nathan Letwory
62aacd1aa7
Set defaults for compile and link flags to lists.
2010-10-19 05:21:28 +00:00
Nathan Letwory
2a89fb887e
* Enable compile and link flags to build info also on Windows and in SCons.
...
* Added build_system SCons or CMake
* Write the new build info also to system-info.txt
2010-10-19 05:00:36 +00:00
Campbell Barton
3498e22468
Disable LCMS by default for scons.
2010-10-19 02:50:00 +00:00
Nathan Letwory
6e77dc1942
whitespace commit, AKA commit count bump.
2010-10-18 20:33:04 +00:00
Campbell Barton
58683fa993
enable DEBUG define in CMake and scons, also change booleans debug option to BOP_DEBUG, which was used inconsistently, and had to add a define for superlu.
2010-10-18 11:21:22 +00:00
Campbell Barton
952b728578
Test stricter GCC compiler settings, these warnings will now give errors.
...
- implicit function declaration.
- no return type set for a function.
- declaration after statement.
This may be too strict but in general I prefer we don't allow commits with these warnings.
Applies to cmake/gcc and scons/linux.
2010-10-17 08:04:28 +00:00
Campbell Barton
f0fcf140f8
enable warning for unused args with gcc: -Wunused-parameter
...
- for cmake only apply this to source/blender, will apply globally later.
- ./extern/ ./source/blender/makesrna/intern/ ignore this.
2010-10-15 02:24:48 +00:00
Nathan Letwory
663ce490e0
Enable CXX_GUARDEDALLOC support through SCons.
2010-10-08 20:39:56 +00:00
Sergey Sharybin
5bab95fc58
Scons options for static linking to libsamplerate, sndfile and fftw3
2010-10-05 16:43:01 +00:00
Nathan Letwory
31ff2a6da2
Enable lcms support on Windows.
2010-10-05 13:39:45 +00:00
Campbell Barton
c5086987ec
fix for scons with recent buildinfo change
2010-10-03 11:33:44 +00:00
Nathan Letwory
4418396a45
Change <UNKNOWN> to -UNKNOWN- so exporters can be happy too, when a build was created without svnversion (or from export).
2010-10-01 08:29:27 +00:00
Ken Hughes
d0451fea58
Changes to scons for building with static zlib and tiff libraries.
2010-09-21 21:10:49 +00:00
Campbell Barton
6963574a55
scons now gets the blender version from BKE_blender.h.
2010-09-18 10:37:51 +00:00
Campbell Barton
4bba0e3397
spec files for building arch linux packages (pacman)
2010-09-12 16:00:12 +00:00
Ton Roosendaal
40bf22e955
Part 4 of 2.54 beta commits (last)
2010-09-10 16:39:08 +00:00
Campbell Barton
115b256738
ran through pep8 checker
2010-09-07 15:17:42 +00:00
Joshua Leung
88f657f251
scons compiling fix:
...
When "svnversion" can't be found (as is usual for anyone running TortoiseSVN), build_revision info will be "", which breaks compiling. Worked around this for now by using "<UNKNOWN>" as this
2010-08-30 00:49:23 +00:00
Nathan Letwory
cb786f0022
Remove unnecessary \''s. This cleans up also printouts in splash and bpy.app (no more unnecessary quotes).
2010-08-29 21:53:12 +00:00
Nathan Letwory
c29b5df739
Changing representation, so there's no space between the words.
2010-08-29 21:49:50 +00:00
Nathan Letwory
6c113b54b3
Finally change SConscript tabs to spaces.
2010-08-29 20:52:05 +00:00
Nathan Letwory
999bb69c70
Properly set build type: Release or Debug
2010-08-29 19:47:26 +00:00
Nathan Letwory
57aee2ecf4
Tell what platform and its bitness in BUILD_PLATFORM
2010-08-29 19:44:50 +00:00
Nathan Letwory
cc70bffb62
Make sure correct python31 zip is unpacked when BF_DEBUG=True
2010-08-27 21:42:33 +00:00
Nathan Letwory
f647ba1ce5
Patch [ #5429 ] SCons patch for linux: support more libs to be linked statically
...
Contributed by Rui Campos, adapted for current trunk
This was a very ancient patch on my todo list (mid-December 2006). Some things already were done, so I
added now ffmpeg and freetype support for linking statically. FFMPEG part is untested further from my part
so if you run into problems with that, please report.
2010-08-26 08:04:58 +00:00
Nathan Letwory
92422ba452
Patch [ #23389 ] Add authorship information to exported COLLADA files
...
Contributed by Imran Syed (freakabcd).
This adds basic authoring tool and author info ("Blender User" for now).
NOTE: Linux and OSX users need now to update their OpenCOLLADA libs - Blender should now compile fine with their latest revision.
Made some changes to the original patch to ensure linking is done correctly.
Some small cleanups for scons too.
2010-08-26 06:58:32 +00:00
Campbell Barton
141da38088
patch [ #23359 ] Addenda: fixes for SCons FreeBSD 7, 8, 9 support
...
from Jashank Jeremy (jashank)
2010-08-25 14:33:50 +00:00
Nathan Letwory
446122d112
== SCons ==
...
Make it possible to link statically against libgettext. Set WITH_BF_GETTEXT_STATIC to True and put static lib in BF_GETTEXT_LIB_STATIC (absolute path works probably best). BF_GETTEXT_LIB will be ignored.
2010-08-24 13:08:14 +00:00
Campbell Barton
70e99a3476
make quicky wrapper for cmake.
...
works like scons where using a subset of the targets name is enough.
make_quicky.py py
...expands into
make bf_python bf_python_ext blender/fast
arguments like -j4 are passed on.
2010-08-24 05:24:37 +00:00
Nathan Letwory
801ba2e345
Apply patch #23295 - Fix for SCons building on FreeBSD
...
Patch submitted by Jashank Jeremy. This adds support for freebsd7, freebsd8 and freebsd9. Thanks!
2010-08-13 20:54:34 +00:00
Joilnen Leite
2a72eb8c28
Fixing make files compilation in linux
2010-08-11 14:51:52 +00:00
Campbell Barton
e588e8e741
bugfix [ #23257 ] cmake tests for SSE, but SSE2 gets enabled
...
patch from Vinay Pawar, some minor changes by me.
2010-08-11 08:23:48 +00:00
Ton Roosendaal
5d18274cac
Makefile fix: on PowerPC architecture SSE compile should not happen.
...
Note for the coder here, is it correct to enable SSE with a general
WITH_BF_RAYOPTIMIZATION flag? Just call it WITH_SSE? More clear :)
2010-08-05 14:04:56 +00:00
Stefan Gartner
2f8f86e4f6
fix path to release/python.zip for scons and cmake
...
I hope this doesn't break anything
2010-08-04 11:07:14 +00:00
Stefan Gartner
d50cc7826f
== Makefiles ==
...
* add support for LCMS (disabled by default, set WITH_LCMS to true to enable it)
* fixed typo that prevented TIFF support to be properly enabled
* enable ray optimization by default (scons and cmake already did this)
* fixed building with libsndfile on darwin (disabled by default)
* quicktime: use audaspace headers from $(NAN_AUDASPACE)/include instead of intern
* gameengine: add -DWITH_FFMPEG to compiler flags when building with ffmpeg support
2010-08-04 08:42:18 +00:00
Campbell Barton
957976882d
build options to disable image formats WITH_CINEON, WITH_HDR.
...
- updated cmake, make & scons.
- renamed CMake build options WITH_TIFF -> WITH_IMAGE_TIFF, same for DDS, OPENJPEG etc.
2010-08-03 11:25:34 +00:00
Campbell Barton
ec2c52c9c8
SCons
...
- remove scons option WITH_BF_FHS, its not needed anymore.
- comment WITH_BF_DOCS, was using epydocs which we dont use now.
- blenderlite target was broken, always using openmp.
- building without python wasnt working.
- fixed some warnings.
2010-08-02 16:27:41 +00:00
Campbell Barton
7bd687ea58
cmake
...
- more strict warnings for gcc/unix, still <50 for a clean build.
- install files to /usr/local/share/blender/2.53 rather then /usr/local/share/blender/.blender
2010-08-02 16:23:58 +00:00
Nathan Letwory
3e387b8c42
* for win64 fftw3 support is already enabled by default, doing so also for win32.
2010-07-28 17:08:24 +00:00
Campbell Barton
bed40ed8e3
move directories:
...
dlltool --> build_files/make/dlltool
bin --> release/bin
Since dlltool is only used make + mingw and ./bin is misleading because it would seem the blender binary would be copied there, but its just used for home directory files.
updated scons/cmake/make
2010-07-26 11:47:33 +00:00
Brecht Van Lommel
75913ce446
2.5 Beta version files increment, from 2.52 to 2.53.
2010-07-20 16:44:59 +00:00
Sergey Sharybin
1f8f55b3cd
- Reverted "Set FREE_WINDOWS when compiling with MinGW"
...
- Reverted own changes made to _stat function BLI_exists
- Use __MINGW32__ instead of FREE_WINDOWS in BLI_exists
- Removed recently added lib dependencies for mingw
2010-07-19 09:19:54 +00:00
Sergey Sharybin
266438b5e0
- Use correct paths for mstoolkit and crossmingw tools in sconscript
...
- Use _stat64i32 instead of _stat in BLI_exist
Needed for correct compilation by mingw, no sense for msvc
(_stat is equivalent to _stat64i32 in Visual C++ 2005, and later i suppose)
- Added library msvcr90 for mingw to solve linking error to _stat64i32
2010-07-19 09:02:27 +00:00
Guillermo S. Romero
2f96ac8b9f
SVN maintenance.
2010-07-15 20:30:31 +00:00
Campbell Barton
7fc9eee08a
- updated man page from --help output.
...
- cmake now installs the man page.
- added cmake_linux_install.sh, shell script which downloads and builds blender.
2010-07-15 19:58:23 +00:00
Campbell Barton
1bb789956d
CMake patch from Ralf Hölzemer (cheleb)
...
[#22849 ] Fix cmake install target on linux
--- from the tracker ---
This patch fixes the install target for the linux platform. Since the new configuration path changes are in effect, files have to be installed in the correct places instead of just copying the local installation to $PREFIX/share/blender.
It also provides a new macro to determine the correct blender version values.
Changes in this patch include:
- the .desktop menu file is installed in $PREFIX/share/applications and points to the svg icon instead of a png one, which is also installed in $PREFIX/share/pixmaps
- docs are installed in $PREFIX/share/doc/blender
- scripts are installed in in $PREFIX/share/blender/x.xx/
- locales are installed in in $PREFIX/share/blender/x.xx/datafiles
- a new cmake macro determines and sets the correct values for BLENDER_VERSION_MAJOR, BLENDER_VERSION_MINOR, BLENDER_SUBVERSION, BLENDER_VERSION, BLENDER_MINVERSION_MAJOR, BLENDER_MINVERSION_MINOR, BLENDER_MINSUBVERSION and BLENDER_MINVERSION by parsing source/blender/blenkernel/BKE_blender.h and calculating major/minor values. This replaces the hardcoded value in the top CMakeLists file and is used by all platforms.
2010-07-14 20:26:46 +00:00
Damien Plisson
a6a646cf5b
Scons/darwin (OSX): blender.app package is now created correctly in the install folder
2010-07-14 18:19:34 +00:00
Campbell Barton
bfe11037b5
move nan mk files from source/ into build_files/make/
2010-07-13 00:57:19 +00:00
Campbell Barton
d80d6e2812
re-arrange build files so scons "config" dir isnt confused with ~/.blender/2.52/config
2010-07-12 18:26:35 +00:00