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 | 030b8cb | 2015-02-24 22:17:57 +0000 | [diff] [blame^] | 7 | # An OBJECT library is a special type of CMake library that produces |
| 8 | # no archive, has no link interface, and no link inputs. It is like |
| 9 | # a regular archive, just without the physical output. To link against |
| 10 | # an OBJECT library, you reference it in the *source* file list of a |
| 11 | # library using the special syntax $<TARGET_OBJECTS:lldbAPI>. This will |
| 12 | # cause every object file to be passed to the linker independently, as |
| 13 | # opposed to a single archive being passed to the linker. |
| 14 | # |
| 15 | # This is *extremely* important on Windows. lldbAPI exports all of the |
| 16 | # SB classes using __declspec(dllexport). Unfortunately for technical |
| 17 | # reasons it is not possible (well, extremely difficult) to get the linker |
| 18 | # to propagate a __declspec(dllexport) attribute from a symbol in an |
| 19 | # object file in an archive to a DLL that links against that archive. |
| 20 | # The solution to this is for the DLL to link the object file directly. |
| 21 | # So lldbAPI must be an OBJECT library. |
| 22 | add_lldb_library(lldbAPI OBJECT |
Joerg Sonnenberger | 340a175 | 2013-09-25 10:37:32 +0000 | [diff] [blame] | 23 | SBAddress.cpp |
Oleksiy Vyalov | 71d08b3 | 2015-02-16 00:04:19 +0000 | [diff] [blame] | 24 | SBAttachInfo.cpp |
Joerg Sonnenberger | 340a175 | 2013-09-25 10:37:32 +0000 | [diff] [blame] | 25 | SBBlock.cpp |
| 26 | SBBreakpoint.cpp |
| 27 | SBBreakpointLocation.cpp |
| 28 | SBBroadcaster.cpp |
| 29 | SBCommandInterpreter.cpp |
| 30 | SBCommandReturnObject.cpp |
| 31 | SBCommunication.cpp |
| 32 | SBCompileUnit.cpp |
| 33 | SBData.cpp |
| 34 | SBDebugger.cpp |
| 35 | SBDeclaration.cpp |
| 36 | SBError.cpp |
| 37 | SBEvent.cpp |
Chandler Carruth | b8a4ecb | 2014-10-01 21:33:28 +0000 | [diff] [blame] | 38 | SBExecutionContext.cpp |
Joerg Sonnenberger | 340a175 | 2013-09-25 10:37:32 +0000 | [diff] [blame] | 39 | SBExpressionOptions.cpp |
| 40 | SBFileSpec.cpp |
| 41 | SBFileSpecList.cpp |
| 42 | SBFrame.cpp |
| 43 | SBFunction.cpp |
| 44 | SBHostOS.cpp |
Joerg Sonnenberger | 340a175 | 2013-09-25 10:37:32 +0000 | [diff] [blame] | 45 | SBInstruction.cpp |
| 46 | SBInstructionList.cpp |
Oleksiy Vyalov | 1ef7b2c | 2015-02-04 23:19:15 +0000 | [diff] [blame] | 47 | SBLaunchInfo.cpp |
Joerg Sonnenberger | 340a175 | 2013-09-25 10:37:32 +0000 | [diff] [blame] | 48 | SBLineEntry.cpp |
| 49 | SBListener.cpp |
| 50 | SBModule.cpp |
| 51 | SBModuleSpec.cpp |
Ed Maste | 5341404 | 2013-11-21 14:38:22 +0000 | [diff] [blame] | 52 | SBPlatform.cpp |
Joerg Sonnenberger | 340a175 | 2013-09-25 10:37:32 +0000 | [diff] [blame] | 53 | SBProcess.cpp |
Jason Molenda | 5e8dce4 | 2013-12-13 00:29:16 +0000 | [diff] [blame] | 54 | SBQueue.cpp |
| 55 | SBQueueItem.cpp |
Joerg Sonnenberger | 340a175 | 2013-09-25 10:37:32 +0000 | [diff] [blame] | 56 | SBSection.cpp |
| 57 | SBSourceManager.cpp |
| 58 | SBStream.cpp |
| 59 | SBStringList.cpp |
| 60 | SBSymbol.cpp |
| 61 | SBSymbolContext.cpp |
| 62 | SBSymbolContextList.cpp |
| 63 | SBTarget.cpp |
| 64 | SBThread.cpp |
Kuba Brecka | aaa0b81 | 2014-09-06 01:22:55 +0000 | [diff] [blame] | 65 | SBThreadCollection.cpp |
Todd Fiala | 8a3716b | 2014-09-30 15:58:56 +0000 | [diff] [blame] | 66 | SBThreadPlan.cpp |
Joerg Sonnenberger | 340a175 | 2013-09-25 10:37:32 +0000 | [diff] [blame] | 67 | SBType.cpp |
| 68 | SBTypeCategory.cpp |
Todd Fiala | 732215f | 2014-06-02 20:55:29 +0000 | [diff] [blame] | 69 | SBTypeEnumMember.cpp |
Joerg Sonnenberger | 340a175 | 2013-09-25 10:37:32 +0000 | [diff] [blame] | 70 | SBTypeFilter.cpp |
| 71 | SBTypeFormat.cpp |
| 72 | SBTypeNameSpecifier.cpp |
| 73 | SBTypeSummary.cpp |
| 74 | SBTypeSynthetic.cpp |
| 75 | SBValue.cpp |
| 76 | SBValueList.cpp |
Zachary Turner | 51f96ee | 2015-02-17 17:55:50 +0000 | [diff] [blame] | 77 | SBVariablesOptions.cpp |
Joerg Sonnenberger | 340a175 | 2013-09-25 10:37:32 +0000 | [diff] [blame] | 78 | SBWatchpoint.cpp |
Todd Fiala | 802dc402 | 2014-06-23 19:30:49 +0000 | [diff] [blame] | 79 | SBUnixSignals.cpp |
Joerg Sonnenberger | 340a175 | 2013-09-25 10:37:32 +0000 | [diff] [blame] | 80 | ) |