소스 검색

OS X: Install CFBundles as complete directories

Install CFBundles as directories just like frameworks and application
bundles.
Tim Blechmann 11 년 전
부모
커밋
a3ac67cc3f
1개의 변경된 파일14개의 추가작업 그리고 0개의 파일을 삭제
  1. 14 0
      Source/cmInstallTargetGenerator.cxx

+ 14 - 0
Source/cmInstallTargetGenerator.cxx

@@ -210,6 +210,20 @@ void cmInstallTargetGenerator::GenerateScriptForConfig(std::ostream& os,
       // Tweaks apply to the binary inside the bundle.
       std::string to1 = toDir + targetNameReal;
 
+      filesFrom.push_back(from1);
+      filesTo.push_back(to1);
+      }
+    else if(this->Target->IsCFBundleOnApple())
+      {
+      // Install the whole app bundle directory.
+      type = cmInstallType_DIRECTORY;
+      literal_args += " USE_SOURCE_PERMISSIONS";
+
+      std::string targetNameBase = targetName.substr(0, targetName.find('/'));
+
+      std::string from1 = fromDirConfig + targetNameBase;
+      std::string to1 = toDir + targetName;
+
       filesFrom.push_back(from1);
       filesTo.push_back(to1);
       }