Bug 784861 - Need pkg-config cflag and deps to build generated IDL headers
Summary: Need pkg-config cflag and deps to build generated IDL headers
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: xulrunner
Version: 16
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Martin Stransky
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-01-26 14:02 UTC by Marc-Andre Lureau
Modified: 2012-03-20 09:44 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-03-20 09:44:29 UTC
Type: ---


Attachments (Terms of Use)

Description Marc-Andre Lureau 2012-01-26 14:02:15 UTC
Description of problem:

The following line seems to be the new way of generating headers from idl files

python /usr/lib64/xulrunner-sdk-2/sdk/bin/header.py -I `pkg-config --variable=idldir libxul` nsISpicec.idl -o  nsISpicec.h

However, the generated header includes a file from nspr.

  CXX    libnsISpicec_la-nsScriptablePeer.lo
In file included from /usr/include/xulrunner-sdk-2/nsError.h:42:0,
                 from nsScriptablePeer.cpp:54:
/usr/include/xulrunner-sdk-2/nscore.h:58:21: fatal error: prtypes.h: No such file or directory
compilation terminated.

It would be great to have the needed cflags given by a pkgconfig, instead of hardcoding something that might change. Same applies to rpm package depedencies.


Version-Release number of selected component (if applicable):

xulrunner-devel-9.0.1-1.fc16.x86_64

Comment 1 Martin Stransky 2012-03-20 09:44:29 UTC
`pkg-config --cflags libxul` will work here for the include dir.


Note You need to log in before you can comment on or make changes to this bug.