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

Unified Diff: tools/clang/blink_gc_plugin/CMakeLists.txt

Issue 1709343002: Remove tools/clang (this will break things temporarily). Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: tools/clang/blink_gc_plugin/CMakeLists.txt
diff --git a/tools/clang/blink_gc_plugin/CMakeLists.txt b/tools/clang/blink_gc_plugin/CMakeLists.txt
deleted file mode 100644
index 560bd0fd751055a60dd553e1a7a94eeb719057cd..0000000000000000000000000000000000000000
--- a/tools/clang/blink_gc_plugin/CMakeLists.txt
+++ /dev/null
@@ -1,49 +0,0 @@
-set(LIBRARYNAME BlinkGCPlugin)
-
-set(plugin_sources
- BlinkGCPlugin.cpp
- BlinkGCPluginConsumer.cpp
- CheckDispatchVisitor.cpp
- CheckFieldsVisitor.cpp
- CheckFinalizerVisitor.cpp
- CheckGCRootsVisitor.cpp
- CheckTraceVisitor.cpp
- CollectVisitor.cpp
- Config.cpp
- Edge.cpp
- RecordInfo.cpp)
-
-if(WIN32)
- # Clang doesn't support loadable modules on Windows. Unfortunately, building
- # the plugin as a static library and linking clang against it doesn't work.
- # Since clang doesn't reference any symbols in our static library, the linker
- # strips it out completely.
- # Instead, we rely on the fact that the SOURCES property of a target is no
- # read-only after CMake 3.1 and use it to compile the plugin directly into
- # clang...
- cmake_minimum_required(VERSION 3.1)
- # Paths must be absolute, since we're modifying a target in another directory.
- set(absolute_sources "")
- foreach(source ${plugin_sources})
- list(APPEND absolute_sources ${CMAKE_CURRENT_SOURCE_DIR}/${source})
- endforeach()
- set_property(TARGET clang APPEND PROPERTY SOURCES ${absolute_sources})
-
- cr_add_test(blink_gc_plugin_test
- python
- ${CMAKE_CURRENT_SOURCE_DIR}/tests/test.py
- ${CMAKE_BINARY_DIR}/bin/clang
- )
-else()
- add_llvm_loadable_module("lib${LIBRARYNAME}" ${plugin_sources})
- add_dependencies("lib${LIBRARYNAME}" clang)
-
- cr_install(TARGETS "lib${LIBRARYNAME}" LIBRARY DESTINATION lib)
-
- cr_add_test(blink_gc_plugin_test
- python
- ${CMAKE_CURRENT_SOURCE_DIR}/tests/test.py
- ${CMAKE_BINARY_DIR}/bin/clang
- $<TARGET_FILE:lib${LIBRARYNAME}>
- )
-endif()
« 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