Campbell Barton
b8e3f4ee30
fix for cmake not having the correct svn revision in buildinfo, now generate a header every build with the time, date, svn revision.
2011-02-24 17:57:35 +00:00
Campbell Barton
32c13137f5
disable some conflicting options WITH_PYTHON_MODULE
2011-02-22 14:27:46 +00:00
Campbell Barton
12e4c52c5a
cmake was using dna source list with the variable out of scope, possibly causing dependency problems.
2011-02-22 06:23:07 +00:00
Campbell Barton
9ef0eed4b6
build python module without binreloc, add dummy argv[0] to initialize bprogname.
2011-02-21 13:13:08 +00:00
Campbell Barton
7809d7d0c8
fix [ #26152 ] Blender File for Image too Small
...
disallow 0% rendersize.
also mark new cmake vars as advanced: RPMBUILD, X11_XF86keysym_INCLUDE_PATH
2011-02-21 01:02:30 +00:00
Campbell Barton
c30149991c
Experimental option to build blender as a python module, rather then blender embedding python.
...
CMake build option WITH_PYTHON_MODULE, will build ./bin/bpy.so
This allows 'bpy' to be imported from python or other applications/IDE's which embed python, eg:
python -c "import bpy ; bpy.ops.render.render(write_still=True)"
This runs in background mode and has similar restrictions to running a script:
blender --background --python test.py
TODO:
- install to site-packages with blender scripts
- add support for imp.reload()
2011-02-20 23:39:29 +00:00
Guillermo S. Romero
c37884b015
Add XF86keysym.h detection and use to CMake system, for r34983.
2011-02-19 23:51:55 +00:00
Campbell Barton
9ee1b3930f
set main() argv functions to be const char *
...
also set minimum cmake version to 2.8
2011-02-19 12:05:20 +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
8ea0b4685c
misc small changes:
...
- rename rna collection structs Main prefix to BlendData: eg, MainObjects --> BlendDataObjects
- printing python collection now prints its type (when available)
- renamed shadowed vars in bpy_rna.c.
- when making functions static I also made debugging/test functions static, reverse and add definitions to headers instead.
2011-02-14 03:15:55 +00:00
Campbell Barton
914e2ee01f
problem with blender and python 3.2
...
- python 3.2 does 'import site' on startup which now tries to parse pyconfig.h which isn't copied. so for now just run without importing 'site', alternative would be to copy the header file for posix systems.
- cache PYTHON_VERSION variable so it can be set to 3.2, needed for copying python installation's other then 3.1.
2011-02-08 06:22:06 +00:00
Campbell Barton
6165508bc5
patch for building blender with CMake, OpenEXR & MSVC2010 by Peter K?\252mmel
2011-02-07 01:23:18 +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
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
8a3beb0012
import/export automated testing using CMake's CTest
...
Will need to write full docs on this on the wiki.
basic info.
- 21 tests, OBJ/3DS/X3D/FBX, 3 tests per format import export. STL, PLY, BVH are TODO.
- uses files in ../lib/tests (checkout separate)
- run with CMake Makefiles "make test" or "ctest"
- currently checks against basic MD5 hash on scene import and file MD5 hash on export (realize this wont work predictably on binary formats *TODO*).
- currently uses a generic script for all tests with arguments to specify command to run, expected output, testing method, files to check against etc.
Has already proved useful, found a number of bugs in import export and some in blender too.
2011-01-21 00:06:30 +00:00
Campbell Barton
00b8c9e7ea
rename BKE_assert() --> BLI_assert().
2011-01-09 15:12:08 +00:00
Campbell Barton
54ceccd0ee
- cmake use execute_process, exec_program is deprecated.
...
- game engine builds without python again.
2011-01-07 08:43:29 +00:00
Mitchell Stokes
f6a034a481
CMake fix so MSVC works again. Fix suggested by Tamito Kajiyama.
2011-01-02 10:21:03 +00:00
Campbell Barton
6fdfa97edb
CMake: use blender_include_dirs("${OPENGL_INCLUDE_DIR}") rather then blender_include_dirs(${OPENGL_INCLUDE_DIR})
...
Apparently this is needed for MSVC in some cases, reported by Tamito Kajiyama r33895.
2010-12-31 04:29:11 +00:00
Nathan Letwory
71eb4a2312
Work around cmake error on Windows.
2010-12-27 09:33:32 +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
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
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
35fa581403
BKE_assert(), only prints the error unless cmake define WITH_ASSERT_ABORT is enabled and it will call abort().
...
made this option advanced so people don't enable along with other features.
2010-12-15 10:22:26 +00:00
Campbell Barton
1622385445
pedantic word ordering change.
...
- wm.add_modal_handler -> modal_handler_add
- wm.add_fileselect -> fileselect_add
- ob.add_shape_key -> shape_key_add
- VIEW3D_OT_add_background_image -> VIEW3D_OT_background_image_add (same for remove)
Also made 2 internal cmake vars hidden.
2010-12-08 11:42:11 +00:00
Campbell Barton
cea760ac5a
this change broke building.
2010-12-08 09:50:49 +00:00
Campbell Barton
eb26103822
cmake - mark vars as advanced so they dont show up by default when configuring.
2010-12-08 09:02:08 +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
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
Nathan Letwory
a5cecd8284
Remove library specification.
2010-11-24 09:13:59 +00:00
Campbell Barton
5a37554b1e
disallow disabling WITH_SAMPLERATE if any audio outputs are enabled.
2010-11-21 16:32:11 +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
cd2ab75b73
- include pthreads for win32 globally (as with opengl).
...
- MSVC CFLAGS were being set by only checking WIN32, (breaking non-msvc win32 builds)
2010-11-21 09:10:50 +00:00
Campbell Barton
a04bbb2374
use CMake's OpenMP built in detection rather then defining flags ourselves.
2010-11-19 11:33:12 +00:00
Campbell Barton
8fee983619
patch from Dan Eicher to support intel C++ compiler for CMake on *nix.
2010-11-15 05:32:49 +00:00
Andrea Weikert
dcda17b3b3
== filebrowser ==
...
Bringing back missing feature: Create new directory by typing a not existing name into the directory button.
Note: Small issue still with autocomplete -> if typing the new directory directly after autocomplete, it doesn't execute the operator yet.
Also fixed some minor compile/cleanup issues with warning about signed/unsigned comparison and missing header.
2010-11-06 16:09:12 +00:00
Campbell Barton
66b274766a
minor c90 compat edits. (no functional changes).
2010-11-05 13:37:18 +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
Campbell Barton
dba1904f65
bugfix [ #24518 ] Blender wont compile with -Wall -Werror and COLLADA support
...
fix included in report from Martijn Berger (mberger)
made some small changes.
- use ints rather then unsigned long for printing, values are not likely to be very large.
- CMake remove strict flags from collada build dir since I had warnings in the collada headers.
- added xml2 to collada libraries else I couldnt get collada building.
2010-11-03 22:44:39 +00:00
Campbell Barton
6b677a2616
own recent commit broke this python import:
...
from mathutils.geometry import PolyFill
I couldn't find a way for python's inittab to do this so just inserting mathutils.geometry into sys.modules manually.
2010-10-31 13:17:39 +00:00
Campbell Barton
05b297c52f
CMake options to disable Decimate and Boolean Modifiers: WITH_MOD_BOOLEAN, WITH_MOD_DECIMATE, renamed WITH_FLUID to WITH_MOD_FLUID
2010-10-23 15:40:13 +00:00
Nathan Letwory
c4ad3cb5c4
Same warning suppression as with SCons
2010-10-21 07:48:51 +00:00
Nathan Letwory
db74070778
Make C4013 throw a warning
...
-> 'function' undefined; assuming extern returning int
2010-10-19 05:42:31 +00:00