| 2968 | } |
| 2969 | |
| 2970 | char const* cmTarget::GetPrefixVariableInternal( |
| 2971 | cmStateEnums::ArtifactType artifact) const |
| 2972 | { |
| 2973 | switch (this->GetType()) { |
| 2974 | case cmStateEnums::STATIC_LIBRARY: |
| 2975 | return "CMAKE_STATIC_LIBRARY_PREFIX"; |
| 2976 | case cmStateEnums::SHARED_LIBRARY: |
| 2977 | switch (artifact) { |
| 2978 | case cmStateEnums::RuntimeBinaryArtifact: |
| 2979 | return "CMAKE_SHARED_LIBRARY_PREFIX"; |
| 2980 | case cmStateEnums::ImportLibraryArtifact: |
| 2981 | return this->IsApple() ? "CMAKE_APPLE_IMPORT_FILE_PREFIX" |
| 2982 | : "CMAKE_IMPORT_LIBRARY_PREFIX"; |
| 2983 | } |
| 2984 | break; |
| 2985 | case cmStateEnums::MODULE_LIBRARY: |
| 2986 | switch (artifact) { |
| 2987 | case cmStateEnums::RuntimeBinaryArtifact: |
| 2988 | return "CMAKE_SHARED_MODULE_PREFIX"; |
| 2989 | case cmStateEnums::ImportLibraryArtifact: |
| 2990 | return "CMAKE_IMPORT_LIBRARY_PREFIX"; |
| 2991 | } |
| 2992 | break; |
| 2993 | case cmStateEnums::EXECUTABLE: |
| 2994 | switch (artifact) { |
| 2995 | case cmStateEnums::RuntimeBinaryArtifact: |
| 2996 | // Android GUI application packages store the native |
| 2997 | // binary as a shared library. |
| 2998 | return (this->IsAndroidGuiExecutable() |
| 2999 | ? "CMAKE_SHARED_LIBRARY_PREFIX" |
| 3000 | : ""); |
| 3001 | case cmStateEnums::ImportLibraryArtifact: |
| 3002 | return (this->impl->IsAIX ? "CMAKE_AIX_IMPORT_FILE_PREFIX" |
| 3003 | : "CMAKE_IMPORT_LIBRARY_PREFIX"); |
| 3004 | } |
| 3005 | break; |
| 3006 | default: |
| 3007 | break; |
| 3008 | } |
| 3009 | return ""; |
| 3010 | } |
| 3011 | |
| 3012 | std::string cmTarget::ImportedGetFullPath( |
| 3013 | std::string const& config, cmStateEnums::ArtifactType artifact, |
no test coverage detected