rdb
3598222977
Merge branch 'release/1.10.x'
2020-05-05 16:47:38 +02:00
rdb
68d094dba4
dtoolutil: fix buffer overrun on FreeBSD extracting long cmdline args
...
This happens when compiling with CMake, which passes very long command-lines.
2020-05-05 13:20:20 +02:00
rdb
d403b16249
dtoolutil: fix compile warnings on Windows
2020-04-13 12:33:02 +02:00
Leandro (Cerberus1746) Benedet Garcia
5f7809469c
general: removed all WIN32, WIN32_VC and friends
2020-02-05 22:45:03 -07:00
Leandro Benedet Garcia
71dfc51f8a
general: Changed macros and definitions for the engine to compile with MinGW ( #793 )
2019-12-02 09:21:01 -07:00
Sam Edwards
2f97b76b42
dtoolutil: Overhaul ExecutionEnvironment's dtool path hunting code
...
The main change here is it uses an array of expected filenames,
which optionally itself feeds off of a compiler definition, rather
than hardcoding the expected filenames straight into the search
code.
The other change is this code is omitted when building statically.
2019-06-02 01:34:54 -06:00
Sam Edwards
f21830d2a8
dtoolutil: Fix UB when musl's dlinfo(RTLD_DI_LINKMAP) fails
2019-05-29 17:27:55 -06:00
Sam Edwards
83c10d1a0b
dtoolutil: Fix UB when musl's dlinfo(RTLD_DI_LINKMAP) fails
2019-05-29 17:27:16 -06: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
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
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
Psychotropos
3029780f88
dtoolutil: Don't assume RTLD_DI_ORIGIN and RTLD_SELF are present, fall back to using RTLD_DI_LINKMAP if necessary
...
Closes #334
2018-05-30 11:04:12 +02:00
rdb
7c1dd4050b
android: change assets mount dir, point binary path to .apk
...
The binary path we get from /proc/self/exe isn't very useful; the path to the .apk is barely more useful but it still doesn't make a whole lot of sense. It might make more sense to set it to the path of the native .so that is being loaded by NativeActivity.
2018-01-29 19:44:39 +01:00
rdb
2b537d2263
Use XDG basedir spec for model-cache-dir (now $XDG_CACHE_HOME/panda3d which is usually $HOME/.cache/panda3d)
...
User appdata directory on posix is now $XDG_DATA_HOME (usually $HOME/.local/share).
Common appdata dir is /usr/share (or /usr/local/share on FreeBSD)
2017-07-03 22:27:37 +02:00
deflected
f6e2e2ea05
Fix compile issue on FreeBSD 11
2017-02-20 15:10:15 +01:00
rdb
ba4c38112c
Merge remote-tracking branch 'origin/release/1.9.x'
2016-03-25 17:22:00 +01:00
rdb
ce947adf8f
Replace uses of "delete" with "delete[]" where appropriate
2016-03-24 23:56:12 +01:00
tobspr
0fcfb8e372
New file headers, new comment style
2016-02-17 17:47:48 +01:00
rdb
18ad6d1543
Replace many int params with size_t params where appropriate, and work towards fixing type conversion warnings
2015-10-07 18:58:26 +02:00
rdb
d9342043b0
Deprecate pandac.PandaModules and genPyCode, move extensions to panda3d/, clean up imports and deprecated behaviour
2015-06-28 13:55:31 +02:00
rdb
a7d56f0e65
Fix compilation error when compiling Python without threads
2015-06-21 17:41:28 +02:00
rdb
f624cdcac0
Fix various Mac OS X bugs and build issues
2015-03-25 19:43:21 +01:00
deflected
2dd1b5e3b3
dtool: Fixed building under FreeBSD
...
There is missing define in dtoolutil which
prevent building of dtool under FreeBSD.
Signed-off-by: deflected <deflected@github>
2015-02-20 11:58:28 +02:00
rdb
f68e8cdee4
More reliable and hopefully less crashy way of determining libp3dtool location
2015-01-21 20:32:48 +01:00
rdb
3ed7ae0bd9
Oops; fix memory leak
2014-10-10 13:54:53 +00:00
rdb
902bedc314
Fix Python 3 crash on Windows, and fix some Python 3-related compile errors
2014-10-10 13:45:05 +00:00
rdb
fbc3564bf9
More work on Android port
2014-10-08 15:09:25 +00:00
rdb
eb6eeb6d02
fix compile error
2013-02-17 22:53:48 +00:00
rdb
441666fb79
Compile with Python 3.3
2013-02-15 07:57:20 +00:00
David Rose
c88c480b6f
expose more "environment" variables on Windows
2012-09-17 19:29:06 +00:00
David Rose
c6296add0b
fix python crash at loader.load_sync()
2011-09-09 17:16:40 +00:00
David Rose
0c2ab823d3
robustify low-level Python accessors
2011-09-07 16:03:01 +00:00
David Rose
59ec701a26
build once more with the Tau profiler
2011-09-06 17:29:30 +00:00
David Rose
7667709357
support windows unicode filenames
2011-08-29 18:56:32 +00:00
rdb
c7bf95c53a
include dlfcn.h on FreeBSD for dlopen
2011-03-02 20:35:09 +00:00
rdb
124942a13b
Finally fix those darn Maya crashes
2010-12-19 07:56:41 +00:00
rdb
304dd37afa
Don't return if /proc couldn't be read
2010-11-26 21:55:57 +00:00
rdb
6fab399549
Much better FreeBSD support, bugfix for Linux, and restructuring of the code
2010-11-26 21:36:00 +00:00
rdb
760839789e
Let's try and rely less on procfs
2010-11-06 14:22:50 +00:00
rdb
5cbb505e00
Heh heh... look at that... what was that ampersand doing there?
2010-06-07 11:58:02 +00:00
rdb
bd5e89e4a5
Use sysctl on FreeBSD
2010-04-25 13:19:55 +00:00
rdb
f29d6d3dc7
Do it better, faster
2010-03-14 14:47:52 +00:00
rdb
4c623bf8a2
I overlooked one ABI-compat fix for OSX
2010-03-14 14:34:44 +00:00
rdb
d668a53639
More about ABI compatibility:
...
* Fixed the bug on non-Windows where the incorrect libraries are located
* OSX dylibs now have compatibility_version and current_version set
2010-03-14 11:48:08 +00:00
David Rose
ed32f2264e
avoid low-level case-sensitive issues
2009-12-31 19:58:36 +00:00
David Rose
4acb963caf
fix missing include
2009-12-08 20:05:32 +00:00
rdb
160f208469
Fix issues on Linux and OSX with libraries being located incorrectly
2009-12-06 12:59:49 +00:00
David Rose
5c4dac4493
libp3dtool_d
2009-08-20 23:30:05 +00:00
David Rose
41af3c7959
from_os_specific
2009-07-29 23:41:20 +00:00
David Rose
ed15b2bec3
build on optimize 1
2009-07-29 23:37:56 +00:00