rdb
79d6727077
Move MAIN_DIR initialization code from interrogate to panda3d
...
Using the new -init flag, see panda3d/interrogate#3
2025-02-02 20:11:32 +01:00
rdb
6d54aee0c7
Remove runtime dependency on interrogatedb
2024-10-30 17:46:26 +01:00
rdb
c9cddb8d92
CMake: Stop building interrogate from tree
...
Instead, either build it externally (BUILD_INTERROGATE) or accept INTERROGATE_EXECUTABLE / INTERROGATE_MODULE_EXECUTABLE settings
2024-08-10 16:54:12 +02:00
rdb
92db1840f9
net: Prepare to split these classes out into panda3d.net module
...
See #1466 - these classes are still part of panda3d.core as of 1.11, but they should really be imported from panda3d.net (they can be imported from either place in 1.11). A future release will remove them from panda3d.core entirely.
2024-03-02 13:41:23 +01:00
rdb
b221b492f7
CMake: pass full module name to interrogate_module
2024-03-02 13:41:23 +01:00
rdb
c48fcba3d8
CMake: build tinydisplay using CMake
...
Based on work by @toadkarter (#1487 ) and @pmp-p (#1547 )
Fixes #1481
2023-10-15 11:34:47 +02:00
rdb
6ea1e8d65c
CMake: Update OpenEXR package handling to use new targets
2022-03-09 16:23:37 +01:00
rdb
e8f3565af2
CMake: Transfer target_link_options from component libs to metalibs
2022-03-09 16:23:37 +01:00
rdb
264747d213
CMake: Drop support for CMake versions below 3.13
...
We are already using target_link_options, and while it's possible to keep supporting older versions, it doesn't sound worth it. I can revert this out if someone gives me a really good reason to.
2022-03-09 16:23:37 +01:00
rdb
e716dba8d4
CMake: Update FindLibSquish.cmake, support looking in thirdparty dir
2022-03-09 16:23:37 +01:00
rdb
f30e87e7d1
CMake: Add FindGTK3.cmake file
2022-02-04 23:51:07 +01:00
rdb
f8039c0bc8
CMake: Add -DYY_NO_UNISTD_H definition to built flex sources
2021-01-03 00:21:48 +01:00
rdb
dfc5b47ec9
CMake: Improve reporting of enabled-but-not-found packages
...
Fixes #1072 (together with 3786dc2aea )
2020-12-20 18:36:41 +01:00
rdb
abe3c2bf0b
CMake: Mark all system macOS frameworks as advanced variables
...
It should be extremely unusual to want to change these, and they are just cluttering up the CMake GUI.
2020-12-19 00:33:22 +01:00
rdb
53b8e52343
CMake: Add missing frameworks for linking static FFMpeg on macOS
2020-12-19 00:13:19 +01:00
rdb
ac089658f3
CMake: Fix error flood if OpenSSL is not present
...
Fixes #1013
2020-11-17 22:26:14 +01:00
rdb
aa0a0d6ab4
CMake: better handling of per-config options, esp. in single-config
2020-05-01 19:53:50 +02:00
rdb
6ad9eeb5a1
CMake: generate panda3d.dist-info directory
...
This makes pip recognise that Panda3D has been installed and setuptools recognise the build_apps and bdist_apps commands.
2020-04-30 21:37:35 +02:00
rdb
8cb213ce8a
CMake: fix broken pzip files on Windows
...
It seems piping isn't working properly for binary data
2020-04-13 15:10:28 +02:00
Philip Whitfield
11eae3f1f5
Update CompositeSources.cmake
...
this allows panda to be checked out as a subproject
2020-03-05 22:03:08 +01:00
Leandro (Cerberus1746) Benedet Garcia
5f7809469c
general: removed all WIN32, WIN32_VC and friends
2020-02-05 22:45:03 -07:00
Sam Edwards
1046b122a3
CMake: Fix Interrogate macro sometimes passing -D''
2020-01-22 02:36:41 -07:00
Sam Edwards
d0b6e2275d
CMake: Remove IS(_NOT)_MINSIZE_BUILD
2020-01-21 18:15:28 -07:00
Sam Edwards
ed771e3c8e
doc: Update CMake's README
2020-01-12 12:13:23 -07:00
Sam Edwards
28b85d2f58
CMake: Work around CMake issue 20206
2020-01-10 16:48:59 -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
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
69ff54a3d4
CMake: Break up "GLES" component into OpenGLES1/OpenGLES2
2020-01-07 11:34:34 -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
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
bc152f665c
CMake: Escape $<LINK_ONLY> in exported packages file
2019-12-05 10:34:47 -07:00
Sam Edwards
9512b2274b
CMake: Remove libtar, unneeded downloadertools progs
2019-09-06 04:07:42 -06:00
Sam Edwards
5654e64645
CMake: First batch of improvements per review
...
Addressing feedback per @rdb in GitHub #717
2019-09-06 01:11:50 -06:00
Sam Edwards
13a19109d4
CMake: Remove redundant -DNDEBUG
...
This reverts a42f1a49a4 , which should
have been reverted by faced9aa49 .
2019-08-31 15:07:03 -06:00
Sam Edwards
5fa4af9189
CMake: Rely on GNUInstallDirs to specify install paths
...
This makes multiarch OSes happy as they can dictate that
64-bit libraries go into 'lib64'
2019-08-31 00:48:42 -06:00
Sam Edwards
faced9aa49
CMake: Grab all CMAKE_CXX_FLAGS(_<CONFIG>) -Ddefines for Interrogate
2019-08-30 16:53:45 -06:00
Sam Edwards
a42f1a49a4
CMake: Interrogate needs -DNDEBUG when -DNDEBUG is passed as a flag
...
Some buildsystems (Gentoo's Portage, to be specific) are very
roughshod about how they use CMake, and might bypass the
"configuration types" system altogether, passing their own release
flags instead. This change detects that and ensures that Interrogate
picks up the NDEBUG flag when it's specified manually.
2019-08-29 23:09:28 -06:00
Sam Edwards
cde25670d6
CMake: Remove some uses of CFG_INTDIR
...
It's not install() friendly, so we use $<CONFIG> instead in
some cases. Unfortunately, $<CONFIG> isn't friendly with
add_custom_command's OUTPUT options while CMAKE_CFG_INTDIR
explicitly is, so we use a hybrid approach until CMake gets
its act together.
2019-08-28 17:12:01 -06:00
Sam Edwards
855d217f35
CMake: Update for upstream changes
...
- Miles is gone; remove all references
- pystub is gone; remove all references
- dcparser uses Interrogate extensions properly; don't depend on Python
- stringStream* moved to express from downloader
2019-08-24 18:07:22 -06:00
Sam Edwards
55cfc6c2b9
CMake: Pass _MSC_VER to Interrogate under MSVC
2019-08-24 18:07:07 -06:00
Sam Edwards
fc54251f61
CMake: Fix PandaModules.py not copying
2019-08-23 20:35:50 -06:00
Sam Edwards
afe7ffb964
CMake: Fix several modules' search behavior
...
This makes these modules behave better when encountering
the makepanda thirdparty/ directory.
2019-08-23 16:09:13 -06:00
Sam Edwards
6cb62d1d18
CMake: When zlib isn't available, run_pzip() should copy at build-time
...
This prevents copying to configurations that the user isn't going
to build, and also plays nice with multi-configuration generators
where the configuration isn't known until build-time.
2019-08-22 14:58:43 -06:00
Donny Lawrence
10abe6e216
CMake: Remove usages of string(APPEND ...)
2019-06-27 17:38:18 -06:00