Joerg Sonnenberger | 340a175 | 2013-09-25 10:37:32 +0000 | [diff] [blame] | 1 | set(LLVM_NO_RTTI 1) |
| 2 | |
Zachary Turner | 7513e82 | 2015-02-17 22:20:20 +0000 | [diff] [blame] | 3 | if ( CMAKE_SYSTEM_NAME MATCHES "Windows" ) |
Zachary Turner | 030b8cb | 2015-02-24 22:17:57 +0000 | [diff] [blame] | 4 | add_definitions( -DEXPORT_LIBLLDB ) |
Zachary Turner | 7513e82 | 2015-02-17 22:20:20 +0000 | [diff] [blame] | 5 | endif() |
| 6 | |
Zachary Turner | 799770c | 2015-03-18 16:56:24 +0000 | [diff] [blame] | 7 | # Include this so that add_lldb_library() has the list of dependencies |
| 8 | # for liblldb to link against |
| 9 | include(${LLDB_PROJECT_ROOT}/cmake/LLDBDependencies.cmake) |
| 10 | |
| 11 | add_lldb_library(liblldb SHARED |
Joerg Sonnenberger | 340a175 | 2013-09-25 10:37:32 +0000 | [diff] [blame] | 12 | SBAddress.cpp |
Oleksiy Vyalov | 71d08b3 | 2015-02-16 00:04:19 +0000 | [diff] [blame] | 13 | SBAttachInfo.cpp |
Joerg Sonnenberger | 340a175 | 2013-09-25 10:37:32 +0000 | [diff] [blame] | 14 | SBBlock.cpp |
| 15 | SBBreakpoint.cpp |
| 16 | SBBreakpointLocation.cpp |
| 17 | SBBroadcaster.cpp |
| 18 | SBCommandInterpreter.cpp |
| 19 | SBCommandReturnObject.cpp |
| 20 | SBCommunication.cpp |
| 21 | SBCompileUnit.cpp |
| 22 | SBData.cpp |
| 23 | SBDebugger.cpp |
| 24 | SBDeclaration.cpp |
| 25 | SBError.cpp |
| 26 | SBEvent.cpp |
Chandler Carruth | b8a4ecb | 2014-10-01 21:33:28 +0000 | [diff] [blame] | 27 | SBExecutionContext.cpp |
Joerg Sonnenberger | 340a175 | 2013-09-25 10:37:32 +0000 | [diff] [blame] | 28 | SBExpressionOptions.cpp |
| 29 | SBFileSpec.cpp |
| 30 | SBFileSpecList.cpp |
| 31 | SBFrame.cpp |
| 32 | SBFunction.cpp |
| 33 | SBHostOS.cpp |
Joerg Sonnenberger | 340a175 | 2013-09-25 10:37:32 +0000 | [diff] [blame] | 34 | SBInstruction.cpp |
| 35 | SBInstructionList.cpp |
Oleksiy Vyalov | 1ef7b2c | 2015-02-04 23:19:15 +0000 | [diff] [blame] | 36 | SBLaunchInfo.cpp |
Joerg Sonnenberger | 340a175 | 2013-09-25 10:37:32 +0000 | [diff] [blame] | 37 | SBLineEntry.cpp |
| 38 | SBListener.cpp |
| 39 | SBModule.cpp |
| 40 | SBModuleSpec.cpp |
Ed Maste | 5341404 | 2013-11-21 14:38:22 +0000 | [diff] [blame] | 41 | SBPlatform.cpp |
Joerg Sonnenberger | 340a175 | 2013-09-25 10:37:32 +0000 | [diff] [blame] | 42 | SBProcess.cpp |
Jason Molenda | 5e8dce4 | 2013-12-13 00:29:16 +0000 | [diff] [blame] | 43 | SBQueue.cpp |
| 44 | SBQueueItem.cpp |
Joerg Sonnenberger | 340a175 | 2013-09-25 10:37:32 +0000 | [diff] [blame] | 45 | SBSection.cpp |
| 46 | SBSourceManager.cpp |
| 47 | SBStream.cpp |
| 48 | SBStringList.cpp |
| 49 | SBSymbol.cpp |
| 50 | SBSymbolContext.cpp |
| 51 | SBSymbolContextList.cpp |
| 52 | SBTarget.cpp |
| 53 | SBThread.cpp |
Kuba Brecka | aaa0b81 | 2014-09-06 01:22:55 +0000 | [diff] [blame] | 54 | SBThreadCollection.cpp |
Todd Fiala | 8a3716b | 2014-09-30 15:58:56 +0000 | [diff] [blame] | 55 | SBThreadPlan.cpp |
Joerg Sonnenberger | 340a175 | 2013-09-25 10:37:32 +0000 | [diff] [blame] | 56 | SBType.cpp |
| 57 | SBTypeCategory.cpp |
Todd Fiala | 732215f | 2014-06-02 20:55:29 +0000 | [diff] [blame] | 58 | SBTypeEnumMember.cpp |
Joerg Sonnenberger | 340a175 | 2013-09-25 10:37:32 +0000 | [diff] [blame] | 59 | SBTypeFilter.cpp |
| 60 | SBTypeFormat.cpp |
| 61 | SBTypeNameSpecifier.cpp |
| 62 | SBTypeSummary.cpp |
| 63 | SBTypeSynthetic.cpp |
| 64 | SBValue.cpp |
| 65 | SBValueList.cpp |
Zachary Turner | 51f96ee | 2015-02-17 17:55:50 +0000 | [diff] [blame] | 66 | SBVariablesOptions.cpp |
Joerg Sonnenberger | 340a175 | 2013-09-25 10:37:32 +0000 | [diff] [blame] | 67 | SBWatchpoint.cpp |
Todd Fiala | 802dc402 | 2014-06-23 19:30:49 +0000 | [diff] [blame] | 68 | SBUnixSignals.cpp |
Zachary Turner | e6e2bb3 | 2015-03-31 21:03:22 +0000 | [diff] [blame^] | 69 | SystemInitializerFull.cpp |
Zachary Turner | 799770c | 2015-03-18 16:56:24 +0000 | [diff] [blame] | 70 | ${LLDB_WRAP_PYTHON} |
| 71 | ${LLDB_VERS_GENERATED_FILE} |
Joerg Sonnenberger | 340a175 | 2013-09-25 10:37:32 +0000 | [diff] [blame] | 72 | ) |
Zachary Turner | 799770c | 2015-03-18 16:56:24 +0000 | [diff] [blame] | 73 | |
| 74 | set_target_properties(liblldb |
| 75 | PROPERTIES |
| 76 | VERSION ${LLDB_VERSION} |
| 77 | ) |
| 78 | |
| 79 | if ( CMAKE_SYSTEM_NAME MATCHES "Windows" ) |
| 80 | # Only MSVC has the ABI compatibility problem and avoids using FindPythonLibs, |
| 81 | # so only it needs to explicitly link against ${PYTHON_LIBRARY} |
| 82 | if (MSVC AND NOT LLDB_DISABLE_PYTHON) |
| 83 | target_link_libraries(liblldb PRIVATE ${PYTHON_LIBRARY}) |
| 84 | endif() |
| 85 | else() |
| 86 | set_target_properties(liblldb |
| 87 | PROPERTIES |
| 88 | OUTPUT_NAME lldb |
| 89 | ) |
| 90 | endif() |
| 91 | |
| 92 | if (LLDB_WRAP_PYTHON OR LLDB_VERS_GENERATED_FILE) |
| 93 | add_dependencies(liblldb swig_wrapper) |
| 94 | endif() |
| 95 | target_link_libraries(liblldb ${cmake_2_8_12_PRIVATE} ${LLDB_SYSTEM_LIBS}) |
| 96 | |