24061 Commits

Author SHA1 Message Date
Sam Edwards
7331692ae1 CMake: Generate consistent paths in 20_panda.prc on all platforms 2020-01-11 19:39:43 -07:00
Sam Edwards
28b85d2f58 CMake: Work around CMake issue 20206 2020-01-10 16:48:59 -07:00
Sam Edwards
a1d43f7b88 CMake: Fix WANT_PYTHON_VERSION not always being respected 2020-01-08 21:03:52 -07:00
Sam Edwards
3104bf3710 CMake: Fix issue with HAVE_X safety checks falsely failing 2020-01-08 20:13:34 -07:00
Sam Edwards
1204de6e09 CMake: Set CMP0072 (prefer glvnd over direct libGL link) 2020-01-08 17:02:14 -07:00
Sam Edwards
6214f8fd60 workflow: Use ccache to accelerate CMake build 2020-01-08 13:14:48 -07:00
Sam Edwards
b946b29f37 workflow: Pass --parallel to cmake --build 2020-01-08 11:23:00 -07:00
Sam Edwards
ce6caa8d3e CMake: /etc/*.prc -> /etc/panda3d/*.prc 2020-01-07 17:04:30 -07:00
Sam Edwards
0aa599feeb CMake: Take away the HAVE_TINYDISPLAY option
This is at least until we can support building it, so that
other components in Panda don't assume TINYDISPLAY is present.
2020-01-07 13:16:51 -07:00
Sam Edwards
f75a8d03e0 CMake: Generate panda.prc with notify-level warning when not Debug 2020-01-07 13:11:42 -07:00
Sam Edwards
4a307f9cdf CMake: Generate panda.prc with the correct model-path
This also generates a second prc for installation purposes,
which has the correct paths once installed
2020-01-07 13:05:21 -07:00
Sam Edwards
fd94a33c56 CMake: When compiling Python to .pyc, optimize with -O
Distros seem to prefer having opt-1 Python modules and don't care
as much about the opt-2.
2020-01-07 11:34:34 -07:00
Sam Edwards
1eaf1654cd CMake: Don't build egg-mkfont without Freetype 2020-01-07 11:34:34 -07:00
Sam Edwards
69ff54a3d4 CMake: Break up "GLES" component into OpenGLES1/OpenGLES2 2020-01-07 11:34:34 -07:00
Sam Edwards
ef238ca1fd workflow: Just skip the Windows unity build for now 2020-01-07 11:34:34 -07:00
Sam Edwards
4aff603925 general: Reset back to master's travis, add CMake jobs to ci.yml 2020-01-06 17:22:03 -07:00
Sam Edwards
e08896deb7 CMake: Update panda3d/__init__.py
- Python 2.7 EOL warning is now past tense
- Use os.add_dll_directory() when available (instead of hacking up PATH)
2020-01-06 17:12:37 -07:00
Sam Edwards
b739919fe4 CMake: Update FindFFMPEG to locate static ffmpeg dependencies too 2020-01-06 17:12:10 -07:00
Sam Edwards
c39bda57a0 CMake: On Apple, silence build-time OpenGL deprecation warnings 2020-01-06 17:12:05 -07:00
Sam Edwards
f92b88f35b CMake: Omit Interrogate-generated sources from unity builds
This fixes an include path error when building under a
multi-configuration generator and with CMake 3.16+
2020-01-06 17:12:00 -07:00
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