Plugin pkgconfig update, remove nspr dependency, define XP_UNIX for NPAPI headers, define OJI when it is available. b=453883 b=480887 r=bsmedberg

This commit is contained in:
Josh Aas 2009-03-18 11:20:14 -07:00
parent e5518c5104
commit 2685236ca5
2 changed files with 8 additions and 2 deletions

View File

@ -110,8 +110,15 @@ ifndef MOZ_NATIVE_NSS
pkg_config_files += mozilla-nss.pc
endif
ifdef MOZ_OJI
OJIDEF=-DOJI
else
OJIDEF=
endif
%.pc: $(srcdir)/%.pc.in $(GLOBAL_DEPS)
cat $< | sed \
-e "s|%ojidef%|$(OJIDEF)|" \
-e "s|%prefix%|$(prefix)|" \
-e "s|%includedir%|$(includedir)|" \
-e "s|%idldir%|$(idldir)|" \

View File

@ -5,5 +5,4 @@ includedir=%includedir%
Name: Mozilla Plug-In API
Description: Mozilla Plug-In API
Version: %MOZILLA_VERSION%
Requires: %NSPR_NAME% >= %NSPR_VERSION%
Cflags: -I${includedir}/stable
Cflags: -I${includedir}/stable -DXP_UNIX %ojidef%