Skip to content

Commit

Permalink
Moved peach folder to fleece
Browse files Browse the repository at this point in the history
  • Loading branch information
John Detter committed Jul 28, 2016
1 parent 3b96831 commit d27642a
Show file tree
Hide file tree
Showing 65 changed files with 55 additions and 275 deletions.
File renamed without changes.
16 changes: 8 additions & 8 deletions peach/CMakeLists.txt → fleece/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
cmake_minimum_required (VERSION 2.6.4)

project (Peach)
project (Fleece)

set(CMAKE_INSTALL_PREFIX "/usr" CACHE PATH "Default installation path" FORCE)
set(CMAKE_BUILD_TYPE "Debug" CACHE STRING "Build type" FORCE)

option(BUILD_SHARED "Build and link shared libraries?" OFF)
option(BUILD_SHARED "Build and link shared libraries?" ON)
option(BUILD_STATIC "Build and link static libraries?" OFF)


# Which custom libraries should be linked against peach?
set (PEACH_LIBRARIES peachutil peachdecoders peachreporting)
# Which custom libraries should be linked against fleece?
set (FLEECE_LIBRARIES fleeceutil fleecedecoders fleecereporting)
set (OTHER_LIBRARIES z instructionAPI xed LLVM opcodes rt bfd iberty dl)
set (ALL_LIBRARIES ${PEACH_LIBRARIES} ${OTHER_LIBRARIES})
set (ALL_LIBRARIES ${FLEECE_LIBRARIES} ${OTHER_LIBRARIES})

set (CMAKE_CXX_FLAGS "-std=c++11")
set (CMAKE_C_FLAGS "")
Expand All @@ -23,6 +23,6 @@ add_subdirectory(decoders)
add_subdirectory(reporting)
add_subdirectory(util)

add_executable(peach peach.C)
target_link_libraries(peach LINK_PUBLIC ${ALL_LIBRARIES})
target_include_directories(peach PUBLIC "h")
add_executable(fleece fleece.C)
target_link_libraries(fleece LINK_PUBLIC ${ALL_LIBRARIES})
target_include_directories(fleece PUBLIC "h")
File renamed without changes.
File renamed without changes.
File renamed without changes.
15 changes: 15 additions & 0 deletions fleece/decoders/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Set the sources that should be compiled into the library
set (FLEECE_DECODERS_SOURCE aarch64_common.C Decoder.C dyninst_aarch64.C dyninst_x86_64.C gnu_aarch64.C gnu_x86_64.C llvm_aarch64.C llvm_common.C llvm_x86_64.C Normalization.C null_decoders.C xed_x86_64.C)

# When binaries link against this library, which headers should be included?
include_directories ("${PROJECT_SOURCE_DIR}/h")

if(BUILD_SHARED)
# Build these sources as libfleecedecoders (.so on Linux or .dll on Windows)
add_library(fleecedecoders SHARED ${FLEECE_DECODERS_SOURCE})
endif(BUILD_SHARED)

if(BUILD_STATIC)
# Build these sources as libfleecedecoders (.so on Linux or .dll on Windows)
add_library(fleecedecoders STATIC ${FLEECE_DECODERS_SOURCE})
endif(BUILD_STATIC)
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.
File renamed without changes.
Binary file added fleece/fleece
Binary file not shown.
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.
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.
File renamed without changes.
File renamed without changes.
File renamed without changes.
16 changes: 16 additions & 0 deletions fleece/reporting/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Set the sources that should be compiled into the library
set (FLEECE_REPORTING_SOURCE ReportingContext.C)

# When binaries link against this library, which headers should be included?
include_directories (${PROJECT_SOURCE_DIR}/h})

if(BUILD_SHARED)
# Build these sources as libfleecereporting (.so on Linux or .dll on Windows)
add_library(fleecereporting SHARED ${FLEECE_REPORTING_SOURCE})
endif(BUILD_SHARED)

if(BUILD_STATIC)
# Build these sources as libfleecereporting (.so on Linux or .dll on Windows)
add_library(fleecereporting STATIC ${FLEECE_REPORTING_SOURCE})
endif(BUILD_STATIC)

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
16 changes: 16 additions & 0 deletions fleece/util/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Set the sources that should be compiled into the library
set (FLEECE_UTIL_SOURCE Alias.C Architecture.C Bitfield.C BitTypeMap.C BitTypes.C Hashcounter.C Info.C MappedInst.C MapTable.C Mask.C Mystring.C Options.C RegisterSet.C)

# When binaries link against this library, which headers should be included?
include_directories (${PROJECT_SOURCE_DIR}/h})

if(BUILD_SHARED)
# Build these sources as libfleeceutil (.so on Linux or .dll on Windows)
add_library(fleeceutil SHARED ${FLEECE_UTIL_SOURCE})
endif(BUILD_SHARED)

if(BUILD_STATIC)
# Build these sources as libfleeceutil (.so on Linux or .dll on Windows)
add_library(fleeceutil STATIC ${FLEECE_UTIL_SOURCE})
endif(BUILD_STATIC)

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.
220 changes: 0 additions & 220 deletions peach/Makefile

This file was deleted.

Binary file removed peach/decoders/.llvm_aarch64.C.swo
Binary file not shown.
15 changes: 0 additions & 15 deletions peach/decoders/CMakeLists.txt

This file was deleted.

16 changes: 0 additions & 16 deletions peach/reporting/CMakeLists.txt

This file was deleted.

16 changes: 0 additions & 16 deletions peach/util/CMakeLists.txt

This file was deleted.

0 comments on commit d27642a

Please sign in to comment.