]> git.saurik.com Git - apple/libpthread.git/blobdiff - xcodescripts/install-lldbmacros.sh
libpthread-416.100.3.tar.gz
[apple/libpthread.git] / xcodescripts / install-lldbmacros.sh
index e50ee44abe044946da915f5183af36116a81e5c6..ca2d3314fba78109271b462df7730eb34b7ff8f3 100644 (file)
@@ -2,4 +2,23 @@
 # install the pthread lldbmacros into the module
 
 mkdir -p $DWARF_DSYM_FOLDER_PATH/$DWARF_DSYM_FILE_NAME/Contents/Resources/Python || true
-rsync -aq $SRCROOT/lldbmacros/* $DWARF_DSYM_FOLDER_PATH/$DWARF_DSYM_FILE_NAME/Contents/Resources/Python/
+rsync -aq $SRCROOT/lldbmacros/* $DWARF_DSYM_FOLDER_PATH/$DWARF_DSYM_FILE_NAME/Contents/Resources/Python
+
+for variant in $BUILD_VARIANTS; do
+       case $variant in
+       normal)
+               SUFFIX=""
+               ;;
+       *)
+               SUFFIX="_$variant"
+               ;;
+       esac
+
+       ln -sf init.py $DWARF_DSYM_FOLDER_PATH/$DWARF_DSYM_FILE_NAME/Contents/Resources/Python/$EXECUTABLE_NAME$SUFFIX.py
+done
+
+if test "$PLATFORM_NAME" != macosx; then
+    mkdir -p $DSTROOT/AppleInternal/KextObjects/Python/$MODULE_NAME || true
+    rsync -aq $SRCROOT/lldbmacros/* $DSTROOT/AppleInternal/KextObjects/Python/$MODULE_NAME
+    ln -sf init.py $DSTROOT/AppleInternal/KextObjects/Python/$MODULE_NAME/$EXECUTABLE_NAME.py
+fi