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
1 parent
3500d5e
commit 5ee63f3
Showing
36 changed files
with
13,172 additions
and
155 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,40 @@ | ||
dynlibs := Directory with("addons") directories map(f, | ||
r := nil | ||
try( | ||
r = f at("_build") at("dll") files select(name endsWithSeq(".dylib")) first | ||
) | ||
r | ||
) select(!= nil) | ||
|
||
depends := dynlibs map(dllFile, | ||
lines := SystemCall clone setCommand("otool") setArguments(list("-L", dllFile path)) run stdout readLines | ||
//foreach(println) | ||
lines mapInPlace(beforeSeq("(") strip) | ||
lines removeFirst | ||
lines selectInPlace(beginsWithSeq("/")) | ||
lines selectInPlace(beginsWithSeq("/usr/lib/") not) | ||
lines selectInPlace(beginsWithSeq("/usr/local/lib/io/addons/") not) | ||
lines selectInPlace(beginsWithSeq("/System/Library/") not) | ||
if(lines isEmpty not, | ||
writeln("\n", dllFile name, " needs: ") | ||
lines foreach(line, writeln(" ", line)) | ||
) | ||
lines | ||
) flatten | ||
|
||
external := Directory directoryNamed("_build") createSubdirectory("external") | ||
|
||
installScript := external fileNamed("install.sh") remove open | ||
|
||
depends foreach(depend, | ||
writeln("copying ", depend, " to ", external path) | ||
installScript write("cp ", Path with(external path, depend lastPathComponent), " ", depend, "\n"); | ||
SystemCall clone setCommand("cp") setArguments(list(depend, external path)) run stdout readLines | ||
) | ||
installScript close | ||
SystemCall clone setCommand("chmod") setArguments(list("ug+x", installScript path)) run | ||
|
||
/* | ||
/opt/local/include/ncurses | ||
*/ |
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
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
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,42 @@ | ||
|
||
|
||
# Builds the ObjcBridge addon | ||
|
||
# Create the _build bundle hierarchy if needed. | ||
make_build_bundle(_build) | ||
|
||
|
||
# Output our dynamic library to the top-level _build hierarchy | ||
set(LIBRARY_OUTPUT_PATH ${CMAKE_CURRENT_BINARY_DIR}/_build/dll) | ||
|
||
|
||
# Generate the IoObjcBridgeInit.c file. | ||
# Argument SHOULD ALWAYS be the exact name of the addon, case is important. | ||
generate_ioinit(ObjcBridge) | ||
|
||
|
||
# Additional include directories | ||
include_directories( | ||
${CMAKE_CURRENT_SOURCE_DIR}/../Box/source | ||
) | ||
|
||
# Our library sources. | ||
set(SRCS | ||
"${CMAKE_CURRENT_SOURCE_DIR}/source/Io2Objc.m" | ||
"${CMAKE_CURRENT_SOURCE_DIR}/source/IoObjcBridge.m" | ||
"${CMAKE_CURRENT_SOURCE_DIR}/source/IoObjcBridgeInit.m" | ||
"${CMAKE_CURRENT_SOURCE_DIR}/source/Objc2Io.m" | ||
"${CMAKE_CURRENT_SOURCE_DIR}/source/ObjcSubclass.m" | ||
"${CMAKE_CURRENT_SOURCE_DIR}/source/Runtime.m" | ||
) | ||
|
||
set(CMAKE_EXE_LINKER_FLAGS "-framework AppKit") | ||
|
||
# Now build the shared library | ||
add_library(IoObjcBridge SHARED ${SRCS}) | ||
add_dependencies(IoObjcBridge iovmall Foundation IoBox) | ||
target_link_libraries(IoObjcBridge iovmall ${ObjcBridge_LIBRARY} IoBox /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit) | ||
|
||
# Install the addon to our global addons hierarchy. | ||
install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} DESTINATION lib/io/addons) | ||
install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/_build DESTINATION lib/io/addons/ObjcBridge) |
20 changes: 0 additions & 20 deletions
20
addons/ObjcBridge/samples/BridgeTest/English.lproj/MainMenu.nib/classes.nib
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.