Skip to content

Commit

Permalink
Move core/hooking to hooking/
Browse files Browse the repository at this point in the history
hooking/ builds gammaray_probe which actually *uses* libgammaray_core
from core/, so it doesn't make sense to keep it in a subdirectory
  • Loading branch information
krf committed Apr 11, 2013
1 parent a48f7ae commit ed7e1d6
Show file tree
Hide file tree
Showing 15 changed files with 8 additions and 16 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,7 @@ add_subdirectory(common)
add_subdirectory(ui)
add_subdirectory(core)
add_subdirectory(launcher)
add_subdirectory(hooking)

set(GRAPHVIZ_MIN_VERSION "2.20")
find_package(Graphviz)
Expand Down
12 changes: 1 addition & 11 deletions core/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ include_directories(
${CMAKE_SOURCE_DIR}
${CMAKE_SOURCE_DIR}/3rdparty
${CMAKE_SOURCE_DIR}/common
${CMAKE_SOURCE_DIR}/include
${CMAKE_SOURCE_DIR}/ui
${CMAKE_CURRENT_SOURCE_DIR}

Expand Down Expand Up @@ -82,16 +83,6 @@ if(Qt5Core_FOUND)
)
endif()

if(WIN32 OR APPLE)
set(gammaray_srcs
${gammaray_srcs}
hooking/abstractfunctionoverwriter.cpp
hooking/functionoverwriterfactory.cpp
hooking/winfunctionoverwriter.cpp
hooking/unixfunctionoverwriter.cpp
)
endif()

if(HAVE_PRIVATE_QT_HEADERS)
set(gammaray_srcs
${gammaray_srcs}
Expand Down Expand Up @@ -150,5 +141,4 @@ if(NOT WIN32)
endif()
install(TARGETS gammaray_core ${INSTALL_TARGETS_DEFAULT_ARGS})

add_subdirectory(hooking)
add_subdirectory(tools)
4 changes: 2 additions & 2 deletions core/probe.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
#ifndef GAMMARAY_PROBE_H
#define GAMMARAY_PROBE_H

#include "include/gammaray_core_export.h"
#include "include/probeinterface.h"
#include "gammaray_core_export.h"
#include "probeinterface.h"

#include <QObject>
#include <QQueue>
Expand Down
7 changes: 4 additions & 3 deletions core/hooking/CMakeLists.txt → hooking/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@
SET(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/lib")

include_directories(
${CMAKE_BINARY_DIR} # config-gammaray.h
${CMAKE_CURRENT_BINARY_DIR}

${CMAKE_SOURCE_DIR}/core
${CMAKE_SOURCE_DIR}/include
)

set(gammaray_probe_srcs
Expand All @@ -20,9 +24,6 @@ if(WIN32 OR APPLE)
)
endif()

# for the hooks, we actually use gammaray_core
remove_definitions(-DMAKE_GAMMARAY_LIB)

# probe lib
qt4_automoc(${gammaray_probe_srcs})
add_library(gammaray_probe SHARED ${gammaray_probe_srcs})
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit ed7e1d6

Please sign in to comment.