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 |
(...skipping 12 matching lines...) Expand all Loading... | |
23 # 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 |
24 # clang... | 24 # clang... |
25 cmake_minimum_required(VERSION 3.1) | 25 cmake_minimum_required(VERSION 3.1) |
26 # Paths must be absolute, since we're modifying a target in another directory. | 26 # Paths must be absolute, since we're modifying a target in another directory. |
27 set(absolute_sources "") | 27 set(absolute_sources "") |
28 foreach(source ${plugin_sources}) | 28 foreach(source ${plugin_sources}) |
29 list(APPEND absolute_sources ${CMAKE_CURRENT_SOURCE_DIR}/${source}) | 29 list(APPEND absolute_sources ${CMAKE_CURRENT_SOURCE_DIR}/${source}) |
30 endforeach() | 30 endforeach() |
31 set_property(TARGET clang APPEND PROPERTY SOURCES ${absolute_sources}) | 31 set_property(TARGET clang APPEND PROPERTY SOURCES ${absolute_sources}) |
32 | 32 |
33 # TODO(https://crbug.com/675879): Clean up after the Blink rename. | |
34 cr_add_test(blink_gc_plugin_legacy_test | |
35 python legacy_naming/tests/test.py | |
sof
2016/12/20 13:51:54
tests/legacy_naming/ ?
dcheng
2016/12/20 17:31:18
Done.
| |
36 ${CMAKE_BINARY_DIR}/bin/clang | |
37 ) | |
33 cr_add_test(blink_gc_plugin_test | 38 cr_add_test(blink_gc_plugin_test |
34 python tests/test.py | 39 python tests/test.py |
35 ${CMAKE_BINARY_DIR}/bin/clang | 40 ${CMAKE_BINARY_DIR}/bin/clang |
36 ) | 41 ) |
37 else() | 42 else() |
38 add_llvm_loadable_module("lib${LIBRARYNAME}" ${plugin_sources}) | 43 add_llvm_loadable_module("lib${LIBRARYNAME}" ${plugin_sources}) |
39 add_dependencies("lib${LIBRARYNAME}" clang) | 44 add_dependencies("lib${LIBRARYNAME}" clang) |
40 | 45 |
41 cr_install(TARGETS "lib${LIBRARYNAME}" LIBRARY DESTINATION lib) | 46 cr_install(TARGETS "lib${LIBRARYNAME}" LIBRARY DESTINATION lib) |
42 | 47 |
48 # TODO(https://crbug.com/675879): Clean up after the Blink rename. | |
49 cr_add_test(blink_gc_plugin_legacy_test | |
50 python tests/legacy_naming/test.py | |
51 ${CMAKE_BINARY_DIR}/bin/clang | |
52 $<TARGET_FILE:lib${LIBRARYNAME}> | |
53 ) | |
43 cr_add_test(blink_gc_plugin_test | 54 cr_add_test(blink_gc_plugin_test |
44 python tests/test.py | 55 python tests/test.py |
45 ${CMAKE_BINARY_DIR}/bin/clang | 56 ${CMAKE_BINARY_DIR}/bin/clang |
46 $<TARGET_FILE:lib${LIBRARYNAME}> | 57 $<TARGET_FILE:lib${LIBRARYNAME}> |
47 ) | 58 ) |
48 endif() | 59 endif() |
OLD | NEW |