Skip to content

Commit

Permalink
Major rearrangement of build-toolchain.sh; interfaces & libraries now…
Browse files Browse the repository at this point in the history
… taken from InterfacesAndLibraries/
  • Loading branch information
autc04 committed Apr 25, 2017
1 parent a2dced7 commit 0e11f29
Show file tree
Hide file tree
Showing 5 changed files with 416 additions and 116 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ Universal Headers*
.*.swp
CMakeLists.txt.user
.finf
InterfacesAndLibraries
2 changes: 2 additions & 0 deletions PEFTools/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@ set(CMAKE_CXX_FLAGS "--std=c++11 -Wall -Werror=return-type -Wno-multichar")
find_package(Boost COMPONENTS filesystem system REQUIRED)

add_executable(MakePEF MakePEF.cc rs6000.h PEF.h)
target_include_directories(MakePEF PRIVATE ${CMAKE_INSTALL_PREFIX}/include)

add_executable(MakeImport MakeImport.cc PEF.h)
target_link_libraries(MakeImport ResourceFiles ${Boost_LIBRARIES})
target_include_directories(MakeImport PRIVATE ${Boost_INCLUDE_DIR})
target_include_directories(MakeImport PRIVATE ${CMAKE_INSTALL_PREFIX}/include)

install(TARGETS MakePEF MakeImport RUNTIME DESTINATION bin)
2 changes: 1 addition & 1 deletion PEFTools/PEF.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ typedef void *LogicalAddress;
typedef struct {} FSSpec, *FSSpecPtr;

/* Definitions for PEF, from Apple's Universal Interfaces */
#include "../CIncludes/PEFBinaryFormat.h"
#include "PEFBinaryFormat.h"

/* Deal with differences between versions of PEFBinaryFormat.h */
#ifndef PEFRelocComposeSetPosition_1st
Expand Down
Loading

0 comments on commit 0e11f29

Please sign in to comment.