Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(174)

Side by Side Diff: tools/clang/blink_gc_plugin/CMakeLists.txt

Issue 1385193002: Bisect clang Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: 246985 Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 set(LIBRARYNAME BlinkGCPlugin)
2
3 set(plugin_sources
4 BlinkGCPlugin.cpp
5 BlinkGCPluginConsumer.cpp
6 CheckDispatchVisitor.cpp
7 CheckFieldsVisitor.cpp
8 CheckFinalizerVisitor.cpp
9 CheckGCRootsVisitor.cpp
10 CheckTraceVisitor.cpp
11 CollectVisitor.cpp
12 Config.cpp
13 Edge.cpp
14 RecordInfo.cpp)
15
16 if(WIN32)
17 # 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 # Since clang doesn't reference any symbols in our static library, the linker
20 # strips it out completely.
21 # 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 # clang...
24 cmake_minimum_required(VERSION 3.1)
25 # Paths must be absolute, since we're modifying a target in another directory.
26 set(absolute_sources "")
27 foreach(source ${plugin_sources})
28 list(APPEND absolute_sources ${CMAKE_CURRENT_SOURCE_DIR}/${source})
29 endforeach()
30 set_property(TARGET clang APPEND PROPERTY SOURCES ${absolute_sources})
31
32 cr_add_test(blink_gc_plugin_test
33 python
34 ${CMAKE_CURRENT_SOURCE_DIR}/tests/test.py
35 ${CMAKE_BINARY_DIR}/bin/clang
36 )
37 else()
38 add_llvm_loadable_module("lib${LIBRARYNAME}" ${plugin_sources})
39 add_dependencies("lib${LIBRARYNAME}" clang)
40
41 cr_install(TARGETS "lib${LIBRARYNAME}" LIBRARY DESTINATION lib)
42
43 cr_add_test(blink_gc_plugin_test
44 python
45 ${CMAKE_CURRENT_SOURCE_DIR}/tests/test.py
46 ${CMAKE_BINARY_DIR}/bin/clang
47 $<TARGET_FILE:lib${LIBRARYNAME}>
48 )
49 endif()
OLDNEW
« no previous file with comments | « tools/clang/blink_gc_plugin/BlinkGCPluginOptions.h ('k') | tools/clang/blink_gc_plugin/CheckDispatchVisitor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698