Module Expr Str Import alias Import alias ImportFrom alias ImportFrom alias Assign NameStore Str Assign NameStore ListLoad Str Str Str Assign NameStore NameLoad Assign NameStore Str Assign NameStore Num Assign NameStore Num FunctionDef arguments args NameParam defaults body Expr Str TryExcept body Assign NameStore Call AttributeLoad NameLoad attr ListLoad Str Str keyword NameLoad Assign NameStore Call AttributeLoad SubscriptLoad Call AttributeLoad NameLoad attr Index Num attr Str If BoolOpOr CompareGt Call NameLoad SubscriptLoad NameLoad Index Num NameLoad BoolOpAnd CompareEq Call NameLoad SubscriptLoad NameLoad Index Num NameLoad CompareGtE Call NameLoad SubscriptLoad NameLoad Index Num NameLoad body Return NameLoad orelse Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num Return NameLoad handlers ExceptHandler type TupleLoad NameLoad AttributeLoad NameLoad attr body Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore Str If CompareNotEq SubscriptLoad NameLoad Index Str Str body AugAssignAdd NameStore Call AttributeLoad Str attr SubscriptLoad NameLoad Index Str If SubscriptLoad NameLoad Index Str body AugAssignAdd NameStore Call AttributeLoad Str attr SubscriptLoad NameLoad Index Str If SubscriptLoad NameLoad Index Str body AugAssignAdd NameStore Call AttributeLoad Str attr SubscriptLoad NameLoad Index Str AugAssignAdd NameStore Call AttributeLoad Str attr SubscriptLoad NameLoad Index Str If BoolOpAnd CompareEq SubscriptLoad NameLoad Index Str Str CompareEq Call AttributeLoad NameLoad attr Str body AugAssignAdd NameStore Call AttributeLoad Str attr Call AttributeLoad NameLoad attr NameLoad If CompareIsNot NameLoad NameLoad body AugAssignAdd NameStore Call AttributeLoad Str attr NameLoad AugAssignAdd NameStore Call AttributeLoad Str attr SubscriptLoad NameLoad Index Str If CompareIsNot SubscriptLoad NameLoad Index Str NameLoad body For NameStore SubscriptLoad NameLoad Index Str body Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index Str Index NameLoad If CompareIs Call NameLoad NameLoad NameLoad body AugAssignAdd NameStore Call AttributeLoad Str attr NameLoad IfExp NameLoad Str Str orelse AugAssignAdd NameStore Call AttributeLoad Str attr NameLoad NameLoad For NameStore NameLoad body AugAssignAdd NameStore Call AttributeLoad Str attr NameLoad SubscriptLoad NameLoad Index NameLoad AugAssignAdd NameStore BinOpAdd Str NameLoad AugAssignAdd NameStore BinOpAdd Str NameLoad Print NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad keyword NameLoad Return CompareEq NameLoad Num decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad Str attr NameLoad If NameLoad body AugAssignAdd NameStore Call AttributeLoad Str attr NameLoad Print NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad keyword NameLoad Return CompareEq NameLoad Num decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str TryExcept body Assign NameStore Call AttributeLoad NameLoad attr Str keyword NameLoad keyword NameLoad Return CompareEq NameLoad Num handlers ExceptHandler type TupleLoad NameLoad AttributeLoad NameLoad attr body Return NameLoad decorator_list
N/A N/A wrapper for cmake tool N/A subprocess N/A platform mod log mod.tools ninja N/A name cmake N/A platforms N/A linux osx win N/A optional False N/A not_found please install cmake 2.8 or newer N/A major 2 N/A minor 8 check_exists N/A N/A fips_dir N/A N/A N/A test if cmake is in the path and has the required version
    
    :returns:   True if cmake found and is the required version
     N/A N/A N/A out N/A N/A subprocess check_output N/A cmake --version universal_newlines True N/A ver N/A N/A N/A N/A N/A out split N/A 2 split . N/A N/A N/A N/A int N/A ver N/A 0 major N/A N/A N/A int N/A ver N/A 0 major N/A N/A int N/A ver N/A 1 minor N/A N/A True N/A N/A N/A N/A log info N/A N/A {}NOTE{}: cmake must be at least version {}.{} (found: {}.{}.{}) format N/A log RED N/A log DEF major minor N/A ver N/A 0 N/A ver N/A 1 N/A ver N/A 2 N/A False N/A N/A N/A N/A OSError N/A subprocess CalledProcessError N/A N/A False N/A run_gen N/A N/A cfg fips_dir project_dir build_dir toolchain_path defines N/A N/A N/A run cmake tool to generate build files
    
    :param cfg:             a fips config object
    :param project_dir:     absolute path to project (must have root CMakeLists.txt file)
    :param build_dir:       absolute path to build directory (where cmake files are generated)
    :param toolchain:       toolchain path or None
    :returns:               True if cmake returned successful
     N/A cmdLine cmake N/A N/A N/A cfg N/A generator Default N/A N/A cmdLine N/A N/A  -G "{}" format N/A cfg N/A generator N/A N/A cfg N/A generator-platform N/A N/A cmdLine N/A N/A  -A "{}" format N/A cfg N/A generator-platform N/A N/A cfg N/A generator-toolset N/A N/A cmdLine N/A N/A  -T "{}" format N/A cfg N/A generator-toolset N/A cmdLine N/A N/A  -DCMAKE_BUILD_TYPE={} format N/A cfg N/A build_type N/A N/A N/A N/A cfg N/A build_tool ninja N/A N/A N/A platform system Windows N/A N/A cmdLine N/A N/A  -DCMAKE_MAKE_PROGRAM={} format N/A N/A ninja get_ninja_tool fips_dir N/A N/A toolchain_path None N/A N/A cmdLine N/A N/A  -DCMAKE_TOOLCHAIN_FILE={} format toolchain_path N/A cmdLine N/A N/A  -DFIPS_CONFIG={} format N/A cfg N/A name N/A N/A N/A cfg N/A defines None N/A N/A key N/A cfg N/A defines N/A N/A val N/A N/A cfg N/A defines N/A key N/A N/A N/A type val bool N/A N/A cmdLine N/A N/A  -D{}={} format key N/A val ON OFF N/A N/A cmdLine N/A N/A  -D{}={} format key val N/A key defines N/A N/A cmdLine N/A N/A  -D{}={} format key N/A defines N/A key N/A cmdLine N/A  -B build_dir N/A cmdLine N/A  -H project_dir N/A cmdLine N/A res N/A N/A subprocess call cmdLine cwd build_dir shell True N/A N/A res 0 N/A run_build N/A N/A fips_dir target build_type build_dir N/A N/A N/A run cmake in build mode

    :param target:          build target, can be None (builds all)
    :param build_type:      CMAKE_BUILD_TYPE string (e.g. Release, Debug)
    :param build_dir:       path to the build directory
    :returns:               True if cmake returns successful
     N/A cmdLine N/A N/A cmake --build . --config {} format build_type N/A target N/A N/A cmdLine N/A N/A  --target {} format target N/A cmdLine N/A res N/A N/A subprocess call cmdLine cwd build_dir shell True N/A N/A res 0 N/A run_clean N/A N/A fips_dir build_dir N/A N/A N/A run cmake in build mode

    :param build_dir:   path to the build directory
    :returns:           True if cmake returns successful    
     N/A N/A N/A res N/A N/A subprocess call cmake --build . --target clean cwd build_dir shell True N/A N/A res 0 N/A N/A N/A N/A OSError N/A subprocess CalledProcessError N/A N/A False N/A