OLD | NEW |
1 set(LIBRARYNAME BlinkGCPlugin) | 1 set(LIBRARYNAME BlinkGCPlugin) |
2 | 2 |
3 set(plugin_sources | 3 set(plugin_sources |
4 BlinkGCPlugin.cpp | 4 BlinkGCPlugin.cpp |
5 BlinkGCPluginConsumer.cpp | 5 BlinkGCPluginConsumer.cpp |
6 CheckDispatchVisitor.cpp | 6 CheckDispatchVisitor.cpp |
7 CheckFieldsVisitor.cpp | 7 CheckFieldsVisitor.cpp |
8 CheckFinalizerVisitor.cpp | 8 CheckFinalizerVisitor.cpp |
9 CheckGCRootsVisitor.cpp | 9 CheckGCRootsVisitor.cpp |
10 CheckTraceVisitor.cpp | 10 CheckTraceVisitor.cpp |
11 CollectVisitor.cpp | 11 CollectVisitor.cpp |
12 Config.cpp | 12 Config.cpp |
| 13 DiagnosticsReporter.cpp |
13 Edge.cpp | 14 Edge.cpp |
14 RecordInfo.cpp) | 15 RecordInfo.cpp) |
15 | 16 |
16 if(WIN32) | 17 if(WIN32) |
17 # Clang doesn't support loadable modules on Windows. Unfortunately, building | 18 # Clang doesn't support loadable modules on Windows. Unfortunately, building |
18 # the plugin as a static library and linking clang against it doesn't work. | 19 # the plugin as a static library and linking clang against it doesn't work. |
19 # Since clang doesn't reference any symbols in our static library, the linker | 20 # Since clang doesn't reference any symbols in our static library, the linker |
20 # strips it out completely. | 21 # strips it out completely. |
21 # Instead, we rely on the fact that the SOURCES property of a target is no | 22 # Instead, we rely on the fact that the SOURCES property of a target is no |
22 # read-only after CMake 3.1 and use it to compile the plugin directly into | 23 # read-only after CMake 3.1 and use it to compile the plugin directly into |
(...skipping 15 matching lines...) Expand all Loading... |
38 add_dependencies("lib${LIBRARYNAME}" clang) | 39 add_dependencies("lib${LIBRARYNAME}" clang) |
39 | 40 |
40 cr_install(TARGETS "lib${LIBRARYNAME}" LIBRARY DESTINATION lib) | 41 cr_install(TARGETS "lib${LIBRARYNAME}" LIBRARY DESTINATION lib) |
41 | 42 |
42 cr_add_test(blink_gc_plugin_test | 43 cr_add_test(blink_gc_plugin_test |
43 python tests/test.py | 44 python tests/test.py |
44 ${CMAKE_BINARY_DIR}/bin/clang | 45 ${CMAKE_BINARY_DIR}/bin/clang |
45 $<TARGET_FILE:lib${LIBRARYNAME}> | 46 $<TARGET_FILE:lib${LIBRARYNAME}> |
46 ) | 47 ) |
47 endif() | 48 endif() |
OLD | NEW |