Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsBuild targets and configurations.
https://www.eclipse.org/forums/index.php/mv/msg/1084043/1752920/#msg_1752920
I have been using Eclipse for a long time for relatively simple C/C++ projects, however I'm building a complex C++ application and my build configurations are started to diverge for different platforms that I target.
First, about the project:
- Makefiles are managed by Eclipse. I don't hand code them.
- My code targets two platforms. macOS and GNU/Linux.
- It can be built with both clang/llvm and g++
However, I need to pass different linker options per OS.
What I want to do is relatively easy:
- I want to be able to create different targets for different operating systems, for some building profiles (debug, test, release, etc.)
What is the best way to move forward? I can see that Eclipse has some features directly targeted for use case, but I was unable to find resources to understand it completely.
Thanks in advance.]]>Hakan Bayindir2017-01-30T17:13:33-00:00Re: Build targets and configurations.
https://www.eclipse.org/forums/index.php/mv/msg/1084043/1753032/#msg_1753032
Alex Freidin2017-02-01T09:47:55-00:00Re: Build targets and configurations.
https://www.eclipse.org/forums/index.php/mv/msg/1084043/1753041/#msg_1753041
Hakan Bayindir2017-02-01T10:38:56-00:00Re: Build targets and configurations.
https://www.eclipse.org/forums/index.php/mv/msg/1084043/1753064/#msg_1753064
Create a build configuration per OS and per build profile (debug/release/etc) using "Manage Configurations...". You'll end up with a folder per configuration with its makefile and a set of objects and binaries.]]>Alex Freidin2017-02-01T14:07:12-00:00Re: Build targets and configurations.
https://www.eclipse.org/forums/index.php/mv/msg/1084043/1753109/#msg_1753109
Yes, I tried to ask about make targets in my previous post, because I'm using a test framework inside my code, and want to build the test binary for a configuration. I want to be able to call make test, rather than make all, in my Linux/Release configuration.
In my code, test binary is a different binary which is created from a different main(), becuase the library I use is working that way.
Again thanks a lot for your answers and in advance,