Merge topic 'more-virtual-override'

624b7215 Source/CPack: Add CM_OVERRIDE on MacOS cmCPackGenerator overrides
This commit is contained in:
Brad King 2016-08-01 14:59:47 -04:00 committed by CMake Topic Stage
commit bfac78d074
6 changed files with 23 additions and 23 deletions

View File

@ -29,12 +29,12 @@ public:
virtual ~cmCPackBundleGenerator();
protected:
virtual int InitializeInternal();
virtual const char* GetPackagingInstallPrefix();
int InitializeInternal() CM_OVERRIDE;
const char* GetPackagingInstallPrefix() CM_OVERRIDE;
int ConstructBundle();
int SignBundle(const std::string& src_dir);
int PackageFiles();
bool SupportsComponentInstallation() const;
int PackageFiles() CM_OVERRIDE;
bool SupportsComponentInstallation() const CM_OVERRIDE;
std::string InstallPrefix;
};

View File

@ -29,17 +29,17 @@ public:
virtual ~cmCPackDragNDropGenerator();
protected:
virtual int InitializeInternal();
virtual const char* GetOutputExtension();
int PackageFiles();
bool SupportsComponentInstallation() const;
int InitializeInternal() CM_OVERRIDE;
const char* GetOutputExtension() CM_OVERRIDE;
int PackageFiles() CM_OVERRIDE;
bool SupportsComponentInstallation() const CM_OVERRIDE;
bool CopyFile(std::ostringstream& source, std::ostringstream& target);
bool CreateEmptyFile(std::ostringstream& target, size_t size);
bool RunCommand(std::ostringstream& command, std::string* output = 0);
std::string GetComponentInstallDirNameSuffix(
const std::string& componentName);
const std::string& componentName) CM_OVERRIDE;
int CreateDMG(const std::string& src_dir, const std::string& output_file);

View File

@ -32,10 +32,10 @@ public:
virtual ~cmCPackOSXX11Generator();
protected:
virtual int InitializeInternal();
int PackageFiles();
virtual const char* GetPackagingInstallPrefix();
virtual const char* GetOutputExtension() { return ".dmg"; }
virtual int InitializeInternal() CM_OVERRIDE;
int PackageFiles() CM_OVERRIDE;
const char* GetPackagingInstallPrefix() CM_OVERRIDE;
const char* GetOutputExtension() CM_OVERRIDE { return ".dmg"; }
// bool CopyCreateResourceFile(const std::string& name,
// const std::string& dir);

View File

@ -33,11 +33,11 @@ public:
cmCPackPKGGenerator();
virtual ~cmCPackPKGGenerator();
virtual bool SupportsComponentInstallation() const;
bool SupportsComponentInstallation() const CM_OVERRIDE;
protected:
virtual int InitializeInternal();
virtual const char* GetOutputPostfix() { return "darwin"; }
int InitializeInternal() CM_OVERRIDE;
const char* GetOutputPostfix() CM_OVERRIDE { return "darwin"; }
// Copies or creates the resource file with the given name to the
// package or package staging directory dirName. The variable

View File

@ -33,12 +33,12 @@ public:
*/
cmCPackPackageMakerGenerator();
virtual ~cmCPackPackageMakerGenerator();
bool SupportsComponentInstallation() const;
bool SupportsComponentInstallation() const CM_OVERRIDE;
protected:
virtual int InitializeInternal();
int PackageFiles();
virtual const char* GetOutputExtension() { return ".dmg"; }
int InitializeInternal() CM_OVERRIDE;
int PackageFiles() CM_OVERRIDE;
const char* GetOutputExtension() CM_OVERRIDE { return ".dmg"; }
// Run PackageMaker with the given command line, which will (if
// successful) produce the given package file. Returns true if

View File

@ -33,9 +33,9 @@ public:
virtual ~cmCPackProductBuildGenerator();
protected:
virtual int InitializeInternal();
int PackageFiles();
virtual const char* GetOutputExtension() { return ".pkg"; }
int InitializeInternal() CM_OVERRIDE;
int PackageFiles() CM_OVERRIDE;
const char* GetOutputExtension() CM_OVERRIDE { return ".pkg"; }
// Run ProductBuild with the given command line, which will (if
// successful) produce the given package file. Returns true if