rdb
a175ad6a82
interrogate: fix compile error with default values that call scoped functions
2017-04-07 13:56:47 +02:00
rdb
2669cc8710
Remove unused macros
2017-04-07 13:56:35 +02:00
rdb
6f8b379bda
Big patch full of performance improvements
...
This particularly benefits applications with a lot of nodes.
2017-04-03 01:41:23 +02:00
rdb
e1c916cdc3
interrogate: handle implicit destructors correctly
2017-04-02 14:44:51 +02:00
Sam Edwards
76a7c84330
Merge branch 'master' into cmake
2017-03-08 01:59:15 -07:00
Sam Edwards
4d59ad4014
interrogatedb: Build even when _PyErr_OCCURRED is undefined
2017-03-08 01:59:02 -07:00
Sam Edwards
ea1ba281b5
interrogate: Add missing cast in generated calls to PyObject_INIT_VAR
2017-03-08 01:54:21 -07:00
Sam Edwards
6926fbfbe6
CMake: Push Python links back to where they're actually needed
...
This keeps the Panda3D core free of any Python-specific linkage
2017-03-08 01:44:27 -07:00
rdb
edb83fe89a
Various optimizations to reduce performance overhead of rendering
2017-02-21 02:20:06 +01:00
deflected
f6e2e2ea05
Fix compile issue on FreeBSD 11
2017-02-20 15:10:15 +01:00
rdb
88dd3389ee
cmake: install header files
2017-02-19 23:42:48 +01:00
rdb
f5f51c5d5b
Remove OpenSSL includes from headers, so C++ users don't need to have OpenSSL
2017-02-17 16:15:04 +01:00
rdb
8c914a2855
Work towards ABI stability wrt allocation. Let MemoryHook take advantage of dlmalloc's internal bookkeeping.
2017-02-17 13:02:01 +01:00
rdb
29edf55069
GlobPattern: support trailing slash and globstar (eg. **/*.egg)
2017-02-17 13:02:01 +01:00
Sam Edwards
dd490656a0
CMake: Update for upstream changes
2017-02-15 03:46:14 -07:00
Sam Edwards
ed4725afa2
Merge branch 'master' into cmake
2017-02-15 03:46:00 -07:00
Sam Edwards
ec3c2c5681
general: Fix missing include
2017-02-15 03:44:48 -07:00
rdb
2acde88695
New alignment code to hopefully fix the alignment issues
2017-02-10 03:01:32 +01:00
rdb
18f09c48dd
cppparser: parse template friend declaration
2017-02-09 23:52:38 +01:00
rdb
218ad7058d
pystub: definitions for debug version of Python
2017-02-09 23:50:14 +01:00
rdb
cfe810ace7
Add set_shader_inputs for efficiently setting multiple shader inputs
2017-02-06 13:16:27 +01:00
rdb
c0191a3126
cppparser: update cppBison prebuilt files
2017-01-17 22:51:04 +01:00
rdb
e2771d39a9
cppparser: support for various C++11/C++14/C++17 features:
...
- decltype(auto)
- attributes (ie. [[deprecated]]), incl. with C++17 "using"
- extern template class (parses)
- sizeof struct members
- aggregate initialization
- initializers in capture lists
- alignas (parses)
2017-01-15 15:39:34 +01:00
rdb
e12420571b
cppparser: support C++11 lambda expressions
2017-01-14 22:37:33 +01:00
rdb
5aabd56697
cppparser: support C++11 raw string literals
2017-01-14 22:35:38 +01:00
rdb
a15d84dbeb
Fix compile errors and warnings in MSVC 2010 / GCC 4.6
2017-01-12 15:18:48 +01:00
rdb
e60d1e292e
Make better use of C++ rules for implicit generation; allow PointerTo and some mutex impls to be static initialised
2017-01-12 12:34:15 +01:00
Sam Edwards
f1da5ce92f
Merge branch 'master' into cmake
2017-01-09 17:59:22 -07:00
rdb
4ed199cece
Fix various compile warnings and a few code consistency issues
2017-01-09 20:36:53 +01:00
rdb
ba5bba42b0
Fix interrogate warnings, flesh out iterator header
2017-01-08 17:51:09 -05:00
rdb
41d26284d7
Fix various compilation issues on Mac.
...
Work around bugs in Apple Clang that ships with XCode 4 with C++11 by disabling constexpr
Use move() instead of std::move()
It also looks like we'll have to continue using pystub for tools that use libp3interrogatedb for now.
2017-01-08 17:17:56 -05:00
rdb
816b2ac3ba
C++11 polyfills. This should fix Snow Leopard build.
2017-01-05 23:26:13 +01:00
rdb
40ea0ab786
cppparser: support directives __LINE__, __FILE__, __has_include
2017-01-04 22:46:57 +01:00
rdb
cf105f276c
More alignment fixes for 32-byte AVX
2016-12-28 20:23:27 +01:00
rdb
8434914ab6
Merge branch 'master' into input-overhaul
2016-12-28 17:26:58 +01:00
Sam Edwards
dad14499cd
Merge branch 'master' into cmake
2016-12-26 17:17:25 -07:00
rdb
fb2568afad
Fix faulty merge
2016-12-26 17:36:11 +01:00
rdb
9c789db918
Compile fix for Python 3.2
2016-12-25 23:58:08 +01:00
rdb
ab5b5e7e74
Merge branch 'release/1.9.x'
2016-12-25 22:47:22 +01:00
rdb
0c742d59e5
Fix crash due to incorrect alignment when building Eigen with AVX extensions
...
Consequentially, we now use 32-byte alignment when building with eigen if __AVX__ is set.
2016-12-25 22:13:05 +01:00
rdb
45356e85e1
Backward compat with older OpenSSL versions
2016-12-25 11:48:38 +01:00
rdb
122d9dd3ff
Support building with OpenSSL 1.1.0
2016-12-24 22:19:51 +01:00
rdb
637767fec8
Flush nout before inducing crash in assert-abort
2016-12-20 23:15:21 +01:00
Sam Edwards
b326c6e12d
CMake: Implement test for HAVE_IOS_BINARY.
2016-12-15 04:13:24 -08:00
rdb
c422f5952f
Increase default alignment to 2x word size, make DeletedBufferChain allocations more efficient
...
NB. NeverFreeMemory no longer performs alignment.
This fixes the Bullet crash on Win64. Need to check Win32.
2016-12-08 23:22:16 +01:00
rdb
8d305273dd
Merge remote-tracking branch 'origin/master' into cmake
2016-12-07 23:05:40 +01:00
rdb
32377cb618
interrogate: fix to allow pointers to forcetyped classes
2016-12-07 23:04:15 +01:00
rdb
e778c529b2
Implement Python 3.6 fspath protocol; allow passing a pathlib.Path wherever Filename is expected
...
The Python 3.6 fspath protocol allows passing Filename objects into any Python standard library calls that take a path.
2016-12-07 00:42:44 +01:00
rdb
b182224463
interrogate: fix issues with abstract classes and covariance (fixes EggPolygon constructor)
2016-12-05 17:22:24 -05:00
rdb
a056543d5a
Support push_macro and pop_macro in cppparser
2016-12-05 02:02:25 +01:00
Sam Edwards
e1dfd4ee3d
cmake: Oops, turn on USE_PANDAFILESTREAM by default.
2016-12-04 15:19:40 -08:00
Sam Edwards
e3fcacb1f7
Merge branch 'master' into cmake
2016-11-30 19:21:50 -08:00
Sam Edwards
573dad8dde
general: Fix missing includes.
2016-11-30 19:21:34 -08:00
rdb
d0e9f136c0
Merge branch 'master' into input-overhaul
2016-11-22 12:15:21 +01:00
rdb
b0a8408755
Fix issue with Windows build
2016-11-04 00:49:04 +07:00
rdb
d54d43ac34
cppparser: fix issue with templated external method definitions
2016-11-03 18:04:14 +01:00
tobspr
c0fd29d822
Add functional header to parser-inc ( #126 )
...
* Support for the functional header
* Add unordered_map and initializer_list
* Add unordered_set header
* Fix spacing, and remove unecessary defines
* Add missing definitions to memory header
* Use variadic templates in functional header
2016-11-03 14:08:25 +01:00
rdb
c2abb4b2f8
Revert code that is triggering an odd compiler quirk in MSVC
2016-11-03 19:27:04 +07:00
rdb
22f0b50851
More Interrogate C++11 support changes:
...
* Parse variadic templates
* Add (incomplete) type_traits support
* Parse anonymous class template params
* Parse volatile/lvalue/rvalue methods
* Don't generate destructor for indestructible types
* Add xmmintrin.h header
* Allow invoking extensions with references
2016-11-03 12:17:11 +01:00
rdb
1467541b8d
Interrogate issues: "fix #pragma once" for files specified on command-line, fix "unexpected $end" not having line numbers when parsing template parameter list
2016-11-01 12:19:11 +01:00
tobspr
50e8d5d08d
Update stdint.h
...
This adds missing definitions from the standard library header ` stdint.h` to the interrogate header.
I also changed the `typedef` to the C++11 style `using`.
Closes : #125
2016-10-31 22:34:47 +01:00
rdb
29411f5e14
Merge remote-tracking branch 'origin/release/1.9.x'
2016-10-31 22:32:39 +01:00
rdb
5832ab8099
Fix errors when trying to raise vectors to a power
2016-10-31 22:10:47 +01:00
Mitchell Stokes
59b0913b0b
Cleanup .gitignore files
...
Remove all .gitignore files in subdirectories and add a few new ignores
to the top-level directory .gitignore file.
2016-10-30 20:06:12 -07:00
rdb
f1f4951fb5
Merge remote-tracking branch 'origin/release/1.9.x'
2016-10-13 00:25:57 +02:00
rdb
955ca0d334
Fix support for passing keyword arguments to methods named make()
...
such as *Attrib.make() and Shader.make()
2016-10-13 00:21:59 +02:00
rdb
06cc1794fc
Drop support for OpenSSL versions before 0.9.7
2016-10-10 14:47:00 +02:00
rdb
a973107bd9
Remove duplicate definition of USE_GENERIC_DXERR_LIBRARY in ppremake
2016-10-10 10:04:41 +02:00
rdb
33c6e21352
Fix regression that stopped buffer protocol from working
2016-08-09 01:45:26 +02:00
rdb
29ea65bb3f
Merge branch 'release/1.9.x'
2016-08-09 01:44:21 +02:00
rdb
db97747981
cppparser: Parse nonstandard specifier order like "const static"
2016-08-09 01:27:30 +02:00
rdb
47388b0dbc
Separate out CPython calls from core libs; eliminate need for pystub
2016-07-20 14:30:41 +02:00
rdb
a4554a7dfe
gcc build fix
2016-07-14 13:21:39 +02:00
rdb
8381118a97
Assorted tweaks and compile warning fixes
2016-07-14 12:54:39 +02:00
rdb
6f168446d0
Merge branch 'release/1.9.x'
2016-07-12 14:57:48 +02:00
rdb
69f15258e4
Fix race condition reading filename/string from config var
2016-07-12 14:47:20 +02:00
rdb
5dcaac9c75
Map size_t to int if possible. Fixes regression with __len__().
2016-07-03 09:17:43 +02:00
rdb
b3bb19180e
Fix LNK4217 linker warnings on Windows
2016-06-29 19:10:50 +02:00
rdb
733456cb41
Merge branch 'release/1.9.x'
2016-06-28 02:58:47 +02:00
rdb
99f7fb6fcd
Show error instead of crash when using method or property before C++ object is constructed
2016-06-28 02:58:06 +02:00
Sam Edwards
fffd105f96
Merge branch 'master' into cmake
2016-06-25 19:12:14 -07:00
Sam Edwards
2933b8ed39
general: Fix missing includes.
2016-06-25 19:10:38 -07:00
rdb
b98d3c06ee
Merge branch 'master' into input-overhaul
2016-06-24 10:51:41 +02:00
rdb
9963fe2c3c
Fix a couple of compile warnings, reduce unnecessary includes
2016-06-23 22:59:50 +02:00
rdb
7e08b87ff7
IPv6 support, improve URL handling/comparison
2016-06-22 17:57:40 +02:00
rdb
4724a7ddbc
Add 1.9.3 release notes, bump version number
2016-06-22 17:22:06 +02:00
rdb
0821bec2d0
Backport 2f0bc01 to 1.9: Fix bug causing random crash during module initialization
2016-06-22 15:04:00 +02:00
rdb
4283a63a7d
Merge branch 'release/1.9.x'
2016-06-11 01:29:14 +02:00
rdb
ba919b0948
Fix crash running TaskTester
2016-06-11 01:11:03 +02:00
rdb
7d6b7f40f5
Merge branch 'release/1.9.x'
2016-06-09 21:52:51 +02:00
rdb
b303962e96
Disable cycle detection in tasks for now, it is way too unstable
2016-06-09 16:48:31 +02:00
rdb
d53b2ca80e
Backport various bugfixes from master, among which:
...
- Fix Windows pbuffer crash on Intel cards
- Fix crash when using pnmimage.write with unsupported format
- Fix GLSL diagnostics on Mesa GLES2 compiler
- Reduce warning severity when resizing immutable storage texture
- Print more debug info when FrameBufferProperties are insufficient
- Fix "Bam file contains objects of unknown type: MovingPart<LMatrix4f>"
- Fix memory leak in BulletTriangleMesh
- Fix pmerge in Python 3
2016-06-07 14:40:27 +02:00
rdb
8d05ef3022
Assorted fixes
2016-06-03 22:23:42 +02:00
rdb
08db72a2ca
Update dlmalloc
2016-06-03 17:42:49 +02:00
rdb
5543716660
Interrogate wraps vector<unsigned char> as Python 3 bytes object
2016-06-03 01:47:54 +02:00
rdb
242cc5f57d
Support template "using" definitions in interrogate
2016-05-31 18:48:32 +02:00
rdb
18874fa151
Replace PN_int/uint types with stdint.h types, since all compilers we support have them.
...
Plus, we already had code that relied on them being available anyway.
2016-05-11 00:27:58 +02:00
rdb
ce29ae490d
Interrogate improvements, more properties, MAKE_SEQ_PROPERTY
2016-05-11 00:16:53 +02:00
rdb
fb78fe6e2a
Interrogate enum class support (maps to Python 3.4 enums), sanify wrapper code
2016-05-07 00:45:26 +02:00
rdb
dc09e28ed9
Also accept a .gz wherever a .pz file is accepted
2016-04-29 16:54:25 +02:00
rdb
5feecd2243
Fix iterator support in interrogate
2016-04-28 11:08:23 +02:00
rdb
2c1cb4c313
Compile fixes for latest VRPN and TIFF
2016-04-22 17:18:27 +02:00
rdb
2f0bc01b68
Fix bug causing random crash during module initialization
2016-04-18 14:34:50 +02:00
rdb
881a55f679
Merge branch 'master' into cmake
2016-04-12 21:08:22 +02:00
rdb
33ed30b178
Support defining bam factory functions in Python
2016-04-09 19:28:33 +02:00
rdb
15b0ba45f9
Fix broken pickling in Python 3 build
2016-03-31 16:49:27 +02:00
rdb
a3a42874f3
Merge remote-tracking branch 'origin/master' into input-overhaul
2016-03-29 12:28:53 +02:00
rdb
ba4c38112c
Merge remote-tracking branch 'origin/release/1.9.x'
2016-03-25 17:22:00 +01:00
rdb
ce947adf8f
Replace uses of "delete" with "delete[]" where appropriate
2016-03-24 23:56:12 +01:00
rdb
1cc79633c1
Merge branch 'master' into input-overhaul
...
Conflicts:
panda/src/device/buttonNode.cxx
panda/src/device/clientAnalogDevice.I
panda/src/device/clientAnalogDevice.cxx
panda/src/device/clientButtonDevice.I
panda/src/device/clientButtonDevice.cxx
panda/src/device/clientDevice.I
panda/src/device/clientDevice.cxx
panda/src/device/clientDevice.h
panda/src/device/clientTrackerDevice.I
panda/src/device/trackerNode.I
panda/src/device/trackerNode.h
panda/src/display/callbackGraphicsWindow.cxx
panda/src/display/graphicsWindow.cxx
panda/src/display/graphicsWindowInputDevice.I
panda/src/display/graphicsWindowInputDevice.cxx
panda/src/display/graphicsWindowInputDevice.h
panda/src/tinydisplay/tinyOsxGraphicsWindow.mm
panda/src/tinydisplay/tinyXGraphicsWindow.cxx
panda/src/windisplay/winGraphicsWindow.cxx
panda/src/windisplay/winGraphicsWindow.h
panda/src/x11display/x11GraphicsWindow.cxx
2016-03-19 14:54:56 +01:00
Sam Edwards
441371e8d9
Merge branch 'master' into cmake
2016-03-15 18:30:55 -07:00
Sam Edwards
d28608aed1
cppparser: Fix missing includes.
2016-03-15 18:30:24 -07:00
rdb
f933eb4e96
Fix compile warnings (incl. "Attempt to define invalid type" spam), define _Dtool_CheckErrorOccurred in release builds for binary compat
2016-02-27 16:45:22 +01:00
tobspr
0fcfb8e372
New file headers, new comment style
2016-02-17 17:47:48 +01:00
rdb
186f1b41b2
Fix for PDWORD_PTR
2016-02-16 11:24:42 +01:00
rdb
caa03c53dd
Interrogate cppparser improvements, C++11/14/17 additions:
...
* Support trailing return type.
* Ignore C++14 digit separators.
* Parse C++14 binary number representations.
* Support "using"-style type aliases.
* Support decltype and auto with "new".
* Remove silly "long float" and "long long float".
* Support default visibility with class inheritance.
* Remove -longlong hack since C++11 supports long long natively.
* Support unary plus operator.
* Preserve bitfield definitions.
* Support constructor inits using braces.
* Support override/final specifiers.
* Ignore [[attributes]] in certain cases
* Add support for typeid() in expressions
* Parse (but ignore) lambda expressions
* Differentiate between casts, add const_cast/reinterpret_cast
* Support thread_local variables.
2016-02-16 01:18:51 +01:00
rdb
6689e69822
Merge branch 'master' into input-overhaul
2016-02-13 11:21:20 +01:00
rdb
ef72a0a410
Merge branch 'release/1.9.x'
2016-02-11 19:09:25 +01:00
rdb
bb684b2a07
Fix a few issues with obscure CPython-based deployments
2016-02-09 12:33:57 +01:00
rdb
5cd4342ed5
Merge branch 'master' into cmake
2016-02-05 17:16:15 +01:00
rdb
090e912ce6
Cleanup of comments and whitespace
2016-02-01 22:30:43 +01:00
rdb
9a38a6b075
Handle bool expressions separately in cppparser
2016-01-31 17:47:25 +01:00
rdb
8a205ac100
MAKE_PROPERTY should ignore setter overloads that take the wrong number of arguments
2016-01-25 17:02:25 +01:00
tobspr
a9e18f9d24
Improve Vector implementations: - Remove unecessary assignment operators - Add normalize() method - Use properties for certain swizzle masks - Add constexpr where appropriate
2016-01-03 22:02:00 +01:00
rdb
83ed206551
Support implicitly generated copy constructor and default constructor in interrogate
2016-01-03 21:55:50 +01:00
rdb
be60303502
Support =default and =delete methods in Interrogate
2016-01-03 19:56:20 +01:00
rdb
86a898b40a
Tack on combining diacritics for static fonts if font doesn't specify modified letters
2015-12-31 12:48:02 +01:00
rdb
bccddaf4e8
TextNode properties, fix setters that return error bool
2015-12-29 18:46:37 +01:00
rdb
cdc8d7d4d9
Interrogate should pick up definitions in all files explicitly named
2015-12-26 15:24:19 +01:00
rdb
ee7b03f374
Merge remote-tracking branch 'origin/master' into input-overhaul
2015-12-25 13:27:40 +01:00
rdb
e4857a58bb
Add many more Python properties
2015-12-24 16:17:34 +01:00
rdb
db6f0342cc
Add properties with has/clear (interrogatedb v3.1)
2015-12-24 14:25:45 +01:00
rdb
44f9b22323
Gamepad vibration on Windows
2015-12-19 21:04:49 +01:00
rdb
c256faccd6
Forgot to add parser-inc file for XInput
2015-12-13 11:34:33 +01:00
rdb
dd8344455c
XInput gamepad control states, battery information, HID properties
2015-12-12 22:07:43 +01:00
rdb
35add447e6
Build on Windows; add XInput gamepad implementation
2015-12-12 00:57:01 +01:00
rdb
6480e82e3b
First pass adding properties to many Panda classes
2015-12-10 16:23:06 +01:00
rdb
4bc64d4de9
Increase version number on 1.9 branch to 1.9.2
2015-12-08 15:54:18 +01:00
rdb
50d2e8324e
Merge branch 'release/1.9.x'
...
Conflicts:
.travis.yml
direct/src/directtools/DirectLights.py
panda/src/nativenet/buffered_datagramconnection.h
2015-12-06 22:32:12 +01:00
rdb
287c44ce53
Various fixes for Python 3 versions before Python 3.3
2015-12-06 22:05:44 +01:00
rdb
eb4052d7b6
Fix compile error on Python versions between 3.0.0 and 3.3.3
2015-12-06 16:20:07 +01:00
rdb
33d183d4f7
Throw ImportError instead of cryptic failure when importing extension module from incompatible version of Python
2015-11-28 19:22:57 +01:00
rdb
1b857d6bda
A few interrogate improvements
2015-11-28 17:54:01 +01:00
rdb
bdf91e206d
Remove references to Python.h and py_config.h from Panda headers, to prevent picking up a dependency on Python libraries in third-party modules
2015-11-28 16:33:44 +01:00
rdb
f6b66fc5db
Fix PhysX compile issues on Mac
2015-11-25 02:01:07 +01:00
rdb
0a9f9887f9
Merge branch 'release/1.9.x'
...
Conflicts:
direct/src/p3d/Packager.py
direct/src/p3d/ppackage.py
makepanda/makepandacore.py
2015-11-21 03:17:33 +01:00
rdb
4c61db6374
Consider non-const overload before considering const overload in Python bindings
2015-11-20 20:24:58 +01:00
rdb
d3885b665e
Fix static MAKE_SEQs (eg WebcamVideo.get_options(), MicrophoneAudio.get_options())
2015-11-20 02:05:44 +01:00
rdb
853d4d0b5d
Fix compile error; MSVC does not define ssize_t
2015-11-19 23:21:30 +01:00
rdb
c93e50ca05
Merge branch 'release/1.9.x'
...
Conflicts:
.travis.yml
dtool/src/cppparser/cppBison.cxx.prebuilt
dtool/src/cppparser/cppBison.yxx
makepanda/makepanda.py
2015-11-19 18:43:13 +01:00
rdb
df4c4bc250
Fix various cppparser issues parsing the VRPN headers
2015-11-19 18:35:29 +01:00
rdb
909856c75d
Improve interrogate diagnostics when encountering unknown types
2015-11-19 13:07:28 +01:00
Sam Edwards
f9099cf832
Merge branch 'master' into cmake
2015-11-14 15:09:11 -08:00
rdb
a453ec1925
Overhaul text generation; now 75x as fast as before.
2015-11-13 01:44:03 +01:00
Sam Edwards
cdf3e21025
CMake: Test that the compiler has SSE2 support.
2015-11-11 14:35:24 -08:00
Sam Edwards
28a60ff52e
general: Remove a few hacked-in includes once needed for CMake to build properly.
2015-11-11 12:53:35 -08:00
Sam Edwards
b1a294631a
Merge branch 'master' into cmake
2015-11-11 12:35:13 -08:00
Sam Edwards
5ebb6c511f
general: Fix missing includes.
2015-11-11 12:35:04 -08:00
Sam Edwards
1f83a54524
Merge branch 'master' into cmake
2015-11-09 16:15:38 -08:00
rdb
31dbcae262
Deprecate many extension methods, make extension methods imported via modules instead of dumped into core.py, move _core.pyd and _direct.pyd back to core.pyd, direct.pyd respectively, move MAIN_DIR set-up code to module init time
2015-11-10 00:44:29 +01:00
rdb
5b291a9b10
Merge branch 'master' into cmake
2015-11-09 19:21:12 +01:00
rdb
db3ab953e4
Remove ppremake, genPyCode, and all hacks created to support them
2015-11-09 19:06:49 +01:00
rdb
ac1c036cac
interrogatedb 3.0 to restructure make_seq, improve make_seq handling and performance
2015-11-09 18:03:30 +01:00
rdb
5734f61f7e
Fix Eigen compile issue in CMake
2015-11-08 22:50:53 +01:00
rdb
df446a8a23
Fix makepanda in cmake branch - parser-inc moves are no longer necessary
2015-11-08 18:43:04 +01:00
Sam Edwards
8427f95c18
cmake: Update for upstream changes.
2015-11-07 20:07:24 -08:00
Sam Edwards
c902774cfd
Merge branch 'master' into cmake
2015-11-07 20:06:59 -08:00
Sam Edwards
3b667a83ed
general: Fix several missing includes.
2015-11-07 20:05:17 -08:00
rdb
d1732a4dca
Fix minor preprocessor bugs, particularly parsing files with CRLF
2015-11-08 02:10:38 +01:00
rdb
da17cce447
Fix error and warnings in 32-bit Windows build
2015-11-01 16:57:52 +01:00
rdb
0ae2df7e02
Merge branch 'release/1.9.x'
2015-11-01 15:54:58 +01:00
rdb
63a9b5dfec
Re-expose MouseWatcherGroup; clearer error message for make_seq when getter is not exposed
2015-11-01 15:45:52 +01:00
rdb
4ebbe0748d
Add -nomangle flag to interrogate do disable mangled aliases of function names
2015-10-17 14:25:37 +02:00
rdb
ebd1fd8462
Fix interrogate warnings on Windows. Show warnings when running makepanda in verbose mode.
2015-10-17 03:27:38 +02:00
rdb
155ae811aa
Fix some edge cases for preprocessor, support auto keyword, MSVC compile fix
2015-10-17 02:54:07 +02:00
rdb
94b48d568f
Pre-C++11 compilers don't seem to like std::time_t
2015-10-16 15:51:16 +02:00
rdb
ddf8343590
Reorganise explicit template instantiations so that it always happens in the .cxx file, while remaining backward compatible with MSVC's standards-breaking implementation
2015-10-16 15:38:28 +02:00
rdb
920210c999
Fix the vast majority of Interrogate parse issues and warnings, add support for inline namespace and constexpr
2015-10-16 14:57:40 +02:00
rdb
6a0c98d54e
Work around strange interrogate issues
2015-10-13 15:40:48 +02:00
rdb
b65ad853fe
Support C++11/14 features: nullptr, decltype, unicode literals, custom literals, alignof
2015-10-12 23:32:50 +02:00
rdb
a43d6a45c1
Fix issue building with pre-C++11 compiler
2015-10-12 14:20:23 +02:00
rdb
51ebc564aa
Provide stub implementations of several C/C++ standard headers, to make parsing thirdparty sources significantly easier
2015-10-11 16:55:46 +02:00
rdb
ba45120eac
Try to stay compatible with Bison 2.5 (for Ubuntu precise), support C++11 and C++17 static_assert, improve error reporting, handle several gcc keyword aliases, fix bug handling preprocessor expression in which the same manifest occurs more than once
2015-10-11 16:52:33 +02:00
rdb
1c9ff40236
Require new Bison version on Windows, fallback to prebuilt files if not present
2015-10-10 16:29:14 +02:00
rdb
e327c7e978
Vastly improve quality of Interrogate error messages, also fix erroneous location indications
...
This change also causes Interrogate to safely ignore "register" keywords in function parameters
2015-10-10 15:15:22 +02:00
rdb
62e8106ef1
Interrogate now correctly implements C++11 semantics for closing template parameter lists
2015-10-10 04:08:00 +02:00
rdb
6feef4e230
Interrogate now parses (and ignores) explicit template instantiations
2015-10-09 13:33:05 +02:00
rdb
7738294657
Fix a few more type size issues
2015-10-07 19:10:52 +02:00
rdb
18ad6d1543
Replace many int params with size_t params where appropriate, and work towards fixing type conversion warnings
2015-10-07 18:58:26 +02:00
rdb
bae5c195af
Merge branch 'release/1.9.x'
...
Conflicts:
dtool/src/dtoolbase/dtoolbase.h
2015-10-07 15:54:02 +02:00
rdb
706f6f7de5
Squelch some of the type conversion warnings in MSVC
2015-10-06 17:05:40 +02:00
rdb
7f3f546cdd
Interrogate now parses "volatile" qualifier in instance identifiers correctly
2015-10-05 02:56:40 +02:00
rdb
ca37b6b6c0
Fix VC2015 compile errors, allow selecting any WinSDK/MSVC version. All experimental, still.
2015-10-05 02:12:46 +02:00
rdb
aebce2e74c
Merge branch 'release/1.9.x'
2015-10-05 01:23:31 +02:00
rdb
cb7a0e2520
Fix PandaSystem.getCompiler() for clang (it erroneously reported GCC)
2015-10-05 00:45:55 +02:00
rdb
893740478c
Fix sporadic interrogate parser issue
2015-10-04 17:20:49 +02:00
rdb
433ed001fa
Using strong CMPXCH seems necessary to avoid crash on ARM
2015-10-04 13:00:25 +02:00
rdb
30a26bc530
Match up interrogate standard typedefs better with gcc/msvc standard typedefs
2015-09-30 16:07:37 +02:00
rdb
036adff924
Merge branch 'release/1.9.x'
2015-09-30 14:07:21 +02:00
rdb
a902f1628b
Fix Win64 compilation
2015-09-28 13:25:17 +02:00
rdb
fcd3bfd15c
Fix interrogate issues with long, streampos, streamoff, streamsize and ptrdiff_t
2015-09-28 13:08:38 +02:00
rdb
759dc77ee1
Merge branch 'release/1.9.x'
2015-09-23 11:56:22 +02:00
rdb
49088fb7ce
Fix some issues with new VFS open() implementation
2015-09-21 17:46:50 +02:00
rdb
1d9aff0c48
Fix wrapper for operator bool of TypeHandle
2015-09-19 14:50:59 +02:00
rdb
445c3461d6
Python 3 support to rtdist, reimplement VFS open() on top of io.IOBase, allow freezing into .c target, make VFSImporter and friends frozen into p3dpython
2015-09-18 21:20:25 +02:00
rdb
5736e7a4b0
Fix crash when passing None to Filename constructor
2015-09-18 21:19:09 +02:00
rdb
57e5c8fb25
Wrap TypeHandle and ButtonHandle as ints in C wrappers
2015-09-10 15:29:31 +02:00
rdb
20f90f35b9
Regenerate interrogatedb bindings to include interrogate_request
2015-09-07 23:31:15 +02:00
rdb
d3487eba6b
Set visibility attributes on all exported bindings
2015-09-07 23:31:15 +02:00
rdb
3cd15c3d48
Merge branch 'release/1.9.x'
2015-08-31 15:59:06 +02:00
rdb
56b94eb815
Don't raise exception in tp_traverse, instead silently passing case where object is already destructed
2015-08-28 16:28:03 +02:00
rdb
d68bbae5b4
Don't add "(not used)" to config decls when writing them, it makes it harder to write out a config.prc file
2015-08-26 14:57:30 +02:00
rdb
c0ff9d8e5f
Merge branch 'release/1.9.x'
2015-08-04 18:00:35 +02:00
rdb
de715b5a0e
Fix inability for interrogate to parse /*c*//* and /*c*///
2015-08-04 17:49:19 +02:00
Ed Swartz
0ee972a822
pallocator should use panda allocators even when DO_MEMORY_USAGE is not defined - fixes 32-bit Linux crash in runtime builds
2015-07-30 21:54:13 +02:00
rdb
64144955a0
Fix for typedefs to external types in interrogate
2015-07-29 10:45:55 +02:00
rdb
1f0b4332e3
Add softspace flag to StreamWriter - fixes print spaces in runtime env
2015-07-27 20:23:47 +02:00
rdb
f33e450823
A lot of performance changes, particularly wrt dcasts and state management
2015-07-27 16:32:57 +02:00
rdb
75019784f4
Changes to inlining so we can use FORCE_INLINING in gcc as well
2015-07-27 15:39:46 +02:00
rdb
9178ed2871
Fix some preprocessor expressions in Interrogate
2015-07-14 21:04:50 +01:00
Sam Edwards
a92a972af0
CMake: Adjust for upstream Panda3D changes.
2015-07-12 19:28:08 -07:00
Sam Edwards
5ee04074c2
Merge branch 'master' into cmake
...
# Conflicts:
# direct/src/actor/Actor.py
2015-07-12 19:27:56 -07:00
Sam Edwards
16bfd3750f
Add missing includes.
2015-07-12 19:27:13 -07:00
rdb
5913546229
Proper overflow checking for numeric chars
2015-07-08 02:03:24 +02:00
rdb
342b9a8db8
Merge remote-tracking branch 'origin/release/1.9.x'
2015-07-08 02:01:28 +02:00
rdb
828e52578d
Allow a long (provided it is not overflowing) where an int is accepted
2015-07-08 01:58:35 +02:00
rdb
1088cdedc8
Fix mac and static build issues
2015-07-06 23:31:14 +02:00
rdb
cbcb2416d7
Merge branch 'release/1.9.x'
2015-07-06 10:32:30 +02:00
rdb
69b8d6a4b5
Fix memory leak in tuple-returning getters
2015-07-06 10:31:33 +02:00
rdb
7026854cc2
Fixes to get the C binding generator to work
2015-07-05 16:07:08 +02:00
rdb
dd17fd864b
Properly separate dtoolconfig and interrogatedb
2015-06-30 16:16:35 +02:00
rdb
d9342043b0
Deprecate pandac.PandaModules and genPyCode, move extensions to panda3d/, clean up imports and deprecated behaviour
2015-06-28 13:55:31 +02:00
rdb
236b0c590c
Use explicit symbol visibility control in GCC/clang
2015-06-22 21:01:34 +02:00
rdb
269b4eac27
Fix METH_NOARGS calling convention violations in interrogate, and special support for LINK_ALL_STATIC in interrogated code
2015-06-21 17:53:37 +02:00
rdb
7a836cbbd9
Merge branch 'release/1.9.x'
2015-06-21 17:46:34 +02:00
rdb
a7d56f0e65
Fix compilation error when compiling Python without threads
2015-06-21 17:41:28 +02:00
rdb
8ecf6a7b9f
Fix getattr() and hasattr() of vector classes when invalid attribute name is used
2015-06-21 15:33:42 +02:00
rdb
2515ea5dff
Merge branch 'release/1.9.x'
2015-06-13 13:37:33 +02:00
rdb
48208b0f27
Support #pragma once in interrogate
2015-06-13 13:33:11 +02:00
rdb
11ed8a4d8d
Use dynamic type lookup for interrogate to eliminate inter-module dependencies
...
It is now no longer necessary to link to core.pyd
Also includes a slight coercion optimization for trivial types
2015-06-06 19:36:40 +02:00
rdb
4d46172fba
Revert non-Windows template export changes from 1.9.x, they're less stable than I thought
2015-06-06 16:55:33 +02:00
rdb
205e731c4a
Merge branch 'release/1.9.x'
2015-06-04 12:00:25 +02:00
rdb
4a88d71ff6
Fix compile issues on Windows with rtdist build
2015-06-04 11:44:29 +02:00
rdb
9c0076a09b
Bump version to 1.10.0
2015-06-03 20:47:53 +02:00
rdb
a70878c4ef
Merge branch 'release/1.9.x'
2015-06-03 20:26:22 +02:00
rdb
6cbc608b8d
Bump version to 1.9.1
2015-06-03 20:26:05 +02:00
rdb
f42c6645d5
Update prebuilt bison files for people who build without bison
2015-06-03 19:54:01 +02:00
rdb
f69354d9fa
Explicit template instantiation on gcc/clang, implement cfsworks' suggestion of moving compiler-specific stuff out of pandasymbols.h et al
2015-06-03 13:36:04 +02:00
rdb
141c7a9c35
Improve build performance on Windows slightly
2015-06-02 21:02:35 +02:00
rdb
75978222a1
Merge branch 'release/1.9.x'
2015-06-02 00:31:24 +02:00
rdb
cc62e731b7
Fix compilation with ppremake
2015-06-01 00:21:32 +02:00
rdb
e2dfc935a1
Various refactoring, esp. of GLSL input system
2015-05-21 14:16:45 +02:00
tobspr
ac779d46d7
Fix typos in interrogate
2015-05-18 18:12:09 +02:00
rdb
5f875239f2
Merge branch 'release/1.9.x'
2015-05-02 22:17:29 +02:00
Sam Edwards
88bb4102b2
dtoolbase: Rename pdtoa.c -> pdtoa.cxx.
...
It's actually a C++ file (contains C++-only constructs) and should have the proper file extension so it compiles with the appropriate language.
2015-05-02 22:14:17 +02:00
Sam Edwards
66e47bea0d
CMake: Update for recent upstream changes.
2015-05-02 12:23:22 -07:00
Sam Edwards
a10a7cf6d1
dtoolbase: Rename pdtoa.c -> pdtoa.cxx.
...
It's actually a C++ file (contains C++-only constructs) and should have the proper file extension so it compiles with the appropriate language.
2015-05-02 11:49:30 -07:00
Sam Edwards
8b876843d4
Merge branch 'master' into cmake
2015-05-02 11:33:52 -07:00
rdb
ab1c516ebc
Merge various fixes from branch 'release/1.9.x'
...
Conflicts:
panda/src/gobj/texture.cxx
2015-04-16 17:11:20 +02:00
rdb
52288e299b
Fix interrogate regression that broke multiview support
2015-04-16 16:57:46 +02:00
rdb
c130d25193
Add typedefs to API documentation generator
2015-04-15 13:55:50 +02:00
rdb
d7552f0d8a
Merge in bugfixes from branch 'release/1.9.x'
2015-04-14 15:50:53 +02:00
rdb
d430e611bb
size_t params of methods in template classes did not support 64-bit values on 64-bit systems
2015-04-14 15:47:35 +02:00
rdb
3b17e8fff1
Fix issue tracking memory allocations of more than 2GB at a time on 64-bit systems
2015-04-14 15:44:11 +02:00
rdb
8e76328b3b
Fix Bullet support (Broken float division in default args in interrogate)
2015-04-09 13:08:17 +02:00
rdb
16e7831566
Remove executable permissions from files that don't need them
2015-04-05 15:41:49 +02:00
rdb
41184b1189
Optimizations to improve start-up time (esp. in JavaScript)
2015-04-04 19:05:54 +02:00
rdb
44346769b4
Fix pstrtod bug with exponents
2015-04-04 16:00:19 +02:00
rdb
19e5677e18
Let's increment coreapi version number to 1.0.4.2
2015-04-01 14:01:58 +02:00
rdb
426fdf0842
Fix issue where overloads with invalid default arg types weren't exported at all
2015-03-31 22:34:28 +02:00
rdb
346d04a256
Work around buggy list::remove in libc++
2015-03-31 13:55:32 +02:00
rdb
af0d853eef
Disable i386 atomics impl on Mac OS X until we find out why it won't compile
2015-03-31 13:54:38 +02:00
Sam Edwards
81a344d52d
Merge branch 'master' into cmake
2015-03-28 15:28:49 -07:00
rdb
ff58db25ac
Fix inheritance of hash functions, restore compare_to(), slot get_hash/get_key
2015-03-28 21:55:55 +01:00
rdb
eaedfa68dc
Fix regression: methods returning const char pointer were ignored.
2015-03-28 20:51:45 +01:00
rdb
53d10aa3a3
Fix sticky exception when passing over overloads with single string arg.
2015-03-28 20:51:08 +01:00
Sam Edwards
64120cd7d8
general: Add missing includes and forward-declarations.
2015-03-28 19:27:48 +01:00
Sam Edwards
41d8e26549
general: Add missing includes and forward-declarations.
2015-03-28 11:16:40 -07:00
Sam Edwards
a0f704b67a
CMake: Update CMakeLists for recent upstream changes.
2015-03-28 11:16:19 -07:00
Sam Edwards
69c22868e1
Merge branch 'master' into cmake
2015-03-28 10:23:28 -07:00
rdb
477aa4bdfe
Fix various Windows build issues
2015-03-27 23:17:35 +01:00
rdb
f624cdcac0
Fix various Mac OS X bugs and build issues
2015-03-25 19:43:21 +01:00
rdb
c9f8ccf901
Fix interrogate bug with detecting parameter coercion possibility
2015-03-25 19:37:00 +01:00
rdb
3371df8403
Fix tp_compare, better __repr__/__str__ handling
2015-03-25 19:36:35 +01:00
rdb
38d02fadf9
Fix various interrogate issues with parsing PhysX headers
2015-03-23 19:27:29 +01:00
rdb
de0b0dd879
Fix various issues with Python 3 support, fix samples to work with Python 3
2015-03-23 00:32:47 +01:00
rdb
b63d5fbe8c
Support cyclic garbage collection through PythonTask objects
2015-03-15 12:24:06 +01:00
rdb
e608fa69c7
Merge branch 'master' into interrogate-overhaul
...
Conflicts:
dtool/src/cppparser/cppBison.yxx
dtool/src/interrogate/interfaceMakerPythonNative.cxx
2015-03-14 16:47:31 +01:00
rdb
68cf8cf44f
Fix various issues with API documentation generator
2015-03-13 18:40:26 +01:00
Sam Edwards
25e2e0221d
Merge branch 'master' into cmake
2015-03-05 09:46:52 -08:00
rdb
04d4309b14
SSE2-enhanced sRGB encode (with runtime CPU detection)
2015-03-01 11:46:52 +01:00
rdb
da3f642902
Various interrogate improvements
2015-02-27 15:01:42 +01:00
rdb
238cbad2a1
Merge branch 'master' into interrogate-overhaul
2015-02-27 12:48:33 +01:00
rdb
db87bc7914
PointerToArray fixes, Windows build fixes, more move constructors
2015-02-27 12:45:11 +01:00
deflected
2dd1b5e3b3
dtool: Fixed building under FreeBSD
...
There is missing define in dtoolutil which
prevent building of dtool under FreeBSD.
Signed-off-by: deflected <deflected@github>
2015-02-20 11:58:28 +02:00
rdb
e29efdd0c9
Don't use swap() as fallback for std::move(), it's more picky
2015-02-15 20:26:23 +01:00
rdb
9513046e59
Various substantial changes to Interrogate:
...
* Allow arbitrary selection of optional keyword arguments in some cases
* Reduce code bloat of generated bindings
* Work around awkward resolution of set_shader_input overloads
* Document the code a bit better
* Make coercion a bit cleaner for reference counted types
* A few optimization tweaks
* Use generic errors in NDEBUG build to reduce size of string pool
2015-02-15 13:48:13 +01:00
Sam Edwards
6ee1170453
Merge branch 'master' into cmake
...
Conflicts:
panda/src/display/pythonGraphicsWindowProc.cxx
panda/src/putil/config_util.cxx
2015-02-11 09:53:13 -08:00
rdb
4dc4c9eb3d
Merge branch 'master' into interrogate-overhaul
...
Conflicts:
dtool/src/interrogate/functionRemap.cxx
dtool/src/interrogate/interfaceMakerPythonNative.cxx
panda/src/event/pythonTask.cxx
panda/src/express/multifile.h
panda/src/express/pointerToArray.I
panda/src/mathutil/config_mathutil.N
panda/src/putil/config_util.N
panda/src/putil/doubleBitMask.h
2015-02-11 14:41:58 +01:00
rdb
a6eb3fa442
Make NodePathCollection and TextureCollection constructors extensions
2015-02-11 14:14:03 +01:00
rdb
cbd70ad8af
Move all Python bindings out of core DLLs into the .pyd files.
2015-02-10 14:30:51 +01:00
rdb
4f27ed600f
Attempt to work around glibc bug when using clang with -ffast-math
2015-02-09 22:15:41 +01:00
rdb
bd7d86ba9e
We use /fp:fast on Windows, let's be consistent and use -ffast-math on other platforms in release builds
2015-02-09 20:39:16 +01:00
rdb
27582ff447
Remove HAVE_GL(ES) from dtool_config.h, we don't use it in source
2015-02-09 17:57:12 +01:00
rdb
e9a64736a3
Fix 32-bit Windows compilation issues with Eigen
2015-02-09 16:51:59 +01:00
rdb
bd86907181
Fix assortment of compilation issues and annoyances
2015-02-08 23:25:11 +01:00
rdb
b2f73d0877
Merge branch 'master' into interrogate-overhaul
2015-02-08 12:11:19 +01:00
rdb
01cd4fcbd5
Fix compile error on clang when C++11 support is disabled
2015-02-07 18:15:56 +01:00
rdb
33249c5f43
Make pregenerated bison files up-to-date (for people without bison)
2015-02-07 17:40:31 +01:00
rdb
028c09add5
Implicit cast string to InternalName in c++, also optimize for string literals
2015-02-07 16:43:25 +01:00
rdb
eaabc1bfa5
Add ConfigVariableColor
2015-02-05 13:34:52 +01:00
rdb
0a64bdb33b
Fix MouseRecorder & let PandaNode inherit from TypedWritableReferenceCount
2015-01-24 16:12:04 +01:00
rdb
3423a09f4f
Merge branch 'master' of github.com:panda3d/panda3d
2015-01-21 22:12:53 +01:00
rdb
f68e8cdee4
More reliable and hopefully less crashy way of determining libp3dtool location
2015-01-21 20:32:48 +01:00
rdb
98cbf5c309
Remove unnecessary field
2015-01-19 00:08:39 +01:00
rdb
b5a49efc2e
Merge branch 'master' into interrogate-overhaul
2015-01-07 19:34:15 +01:00
rdb
af15797a25
Many, many performance optimizations and enhancements
2015-01-07 19:30:01 +01:00
rdb
ecf627b315
Fix a bug substituting some enums
...
(Still a bug: some enums in templated classes don't get instanced properly)
2015-01-05 17:04:38 +01:00
rdb
e2cdade9d2
Merge branch 'master' into interrogate-overhaul
2015-01-04 20:39:58 +01:00
rdb
936fa653b0
Remove unneeded HAVE_ flags from dtool_config.h generation
2015-01-04 20:34:59 +01:00
rdb
5e905d4463
Fix various parser bugs, improve error reporting
...
(to show the included file chain -vv is now needed)
2015-01-04 20:30:24 +01:00
rdb
34761a0b9b
Merge branch 'master' into interrogate-overhaul
...
Conflicts:
dtool/src/cppparser/cppBison.yxx
2015-01-03 16:52:44 +01:00
rdb
e8905b840c
Use C++11 move semantics to dramatically improve PointerTo performance
2015-01-02 15:25:58 +01:00
rdb
368e1ca644
Support noexcept and rvalue references in C++ parser
2015-01-02 14:57:33 +01:00
rdb
202008c470
Support digraphs and alternate operator names in CPPParser
2015-01-02 14:55:06 +01:00
rdb
6db5d0dc11
Huge cppparser and interrogate overhaul, bringing:
...
* Better support for typedefs
* Same code should compile for both 32-bit and 64-bit
* C++11 typed enum support
* Synthesize __setitem__ when operator [] returns reference
* Rewrite coerce system to have better performance
* Change semantics of __getattr__ and __setattr__ to match
Python's, add __getattribute__, __delattr__ and __delitem__
* Improve performance of slot functions a bit more
* Reduce memory overhead of type system
* Some support for wrapping arrays of numeric types
* C++11 character type support in cppparser
* Chars are handled as strings of length 1
* Template functions for CreatePyInstance that use runtime type map
* More functions from dtool as extension functions
* Code cleanup
2014-12-30 16:43:52 +01:00
rdb
624b3dad14
Delete DirectX 8 support
2014-12-30 02:00:43 +01:00
rdb
be1eb1d812
More minor linux packaging fixes
2014-12-29 15:16:33 +01:00
rdb
f189290dfe
Support for automated build bot scripts, add PandaSystem::get_git_commit()
2014-12-22 20:27:37 +01:00
rdb
5aaaf72851
Fix issue with Eigen when matrix determinant is nearly 0
...
also fix error message for singular matrix
2014-12-10 16:32:04 +01:00
rdb
15b88283b2
Merge branch 'master' of github.com:panda3d/panda3d
2014-12-03 21:53:58 +01:00
rdb
b3fd8b94ad
Interrogate should be able to parse any constexpr as enum value, including one that references a different enum value
2014-12-03 21:51:58 +01:00
David Rose
ad449848c2
extend .gitignores for more ppremake files
2014-12-02 09:48:04 -08:00
rdb
4c10c9ec1f
Oops, fix GCC
2014-11-26 21:14:35 +00:00
rdb
861234c349
Bunch of minor compile fixes and changes
2014-11-26 13:33:10 +00:00
rdb
3490be94b7
Fix deadlock issues with type registry
2014-11-21 16:51:36 +00:00
Sam Edwards
9ec74a0421
Merge branch 'master' into cmake
...
Conflicts:
panda/src/display/graphicsWindow_ext.cxx
panda/src/mathutil/triangulator3.cxx
panda/src/putil/pythonCallbackObject.cxx
2014-10-21 22:34:13 -07:00
rdb
c3bf91d608
GCC atomics also work in clang 3.0+
2014-10-21 20:49:58 +00:00
rdb
a65b477734
Commit patches by cfsworks:
...
cxx: Fix missing includes masked by composite builds.
misc: Fix typos in comments.
config: Fix missing config forward-declarations.
direct: Adjust Python imports to panda3d.* instead of pandac.*.
display: Split graphicsWindow out into an extension.
framework: Use if/elif/elif/endif instead of ifdef/elif/elif/endif.
ode: Remove erroneous INLINE declarations.
interval: Fix missing import.
2014-10-19 22:41:47 +00:00
rdb
f3094043df
Fix left shift in Python (LP bug #1289475 )
2014-10-19 15:50:54 +00:00
Sam Edwards
edd2a45d38
CMake: Don't test host system's /proc paths for availability on target. This allows better cross-compilation.
2014-10-18 20:19:16 -07:00
Sam Edwards
442f58986d
include: Fix a couple more missing includes...
2014-10-18 16:53:17 -07:00
Sam Edwards
eaeff00901
dtool: Undo a few changes to dtoolbase that aren't strictly necessary, to better parallel upstream.
2014-10-18 16:53:13 -07:00
Sam Edwards
a85d1f4cc2
Merge remote-tracking branch 'upstream/master' into cmake
2014-10-18 15:13:30 -07:00
rdb
31a71c990d
Fix issues with OS X 10.9 compilation, fix issues uncovered by clang
2014-10-12 18:45:37 +00:00
Sam Edwards
62d08ec8bf
Merge branch 'master' into cmake
2014-10-11 18:09:26 -07:00
rdb
3ed7ae0bd9
Oops; fix memory leak
2014-10-10 13:54:53 +00:00
rdb
902bedc314
Fix Python 3 crash on Windows, and fix some Python 3-related compile errors
2014-10-10 13:45:05 +00:00
rdb
fbc3564bf9
More work on Android port
2014-10-08 15:09:25 +00:00
rdb
0a84dd9ca3
Android fixes
2014-10-06 17:44:58 +00:00
rdb
24386cdc1e
Use a table to make InternalName::make more efficient for Python interned strings
2014-10-02 18:28:06 +00:00
Sam Edwards
de8eb894b7
CMake: Update CMakeLists files to match recent changes to Sources.pp files.
2014-09-22 21:40:53 -07:00
Sam Edwards
57fb97053b
Merge branch 'master' into cmake
2014-09-22 21:13:05 -07:00
rdb
778b4390f4
Temporary fix for Python 3 compilation error
2014-09-21 13:37:32 +00:00
rdb
db7a6561f2
When finding comment for an enum, don't accidentally pick up a same-line comment of an enum value on the preceding line
2014-09-21 13:22:52 +00:00
rdb
d9c529a5d0
Update prebuild cppBison files
2014-09-20 11:54:04 +00:00
rdb
a6229f1fac
Support for comments in enums. Improve comment handling in C++ parser. Improve doxygen reference. Update interrogate interface. (Addendum to interrogatedb v2.3.)
2014-09-19 23:34:11 +00:00
rdb
c178aba639
Add property support to interrogate (using MAKE_PROPERTY or using published members)
2014-09-19 15:23:52 +00:00
rdb
8afd8b1f57
interrogatedb v2.3: elements can have comments
2014-09-19 15:18:08 +00:00
rdb
30d8cc29b3
Rewrite handling of stringify and token-paste operators to work better. Add support for variadic macros.
2014-09-19 15:14:11 +00:00
rdb
87910799b6
Split off epvector.h into its own file in an attempt to cut down compilation time
2014-09-14 22:04:36 +00:00
rdb
5437a3e5a9
Allow const variables with initializers to be used in expressions (like enum definitions). Also fix compiler warning.
2014-09-14 22:02:16 +00:00
rdb
a044561be5
*Always* check for exceptions in C++ methods, otherwise we miss important exceptions thrown in Python code called by C++ methods (like SystemExit!)
2014-08-26 21:01:12 +00:00
rdb
e468b293d1
Fix a longstanding memory leak in certain interrogate exception handlers.
...
Raise MemoryError when constructor returns NULL.
Properly check argument count of constructors that take no arguments.
2014-08-26 17:17:37 +00:00
rdb
ab5e4f496b
Fix cmath includes on GNU
2014-08-21 17:00:57 +00:00
rdb
4db966f431
GNU needs #include <limits> for numeric_limits
2014-08-21 16:54:44 +00:00
rdb
a7f2f50236
Move string_utils.* to from putil to dtoolutil
2014-08-20 19:33:55 +00:00
rdb
515f93a0b8
Better handling of nan/infinity. Previously, these weren't working on Windows in config strings.
2014-08-20 19:32:11 +00:00
rdb
24d705b031
The "null" ButtonHandle and TypeHandle now evaluate to false
2014-07-29 11:15:12 +00:00
Sam Edwards
cf1a9f1807
general: Fix up include structure to resolve errors when building without composites.
2014-07-26 15:09:11 -07:00
Sam Edwards
3d0f587ca0
Merge remote-tracking branch 'upstream/master' into cmake
...
Conflicts:
panda/src/linmath/lvecBase4.h
2014-07-24 22:59:52 -07:00
rdb
3e974abf5d
Fix silly bug with longs
2014-07-23 17:41:22 +00:00
rdb
f02662d4e0
Improve interrogate code readability, use METH_STATIC for static methods, support anonymous enums
2014-07-22 20:06:59 +00:00
rdb
e98618b105
Only use constexpr when the compiler conforms to C++11
2014-07-21 15:41:31 +00:00
rdb
c257ce624e
Interrogate overhaul that dramatically increases performance for the simpler methods
2014-07-18 13:54:38 +00:00
rdb
dba717fe83
GCC 4.7 enables constexpr, not 4.6
2014-07-17 16:18:04 +00:00
rdb
1be0fb5169
Add atomic adjust impl that uses GCC intrinsics. Also, make use of "constexpr" when available.
2014-07-17 13:11:06 +00:00
rdb
cba254d0bc
Add wstring type handle. Also add some useful MAKE_SEQs.
2014-06-26 20:06:04 +00:00
rdb
c33ef307d6
Delete MesaGL renderer, it seems not to be used any more
2014-06-18 14:59:11 +00:00
rdb
5dae464394
Add integer vectors. Also add __pow__ operator to vectors.
2014-06-11 18:01:50 +00:00
rdb
634190281d
Support __pow__ in interrogate
2014-06-11 17:17:45 +00:00
rdb
e9f4e44e99
Add panda/src/configfiles
2014-05-30 12:27:21 +02:00
rdb
e3b663da3a
Merge branch 'master' into cmake
2014-05-29 16:32:59 +02:00
rdb
5b967671fa
Fix Python 3 build issue with iterator extensions
2014-05-23 13:42:26 +00:00
Sam Edwards
93af05d67a
Merge branch 'master' into cmake
2014-04-23 21:14:26 -06:00
Sam Edwards
df24806a2e
dtool: Move all parser-inc includes to their proper subdirectories.
2014-04-17 01:34:16 -06:00
Sam Edwards
ea4043d689
cmake: Build pstatclient.
2014-04-16 06:31:04 -06:00
Sam Edwards
127dfe7c4d
cmake: Add FFMPEG compilation support.
2014-04-11 03:38:08 -06:00
Sam Edwards
21ecc1fc04
CMake: Default HAVE_AUDIO on.
2014-04-03 15:10:31 -06:00
Sam Edwards
5ce2173903
CMake: Fix typo.
2014-03-31 20:31:08 -06:00
Sam Edwards
a39be0ed75
Merge branch 'cmake-cfs-remainder' into cmake
...
Conflicts:
panda/CMakeLists.txt
2014-03-30 01:21:09 -06:00
Sam Edwards
cc6720e6c4
CMake: Fix trailing-newline issue with autodetected Python install paths.
2014-03-30 01:20:06 -06:00
Sam Edwards
d27bc99fcb
Merge remote-tracking branch 'upstream/master' into cmake
...
Conflicts:
direct/src/directnotify/DirectNotify.py
direct/src/showbase/PythonUtil.py
2014-03-29 15:57:11 -06:00
rdb
d5d5de1d7e
Make iterators work with interrogate by mapping None to NULL for the iternext method. Not the best solution, but is easy and fits most use cases.
2014-03-27 15:15:58 +00:00
rdb
31a192f27b
Fix interrogate understanding of PY_VERSION_HEX
2014-03-09 11:43:08 +00:00
rdb
ae4bddd7f7
Fix Python 3 compile issue
2014-03-09 01:00:23 +00:00
Sam Edwards
0bcce442c3
CMake: Properly link against the proper frameworks on OS X.
2014-03-02 21:57:15 -07:00
Sam Edwards
0c04655f86
CMake: Explicitly require Python 2.x.
2014-03-02 18:33:47 -07:00
rdb
c213712600
fix windows build when the module is in different dll than the library defs
2014-02-20 18:38:35 +00:00
rdb
5f2c0a6e04
Big commit aiding in separation of Python bindings:
...
* Most extension functions have been moved to C++.
* In makepanda, Python bindings are compiled into panda3d/<module>.pyd.
2014-02-20 13:33:26 +00:00
rdb
3070f18c24
Add assertion in a case where I've seen an occasional crash
2014-02-19 08:38:57 +00:00
Sam Edwards
f972221357
CMake: Detect ODE.
2014-02-08 16:20:57 -07:00
Sam Edwards
5e78a80acc
CMake: When HAVE_PYTHON, detect the Python install directories. Also, only include Python directories if HAVE_PYTHON.
2014-02-06 16:33:27 -07:00
Sam Edwards
cc7e03f5eb
CMake: Fix typo.
2014-02-06 13:37:46 -07:00
Sam Edwards
f5f2f39a30
CMake: Remove PYTHON_LIBRARIES link from interrogatedb; it's unused there.
2014-02-05 18:09:18 -07:00
Sam Edwards
ad7f590ca3
Merge branch 'cmake' into cmake-cfs-install
...
Conflicts:
panda/CMakeLists.txt
panda/src/audio/CMakeLists.txt
panda/src/movies/CMakeLists.txt
panda/src/pnmtext/CMakeLists.txt
2014-02-05 17:38:03 -07:00
rdb
872ffb12c1
Merge pull request #4 from kestred/cmake-cfs-igate2
...
Update Interrogate.cmake; generate panda3d.core and panda3d.egg modules.
2014-02-05 20:34:19 +01:00
Sam Edwards
5e77793b0f
CMake: Add some install(...) directives.
2014-02-04 22:43:23 -07:00
Sam Edwards
2a85cd7a5b
CMake: dtoolbase/dtoolutil may need to link against Python.
2014-02-04 11:28:06 -07:00
Sam Edwards
c4ade7f8b9
Move OpenSSL parser-inc files to openssl/ subdirectory.
2014-02-03 12:09:20 -07:00
rdb
710568fb28
HAVE_GTK -> HAVE_GTK2
2014-02-02 12:31:06 +01:00
rdb
6e86570b9a
ppremake-style output report
2014-02-02 10:12:18 +01:00
Sam Edwards
33142e0b59
CMake: Build interrogate_module.
2014-01-30 13:18:11 -07:00
kestred
f5fbe25724
Build shared libs by default in cmake builds.
2014-01-30 10:32:25 -07:00
kestred
f8b901f60a
Fix incorrect licensing and add missing parens after else.
2014-01-30 09:39:29 -07:00
kestred
bb19d8cb23
Enable package filtering by license in Distribution builds, and disable most packages by default in MinSizeRel builds.
2014-01-30 09:33:20 -07:00
kestred
b2f928ade5
Add "Distribution" build type, and improve doc/organization for basic CMake stuff.
2014-01-30 08:55:19 -07:00
kestred
f0a7a4d12b
Removed outmoded DO_DEBUG for IS_DEBUG_BUILD
2014-01-30 07:00:01 -07:00
kestred
b04ebdda98
Have package_option automatically generate option library targets instead of checking in every instance they're used.
2014-01-30 06:47:09 -07:00
kestred
9a9f06c984
Config.cmake: Add X11 location and option.
2014-01-30 04:16:26 -07:00
kestred
99b4760991
dtool/Config.cmake: Add missing empty option to BUILD_IPHONE.
2014-01-30 04:01:57 -07:00
Sam Edwards
82854ac1e8
Under CMake, generate dtool_config.h into build/include/ instead of build/ and use build/include/ as the global include directory.
2014-01-29 10:41:01 -07:00
Sam Edwards
456967069e
Fix syntax problems in Config.cmake.
2014-01-27 10:09:07 -07:00
kestred
d1c5c20983
Continue Config.pp port and cleanup build-type conditional defaults.
2014-01-26 22:21:19 -07:00
kestred
4a2ee83df9
Rearrange Config.cmake and cotninue porting Config.pp
2014-01-26 21:33:49 -07:00
Sam Edwards
0f89ef1e7b
In CMake, link a few libraries against other libraries that they depend on.
2014-01-26 18:06:37 -07:00
kestred
a0eeccf381
Add missing compiler define in CMakeLists for dtool/metalibs/dtoolconfig.
2014-01-26 11:22:48 -07:00
kestred
b25669af6f
Merge remote-tracking branch 'upstream/master' into cmake
2014-01-25 22:17:41 -07:00
kestred
25771c6629
Cleanup some dtool/package.cmake find variables.
2014-01-22 00:53:32 -07:00
kestred
dd495b5573
Rename FindFFTW to FindFFTW3 and comment out configuration for it. FindFFTW3 was implemented, but Panda expects FFTW2.
2014-01-19 12:07:20 -07:00
kestred
f4bf740362
Fix HAVE_LOCKF in dtoolbase.h for python headers that don't define it.
2014-01-19 17:33:19 -07:00
kestred
b940bbc88e
Add python_libaries for linker to p3interrogatedb target (when not HAVE_PYTHON, PYTHON_LIBRARIES will be empty).
2014-01-19 00:53:11 -07:00
kestred
9ee6e59795
Change %pure_parser to %pure-parser in cppBison.yxx (%pure_parser is very very deprecated)
2014-01-19 00:45:02 -07:00
kestred
3fd5f58583
Add #ifdef and #undef where necessary to prevent duplicate definitions.
2014-01-19 00:44:14 -07:00
kestred
b07ce7dc93
Add include guards to our generated dtool_config.h
2014-01-19 00:28:55 -07:00
rdb
a10bbe9c9e
One more pystub symbol for Python 3 that's used in direct
2013-12-23 21:06:20 +00:00
kestred
f81b14a70b
cmake: config: Finish updating config to use the same variables as used in-source.
2013-12-21 19:41:23 -07:00
kestred
8cdc819344
cmake: config: Move new package macros to cmake/macros, use new package macros in Package.cmake, begin removing redundant package/config options from Package.cmake (theses are being moved to Config.cmake).
2013-12-21 19:30:53 -07:00
rdb
693159b1c7
Merge branch 'cmake' of ssh://github.com/kestred/panda3d into cmake
...
Conflicts:
CMakeLists.txt
2013-12-22 00:20:01 +01:00
rdb
5fdf4828be
package macros, add stuff to Config.cmake
2013-12-22 00:18:57 +01:00
kestred
f3d7a325ab
cmake: bugfix: Should be #ifdef HAVE_GL not #if HAVE_GL
2013-12-21 15:12:22 -07:00
kestred
87dba6f064
cmake: packages: Add SDL find and config, general bugfixing and cleanup
2013-12-21 14:58:38 -07:00
kestred
89e0cd9d96
cmake: packages: Add OpenGL find and config.
2013-12-21 14:39:49 -07:00
kestred
9c42b3602f
cmake: packages: Add FLTK find and config.
2013-12-21 14:36:22 -07:00
kestred
26b3d826b9
cmake: packages: add support for wxwidgets
2013-12-21 14:31:17 -07:00
kestred
7321c7b4b7
cmake: add missing prc variables to the mark_as_advanced declaration.
2013-12-21 13:46:47 -07:00
kestred
1fc064104f
cmake: Rename dtool/Packages.cmake to dtool/Package.cmake to keep consistency with ppremake.
2013-12-21 13:46:28 -07:00
kestred
c579f87007
cmake: Reorganize macros, and cleanup related files (add docs, etc)
2013-12-21 13:44:05 -07:00
rdb
4944d7cd7b
use compare_to and get_class_type instead of compareTo and getClassType
2013-12-18 10:24:00 +00:00
rdb
708e8dc513
Remove HAVE_GETTIMEOFDAY which we aren't using
2013-12-17 18:01:54 +00:00
rdb
f29c4681e1
Fix broken Python 3 support.
2013-12-17 17:42:16 +00:00
rdb
634c3c5a0a
Stubs for Python 3 functions
2013-12-17 15:03:30 +00:00
rdb
d71923b36e
Add interrogate macros, add p3express/p3downloader/p3dtoolconfig, fixes for pre-2.8.11
2013-12-16 22:20:46 +01:00
rdb
7ea0d099e9
More progress on Config.cmake, fix bison, add BUILD_DTOOL/BUILD_PANDA to toggle trees.
2013-12-16 20:33:20 +01:00
rdb
57c9b1ae64
Add composite_sources, add bison macro, emulate CMAKE_CURRENT_DIR_IN_INTERFACE in pre-2.8.11
2013-12-16 17:21:11 +01:00
rdb
b002c8299a
Work on Config.cmake (add documentation and such)
2013-12-14 17:28:51 +01:00
rdb
39bea67211
Split automated compiler settings into LocalSetup.cmake. Rename Version.cmake into PandaVersion.cmake.
2013-12-14 14:51:36 +01:00
rdb
7a66d4ea2f
Fix issues with version, copy over documentation for version vars.
2013-12-14 12:08:30 +01:00
kestred
81e4f87420
CMake: Don't smash CMAKE flags when using posix threads.
2013-12-13 11:06:08 -07:00
kestred
5c85d29d27
CMake: Configure: Cherry-pick more documentation and misc config vars from cmake-rdb branch.
2013-12-13 11:02:37 -07:00
kestred
abb19ae689
CMake: Filch some local system config vars from cmake-rdb branch, and misc cleanup.
2013-12-13 10:42:33 -07:00
kestred
90e48a9b7d
CMake: Improve documentation for cached Version variables. Add more version variables to cache.
2013-12-13 10:03:00 -07:00
kestred
fdcd21ad4c
CMake: Rearrange CMake flow so that Version, Package, and Config information is available at the top level. Remove complexity from subpackages where possible.
2013-12-13 14:06:36 -07:00
kestred
905f0a8c55
CMake: Start cleaning up configuration variables.
2013-12-13 13:32:23 -07:00
kestred
826979c099
CMake: Configure: Finish cleaning up finding packages.
2013-12-13 13:32:04 -07:00
kestred
c7b514bc75
CMake: Configure: Begin conversion to standard CMake find package syntax.
2013-12-13 03:27:52 -07:00
rdb
a8cde9f6f1
Use a custom target for bison as the built-in one is ill-equipped for our purposes. Also, add pandabase.
2013-12-13 16:35:16 +01:00
rdb
b0e3949544
Get rid of HAVE_GETTIMEOFDAY
2013-12-13 14:24:17 +01:00
rdb
abec123074
Merge branch 'master' of ssh://github.com/kestred/panda3d into cmake
2013-12-13 14:19:28 +01:00
kestred
d1572173d3
CMake: Configure: Add XYZZY_LIBRARY(IES) variable declarations for Find packages. Other cleanup and reorginizaion.
2013-12-12 12:30:42 -07:00
kestred
4fa31ee4d6
CMake: Use option() instead of set(CACHE)
2013-12-12 10:24:39 -07:00
rdb
b4714bcdf1
no place in the source uses HAVE_GETTIMEOFDAY, and it conflicts with Python, so let's simply not define it
2013-12-12 17:20:14 +00:00
kestred
ca041ae6d5
CMake: Configure: Use BUILD_<FEATURE> for CMake cache when configuring Panda features.
2013-12-11 11:19:58 -07:00
kestred
bd5ade1fb7
CMake: Configure: Add missing CMake variable for freetype.
2013-12-11 11:03:43 -07:00
kestred
ee06025d43
CMake: Configure: Add Freetype support.
2013-12-11 11:00:43 -07:00
kestred
150624b27d
Add GTK2 support.
2013-12-11 10:53:39 -07:00
kestred
a6162615d7
CMake: Configure: Add forgotten Mangle module.
2013-12-09 22:25:30 -07:00
kestred
aaff5b9c4f
CMake: Configure: Add OpenAL support. Typo fix in CMake README.md.
2013-12-09 12:22:54 -07:00
kestred
4ac2363673
CMake: Configure: Add a "DISCOVERED" option to configure.
2013-12-09 11:40:25 -07:00
kestred
55089fda95
CMake: Configure: Add FMOD Ex support.
2013-12-09 03:30:49 -07:00
kestred
9790c6f504
CMake: Configure: Nominally support Miles Sound System. Can't actually test it, because I don't own it.
2013-12-09 02:23:44 -07:00
kestred
6d8ba55bed
CMake: Configure: Add zlib support.
2013-12-09 02:02:56 -07:00
kestred
054cafeac8
CMake: Configure: Add threading support.
2013-12-09 01:10:36 -07:00
kestred
eb947cc15a
CMake: Configure: Cleanup the packages which haven't been implemented yet, and other config settings.
2013-12-09 00:44:59 -07:00
kestred
693f7b39cf
CMake: Configure: Add option to enable or disable all packages.
2013-12-09 00:11:39 -07:00
kestred
90e4926b94
CMake: Configure: Support VRPN.
2013-12-08 23:17:24 -07:00
kestred
6fe7b59801
CMake: Configure: Add cross-platform (openGL) Nvidia Cg support.
2013-12-08 20:59:17 -07:00
kestred
d03d5125a0
CMake: Configure: Add using and finding squish library.
2013-12-07 21:09:40 -07:00
kestred
93ca5ade90
CMake: Bugfix: Include "memoryHook.h" in "streamReader.cxx" to fix incomplete class from foward decl.
2013-12-06 01:32:04 -07:00
Sam Edwards
8f3a798ae8
CMake: Resolve linker issues with interrogate; it now builds!
2013-11-30 03:07:23 -07:00
kestred
a0b8deb745
CMake: Configure: Update to use the mangle_package and config_package functions.
2013-11-30 02:28:59 -07:00
kestred
1dc12b6ea1
CMake: Configure: Implement config_package and mangle_package functions with test-case uses.
2013-11-30 02:17:10 -07:00
kestred
b44101819c
CMake: Configure: Update config vars with USE_<PACKAGE> variables for each package that allow toggling of individual packages.
2013-11-30 01:03:08 -07:00
Sam Edwards
a71c7e6ad1
Get interrogate to (almost) build under CMake.
2013-11-29 03:13:50 -07:00
Sam Edwards
e9518eab5c
CMake: Build dtool/cppparser without requiring HAVE_INTERROGATE; fix its use of paths.
2013-11-29 02:59:46 -07:00
Sam Edwards
03e79fce99
Build dtool/interrogatedb under CMake.
2013-11-29 02:34:18 -07:00
Sam Edwards
eb1ac82a2e
Build dtool/pystub under CMake.
2013-11-29 02:24:45 -07:00
Sam Edwards
163cbe4ea2
Massively clean up CMakeLists files by removing use of ${CMAKE_CURRENT_LIST_DIR}; this is handled by add_subdirectory instead.
2013-11-29 02:19:55 -07:00
kestred
8abd710616
CMake: Configure: Add fftw support.
2013-11-29 02:14:00 -07:00
Sam Edwards
6f426a3e82
Get dconfig building under CMake.
2013-11-29 01:57:00 -07:00