<div dir="ltr">It's possible they weren't supported in the past, but creating Frameworks is definitely supported now.<div><br></div><div><a href="https://cmake.org/cmake/help/v3.6/manual/cmake-buildsystem.7.html#apple-frameworks" rel="noreferrer" class="gmail_msg" target="_blank" style="font-family:"helvetica neue",helvetica,arial,sans-serif">https://cmake.org/cmake/help/v3.6/manual/cmake-buildsystem.7.html#apple-frameworks</a><br class="gmail_msg" style="color:rgb(33,33,33);font-family:"helvetica neue",helvetica,arial,sans-serif"><a href="https://cmake.org/cmake/help/v3.6/prop_tgt/FRAMEWORK.html#prop_tgt:FRAMEWORK" rel="noreferrer" class="gmail_msg" target="_blank" style="font-family:"helvetica neue",helvetica,arial,sans-serif">https://cmake.org/cmake/help/v3.6/prop_tgt/FRAMEWORK.html#prop_tgt:FRAMEWORK</a><br class="gmail_msg" style="color:rgb(33,33,33);font-family:"helvetica neue",helvetica,arial,sans-serif"><br class="gmail_msg" style="color:rgb(33,33,33);font-family:"helvetica neue",helvetica,arial,sans-serif"><span style="color:rgb(33,33,33);font-family:"helvetica neue",helvetica,arial,sans-serif">Here's a more detailed example.</span><br class="gmail_msg" style="color:rgb(33,33,33);font-family:"helvetica neue",helvetica,arial,sans-serif"><br class="gmail_msg" style="color:rgb(33,33,33);font-family:"helvetica neue",helvetica,arial,sans-serif"><a href="https://gitlab.kitware.com/cmake/cmake/blob/v3.6.2/Tests/Framework/CMakeLists.txt" rel="noreferrer" class="gmail_msg" target="_blank" style="font-family:"helvetica neue",helvetica,arial,sans-serif">https://gitlab.kitware.com/cmake/cmake/blob/v3.6.2/Tests/Framework/CMakeLists.txt</a>  <br></div></div><br><div class="gmail_quote"><div dir="ltr">On Fri, Sep 9, 2016 at 10:34 AM Greg Clayton via lldb-dev <<a href="mailto:lldb-dev@lists.llvm.org">lldb-dev@lists.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">The biggest issue with trying to use cmake on macOS is that there is no support for building frameworks, please correct me if I am wrong. The xcode build will build a "LLDB.framework" that contains all headers and the shared library, and the "lldb" command line tool that links against that. We really want the LLDB.framework since it gives us a bundle like directory that contains everything we need. Current the LLDB.framework contains:<br class="gmail_msg">
- LLDB headers<br class="gmail_msg">
- clang headers needed for expression compilation where the compiler parses modules<br class="gmail_msg">
- associated binaries needed for debugging (lldb-server, lldb-argdumper, debugserver, darwin-debug<br class="gmail_msg">
- Python module and packages<br class="gmail_msg">
- XPC services for debugging as root<br class="gmail_msg">
<br class="gmail_msg">
I believe the normal cmake build just will build a lldb.dylib or lldb.so instead of a LLDB.framework. Then you would need to find a place for all of the remaining stuff just like you have to do on linux.<br class="gmail_msg">
<br class="gmail_msg">
With MacPorts, do all projects tend to not build frameworks, or do some build frameworks?<br class="gmail_msg">
<br class="gmail_msg">
Greg Clayton<br class="gmail_msg">
> On Sep 9, 2016, at 1:55 AM, René J.V. Bertin via lldb-dev <<a href="mailto:lldb-dev@lists.llvm.org" class="gmail_msg" target="_blank">lldb-dev@lists.llvm.org</a>> wrote:<br class="gmail_msg">
><br class="gmail_msg">
> Hi,<br class="gmail_msg">
><br class="gmail_msg">
> I've been working on a MacPorts port for lldb (MacPorts already provides ports for llvm and clang; cf. <a href="https://trac.macports.org/ticket/45251" rel="noreferrer" class="gmail_msg" target="_blank">https://trac.macports.org/ticket/45251</a>). Using the Xcode project isn't really an option here, so I've based my approach on the instructions for building using CMake on *n*x.<br class="gmail_msg">
><br class="gmail_msg">
> In short:<br class="gmail_msg">
><br class="gmail_msg">
> - unpack llvm sources<br class="gmail_msg">
> - unpack lldb sources in the expected location in the llvm tree<br class="gmail_msg">
> - call cmake from an out-of-tree build directory pointing it to the toplevel CMakeLists.txt (i.e. the one in llvm-src)<br class="gmail_msg">
> - call make in the lldb subdir under the build directory (build/tools/lldb).<br class="gmail_msg">
><br class="gmail_msg">
> The nice thing with CMake's Makefiles generator is that it is usually able to figure out what needs to be built from upstreams when make is called in a project subdirectory, and this works with lldb.<br class="gmail_msg">
><br class="gmail_msg">
> Yet I've been asked to look into the possibility of building *just* lldb, using whatever dependencies it requires from the already installed llvm+clang directory.<br class="gmail_msg">
><br class="gmail_msg">
> I'm presuming that there might be a benefit to that approach on other Unices too. Has anyone tried whether this is the case, assuming that it's actually possible?<br class="gmail_msg">
><br class="gmail_msg">
> NB: MacPorts' port:lldb will depend on port:llvm and port:clang, so prebuilt dependencies will be available, as long as nothing is required that is omitted from a standard install.<br class="gmail_msg">
><br class="gmail_msg">
> Thanks,<br class="gmail_msg">
> René<br class="gmail_msg">
> _______________________________________________<br class="gmail_msg">
> lldb-dev mailing list<br class="gmail_msg">
> <a href="mailto:lldb-dev@lists.llvm.org" class="gmail_msg" target="_blank">lldb-dev@lists.llvm.org</a><br class="gmail_msg">
> <a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev" rel="noreferrer" class="gmail_msg" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev</a><br class="gmail_msg">
<br class="gmail_msg">
_______________________________________________<br class="gmail_msg">
lldb-dev mailing list<br class="gmail_msg">
<a href="mailto:lldb-dev@lists.llvm.org" class="gmail_msg" target="_blank">lldb-dev@lists.llvm.org</a><br class="gmail_msg">
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev" rel="noreferrer" class="gmail_msg" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev</a><br class="gmail_msg">
</blockquote></div>