Kp
1e28cb52e3
Remove explicit assignment of subprocess.Popen(executable)
...
Windows systems get confused and fail to find the process if the
executable name is assigned.
2016-01-09 16:38:15 +00:00
Kp
0a2ef79242
Remove close_fds=True from StaticSubprocess
...
Per the documentation, on Linux, the default is true. On Windows,
setting it to true causes a Python exception because Windows relies on
disabling inheritance as a hack to close all descriptors, but
inheritance needs to be enabled to capture the output of the child
process.
Reported-by: Mako88 <https://github.com/dxx-rebirth/dxx-rebirth/issues/173 >
Fixes: bb3f414128
("Cache scons subprocess calls")
2016-01-03 20:21:36 +00:00
Kp
ba17de4cd5
Add -Wuninitialized to default warning options
2016-01-03 20:21:35 +00:00
Kp
26e948d5f1
Uninline namespace dsx
2015-12-13 18:00:49 +00:00
Kp
dc8c0323d8
Uninline namespace dcx
2015-12-13 18:00:49 +00:00
Kp
30cb6d8c8d
Improve dcx/dsx comments
...
Move the boilerplate up onto the outer namespace line. Decorate each
collision with a comment stating its purpose, so that compiler error
output echoes the type of collision.
2015-12-13 18:00:48 +00:00
Kp
80ea17a61c
Convert OSError to StopError for failed tool version checks
2015-12-11 03:39:40 +00:00
Kp
69c5a79058
Use inline namespace dcx for common/2d
2015-12-05 22:57:23 +00:00
Kp
60e6c23ccc
Always pass tuple for argument prefix list
...
Fixes: dd59be7163
("Cache various SConstruct temporaries")
2015-12-04 03:36:33 +00:00
Kp
ff51ff5474
Copy sdl-config CPPDEFINES before modification
...
Fixes: 6111e5adbf
("Allow configuring max joysticks at build time")
2015-12-04 03:36:32 +00:00
Kp
dd59be7163
Cache various SConstruct temporaries
...
This started as a project to make SConstruct take less time on an empty
build. Unforunately, most of the major gains lie elsewhere and require
deeper changes to the build system. These changes do not help much, but
they are better than nothing.
2015-12-03 03:26:49 +00:00
Kp
3528acb78d
Add $DXX_EFFECTIVE_SOURCE to check_header_includes dependencies
2015-11-24 04:05:35 +00:00
Kp
a2b4dcbd9c
Use $DXX_EFFECTIVE_SOURCE for quiet header check builds
2015-11-24 04:05:35 +00:00
Kp
7b4eeb8c0c
Suppress debug info for check_header_includes outputs
2015-11-17 03:31:21 +00:00
Kp
d36e86f8bc
Factor out some Scons None assignments
2015-11-14 18:17:22 +00:00
Kp
0c86fd507d
Fix mingw32 build
...
Fixes: 38df160341
("Create platform_settings, env on first use")
2015-11-07 21:56:00 +00:00
Kp
6111e5adbf
Allow configuring max joysticks at build time
2015-11-01 21:15:40 +00:00
Kp
139f2aaa44
Reduce scope of LazyObjectConstructor.__strip_extension
2015-11-01 21:15:39 +00:00
Kp
0a041018c8
Let register_cpp_output_targets see check_header_includes
2015-11-01 21:15:39 +00:00
Kp
83f1a94ec4
Move __shared_header_file_list to create_header_targets
2015-11-01 21:15:39 +00:00
Kp
afb1fc3383
Remove special-case for profiler support
...
Stackable build profiles allow this to be specified without a special
case in SConstruct.
2015-11-01 21:15:39 +00:00
Kp
f5dfa1a3b2
Inline banner()
2015-11-01 21:15:39 +00:00
Kp
38df160341
Create platform_settings, env on first use
2015-11-01 21:15:39 +00:00
Kp
b35ef80a0f
Reduce global lookups
2015-11-01 21:15:38 +00:00
Kp
bab5f5f1be
Reduce env lookups
2015-11-01 21:15:38 +00:00
Kp
e86e1a882a
Combine adjacent env.Append calls
2015-10-29 03:01:42 +00:00
Kp
fd51188e57
Simplify DXXCommon instance counter
2015-10-29 03:01:42 +00:00
Kp
9c4a4e3cf8
Remove unnecessary __init__ methods
2015-10-28 02:44:36 +00:00
Kp
def268faf9
Combine lazy object caches
2015-10-28 02:44:36 +00:00
Kp
edea687627
Remove HAVE_STRUCT_TIMEVAL
...
SConstruct defines it for all platforms. It is only false on Mac OS 9,
which is no longer supported.
2015-10-27 03:04:49 +00:00
Kp
e7c65dbc3f
Use property for LinuxPlatformSettings ogllibs
...
It is only called once per instance, so caching it as an instance
value is not helpful. Change it to a property so that __init__ can be
removed.
2015-10-27 03:04:49 +00:00
Kp
a4eda5e6f7
Include commented tool versions in sconf tests
...
Encourage SCons not to reuse test results when the printed version
strings have changed.
2015-10-24 03:13:11 +00:00
Kp
4951cb0b8f
Fix build break if no git and extra_version=''
2015-10-18 21:01:20 +00:00
Kp
927b14848f
Add optional cpp output targets
2015-10-18 21:01:18 +00:00
Kp
091bcbec26
Support skipping configure/compile stages
2015-10-18 21:01:18 +00:00
Kp
2a1e07adfa
Detect failure to git ls-files
for check_header_includes
2015-10-13 02:43:25 +00:00
Kp
d3198ab0bd
Use env.Textfile to generate stub check_header_includes.cpp
2015-10-13 02:43:24 +00:00
Kp
365340560d
Cache result of checking for .git
2015-10-13 02:43:24 +00:00
Kp
c1b1da61e5
Support unusual values of CPP define SHAREPATH
...
Use the full CPP define quoting function instead of just hoping
sharepath is clean.
2015-10-13 02:43:24 +00:00
Kp
2e17c03c9e
Remove unnecessary list comprehension for vers_id.cpp
...
It was a convenience for binding 's' to one value, but that can be
rewritten without the comprehension.
2015-10-13 02:43:24 +00:00
Kp
a71e886fce
Add scons option to skip pch optimization
...
Add option to compute indirect includes even when not necessary, since
indirect includes influence the inclusion count shown in the comments.
Enabling this option makes SCons work harder for the same output binary.
It should only be used by developers who want to see precise file
inclusion counts.
2015-10-09 02:46:10 +00:00
Kp
4041e3ba53
Test whether compiler can use PCHs it generates
...
Current gcc requires a non-PIE cc1plus for working PCH support. If the
chosen compiler is PIE, it will succeed in building the PCH, then fail
when trying to use it.
2015-10-03 17:17:49 +00:00
Kp
f37e55737c
Shorten secondary calls to Git.pcall
2015-09-29 02:41:22 +00:00
Kp
433b80c0b3
Reduce copying of pkg-config result
2015-09-29 02:41:22 +00:00
Kp
e2d16844a8
Fix handling of pch_cpp_assume_unchanged
2015-09-26 21:17:14 +00:00
Kp
f3470cef5f
Show tool versions in sconf output
2015-09-26 21:17:13 +00:00
Kp
51a86c62ef
Hide undocumented options
...
If no help text is defined, hide the associated option from --help.
2015-09-26 21:17:13 +00:00
Kp
0b242833f5
Always set StaticSubprocess.stdout to PIPE
2015-09-26 21:17:13 +00:00
Kp
63dd2656ed
Document some SConstruct tests
2015-09-26 21:17:12 +00:00
Kp
76b94de1de
Add commented out hook for warning on valptridx exceptions
2015-09-26 21:17:12 +00:00