[Lldb-commits] [PATCH] D64408: [CMake] `install-distribution` for LLDB on Darwin
Stefan Gränitz via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Tue Jul 9 08:02:43 PDT 2019
sgraenitz added a comment.
Usage example that should work in conjunction with D64397 <https://reviews.llvm.org/D64397> and D64399 <https://reviews.llvm.org/D64399>:
$ cd path/to/lldb-deps-relwithdebinfo
$ cmake -GNinja -C/path/to/llvm-project/lldb/cmake/caches/Apple-lldb-base.cmake \
-DLLVM_ENABLE_PROJECTS="clang;libcxx" \
/path/to/llvm-project/llvm
$ cmake --build .
$ cd lldb-relwithdebinfo
$ cmake -GNinja -C/path/to/llvm-project/lldb/cmake/caches/Apple-lldb-macOS.cmake \
-DLLVM_DIR=/path/to/lldb-deps-relwithdebinfo/lib/cmake/llvm \
-DClang_DIR=/path/to/lldb-deps-relwithdebinfo/lib/cmake/clang \
/path/to/llvm-project/lldb
$ cmake --build . --target distribution
$ DESTDIR=/path/to/install/location cmake --build . --target install-distribution
$ tree /path/to/install/location | grep -v -E "(h|py)$"
/path/to/install/location
├── Applications
│ └── Xcode.app
│ └── Contents
│ ├── Developer
│ │ └── usr
│ │ └── bin
│ │ └── lldb
│ └── SharedFrameworks
│ └── LLDB.framework
│ ├── Headers -> Versions/Current/Headers
│ ├── LLDB -> Versions/Current/LLDB
│ ├── Resources -> Versions/Current/Resources
│ └── Versions
│ ├── A
│ │ ├── Headers
│ │ ├── LLDB
│ │ └── Resources
│ │ ├── Info.plist
│ │ ├── Python
│ │ │ ├── lldb
│ │ │ │ ├── _lldb.so -> ../../../LLDB
│ │ │ │ ├── diagnose
│ │ │ │ ├── formatters
│ │ │ │ │ ├── cpp
│ │ │ │ ├── macosx
│ │ │ │ │ ├── heap
│ │ │ │ │ │ ├── Makefile
│ │ │ │ │ │ └── heap_find.cpp
│ │ │ │ ├── runtime
│ │ │ │ └── utils
│ │ ├── darwin-debug
│ │ ├── debugserver
│ │ └── lldb-argdumper
│ └── Current -> A
└── debuginfo
├── LLDB.framework.dSYM
│ └── Contents
│ ├── Info.plist
│ └── Resources
│ └── DWARF
│ └── LLDB
├── darwin-debug.dSYM
│ └── Contents
│ ├── Info.plist
│ └── Resources
│ └── DWARF
│ └── darwin-debug
├── debugserver.dSYM
│ └── Contents
│ ├── Info.plist
│ └── Resources
│ └── DWARF
│ └── debugserver
└── lldb-argdumper.dSYM
└── Contents
├── Info.plist
└── Resources
└── DWARF
└── lldb-argdumper
41 directories, 114 files
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D64408/new/
https://reviews.llvm.org/D64408
More information about the lldb-commits
mailing list