-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
76 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
cmake_minimum_required(VERSION 3.0) | ||
|
||
set(PRODUCT_NAME RISCV) | ||
project(${PRODUCT_NAME}) | ||
|
||
set(HOPPER_SDK_PATH ${CMAKE_SOURCE_DIR}/HopperSDK/include) | ||
set(HOPPER_PLUGINS_PATH "~/Library/Application Support/Hopper/Plugins/V4") | ||
set(HOPPER_PLUGIN_CPU_DIRNAME CPUs) | ||
set(HOPPER_PLUGIN_CPU_EXTENSION hopperCPU) | ||
|
||
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/bin) | ||
set(CMAKE_INSTALL_PREFIX ${HOPPER_PLUGINS_PATH} CACHE PATH "Plugins install prefix" FORCE) | ||
|
||
add_definitions( | ||
# -std=c++11 | ||
# -fno-rtti | ||
) | ||
|
||
include_directories("${HOPPER_SDK_PATH}" "${CMAKE_SOURCE_DIR}") | ||
|
||
add_library( | ||
${PRODUCT_NAME} MODULE | ||
RISCV/RISCVCPU.m | ||
RISCV/RISCVCtx.m | ||
) | ||
|
||
target_compile_options( | ||
${PRODUCT_NAME} PUBLIC | ||
-fno-exceptions | ||
-pedantic | ||
-Wall | ||
-Wextra | ||
-fobjc-arc | ||
) | ||
|
||
set_target_properties( | ||
${PRODUCT_NAME} PROPERTIES | ||
BUNDLE TRUE | ||
BUNDLE_EXTENSION ${HOPPER_PLUGIN_CPU_EXTENSION} | ||
MACOSX_BUNDLE_INFO_PLIST ${CMAKE_CURRENT_SOURCE_DIR}/Info.plist.in | ||
) | ||
|
||
target_link_libraries(${PRODUCT_NAME} "-framework Foundation") | ||
|
||
install( | ||
TARGETS ${PRODUCT_NAME} | ||
LIBRARY DESTINATION ${HOPPER_PLUGIN_CPU_DIRNAME} | ||
) | ||
|
||
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/bin) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>CFBundleExecutable</key> | ||
<string>${PRODUCT_NAME}</string> | ||
<key>CFBundlePackageType</key> | ||
<string>BNDL</string> | ||
<key>NSHumanReadableCopyright</key> | ||
<string>©2016 – Makigumo</string> | ||
</dict> | ||
</plist> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 0 additions & 27 deletions
27
RISCV.xcodeproj/xcuserdata/dan.xcuserdatad/xcschemes/xcschememanagement.plist
This file was deleted.
Oops, something went wrong.