| Zachary Turner | cffff26 | 2015-02-10 21:17:52 +0000 | [diff] [blame] | 1 | macro(add_pdb_impl_folder group) |
| 2 | list(APPEND PDB_IMPL_SOURCES ${ARGN}) |
| 3 | source_group(${group} FILES ${ARGN}) |
| 4 | endmacro() |
| 5 | |
| 6 | if(HAVE_DIA_SDK) |
| 7 | include_directories(${MSVC_DIA_SDK_DIR}/include) |
| 8 | set(LIBPDB_LINK_FOLDERS "${MSVC_DIA_SDK_DIR}\\lib") |
| 9 | if (CMAKE_SIZEOF_VOID_P EQUAL 8) |
| 10 | set(LIBPDB_LINK_FOLDERS "${LIBPDB_LINK_FOLDERS}\\amd64") |
| 11 | endif() |
| Dan Liew | 7b62aec | 2015-06-19 21:50:27 +0000 | [diff] [blame] | 12 | file(TO_CMAKE_PATH "${LIBPDB_LINK_FOLDERS}\\diaguids.lib" LIBPDB_ADDITIONAL_LIBRARIES) |
| Zachary Turner | cffff26 | 2015-02-10 21:17:52 +0000 | [diff] [blame] | 13 | |
| 14 | add_pdb_impl_folder(DIA |
| 15 | DIA/DIADataStream.cpp |
| 16 | DIA/DIAEnumDebugStreams.cpp |
| 17 | DIA/DIAEnumLineNumbers.cpp |
| 18 | DIA/DIAEnumSourceFiles.cpp |
| 19 | DIA/DIAEnumSymbols.cpp |
| 20 | DIA/DIALineNumber.cpp |
| 21 | DIA/DIARawSymbol.cpp |
| 22 | DIA/DIASession.cpp |
| 23 | DIA/DIASourceFile.cpp |
| 24 | ) |
| 25 | |
| Zachary Turner | 3bd47ce | 2015-02-11 03:28:02 +0000 | [diff] [blame] | 26 | set(LIBPDB_ADDITIONAL_HEADER_DIRS "${LLVM_MAIN_INCLUDE_DIR}/llvm/DebugInfo/PDB/DIA") |
| Daniel Sanders | d41718e | 2016-04-22 12:04:42 +0000 | [diff] [blame] | 27 | endif() |
| Zachary Turner | a12b3d4 | 2016-04-21 20:58:35 +0000 | [diff] [blame] | 28 | |
| Zachary Turner | 0a43efe | 2016-04-25 17:38:08 +0000 | [diff] [blame] | 29 | add_pdb_impl_folder(Raw |
| Zachary Turner | 6ba65de | 2016-04-29 17:22:58 +0000 | [diff] [blame] | 30 | Raw/ByteStream.cpp |
| 31 | Raw/MappedBlockStream.cpp |
| Zachary Turner | 1822af54 | 2016-04-27 23:41:42 +0000 | [diff] [blame] | 32 | Raw/ModInfo.cpp |
| Zachary Turner | 0a43efe | 2016-04-25 17:38:08 +0000 | [diff] [blame] | 33 | Raw/PDBFile.cpp |
| Zachary Turner | 2f09b50 | 2016-04-29 17:28:47 +0000 | [diff] [blame] | 34 | Raw/DbiStream.cpp |
| 35 | Raw/InfoStream.cpp |
| Zachary Turner | 0eace0b | 2016-05-02 18:09:14 +0000 | [diff] [blame] | 36 | Raw/NameHashTable.cpp |
| Zachary Turner | 2f09b50 | 2016-04-29 17:28:47 +0000 | [diff] [blame] | 37 | Raw/NameMap.cpp |
| Zachary Turner | 6ba65de | 2016-04-29 17:22:58 +0000 | [diff] [blame] | 38 | Raw/RawSession.cpp |
| Zachary Turner | f5c5965 | 2016-05-03 00:28:21 +0000 | [diff] [blame^] | 39 | Raw/StreamReader.cpp |
| 40 | Raw/TpiStream.cpp) |
| Zachary Turner | 0a43efe | 2016-04-25 17:38:08 +0000 | [diff] [blame] | 41 | |
| Zachary Turner | 3bd47ce | 2015-02-11 03:28:02 +0000 | [diff] [blame] | 42 | list(APPEND LIBPDB_ADDITIONAL_HEADER_DIRS "${LLVM_MAIN_INCLUDE_DIR}/llvm/DebugInfo/PDB") |
| Zachary Turner | cffff26 | 2015-02-10 21:17:52 +0000 | [diff] [blame] | 43 | |
| Zachary Turner | 0e9e663 | 2015-02-06 20:30:52 +0000 | [diff] [blame] | 44 | add_llvm_library(LLVMDebugInfoPDB |
| Zachary Turner | a554917 | 2015-02-10 22:43:25 +0000 | [diff] [blame] | 45 | IPDBSourceFile.cpp |
| Zachary Turner | 0e9e663 | 2015-02-06 20:30:52 +0000 | [diff] [blame] | 46 | PDB.cpp |
| Zachary Turner | 20dbd0d | 2015-04-27 17:19:51 +0000 | [diff] [blame] | 47 | PDBContext.cpp |
| Zachary Turner | a554917 | 2015-02-10 22:43:25 +0000 | [diff] [blame] | 48 | PDBExtras.cpp |
| Zachary Turner | 0e9e663 | 2015-02-06 20:30:52 +0000 | [diff] [blame] | 49 | PDBInterfaceAnchors.cpp |
| 50 | PDBSymbol.cpp |
| Zachary Turner | 21473f7 | 2015-02-08 00:29:29 +0000 | [diff] [blame] | 51 | PDBSymbolAnnotation.cpp |
| 52 | PDBSymbolBlock.cpp |
| 53 | PDBSymbolCompiland.cpp |
| 54 | PDBSymbolCompilandDetails.cpp |
| Zachary Turner | 0e9e663 | 2015-02-06 20:30:52 +0000 | [diff] [blame] | 55 | PDBSymbolCompilandEnv.cpp |
| 56 | PDBSymbolCustom.cpp |
| Zachary Turner | 21473f7 | 2015-02-08 00:29:29 +0000 | [diff] [blame] | 57 | PDBSymbolData.cpp |
| 58 | PDBSymbolExe.cpp |
| 59 | PDBSymbolFunc.cpp |
| 60 | PDBSymbolFuncDebugEnd.cpp |
| 61 | PDBSymbolFuncDebugStart.cpp |
| 62 | PDBSymbolLabel.cpp |
| 63 | PDBSymbolPublicSymbol.cpp |
| 64 | PDBSymbolThunk.cpp |
| 65 | PDBSymbolTypeArray.cpp |
| 66 | PDBSymbolTypeBaseClass.cpp |
| 67 | PDBSymbolTypeBuiltin.cpp |
| 68 | PDBSymbolTypeCustom.cpp |
| 69 | PDBSymbolTypeDimension.cpp |
| 70 | PDBSymbolTypeEnum.cpp |
| 71 | PDBSymbolTypeFriend.cpp |
| 72 | PDBSymbolTypeFunctionArg.cpp |
| 73 | PDBSymbolTypeFunctionSig.cpp |
| 74 | PDBSymbolTypeManaged.cpp |
| 75 | PDBSymbolTypePointer.cpp |
| 76 | PDBSymbolTypeTypedef.cpp |
| 77 | PDBSymbolTypeUDT.cpp |
| 78 | PDBSymbolTypeVTable.cpp |
| 79 | PDBSymbolTypeVTableShape.cpp |
| 80 | PDBSymbolUnknown.cpp |
| 81 | PDBSymbolUsingNamespace.cpp |
| Zachary Turner | 9a818ad | 2015-02-22 22:03:38 +0000 | [diff] [blame] | 82 | PDBSymDumper.cpp |
| Zachary Turner | cffff26 | 2015-02-10 21:17:52 +0000 | [diff] [blame] | 83 | ${PDB_IMPL_SOURCES} |
| 84 | |
| 85 | ADDITIONAL_HEADER_DIRS |
| 86 | ${LIBPDB_ADDITIONAL_HEADER_DIRS} |
| Zachary Turner | 0e9e663 | 2015-02-06 20:30:52 +0000 | [diff] [blame] | 87 | ) |
| Zachary Turner | cffff26 | 2015-02-10 21:17:52 +0000 | [diff] [blame] | 88 | |
| Chris Bieneman | 6a1b54a | 2015-03-23 20:03:57 +0000 | [diff] [blame] | 89 | target_link_libraries(LLVMDebugInfoPDB INTERFACE "${LIBPDB_ADDITIONAL_LIBRARIES}") |