-#elif 0 && DEPLOYMENT_TARGET_WINDOWS
- // * (Windows-only) First check the "Executables" directory parallel to the "Frameworks" directory case.
- if (_CFAppendPathComponent(pathBuff, &length, CFMaxPathSize, executablesToFrameworksPathBuff, LENGTH_OF(executablesToFrameworksPathBuff)) && _CFAppendPathComponent(pathBuff, &length, CFMaxPathSize, nameBuff, nameLength) && _CFAppendPathExtension(pathBuff, &length, CFMaxPathSize, frameworksExtension, LENGTH_OF(frameworksExtension))) {
- CFStringSetExternalCharactersNoCopy(cheapStr, pathBuff, length, CFMaxPathSize);
- bundleURL = CFURLCreateWithFileSystemPath(kCFAllocatorSystemDefault, cheapStr, PLATFORM_PATH_STYLE, true);
- if (!_CFBundleCouldBeBundle(bundleURL)) {
- CFRelease(bundleURL);
- bundleURL = NULL;
- }
- }
- // * (Windows-only) Next check the "Executables" directory parallel to the "PrivateFrameworks" directory case.
- if (!bundleURL) {
- length = savedLength;
- if (_CFAppendPathComponent(pathBuff, &length, CFMaxPathSize, executablesToPrivateFrameworksPathBuff, LENGTH_OF(executablesToPrivateFrameworksPathBuff)) && _CFAppendPathComponent(pathBuff, &length, CFMaxPathSize, nameBuff, nameLength) && _CFAppendPathExtension(pathBuff, &length, CFMaxPathSize, frameworksExtension, LENGTH_OF(frameworksExtension))) {
- CFStringSetExternalCharactersNoCopy(cheapStr, pathBuff, length, CFMaxPathSize);
- bundleURL = CFURLCreateWithFileSystemPath(kCFAllocatorSystemDefault, cheapStr, PLATFORM_PATH_STYLE, true);
- if (!_CFBundleCouldBeBundle(bundleURL)) {
- CFRelease(bundleURL);
- bundleURL = NULL;
- }
- }
- }
- // * (Windows-only) Next check the \Program Files\Apple\Mobile Device Support\Frameworks directory
- if (!bundleURL) {
- length = 0;
- if (_CFAppendPathComponent(pathBuff, &length, CFMaxPathSize, executablesToSystemFrameworksPathBuff, wcslen(executablesToSystemFrameworksPathBuff)) && _CFAppendPathComponent(pathBuff, &length, CFMaxPathSize, nameBuff, nameLength) && _CFAppendPathExtension(pathBuff, &length, CFMaxPathSize, frameworksExtension, LENGTH_OF(frameworksExtension))) {
- CFStringSetExternalCharactersNoCopy(cheapStr, pathBuff, length, CFMaxPathSize);
- bundleURL = CFURLCreateWithFileSystemPath(kCFAllocatorSystemDefault, cheapStr, PLATFORM_PATH_STYLE, true);
- if (!_CFBundleCouldBeBundle(bundleURL)) {
- CFRelease(bundleURL);
- bundleURL = NULL;
- }
- }
- }