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
044d84c8fd
mayaegg: fix various compilation warnings
2018-08-19 16:53:03 +02:00
Sam Edwards
2ab77d9a27
Merge branch 'master' into cmake
2018-08-14 21:59:45 -06: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
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 23128e4695d2e8581551be161f20cf7d53ca87b5, 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
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
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
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
4b4e11c085
egg-palettize: implement mirror and border-color wrap modes
...
Closes : #192
2017-11-11 23:59:47 +01:00
rdb
a7d68a8412
egg2bam: fix external refs not being resolved relative to egg file
2017-10-26 17:36:43 +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
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
Sam Edwards
f1da5ce92f
Merge branch 'master' into cmake
2017-01-09 17:59:22 -07:00
rdb
4ed199cece
Fix various compile warnings and a few code consistency issues
2017-01-09 20:36:53 +01: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
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