if ( att != NULL )
{
const XMLAttribute* installbase = moduleNode.GetAttribute ( "installbase", false );
-
- if(installbase)
- this->installbase = installbase->value;
- else
- this->installbase = "";
-
install = new FileLocation ( InstallDirectory,
installbase ? installbase->value : "",
att->value,
if (entrypoint == "0" || entrypoint == "0x0")
return "0";
- if (Environment::GetArch() != "arm")
+ if (Environment::GetArch() != "arm" && Environment::GetArch() != "amd64")
result = "_";
result += entrypoint;
throw new InvalidOperationException ( __FILE__, __LINE__, "Module %s has no dllname." );
}
+SpecFileType
+Module::IsSpecDefinitionFile () const
+{
+ if(!importLibrary)
+ return None;
+
+ std::string ext = GetExtension ( *importLibrary->source );
+
+ if ( ext == ".spec" )
+ return Spec;
+
+ if ( ext == ".pspec" )
+ return PSpec;
+
+ return None;
+}
+
+
File::File ( DirectoryLocation directory,
const string& relative_path,
const string& name,