port ide command?
René J.V. Bertin
rjvbertin at gmail.com
Mon Jul 4 11:25:50 PDT 2016
On Monday July 04 2016 11:06:47 Ryan Schmidt wrote:
>What IDEs are you thinking of?
Actually any IDE suitable for development of the FOSS packages which I think make up the majority of ports. So almost any IDE except for Xcode ...
Personally I mostly use KDevelop (has good cmake support esp. if the CMake portgroup generates a compile_commands.json file [-DCMAKE_EXPORT_COMPILE_COMMANDS=ON]) but MacPorts has a couple of other IDEs that have different levels of support for working with autoconf and/or cmake-based projects.
>What would the command do for Xcode, for example?
For Xcode there might be the possibility to call the BundleExec directly, if it even uses env. variables at all.
An alternative would be to have a command that dumps the environment used for configure and/or build for a given port. Both Qt Creator and KDevelop have support for environment profiles, and IIRC Xcode at least used to have that for projects using a custom build system.
Someone (Clemens?) already made a quick patch that dumps the default environment without anything port-specific, among other things.
More information about the macports-dev