this repo has no description
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Add all xcrun shims

authored by

Viktor Oreshkin and committed by
Viktor Oreshkin
2a115995 69f0a8e7

+34 -7
+31 -5
src/xcselect/CMakeLists.txt
··· 16 16 add_darling_executable(xcode-select xcode-select.c) 17 17 target_link_libraries(xcode-select system xcselect) 18 18 19 - function(add_shim name) 19 + install(TARGETS xcselect DESTINATION libexec/darling/usr/lib) 20 + install(TARGETS xcrun xcode-select DESTINATION libexec/darling/usr/bin) 21 + 22 + function(add_shim name require_xc) 20 23 add_darling_executable("${name}_shim" xcrun-shim.c) 21 24 22 25 set_target_properties("${name}_shim" 23 26 PROPERTIES 24 27 OUTPUT_NAME "${name}" 25 - COMPILE_FLAGS "-DTOOL_NAME=\\\"${name}\\\"" 28 + COMPILE_FLAGS "-DTOOL_NAME=\\\"${name}\\\" -DREQUIRE_XCODE=${require_xc}" 26 29 ) 30 + 27 31 target_link_libraries("${name}_shim" system xcselect) 28 32 install(TARGETS "${name}_shim" DESTINATION libexec/darling/usr/bin) 29 33 endfunction(add_shim) 30 34 31 - add_shim(nm) 35 + function(add_shims require_xc) 36 + foreach(tool ${ARGN}) 37 + add_shim(${tool} ${require_xc}) 38 + endforeach() 39 + endfunction(add_shims) 32 40 33 - install(TARGETS xcselect DESTINATION libexec/darling/usr/lib) 34 - install(TARGETS xcrun xcode-select DESTINATION libexec/darling/usr/bin) 41 + # TODO: c++, cc, llvm-g++, llvm-gcc -- symlinks to clang 35 42 43 + add_shims(0 44 + BuildStrings CpMac DeRez GetFileInfo MergePef MvMac 45 + ResMerger Rez RezDet RezWack SetFile SplitForks UnRezWack 46 + ar as asa bison clang clang++ cmpdylib codesign_allocate 47 + cpp ctags ctf_insert dsymutil dwarfdump flex flex++ g++ 48 + gatherheaderdoc gcc gcov git git-cvsserver git-receive-pack 49 + git-shell git-upload-archive git-upload-pack gm4 gnumake 50 + gperf hdxml2manxml headerdoc2html indent install_name_tool 51 + ld lex libtool lipo lldb llvm-g++ llvm-gcc lorder m4 make 52 + mig mkdep nasm ndisasm nm nmedit objdump otool pagestuff 53 + ranlib rebase redo_prebinding resolveLinks rpcgen segedit 54 + size strings strip svn svnadmin svndumpfilter svnlook 55 + svnserve svnsync svnversion swift swiftc unifdef unifdefall 56 + xml2man yacc) 57 + 58 + add_shims(1 59 + agvtool desdp genstrings ibtool ictool instruments 60 + iprofiler opendiff sdef sdp xcodebuild xcscontrol 61 + xcsdiagnose xed)
+3 -2
src/xcselect/xcrun-shim.c
··· 20 20 #include <stdlib.h> 21 21 #include <string.h> 22 22 23 - int main(int argc, const char** argv) 23 + int main(int argc, char** argv) 24 24 { 25 - return xcselect_invoke_xcrun(TOOL_NAME, argc - 1, &argv[1], 0); 25 + return xcselect_invoke_xcrun(TOOL_NAME, argc - 1, &argv[1], 26 + REQUIRE_XCODE ? XCSELECT_FLAG_REQUIRE_XCODE : 0); 26 27 } 27 28