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