Author Topic: Installing SDK headers with autotools  (Read 6301 times)

Offline TheTuxKeeper

  • Regular
  • ***
  • Posts: 293
  • daniel2000
Installing SDK headers with autotools
« on: June 08, 2006, 09:29:35 pm »
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
Nightly builds for openSUSE

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4315
    • Code::Blocks IDE
Re: Installing SDK headers with autotools
« Reply #1 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.
Be patient!
This bug will be fixed soon...

Offline TheTuxKeeper

  • Regular
  • ***
  • Posts: 293
  • daniel2000
Re: Installing SDK headers with autotools
« Reply #2 on: June 08, 2006, 11:41:29 pm »
All *.h files under sdk/ (recursive). Exception is the sdk/wxscintilla/ directory where only sdk/wxscintilla/include/wx/wxscintilla.h is needed.
Ok, thank you. :)

Now I can finish the spec file  :D
Nightly builds for openSUSE

Offline TheTuxKeeper

  • Regular
  • ***
  • Posts: 293
  • daniel2000
Re: Installing SDK headers with autotools [ Patch #1132 ]
« Reply #3 on: June 15, 2006, 02:27:39 am »
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]
« Last Edit: June 15, 2006, 02:38:20 am by daniel2000 »
Nightly builds for openSUSE