Sam Edwards
bff568798f
CMake: Make FindAssimp pull in libIrrXML as well, if found
2020-01-06 17:11:31 -07:00
Sam Edwards
15c7e6fbe5
CMake: Rename COMPOSITE_* to CMAKE_UNITY_BUILD* where appropriate
...
This allows us to use 3.16+ unity build support when available,
falling back to our own stuff when not.
2019-12-31 06:48:07 -07:00
Sam Edwards
b00d7b23bc
CMake: Use CMAKE_FIND_PACKAGE_PREFER_CONFIG
to control find_package
override
2019-12-31 06:48:06 -07:00
Sam Edwards
74e9c610d3
CMake: Don't assume <PackageName>_FOUND will always be caps
...
This is more consistent with the new find_package() behavior,
especially when CONFIG mode is involved.
2019-12-31 06:47:34 -07:00
Sam Edwards
cdc16291dd
CMake: SKIP_COMPOSITING
-> SKIP_UNITY_BUILD_INCLUSION
...
The latter is what CMake (3.16+) itself uses; we should start using
CMake's own unity build capabilities if available.
2019-12-24 17:20:43 -07:00
Sam Edwards
10760d5f7a
CMake: Properly redetect Python if WANT_PYTHON_VERSION changes
2019-12-24 16:16:31 -07:00
Sam Edwards
e474350a48
CMake: Add a "Coverage" configuration, when using GCC/Clang
2019-12-05 10:35:25 -07:00
Sam Edwards
4000199acb
CMake: Fix Bullet building under clang-cl
2019-12-05 10:34:48 -07:00
Sam Edwards
6bde9423df
CMake: Don't pass GNU-like -f options to clang-cl
2019-12-05 10:34:47 -07:00
Sam Edwards
5c98b793a2
CMake: Make sure C++11 is marked as the required standard
2019-12-05 10:34:47 -07:00
Sam Edwards
cfedd71093
CMake: Disable searching macOS frameworks when using THIRDPARTY_DIRECTORY
2019-12-05 10:34:47 -07:00
Sam Edwards
bc152f665c
CMake: Escape $<LINK_ONLY> in exported packages file
2019-12-05 10:34:47 -07:00
Sam Edwards
a37eabe089
CMake: Set generated prc's model-cache-dir
properly for Windows/macOS
2019-11-25 03:03:03 -07:00
Sam Edwards
4556059c90
CMake: Use find_program to detect host tools when cross-compiling
...
In the future, we should also try to do find_package(Panda3D) to use
the host tools even if Panda3D isn't in a system path.
2019-11-13 15:30:26 -07:00
Sam Edwards
f377bdfb29
CMake: Copy thirdparty/**/*.dll to bin/ directory
2019-11-13 15:30:23 -07:00
Sam Edwards
ae59bd031f
CMake: Fix typo
2019-11-11 20:16:00 -07:00
Sam Edwards
0b342d0f9f
CMake: Don't use PythonInterp/PythonLibs when FindPython available
2019-11-11 00:48:14 -07:00
Sam Edwards
1c866dff78
CMake: Don't override Python_ROOT
2019-11-11 00:48:11 -07:00
Sam Edwards
9b7bcf2564
Merge branch 'master' into cmake
2019-11-07 21:21:04 -07:00
rdb
d2bd4181e0
interrogate: set tp_base to DTOOL_SUPER_BASE and tp_basicsize to 0
...
The tp_basicsize field, as well as a few others, seem to be inherited from whatever is set in tp_base. In absence of a tp_base, Python will set it to PyBaseObject_Type, which is not at all correct for Panda types.
2019-11-06 10:49:53 +01:00
rdb
bbb334abea
audio: sound.set_time() should take effect immediately
...
Fixes #770
2019-11-06 10:49:27 +01:00
rdb
847ebf667f
Merge branch 'release/1.10.x'
2019-11-06 10:49:05 +01:00
Sam Edwards
856754a3de
general: Don't abuse PyErr_Restore
...
The intended purpose of this function is to restore an exception
that has already been raised and saved with PyErr_Fetch. It should
not be used to raise new exceptions nor should it be used to clear
the current exception.
The especially egregious example is
`PyErr_Restore(exc_type, nullptr, nullptr);`
as the null value may not be handled correctly.
2019-11-05 18:44:20 -07:00
Sam Edwards
0e0b2186c7
CMake: Add #line directives to interrogate_preamble_python_native
2019-11-04 16:43:12 -07:00
Sam Edwards
cf59d3d983
CMake: Remove p3dtoolconfig from build
...
It's just p3prc now, so instead we install some symlinks
2019-11-04 14:02:06 -07:00
Sam Edwards
f7ac439eb1
CMake: Fix p3pgraph build with MSVC+Eigen
2019-11-04 13:41:36 -07:00
Sam Edwards
5b4ea0e277
CMake: Proper Standard compiler flags for MSVC
2019-11-04 13:41:20 -07:00
fireclawthefox
e6fc6c695d
tests: add unit tests for DirectOptionMenu
2019-11-03 12:14:37 +01:00
rdb
2e3b350510
dgui: allow creating DirectOptionMenu without ShowBase
2019-11-03 12:12:42 +01:00
rdb
69e8b4ed3c
showbase: make render2d available to GUI items without ShowBase
2019-11-03 12:09:36 +01:00
fireclawthefox
eb3b45ebb1
dgui: Fix reset text scale on DirectOptionMenu item unhighlight
...
Set text scale to previous unhighlighted scale on unhighlight to keep
custom scales
2019-11-03 11:51:36 +01:00
rdb
78c3db379c
gobj: fix tests crash due to ShaderBuffer context not cleared at GSG death
2019-11-03 11:48:51 +01:00
rdb
9a7e103c33
collide: restore missing CollisionTraverser.showCollisions()
...
This was an accidental regression in e48a40abad5399c7c3a0abffe1dfb3256b9a2317 which unexposed CollisionVisualizer and therefore caused this method to no longer be wrapped by Interrogate.
2019-11-02 20:43:21 +01:00
rdb
6d96028b71
Merge branch 'release/1.10.x'
2019-11-02 20:42:32 +01:00
rdb
c611abc6c2
physx: fix a pair of misformatted docstrings
2019-11-02 20:39:29 +01:00
rdb
3bfd994cf8
general: Fix a couple of misformatted docstrings.
2019-11-02 19:54:25 +01:00
rdb
c52db7239b
makepanda: fix unnecessary re-copy of unmodified direct files
2019-11-02 19:51:16 +01:00
rdb
39988e4787
general: update a few outdated links in API documentation
2019-11-02 19:41:56 +01:00
rdb
22e88a5b6a
direct: a few improvements to API documentation
2019-11-02 19:41:11 +01:00
rdb
40b3c7ccc9
direct: remove empty useless direct.controls.PhysicsRoller module
2019-10-29 23:55:14 +01:00
rdb
a72be90f17
Merge branch 'release/1.10.x'
2019-10-29 23:13:22 +01:00
fireclawthefox
b3c79096e5
distributed: fix division exception in ServerRepository
...
change operator to double slash for integer division
Closes #762
2019-10-29 20:47:48 +01:00
rdb
e1df400f87
makewheel: add pandac/input/*.in interrogatedb files
...
These are present in the normal SDK builds and are useful for analyzing the API, for example for generating FFI code or generating API documentation.
2019-10-29 20:44:52 +01:00
rdb
f149fb4ab0
direct: big formatting changes for the benefit of API reference
...
Part of the effort to move the API reference to Sphinx, see panda3d/panda3d-docs#21
2019-10-29 20:43:41 +01:00
rdb
ffeb8937bf
task: fix unnecessary use of PythonUtil.Queue class
...
A standard list will do just fine here.
2019-10-29 14:57:20 +01:00
rdb
0a622d08e9
direct: fix a few broken imports
2019-10-29 14:57:04 +01:00
rdb
a9759fab14
makepanda: fix makepanda.bat to look in Python 3.7 folder
2019-10-25 11:50:50 +02:00
rdb
518dece368
deploy-ng: strip -psn_* argument that macOS passes to GUI apps
2019-10-25 10:37:02 +02:00
rdb
fd8405cd87
x11display: change info message about unavailable XF86DGA to warning
2019-10-25 10:26:32 +02:00
rdb
45973fe697
makepanda: remove a leftover debug print
2019-10-25 10:25:40 +02:00