this repo has no description
1
fork

Configure Feed

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

Use previous linking method for CF

Also create PlistBuddy executable

+187 -11
+1 -1
cmake/darling_framework.cmake
··· 117 117 set_property(TARGET ${my_name}_x86_64 APPEND_STRING PROPERTY LINK_FLAGS " ${FRAMEWORK_LINK_FLAGS}") 118 118 endif (FRAMEWORK_LINK_FLAGS) 119 119 120 - add_custom_target(${my_name} 120 + add_custom_target(${my_name}_build 121 121 COMMAND ${CMAKE_BINARY_DIR}/src/external/cctools-port/cctools/misc/lipo 122 122 -arch i386 $<TARGET_FILE:${my_name}_i386> 123 123 -arch x86_64 $<TARGET_FILE:${my_name}_x86_64>
+1 -1
src/AppleSystemInfo/CMakeLists.txt
··· 18 18 src/functions.c 19 19 DEPENDENCIES 20 20 system 21 - ${CoreFoundation} 21 + CoreFoundation 22 22 )
+8 -2
src/CMakeLists.txt
··· 153 153 ${CMAKE_CURRENT_SOURCE_DIR}/lkm/include 154 154 ) 155 155 156 - set(CoreFoundation "${CMAKE_BINARY_DIR}/src/external/corefoundation/CoreFoundation") 156 + # It must be done in this scope 157 + add_library(CoreFoundation SHARED IMPORTED) 158 + set_property(TARGET CoreFoundation PROPERTY 159 + IMPORTED_LOCATION ${CMAKE_CURRENT_BINARY_DIR}/external/corefoundation/CoreFoundation 160 + ) 161 + add_dependencies(CoreFoundation CoreFoundation_build) 162 + set_target_properties(CoreFoundation PROPERTIES SUFFIX "" PREFIX "") 157 163 158 164 add_subdirectory(external/libkqueue) 159 - 160 165 161 166 add_subdirectory(external/libplatform) 162 167 add_subdirectory(external/libpthread) ··· 289 294 add_subdirectory(external/bsm) 290 295 add_subdirectory(external/gdb) 291 296 add_subdirectory(external/Heimdal) 297 + add_subdirectory(PlistBuddy) 292 298 293 299 # /Applications 294 300 #add_subdirectory(external/TextEdit)
+1 -1
src/CoreServices/CMakeLists.txt
··· 59 59 DEPENDENCIES 60 60 icucore 61 61 system 62 - ${CoreFoundation} 62 + CoreFoundation 63 63 cxx 64 64 iconv 65 65 ${EXTRA_LIBS}
+1 -1
src/CryptoTokenKit/CMakeLists.txt
··· 24 24 25 25 DEPENDENCIES 26 26 system 27 - ${CoreFoundation} 27 + CoreFoundation 28 28 )
+1 -1
src/DiskArbitration/CMakeLists.txt
··· 18 18 ${da_SRCS} 19 19 DEPENDENCIES 20 20 system 21 - ${CoreFoundation} 21 + CoreFoundation 22 22 )
+11
src/PlistBuddy/CMakeLists.txt
··· 1 + project(PlistBuddy) 2 + 3 + add_darling_executable(PlistBuddy 4 + PlistBuddy.c 5 + ) 6 + 7 + target_link_libraries(PlistBuddy ${CoreFoundation}) 8 + 9 + install(TARGETS PlistBuddy DESTINATION libexec/darling/usr/libexec) 10 + 11 + install(FILES PlistBuddy.8 DESTINATION libexec/darling/usr/share/man/man8)
+152
src/PlistBuddy/PlistBuddy.8
··· 1 + .\"Copyright (c) 1999-2012 Apple Computer, Inc. All Rights Reserved. 2 + .\" 3 + .\"This file contains Original Code and/or Modifications of Original Code 4 + .\"as defined in and that are subject to the Apple Public Source License 5 + .\"Version 2.0 (the 'License'). You may not use this file except in 6 + .\"compliance with the License. Please obtain a copy of the License at 7 + .\"http://www.opensource.apple.com/apsl/ and read it before using this 8 + .\"file. 9 + .\" 10 + .\"The Original Code and all software distributed under the License are 11 + .\"distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 12 + .\"EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 13 + .\"INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 14 + .\"FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 15 + .\"Please see the License for the specific language governing rights and 16 + .\"limitations under the License. 17 + .Dd February 19, 2007 18 + .Dt PLISTBUDDY 8 19 + .Os "Mac OS X" 20 + .Sh NAME 21 + .Nm PlistBuddy 22 + .Nd read and write values to plists 23 + .Sh SYNOPSIS 24 + .Nm 25 + .Op Fl cxh 26 + .Ar file.plist 27 + .Sh DESCRIPTION 28 + The 29 + .Nm 30 + command is used to read and modify values inside of a plist. Unless specified by the 31 + .Fl c 32 + switch, 33 + .Nm 34 + runs in interactive mode. 35 + .Pp 36 + The following commands are used to manipulate plist data: 37 + .Bl -tag -width "Clear Type" 38 + .It Sy Help 39 + Prints this information. 40 + .It Sy Exit 41 + Exits the program. Changes are not saved to the file. 42 + .It Sy Save 43 + Saves the current changes to the file. 44 + .It Sy Revert 45 + Reloads the last saved version of the file. 46 + .It Sy Clear Ar type 47 + Clears out all existing entries, and creates root of type 48 + .Ar type . 49 + See below for a list of types. 50 + .It Sy Print Op entry 51 + Prints value of 52 + .Ar entry . 53 + If an entry is not specified, prints entire file. See below for an explanation of how entry works. 54 + .It Sy Set Ar entry Ar value 55 + Sets the value at 56 + .Ar entry 57 + to 58 + .Ar value . 59 + .It Sy Add Ar entry Ar type Op value 60 + Adds 61 + .Ar entry 62 + with type 63 + .Ar type 64 + and optional value 65 + .Ar value . 66 + See below for a list of types. 67 + .It Sy Copy Ar entrySrc Ar entryDst 68 + Copies the 69 + .Ar entrySrc 70 + property to 71 + .Ar entryDst . 72 + .It Sy Delete Ar entry 73 + Deletes 74 + .Ar entry 75 + from the plist. 76 + .It Sy Merge Ar file Op entry 77 + Adds the contents of plist 78 + .Ar file 79 + to 80 + .Ar entry . 81 + .It Sy Import Ar entry Ar file 82 + Creates or sets 83 + .Ar entry 84 + to the contents of 85 + .Ar file . 86 + .El 87 + .Pp 88 + Entries consist of property key names delimited by colons. Array items are specified by a zero-based integer index. Examples: 89 + .Pp 90 + :CFBundleShortVersionString 91 + :CFBundleDocumentTypes:2:CFBundleTypeExtensions 92 + .Pp 93 + Entries may be of the following types: 94 + .Pp 95 + string 96 + array 97 + dict 98 + bool 99 + real 100 + integer 101 + date 102 + data 103 + .Sh OPTIONS 104 + .Bl -tag -width "-c command" 105 + .It Fl c Ar command 106 + Execute command and exit. By default, PlistBuddy will run in interactive mode. 107 + .It Fl x 108 + Output will be in the form of an xml plist where appropriate. 109 + .It Fl h 110 + Print the complete help info. 111 + .El 112 + .Sh EXAMPLES 113 + .Pp 114 + Set the CFBundleIdentifier property to com.apple.plistbuddy: 115 + .Vb 1 116 + .Pp 117 + \& Set :CFBundleIdentifier com.apple.plistbuddy 118 + .Ve 119 + .Pp 120 + Add the CFBundleGetInfoString property to the plist: 121 + .Vb 1 122 + .Pp 123 + \& Add :CFBundleGetInfoString string "App version 1.0.1" 124 + .Ve 125 + .Pp 126 + Add a new item of type dict to the CFBundleDocumentTypes array: 127 + .Vb 1 128 + .Pp 129 + \& Add :CFBundleDocumentTypes: dict 130 + .Ve 131 + .Pp 132 + Add the new item to the beginning of the array: 133 + .Vb 1 134 + .Pp 135 + \& Add :CFBundleDocumentTypes:0 dict 136 + .Ve 137 + .Pp 138 + Delete the \s-1FIRST\s0 item in the array: 139 + .Vb 1 140 + .Pp 141 + \& Delete :CFBundleDocumentTypes:0 dict 142 + .Ve 143 + .Pp 144 + Delete the \s-1ENTIRE\s0 CFBundleDocumentTypes array: 145 + .Vb 1 146 + .Pp 147 + \& Delete :CFBundleDocumentTypes 148 + .Ve 149 + .Pp 150 + .Sh EXIT STATUS 151 + .Nm 152 + command returns a zero exit status if it succeeds. Non zero is returned in case of failure.
+7
src/PlistBuddy/PlistBuddy.c
··· 1 + #include <stdlib.h> 2 + #include <stdio.h> 3 + #include <CoreFoundation/CoreFoundation.h> 4 + 5 + int main(int argc, char *argv[], char *envp[], char *apple[]) { 6 + return EXIT_SUCCESS; 7 + }
+1 -1
src/SystemConfiguration/CMakeLists.txt
··· 18 18 ${SystemConfiguration_SRCS} 19 19 DEPENDENCIES 20 20 system 21 - ${CoreFoundation} 21 + CoreFoundation 22 22 )
+1 -1
src/launchd/support/CMakeLists.txt
··· 33 33 34 34 include(darling_exe) 35 35 add_darling_executable(launchctl launchctl.c) 36 - target_link_libraries(launchctl xpc ${CoreFoundation} edit) 36 + target_link_libraries(launchctl xpc CoreFoundation edit) 37 37 38 38 add_darling_executable(launchproxy launchproxy.c) 39 39 target_link_libraries(launchproxy xpc)
+1 -1
src/tools/CMakeLists.txt
··· 4 4 add_darling_executable(sudo sudo.c) 5 5 6 6 install(TARGETS sw_vers sudo DESTINATION libexec/darling/usr/bin) 7 - target_link_libraries(sw_vers ${CoreFoundation}) 7 + target_link_libraries(sw_vers CoreFoundation)
+1 -1
src/xcselect/CMakeLists.txt
··· 8 8 set(DYLIB_CURRENT_VERSION "1.0.0") 9 9 10 10 add_darling_library(xcselect xcselect.c) 11 - target_link_libraries(xcselect system) 11 + target_link_libraries(xcselect system CoreFoundation) 12 12 13 13 add_darling_executable(xcrun xcrun.c) 14 14 target_link_libraries(xcrun system xcselect)