An Scons library which wraps interface of various compilers in to one universal.
Project description
Description
An Scons library which wraps interface of various compilers in to one universal. Nucleotide allow us to make Scons files avoiding to explicitly state: platform, compiler, compiler’s version.
Quick example:
Next line set RTL:
settings.accumulate( 'RTL', { 'type': 'static', 'configuration' : 'debug' } )
and replace:
if( os.platform == 'win32' ):
if( retrieve_compiler_name() == 'msvc' ):
flag = 'M'
if( 'dynamic' == retrieve_RTL_type() ):
flag += 'D'
if( 'static' == retrieve_RTL_type() ):
flag += 'T'
if( 'debug' == retrieve_configuration_type() ):
flag += 'd'
if( 'release' == retrieve_configuration_type() ):
pass
env.append( CPPFLAGS, [ flag ] )
if( retrieve_compiler_name() == 'cygwin' ):
env.append( LINKFLAGS, '-static' )
if( retrieve_compiler_name() == 'mingw' ):
env.append( LINKFLAGS, '-static' )
else:
if( os.platform == 'linux' ):
if( retrieve_compiler_name() == 'gcc' ):
env.append( LINKFLAGS, '-static' )
... ... ...
Install:
Start command line and type: pip install nucleotide
Want to see more:
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
nucleotide-0.1.4.8.tar.gz
(30.9 kB
view hashes)
Built Distribution
nucleotide-0.1.4.8-py3-none-any.whl
(100.7 kB
view hashes)
Close
Hashes for nucleotide-0.1.4.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 23883adc7fa378e9069be31e5aee28613129061063314de3038a38683421e7f2 |
|
MD5 | 3012f2765cd680883a9ea120bdedcb2b |
|
BLAKE2b-256 | d805645468612a7206ab14f5edca64bacd55664892ca6c9f273335c0d544bde0 |