コード例 #1
0
ファイル: nqbp.py プロジェクト: johnttaylor/colony.apps
#!/usr/bin/python
"""Invokes NQBP's mk.py script"""

import os
import sys

# MAIN
if __name__ == '__main__':
	# Make sure the environment is properly set
	NQBP_BIN = os.environ.get('NQBP_BIN')
	if ( NQBP_BIN == None ):
	    sys.exit( "ERROR: The environment variable NQBP_BIN is not set!" )
	sys.path.append( NQBP_BIN )

	# Find the Package & Workspace root
	from nqbplib import utils
	utils.set_pkg_and_wrkspace_roots(__file__)

	# Call into core/common scripts
	import mytoolchain
	from nqbplib import mk
	mk.build( sys.argv, mytoolchain.create() )

コード例 #2
0
        exit( "FAILED test" )
    utils.pop_dir()
        


#------------------------------------------------------------------------------
# Make sure the environment is properly set
NQBP_BIN = os.environ.get('NQBP_BIN')
if ( NQBP_BIN == None ):
    sys.exit( "ERROR: The environment variable NQBP_BIN is not set!" )
sys.path.append( NQBP_BIN )

# Find the Package & Workspace root
from nqbplib import utils
from nqbplib import my_globals
utils.set_pkg_and_wrkspace_roots(__file__)


#------------------------------------------------------------------------------
# MAIN ENTRY POINT....
#

if ( os.path.isdir( '_posix' ) ):
    run_test( '_posix' )
    print

if ( os.path.isdir( '_posix64' ) ):
    run_test( '_posix64' )
    print

if ( os.path.isdir( '_cpp11' ) ):
コード例 #3
0
    # Set quite & verbose modes
    utils.set_verbose_mode(args['-v'])

    # Default the projects/ dir path to the current working directory
    ppath = os.getcwd()

    # Project dir path is explicit set
    if (args['--path']):
        ppath = args['--path']

    # Set which build engine to use
    build_script = args['-x']

    # Get superset of projects to build
    utils.push_dir(ppath)
    utils.set_pkg_and_wrkspace_roots(ppath)
    pkgroot = NQBP_PKG_ROOT()
    all_prjs = utils.walk_file_list(build_script, ppath)

    # Get project list from a file
    if (args['--file']):
        try:
            inf = open(args['--file'], 'r')

            # process all entries in the file
            for line in inf:

                # drop comments and blank lines
                line = line.strip()
                if (line.startswith('#')):
                    continue