Skip to content

An Scons library which wraps interface of various C++ compilers in to one universal.

License

Notifications You must be signed in to change notification settings

dmilos/nucleotide

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Wrap all C++ compilers in to the one.

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:

About

An Scons library which wraps interface of various C++ compilers in to one universal.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published