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 | |
Michal Gorny | 89b6f16 | 2017-01-02 18:19:35 +0000 | [diff] [blame] | 6 | if(LLVM_ENABLE_DIA_SDK) |
Zachary Turner | cffff26 | 2015-02-10 21:17:52 +0000 | [diff] [blame] | 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 |
Zachary Turner | 819e77d | 2016-05-06 20:51:57 +0000 | [diff] [blame] | 20 | DIA/DIAError.cpp |
Zachary Turner | cffff26 | 2015-02-10 21:17:52 +0000 | [diff] [blame] | 21 | DIA/DIALineNumber.cpp |
| 22 | DIA/DIARawSymbol.cpp |
| 23 | DIA/DIASession.cpp |
| 24 | DIA/DIASourceFile.cpp |
| 25 | ) |
| 26 | |
Zachary Turner | 3bd47ce | 2015-02-11 03:28:02 +0000 | [diff] [blame] | 27 | 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] | 28 | endif() |
Zachary Turner | a12b3d4 | 2016-04-21 20:58:35 +0000 | [diff] [blame] | 29 | |
Adrian McCarthy | 6b6b8c4 | 2017-01-25 22:38:55 +0000 | [diff] [blame] | 30 | add_pdb_impl_folder(Native |
Zachary Turner | 67c5601 | 2017-04-27 16:11:19 +0000 | [diff] [blame] | 31 | Native/DbiModuleDescriptor.cpp |
| 32 | Native/DbiModuleDescriptorBuilder.cpp |
Zachary Turner | 1eb9a02 | 2017-05-04 23:53:29 +0000 | [diff] [blame^] | 33 | Native/DbiModuleList.cpp |
Adrian McCarthy | 6b6b8c4 | 2017-01-25 22:38:55 +0000 | [diff] [blame] | 34 | Native/DbiStream.cpp |
| 35 | Native/DbiStreamBuilder.cpp |
| 36 | Native/EnumTables.cpp |
| 37 | Native/GlobalsStream.cpp |
| 38 | Native/GSI.cpp |
| 39 | Native/Hash.cpp |
| 40 | Native/HashTable.cpp |
| 41 | Native/InfoStream.cpp |
| 42 | Native/InfoStreamBuilder.cpp |
Zachary Turner | 67c5601 | 2017-04-27 16:11:19 +0000 | [diff] [blame] | 43 | Native/ModuleDebugStream.cpp |
Adrian McCarthy | 65d2688 | 2017-03-15 20:17:58 +0000 | [diff] [blame] | 44 | Native/NativeCompilandSymbol.cpp |
| 45 | Native/NativeEnumModules.cpp |
Adrian McCarthy | 4d93d66 | 2017-03-29 19:27:08 +0000 | [diff] [blame] | 46 | Native/NativeExeSymbol.cpp |
Adrian McCarthy | 0beb332 | 2017-02-09 21:51:19 +0000 | [diff] [blame] | 47 | Native/NativeRawSymbol.cpp |
Adrian McCarthy | 6b6b8c4 | 2017-01-25 22:38:55 +0000 | [diff] [blame] | 48 | Native/NamedStreamMap.cpp |
| 49 | Native/NativeSession.cpp |
| 50 | Native/PDBFile.cpp |
| 51 | Native/PDBFileBuilder.cpp |
Zachary Turner | e204a6c | 2017-05-02 18:00:13 +0000 | [diff] [blame] | 52 | Native/PDBStringTable.cpp |
| 53 | Native/PDBStringTableBuilder.cpp |
Zachary Turner | 7b327d0 | 2017-02-16 23:35:45 +0000 | [diff] [blame] | 54 | Native/PDBTypeServerHandler.cpp |
Adrian McCarthy | 6b6b8c4 | 2017-01-25 22:38:55 +0000 | [diff] [blame] | 55 | Native/PublicsStream.cpp |
| 56 | Native/RawError.cpp |
Adrian McCarthy | 6b6b8c4 | 2017-01-25 22:38:55 +0000 | [diff] [blame] | 57 | Native/SymbolStream.cpp |
| 58 | Native/TpiHashing.cpp |
| 59 | Native/TpiStream.cpp |
| 60 | Native/TpiStreamBuilder.cpp) |
Zachary Turner | 0a43efe | 2016-04-25 17:38:08 +0000 | [diff] [blame] | 61 | |
Adrian McCarthy | 6b6b8c4 | 2017-01-25 22:38:55 +0000 | [diff] [blame] | 62 | list(APPEND LIBPDB_ADDITIONAL_HEADER_DIRS "${LLVM_MAIN_INCLUDE_DIR}/llvm/DebugInfo/PDB/Native") |
Zachary Turner | 3bd47ce | 2015-02-11 03:28:02 +0000 | [diff] [blame] | 63 | 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] | 64 | |
Zachary Turner | 0e9e663 | 2015-02-06 20:30:52 +0000 | [diff] [blame] | 65 | add_llvm_library(LLVMDebugInfoPDB |
Zachary Turner | 819e77d | 2016-05-06 20:51:57 +0000 | [diff] [blame] | 66 | GenericError.cpp |
Zachary Turner | a554917 | 2015-02-10 22:43:25 +0000 | [diff] [blame] | 67 | IPDBSourceFile.cpp |
Zachary Turner | 0e9e663 | 2015-02-06 20:30:52 +0000 | [diff] [blame] | 68 | PDB.cpp |
Zachary Turner | 20dbd0d | 2015-04-27 17:19:51 +0000 | [diff] [blame] | 69 | PDBContext.cpp |
Zachary Turner | a554917 | 2015-02-10 22:43:25 +0000 | [diff] [blame] | 70 | PDBExtras.cpp |
Zachary Turner | 0e9e663 | 2015-02-06 20:30:52 +0000 | [diff] [blame] | 71 | PDBInterfaceAnchors.cpp |
| 72 | PDBSymbol.cpp |
Zachary Turner | 21473f7 | 2015-02-08 00:29:29 +0000 | [diff] [blame] | 73 | PDBSymbolAnnotation.cpp |
| 74 | PDBSymbolBlock.cpp |
| 75 | PDBSymbolCompiland.cpp |
| 76 | PDBSymbolCompilandDetails.cpp |
Zachary Turner | 0e9e663 | 2015-02-06 20:30:52 +0000 | [diff] [blame] | 77 | PDBSymbolCompilandEnv.cpp |
| 78 | PDBSymbolCustom.cpp |
Zachary Turner | 21473f7 | 2015-02-08 00:29:29 +0000 | [diff] [blame] | 79 | PDBSymbolData.cpp |
| 80 | PDBSymbolExe.cpp |
| 81 | PDBSymbolFunc.cpp |
| 82 | PDBSymbolFuncDebugEnd.cpp |
| 83 | PDBSymbolFuncDebugStart.cpp |
| 84 | PDBSymbolLabel.cpp |
| 85 | PDBSymbolPublicSymbol.cpp |
| 86 | PDBSymbolThunk.cpp |
| 87 | PDBSymbolTypeArray.cpp |
| 88 | PDBSymbolTypeBaseClass.cpp |
| 89 | PDBSymbolTypeBuiltin.cpp |
| 90 | PDBSymbolTypeCustom.cpp |
| 91 | PDBSymbolTypeDimension.cpp |
| 92 | PDBSymbolTypeEnum.cpp |
| 93 | PDBSymbolTypeFriend.cpp |
| 94 | PDBSymbolTypeFunctionArg.cpp |
| 95 | PDBSymbolTypeFunctionSig.cpp |
| 96 | PDBSymbolTypeManaged.cpp |
| 97 | PDBSymbolTypePointer.cpp |
| 98 | PDBSymbolTypeTypedef.cpp |
| 99 | PDBSymbolTypeUDT.cpp |
| 100 | PDBSymbolTypeVTable.cpp |
| 101 | PDBSymbolTypeVTableShape.cpp |
| 102 | PDBSymbolUnknown.cpp |
| 103 | PDBSymbolUsingNamespace.cpp |
Zachary Turner | 9a818ad | 2015-02-22 22:03:38 +0000 | [diff] [blame] | 104 | PDBSymDumper.cpp |
Zachary Turner | c883a8c | 2017-04-12 23:18:21 +0000 | [diff] [blame] | 105 | UDTLayout.cpp |
Zachary Turner | cffff26 | 2015-02-10 21:17:52 +0000 | [diff] [blame] | 106 | ${PDB_IMPL_SOURCES} |
| 107 | |
| 108 | ADDITIONAL_HEADER_DIRS |
| 109 | ${LIBPDB_ADDITIONAL_HEADER_DIRS} |
Zachary Turner | 0e9e663 | 2015-02-06 20:30:52 +0000 | [diff] [blame] | 110 | ) |
Zachary Turner | cffff26 | 2015-02-10 21:17:52 +0000 | [diff] [blame] | 111 | |
Chris Bieneman | 6a1b54a | 2015-03-23 20:03:57 +0000 | [diff] [blame] | 112 | target_link_libraries(LLVMDebugInfoPDB INTERFACE "${LIBPDB_ADDITIONAL_LIBRARIES}") |