Developer forums (C::B DEVELOPMENT STRICTLY!) > Development

Installing SDK headers with autotools

(1/1)

TheTuxKeeper:
I wanted to ask which files/headers belong to the SDK ? Or can someone add an option to install them to the autotools building system ?

If I knew what has to be installed I would try to add it to autotools myself and submit a patch.
It would be much more easy to create linux packages if everything is handled by autotools. But a file list would be enough atm (or a link, I didn't find anything in the wiki).

I need it because I'm rewriting/extending my spec file for RC3, so that there will be subpackages available (main, devel, contrib and debuginfo) out of one source package if possible. But two separate packages for C::B and the SDK wouldn't be a problem either (can be handled by one spec file/.src.rpm too ;) )

Thank you :)
Daniel

mandrav:
All *.h files under sdk/ (recursive). Exception is the sdk/wxscintilla/ directory where only sdk/wxscintilla/include/wx/wxscintilla.h is needed.

TheTuxKeeper:

--- Quote from: mandrav on June 08, 2006, 11:38:30 pm ---All *.h files under sdk/ (recursive). Exception is the sdk/wxscintilla/ directory where only sdk/wxscintilla/include/wx/wxscintilla.h is needed.

--- End quote ---
Ok, thank you. :)

Now I can finish the spec file  :D

TheTuxKeeper:
Finally I've completed the patch. I haven't done so much with autotools yet, so I ran into few dead ends, but with a delay I got it ;)

I added the option --enable-sdk to the configure script which is disabled by default. Enabling it will install all noinst_HEADERS to $INCLUDEDIR/codeblocks (I added only src/sdk/managerproxy.h in the src/sdk/Makefile.am to those headers that will be installed). The directory tree is the same as the one in src/sdk.

That's the patch [ Patch #1132 ] Added autotools option to install sdk headers

EDIT: I attached the filelist of the rpm package created with this patch.

[attachment deleted by admin]

Navigation

[0] Message Index

Go to full version