Skip to content

Commit

Permalink
i#2006 generalize drcachesim: facilitate tool header installation (#2283
Browse files Browse the repository at this point in the history
)

Removes subdir references from the key headers needed for offline-only
tools to make it easier to install the headers for third-party tools.
  • Loading branch information
derekbruening authored Mar 10, 2017
1 parent 7531a95 commit 5afde58
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
4 changes: 4 additions & 0 deletions clients/drcachesim/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,10 @@ use_DynamoRIO_extension(drcachesim droption)
use_DynamoRIO_extension(drcachesim drcovlib_static)
use_DynamoRIO_extension(drcachesim drutil_static)

# This is to avoid common/ in analysis_tool.h's include of memref.h, to make
# it easier for installation of needed tool headers into a single dir.
include_directories(common)

set(file_analyzer_tool_srcs
analyzer.cpp
common/trace_entry.cpp
Expand Down
6 changes: 4 additions & 2 deletions clients/drcachesim/analysis_tool.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* **********************************************************
* Copyright (c) 2016 Google, Inc. All rights reserved.
* Copyright (c) 2016-2017 Google, Inc. All rights reserved.
* **********************************************************/

/*
Expand Down Expand Up @@ -36,7 +36,9 @@
#ifndef _ANALYSIS_TOOL_H_
#define _ANALYSIS_TOOL_H_ 1

#include "common/memref.h"
// To support installation of headers for analysis tools into a single
// separate directory we omit common/ here and rely on -I.
#include "memref.h"

class analysis_tool_t
{
Expand Down
5 changes: 4 additions & 1 deletion clients/drcachesim/analyzer.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,12 @@
#define _ANALYZER_H_ 1

#include "analysis_tool.h"
#include "reader/reader.h"
#include <string>

// We avoid reader.h here to make it easier for standalone tools
// along the lines of histogram_launcher.
class reader_t;

class analyzer_t
{
public:
Expand Down

0 comments on commit 5afde58

Please sign in to comment.