| # This file is building the plugin for clang in chromium checkout. |
| # This file requires the clang build system, at least for now. So to use this |
| # Makefile, you should execute the following commands to copy this directory |
| # cp -R <this directory> chromium/src/third_party/llvm/tools/clang/tools/report-memory-usage-plugin |
| # cd chromium/src/third_party/llvm/tools/clang/tools/report-memory-usage-plugin |
| # It can be run with clang build with help of these clang flags: |
| # -Xclang <plugin-libs-dir>/libReportMemoryUsage.so \ |
| # -Xclang report-memory-usage |
| LIBRARYNAME = ReportMemoryUsage |
| include $(CLANG_LEVEL)/Makefile |
| LDFLAGS=-Wl,-undefined,dynamic_lookup |
| BD=../../../../Release+Asserts |
| SRC_DIR=../../../../../llvm/tools/clang/tools/report-memory-usage-plugin |
| -D__STDC_CONSTANT_MACROS \ |
| -I${BD}/tools/clang/include \ |
| ${SRC_DIR}/tests/Source/WebCore/Test.cpp \ |
| -Xclang ${BD}/lib/lib${LIBRARYNAME}.so \ |
| -Xclang report-memory-usage |