Sam Edwards
6760c1366d
CMake: Update pandatool CMakeLists.txt files for style consistency
2018-10-28 05:08:38 -06:00
Sam Edwards
43142e4e80
pandatool: Delete softegg/softprogs
...
These depend on "SAA" - a Softimage library so long gone I
can't even find references to it on Google.
2018-10-28 04:08:15 -06:00
Sam Edwards
466a68a985
pandatool: Fix several missing includes
2018-10-28 03:16:22 -06:00
Sam Edwards
1520d712d4
CMake: Remove target_use_packages
...
Instead, let's use a PKG::PKGNAME interface library, which simplifies
the linking and also allows us to use imported libraries from
find_package in the future.
2018-09-21 10:17:05 -06:00
Sam Edwards
208ecd6708
Merge branch 'master' into cmake
2018-09-02 16:06:41 -06:00
rdb
57b66ebeaf
Merge branch 'master' into deploy-ng
2018-08-20 19:13:04 +02:00
rdb
044d84c8fd
mayaegg: fix various compilation warnings
2018-08-19 16:53:03 +02:00
Mitchell Stokes
495ce50d84
deploy-ng: NULL terminate readlink() result in deploy-stub
2018-08-18 21:36:45 -07:00
Sam Edwards
2ab77d9a27
Merge branch 'master' into cmake
2018-08-14 21:59:45 -06:00
Mitchell Stokes
49c47164ff
Merge remote-tracking branch 'origin/master' into deploy-ng
2018-08-12 19:58:15 -07:00
rdb
00b5c9d168
assimp: add various config variables, change default winding order
2018-08-12 22:37:39 +02:00
rdb
be19411cf8
Add support for Maya 2018
2018-08-10 23:03:15 +02:00
Mitchell Stokes
e4cf73378c
Merge remote-tracking branch 'origin/master' into deploy-ng
2018-07-15 14:38:05 -07:00
Mitchell Stokes
c33ae8a95f
Merge branch 'master' into deploy-ng
2018-07-15 12:42:51 -07:00
rdb
c6ed4e1836
general: don't cast to regular pointer when returning a PointerTo
...
This is inefficient because it induces an unnecessary ref()/unref() pair when we just need to move the pointer out of the function. Thanks to 23128e4695 , we can now move between related pointer types, making the .p() hack unnecessary.
2018-07-08 21:40:58 +02:00
rdb
66c5d65bf6
maxegg: fix compilation errors with min/max
2018-07-04 19:11:59 +02:00
rdb
886e1c2f16
general: fix many compilation warnings in GCC 8
2018-06-19 00:37:28 +02:00
rdb
754344906c
mayaegg: fix various compiler warnings
2018-06-15 18:04:17 +02:00
Younguk Kim
a6b6f40015
pandatool/maya: Fix compilation error by missing std namespace
2018-06-15 09:22:35 +09:00
Sam Edwards
b2bfb31114
general: Remove `using std::*` from headers
...
Also remove most `using namespace std;` statements. The only one that remains is in py_panda.h.
Closes #350
Closes #335
2018-06-14 16:04:49 +02:00
Sam Edwards
ed2b3017d4
Merge branch 'master' into local/cmake-merge
2018-06-12 16:19:30 -06:00
rdb
ac4b8d1e1d
Fix various compilation warnings
2018-06-11 14:53:25 +02:00
Sam Edwards
c4126942f6
Merge branch 'master' into cmake
2018-06-10 02:29:21 -06:00
Sam Edwards
7790f8429d
general: Fully qualify header references into the std namespace
...
Closes #341
2018-06-07 10:35:12 +02:00
Sam Edwards
592a2e2d68
Merge branch 'master' into cmake
2018-06-06 13:18:12 -06:00
rdb
f990f816b8
maxegg: fix compilation error due to nullptr misuse
2018-06-06 11:27:11 +02:00
Sam Edwards
e2b4353800
general: Replace NULL (and 0 as pointer) with C++11 nullptr
...
Exceptions to this replacement are:
- .c files
- Headers included by a .c file
- stb_image.h
- dr_flac.h
- Strings
- Comments
2018-06-03 16:35:13 -06:00
rdb
e0245d2777
First step towards eliminating `using namespace std;` ( #335 )
2018-06-03 20:32:23 +02:00
rdb
213ae6b029
Change some .T files to new docstring style that were missed
2018-06-01 20:44:30 +02:00
rdb
190c553c57
dtool_config.h: remove some macros for ancient C++ compilers
2018-05-30 23:15:24 +02:00
rdb
db5dd98d33
general: further warning fixes, use -Wno-unused-variable if NDEBUG
...
Disabling unused variable checking is needed in NDEBUG builds because of the heavy use of temporary variables in asserts.
2018-05-30 22:51:04 +02:00
rdb
6b726fa697
general: fix various compiler warnings and issues exposed thereby
2018-05-30 11:09:35 +02:00
Sam Edwards
6efb07de93
Merge branch 'master' into cmake
2018-05-14 19:09:14 -06:00
Sam Edwards
c81229c1a8
pfmprogs: Rename config_pfm to config_pfmprogs
2018-05-14 02:36:42 -06:00
Sam Edwards
52e7c952b3
putil: Rename config_util to config_putil
2018-05-14 02:36:42 -06:00
Sam Edwards
87c11d8018
pstatclient: Rename config_pstats to config_pstatclient
2018-05-14 02:36:42 -06:00
rdb
d00109452a
deploy-ng: set __file__ for all frozen modules (using import hooks)
...
Many thirdparty libraries rely on __file__ being set properly, for example to be able to locate data files, so it is easiest to just set this to something remotely sensible (like the executable path).
2018-05-13 23:37:40 +02:00
Mitchell Stokes
ebe2588a50
Merge branch 'master' into deploy-ng
2018-05-06 11:21:13 -07:00
Sam Edwards
95785407a3
CMake: General whitespace fixes
...
- Remove trailing whitespace from ends of lines
- Convert tabs to (two) spaces
2018-04-20 02:30:04 -06:00
Sam Edwards
1fcb8a2748
CMake: Skip optional subdirectories in a cleaner way
...
Instead of wrapping the whole subdirectory's CMakeLists in
a gigantic if block, we use if(NOT HAVE_FOO) + return()
This is tidier since it keeps the indentation generally consistent
across all CMakeLists files.
2018-04-20 02:26:47 -06:00
Sam Edwards
56a6e6a80a
Merge remote-tracking branch 'origin/master' into cmake
2018-04-20 01:57:46 -06:00
Sam Edwards
d642ca4fa0
CMake: Change linkages to go through metalibs
...
This changes the target_link_libraries() declarations so they only
go directly to a component library if it's in the same metalib.
If it's outside of the metalib, the correct thing to do is link against
the metalib. CMake takes care of the transitive linking for us, so
there isn't actually any big change here.
2018-04-15 01:10:21 -06:00
rdb
607af9ff49
flt: fix compile error on macOS 10.6 (which has no strnlen)
2018-04-10 15:29:43 +02:00
rdb
742c143a01
deploy-ng: support logging via log_filename (and log_append) setting
2018-04-08 17:57:48 +02:00
rdb
b0cece7faf
Merge branch 'master' into deploy-ng
2018-04-08 15:44:32 +02:00
rdb
e9ae7dcc40
Use vector_uchar instead of string for binary network/file data
...
This distinction allows us to better support Python 3, since it will raise exceptions when trying to put arbitrary binary data in a str object.
This also adds some convenience functions for efficiently initializing a Datagram or PTA_uchar from a vector_uchar.
2018-04-02 23:17:14 +02:00
rdb
f535a641e4
Merge branch 'master' into deploy-ng
2018-02-27 20:53:28 +01:00
Sam Edwards
84e7539f99
Merge branch 'master' into cmake
2018-02-17 23:35:19 -07:00
Sam Edwards
e15cea4331
general: Remove more unnecessary +x UNIX modes
2018-02-07 11:29:48 -07:00
Sam Edwards
eda119dac4
Merge branch 'master' into cmake
...
# Conflicts:
# .travis.yml
2018-02-04 17:12:51 -07:00
rdb
2c35d7a8e9
deploy-ng: changes to make macOS app bundles work correctly
2017-12-21 15:49:16 +01:00
rdb
a512c44366
deploy-ng: fix Windows codec error when console codepage is 0
2017-12-21 14:09:09 +01:00
rdb
f703fd51ed
deploy-ng: allow deploy-stub to set MAIN_DIR via blobinfo
2017-12-21 12:25:17 +01:00
Mitchell Stokes
fcb1d9308b
Merge branch 'master' into deploy-ng
2017-11-25 14:58:25 -08:00
rdb
dac08490ee
deploy-ng: implement getting executable path on Linux and macOS
2017-11-24 23:43:15 +01:00
rdb
409b241b40
Fix compile errors
2017-11-24 22:38:51 +01:00
rdb
d755de849c
deploy-ng: new extensible blob format with PRC configurability
2017-11-24 21:48:18 +01:00
rdb
da2ad0f0bc
deploy-ng: default to ACP if console codepage codec wasn't frozen
...
This is necessary because when Python is initialized, it takes the codec to use from GetConsoleCP() and GetConsoleOutputCP() without bothering to check whether the given codec is available. However, in most cases, the console codepage will be the same as the ANSI codepage (ie. GetACP()) which is always supported by Python via the 'mbcs' codec.
So what we do is we check whether the console codepage is frozen in, and if not, we set the console codepage to the ANSI codepage and set the stdin/stdout/stderr encoding to 'mbcs'.
This is still not a perfect solution because the ACP may not be able to encode all characters that the application is printing, which would still result in unexpected errors. Ideally, we'd pull in Python 3.6's _io._WindowsConsoleIO class, which bypasses this whole mess by directly using the wide-character Windows APIs to write to the console.
2017-11-22 19:33:17 +01:00
rdb
4b4e11c085
egg-palettize: implement mirror and border-color wrap modes
...
Closes : #192
2017-11-11 23:59:47 +01:00
rdb
fba41dafae
Merge remote-tracking branch 'origin/master' into deploy-ng
2017-10-26 21:23:49 +02:00
rdb
a7d68a8412
egg2bam: fix external refs not being resolved relative to egg file
2017-10-26 17:36:43 +02:00
rdb
2026879ac9
deploy-ng: change format of blob to be easily mappable by deploy-ng
2017-09-19 23:11:59 +02:00
rdb
1c018f5bdb
deploy-ng: fixes for FreeBSD
2017-09-19 22:03:44 +02:00
Sam Edwards
4fdcaef59f
CMake: Build DXF programs
2017-08-07 18:36:21 -06:00
Sam Edwards
cbbfbfd0bb
CMake: Build FLT programs
2017-08-05 23:09:45 -06:00
Mitchell Stokes
2302f251b1
Merge branch 'master' into deploy-ng
2017-04-04 21:27:09 -07:00
rdb
f7af155e93
Compile with VS 2015 Express, build assimp on Windows
2017-04-03 13:57:40 +02:00
sean5470
019700cb1a
Maya 2017 support
...
Added entries to compile Maya 2017 plugins.
2017-04-03 02:27:40 +02:00
Sam Edwards
02c8d26150
CMake: Don't depend on metalibs
...
The metalibs may be phased out and should really be thought of as
a user convenience for the time being.
2017-03-08 01:35:25 -07:00
Mitchell Stokes
efd25e98a5
deploy-stub: Fix memory leaks
2017-01-28 23:35:00 -08:00
Mitchell Stokes
eec5c997c0
deploy-ng: Use length-prefixed strings for writing modules to deploy-stub
...
This wastes less space than always using 256 characters for every module
name.
2017-01-19 19:43:11 -08:00
Sam Edwards
f1da5ce92f
Merge branch 'master' into cmake
2017-01-09 17:59:22 -07:00
rdb
f8580d753a
Merge branch 'master' into deploy-ng
2017-01-09 23:53:56 +01:00
rdb
4ed199cece
Fix various compile warnings and a few code consistency issues
2017-01-09 20:36:53 +01:00
rdb
31136124c7
deploy-ng: fix issues with Python 3 / Windows / Unicode, add deploy-stubw
2017-01-06 01:42:00 +01:00
rdb
bae19a203b
deploy-ng: changes to make it work on Windows
2016-12-08 13:21:10 +01:00
rdb
0002030e86
deploy-ng: fix missing Py_DecodeLocale definition error
2016-12-06 02:32:08 +01:00
rdb
4335e3759a
Update Py_FrozenMain to work with Python 3.2
2016-12-06 02:14:39 +01:00
rdb
f001bd20d7
deploy-ng: fix issues with Mac/Python 2 build
2016-12-05 18:55:04 -05:00
Sam Edwards
ae10462b58
cmake: Clean up some pandatool link hacks.
2016-12-03 15:59:59 -08:00
Sam Edwards
e3fcacb1f7
Merge branch 'master' into cmake
2016-11-30 19:21:50 -08:00
Mitchell Stokes
aa6e722941
Create experimental yapdt (Yet Another Panda3D Deployment Tool)
...
This uses FreezeTool and a new deploy-stub binary to create frozen
applications without needing a compiler when running the tool. This tool
is for experimenting with deployment options and is currently inflexible
and hacky.
2016-11-08 19:40:30 -08:00
rdb
29411f5e14
Merge remote-tracking branch 'origin/release/1.9.x'
2016-10-31 22:32:39 +01:00
rdb
c822fb57af
Changes suggested by liuzhengcai to fix 3dsmax 2014 build
2016-10-31 20:47:50 +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
758cd523e2
Don't use assimp/ prefix when including assimp files
2016-10-27 12:37:00 +02:00
rdb
1bd96685bc
Allow passing - as filename to egg tools to read from stdin
2016-10-24 17:19:07 +02:00
rdb
62c008602e
Merge branch 'release/1.9.x'
2016-10-20 11:14:37 +02:00
rdb
34b8e0844e
Fix compile errors in unicode conversion in max exporter
2016-10-20 11:13:44 +02:00
rdb
a56520d055
Drop support for pre-5.0 Maya versions
2016-10-12 23:50:28 +02:00
rdb
4381412d23
Merge branch 'release/1.9.x'
2016-09-28 00:14:21 +02:00
rdb
aa74caacbe
Fix inoperative -tbn/-tbnall/-tbnauto options in egg-optchar
2016-09-27 21:35:38 +02:00
rdb
47388b0dbc
Separate out CPython calls from core libs; eliminate need for pystub
2016-07-20 14:30:41 +02:00
rdb
8381118a97
Assorted tweaks and compile warning fixes
2016-07-14 12:54:39 +02:00
rdb
365e1d53ef
Merge branch 'release/1.9.x'
...
Conflicts:
makepanda/makepandacore.py
panda/src/cocoadisplay/cocoaGraphicsStateGuardian.mm
2016-06-27 01:18:02 +02:00
rdb
46147e9a09
Maya 2016.5 on 1.9 branch; fix Maya 2016.5 build on Mac OS X
2016-06-27 01:12:51 +02:00
Sam Edwards
fffd105f96
Merge branch 'master' into cmake
2016-06-25 19:12:14 -07:00
rdb
9963fe2c3c
Fix a couple of compile warnings, reduce unnecessary includes
2016-06-23 22:59:50 +02:00
Chris Brunner
78ab82b88e
support for maya 2016.5
2016-06-22 16:08:05 -07: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