This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Add custom macros?

Tags: None
(comma "," separated)
rajivgupta314159
Registered Member
Posts
3
Karma
0
OS

Add custom macros?

Sun Jun 30, 2013 7:03 pm
I'm using an SDK for developing on a certain platform which uses a wrapper around GCC. This wrapper passes a macro with the -D option of GCC. Also, my Makefile passes another macro with -D. Is it possible to tell KDevelop that these macros are defined, even if they're not defined in any of my code?
User avatar
scummos
Global Moderator
Posts
1175
Karma
7
OS

Re: Add custom macros?

Sun Jun 30, 2013 9:06 pm
As far as I know the "Custom Build System" project manager allows you to do that. It might be in an extra package.

Greetings,
Sven


I'm working on the KDevelop IDE.
rajivgupta314159
Registered Member
Posts
3
Karma
0
OS

Re: Add custom macros?

Sun Jun 30, 2013 9:13 pm
I know that, and I even used it in an older version of KDevelop, but when I tried compiling the latest version (1.2.2), running cmake gave me an error:
Code: Select all
This version of the plugin doesn't work with KDevPlatform 1.5, version 1.4 is required


I don't want to downgrade (the newest version has a lot of useful features), so I hope there's another method of telling Kdevelop custom macros. :(
User avatar
scummos
Global Moderator
Posts
1175
Karma
7
OS

Re: Add custom macros?  Topic is solved

Sun Jun 30, 2013 9:16 pm
Aah, no, I remember -- we merged it into kdevelop for 4.5. It should always be available there.

Greetings,
Sven


I'm working on the KDevelop IDE.
rajivgupta314159
Registered Member
Posts
3
Karma
0
OS

Re: Add custom macros?

Sun Jun 30, 2013 9:18 pm
So it's built in to KDevelop? How do you use it? :)

EDIT: Found it. I deleted .kdev4 directory and the .kdev4 file, and when I import my project there's an option for Custom Buildsystem, and I can just add the make commands and custom defines from Project->Open Configuration :)
User avatar
scummos
Global Moderator
Posts
1175
Karma
7
OS

Re: Add custom macros?

Sun Jun 30, 2013 9:29 pm
Yeah, exactly, you select the project manager when you create the project. Sorry for not mentioning that :)

Good thing you found it.


I'm working on the KDevelop IDE.


Bookmarks



Who is online

Registered users: bancha, Bing [Bot], Evergrowing, Google [Bot], lockheed, mesutakcan, Sogou [Bot]