SConstruct (12790:9cfb7f1c50b6) SConstruct (12920:76a7817ebea3)
1# -*- mode:python -*-
2
3# Copyright (c) 2013, 2015-2017 ARM Limited
4# All rights reserved.
5#
6# The license below extends only to copyright in the software and shall
7# not be construed as granting a license to any other intellectual
8# property including but not limited to intellectual property relating

--- 769 unchanged lines hidden (view full) ---

778# development libraries. If the check passes, libprotobuf will be
779# automatically added to the LIBS environment variable. After
780# this, we can use the HAVE_PROTOBUF flag to determine if we have
781# got both protoc and libprotobuf available.
782main['HAVE_PROTOBUF'] = main['PROTOC'] and \
783 conf.CheckLibWithHeader('protobuf', 'google/protobuf/message.h',
784 'C++', 'GOOGLE_PROTOBUF_VERIFY_VERSION;')
785
1# -*- mode:python -*-
2
3# Copyright (c) 2013, 2015-2017 ARM Limited
4# All rights reserved.
5#
6# The license below extends only to copyright in the software and shall
7# not be construed as granting a license to any other intellectual
8# property including but not limited to intellectual property relating

--- 769 unchanged lines hidden (view full) ---

778# development libraries. If the check passes, libprotobuf will be
779# automatically added to the LIBS environment variable. After
780# this, we can use the HAVE_PROTOBUF flag to determine if we have
781# got both protoc and libprotobuf available.
782main['HAVE_PROTOBUF'] = main['PROTOC'] and \
783 conf.CheckLibWithHeader('protobuf', 'google/protobuf/message.h',
784 'C++', 'GOOGLE_PROTOBUF_VERIFY_VERSION;')
785
786# Valgrind gets much less confused if you tell it when you're using
787# alternative stacks.
788main['HAVE_VALGRIND'] = conf.CheckCHeader('valgrind/valgrind.h')
789
786# If we have the compiler but not the library, print another warning.
787if main['PROTOC'] and not main['HAVE_PROTOBUF']:
788 print(termcap.Yellow + termcap.Bold +
789 'Warning: did not find protocol buffer library and/or headers.\n' +
790 ' Please install libprotobuf-dev for tracing support.' +
791 termcap.Normal)
792
793# Check for librt.

--- 213 unchanged lines hidden (view full) ---

1007 all_protocols),
1008 EnumVariable('BACKTRACE_IMPL', 'Post-mortem dump implementation',
1009 backtrace_impls[-1], backtrace_impls)
1010 )
1011
1012# These variables get exported to #defines in config/*.hh (see src/SConscript).
1013export_vars += ['USE_FENV', 'SS_COMPATIBLE_FP', 'TARGET_ISA', 'TARGET_GPU_ISA',
1014 'CP_ANNOTATE', 'USE_POSIX_CLOCK', 'USE_KVM', 'USE_TUNTAP',
790# If we have the compiler but not the library, print another warning.
791if main['PROTOC'] and not main['HAVE_PROTOBUF']:
792 print(termcap.Yellow + termcap.Bold +
793 'Warning: did not find protocol buffer library and/or headers.\n' +
794 ' Please install libprotobuf-dev for tracing support.' +
795 termcap.Normal)
796
797# Check for librt.

--- 213 unchanged lines hidden (view full) ---

1011 all_protocols),
1012 EnumVariable('BACKTRACE_IMPL', 'Post-mortem dump implementation',
1013 backtrace_impls[-1], backtrace_impls)
1014 )
1015
1016# These variables get exported to #defines in config/*.hh (see src/SConscript).
1017export_vars += ['USE_FENV', 'SS_COMPATIBLE_FP', 'TARGET_ISA', 'TARGET_GPU_ISA',
1018 'CP_ANNOTATE', 'USE_POSIX_CLOCK', 'USE_KVM', 'USE_TUNTAP',
1015 'PROTOCOL', 'HAVE_PROTOBUF', 'HAVE_PERF_ATTR_EXCLUDE_HOST',
1016 'USE_PNG']
1019 'PROTOCOL', 'HAVE_PROTOBUF', 'HAVE_VALGRIND',
1020 'HAVE_PERF_ATTR_EXCLUDE_HOST', 'USE_PNG']
1017
1018###################################################
1019#
1020# Define a SCons builder for configuration flag headers.
1021#
1022###################################################
1023
1024# This function generates a config header file that #defines the

--- 244 unchanged lines hidden ---
1021
1022###################################################
1023#
1024# Define a SCons builder for configuration flag headers.
1025#
1026###################################################
1027
1028# This function generates a config header file that #defines the

--- 244 unchanged lines hidden ---