Commit Graph

42 Commits

Author SHA1 Message Date
rdb 9da7988909 CMake: fix pandac/PandaModules.py to match makepanda's 2020-09-13 16:18:02 +02:00
Sam Edwards 9645aaee07 CMake: Fix generated pandac.PandaModules on Py2
Python 2 doesn't use the fully qualified module name in
its ImportError output; only the local name. Test for that.
2019-09-18 01:13:33 -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 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 e3cd658642 CMake: C++ code in direct.distributed should be an extension
This code is so heavily dependent on Python (and makepanda
doesn't even build it into libp3direct) that we shouldn't
even try to put it in the libp3direct library ourselves.
2019-07-07 16:09:52 -06:00
Sam Edwards 49865c103a CMake: Modify install_python_package() so it keeps the build-dir copy up-to-date too 2019-05-01 23:44:47 -06:00
Sam Edwards 65d11a4cfa CMake: Fix pandac.PandaModules generation 2019-04-27 22:45:51 -06:00
Sam Edwards b3f5c38ef3 CMake: Remove references to "panda3d" from Interrogate 2019-04-14 23:10:49 -06:00
Sam Edwards 6097d34ead CMake: Neatly format everything for readability and consistency 2019-04-14 22:37:18 -06:00
Sam Edwards 211ac763d1 CMake: Update the list of pure-Python packages under direct 2018-12-29 02:55:01 -07:00
Sam Edwards bddd7c1b4b CMake: Generate/install exported target sets 2018-12-27 17:39:22 -07:00
Sam Edwards 99fee1a64d CMake: Assign COMPONENT and EXPORT to all targets 2018-12-06 17:48:44 -07:00
Sam Edwards 368cdc2802 CMake: Move pandac.* generation to be part of direct 2018-12-01 14:43:41 -07:00
Sam Edwards 90d3b29767 CMake: Sort direct/dtool/panda/pandatool subdirectories
This forces us to make sure the inter-target dependencies work
in an order-independent way.
2018-10-10 20:16:32 -06:00
Sam Edwards 53920e7aee CMake: Move __init__.py generation to Python.cmake
This also allows us to generate a suitable __init__.py for fixing
up PATH and/or __path__ on platforms that need it to properly
import Python extension modules.
2018-09-28 21:24:26 -06:00
Sam Edwards 2e2a8eae98 CMake: Byte-compile all .py files when building Panda
This also involves the creation a new include: Python.cmake

This file will contain utility functions for building Python
modules and installing Python packages.
2018-09-28 17:15:56 -06:00
Sam Edwards fa1e1a2e63 CMake: Tidy up installation directory
Don't install "object-Configuration/" directories when
using metalibs, and also put .dll files in bin/ on Windows.
2018-09-01 11:07:55 -06:00
Sam Edwards 67e6c4299e CMake: Reorganize Python installation in direct/CMakeLists.txt 2018-08-19 17:04:29 -06:00
Psychotropos fef2fff1f1 cmake: Actually install the p3direct library during the CMake install process 2018-06-13 02:05:32 -06:00
Sam Edwards 2e98b68e3b CMake: Make directbase/pandabase INTERFACE libraries
They export no code, and are really only used to contain several
preprocessor macros relevant to their respective packages. On
Windows, they're a problem: MSVC doesn't generate a .lib when
compiling a .dll that exports nothing.
2018-06-10 02:29:49 -06:00
Sam Edwards a088e6aba5 CMake: Autogenerate metalib init files 2018-06-10 02:29:35 -06:00
Sam Edwards 7e4f9b4c8e CMake: Make p3directbase a component library 2018-06-01 02:56:43 -06:00
Sam Edwards d0ced03ffd CMake: Build direct.motiontrail
This covers pretty much all of direct, except for directd.
2018-05-29 22:57:28 -06:00
Sam Edwards 4b70cb162e CMake: Don't metalib p3distributed when not built 2018-05-29 22:47:28 -06:00
Sam Edwards 4cec331722 CMake: Add support for building metalibs as metalibs 2018-04-18 14:42:56 -06:00
Sam Edwards 411e0ee93f CMake: Use interrogate's -import instead of linking directly 2018-04-05 16:11:59 -06:00
Sam Edwards a89059ec98 CMake: Copy in the "direct" tree to the build directory 2018-02-07 18:59:44 -07:00
Sam Edwards e204c88401 CMake: Put an __init__.py in BUILDDIR/direct/ to point back to direct/src/ 2016-12-26 15:01:04 -07:00
Sam Edwards 166ac72b96 CMake: Only define Python modules when HAVE_PYTHON is on. 2015-11-11 13:53:34 -08:00
Sam Edwards 7f9e25fb84 CMake: Move pandac compatibility-shim generation to a more sensible place. 2015-11-09 16:42:03 -08:00
Sam Edwards 9b98df1ef5 CMake: Update for recent changes. 2015-02-11 10:55:36 -08:00
Sam Edwards 0d13247721 Merge branch 'cmake' into cmake-proper-interrogate
Conflicts:
	cmake/macros/Interrogate.cmake
	panda/src/express/CMakeLists.txt
	panda/src/ode/CMakeLists.txt
2014-07-26 19:12:22 -07:00
Sam Edwards 3ed813f42f cmake: Fix typo in direct's install directive. 2014-04-28 16:22:50 -06:00
Sam Edwards 841f3b8a49 CMake: Link Interrogate modules against 'core'. 2014-03-30 04:51:38 -06:00
Sam Edwards 493dde680a Merge branch 'cmake' into cmake-cfs-install
Conflicts:
	direct/src/autorestart/CMakeLists.txt
	dtool/src/interrogate/CMakeLists.txt
	dtool/src/interrogatedb/CMakeLists.txt
	panda/CMakeLists.txt
	panda/src/express/CMakeLists.txt
2014-02-18 08:13:40 -07:00
Sam Edwards e2a03d6435 CMake: 'direct' depends on 'panda' 2014-02-08 17:51:14 -07:00
Sam Edwards 9fc2e6829b CMake: Generate and install 'pandac' for backwards-compatibility. 2014-02-07 14:30:46 -07:00
Sam Edwards 6c5dcb0a75 CMake: Install 'direct'. 2014-02-07 13:36:03 -07:00
Sam Edwards ff62637101 CMake: Build+Interrogate p3showbase. 2014-02-04 19:09:33 -07:00
Sam Edwards 2898f4da33 CMake: Get direct's 'interval' component library to build+Interrogate. 2014-02-04 16:42:43 -07:00
Sam Edwards 89797d78d6 CMake: Work on direct; get dcparse, dcparser, deadrec, directbase, distributed to build+Interrogate. 2014-02-04 14:58:52 -07:00
Sam Edwards 918e2eed66 CMake: Begin work on direct, get autorestart to compile. 2014-02-04 11:28:42 -07:00