SConscript revision 12230
1955SN/A# -*- mode:python -*-
2955SN/A
313576Sciro.santilli@arm.com# Copyright (c) 2012,2017 ARM Limited
413576Sciro.santilli@arm.com# All rights reserved.
513576Sciro.santilli@arm.com#
613576Sciro.santilli@arm.com# The license below extends only to copyright in the software and shall
713576Sciro.santilli@arm.com# not be construed as granting a license to any other intellectual
813576Sciro.santilli@arm.com# property including but not limited to intellectual property relating
913576Sciro.santilli@arm.com# to a hardware implementation of the functionality of the software
1013576Sciro.santilli@arm.com# licensed hereunder.  You may use the software subject to the license
1113576Sciro.santilli@arm.com# terms below provided that you ensure that this notice is replicated
1213576Sciro.santilli@arm.com# unmodified and in its entirety in all distributions of the software,
1313576Sciro.santilli@arm.com# modified or unmodified, in source code or in binary form.
141762SN/A#
15955SN/A# Redistribution and use in source and binary forms, with or without
16955SN/A# modification, are permitted provided that the following conditions are
17955SN/A# met: redistributions of source code must retain the above copyright
18955SN/A# notice, this list of conditions and the following disclaimer;
19955SN/A# redistributions in binary form must reproduce the above copyright
20955SN/A# notice, this list of conditions and the following disclaimer in the
21955SN/A# documentation and/or other materials provided with the distribution;
22955SN/A# neither the name of the copyright holders nor the names of its
23955SN/A# contributors may be used to endorse or promote products derived from
24955SN/A# this software without specific prior written permission.
25955SN/A#
26955SN/A# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
27955SN/A# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
28955SN/A# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
29955SN/A# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
30955SN/A# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
31955SN/A# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
32955SN/A# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
33955SN/A# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
34955SN/A# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
35955SN/A# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
36955SN/A# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
37955SN/A#
38955SN/A# Authors: Andreas Hansson
392665Ssaidi@eecs.umich.edu
404762Snate@binkert.orgImport('*')
41955SN/A
4212563Sgabeblack@google.com# Only build if we have protobuf support
4312563Sgabeblack@google.comif env['HAVE_PROTOBUF']:
445522Snate@binkert.org    ProtoBuf('inst_dep_record.proto')
456143Snate@binkert.org    ProtoBuf('packet.proto')
4612371Sgabeblack@google.com    ProtoBuf('inst.proto')
474762Snate@binkert.org    Source('protoio.cc')
48955SN/A
495522Snate@binkert.org    # protoc relies on the fact that undefined preprocessor symbols are
50955SN/A    # explanded to 0 but since we use -Wundef they end up generating
515522Snate@binkert.org    # warnings.
524202Sbinkertn@umich.edu    env.Append(CCFLAGS='-DPROTOBUF_INLINE_NOT_IN_HEADERS=0')
535742Snate@binkert.org