~extension-hackers/globalmenu-extension/2.0

« back to all changes in this revision

Viewing changes to config/rules.mk

  • Committer: Chris Coulson
  • Date: 2011-12-29 14:53:07 UTC
  • Revision ID: chris.coulson@canonical.com-20111229145307-ypkur2mz13gtrvsh
Fix out-of-tree build with Firefox 9

Show diffs side-by-side

added added

removed removed

Lines of Context:
1519
1519
# don't depend on $(XPIDL_GEN_DIR), because the modification date changes
1520
1520
# with any addition to the directory, regenerating all .h files -> everything.
1521
1521
 
 
1522
HAVE_FIREFOX_9 = $(shell test "$(MOZILLA_BRANCH_MAJOR_VERSION)" -ge "9" && echo "1")
1522
1523
HAVE_FIREFOX_10 = $(shell test "$(MOZILLA_BRANCH_MAJOR_VERSION)" -ge "10" && echo "1")
1523
1524
 
1524
1525
ifeq (1, $(HAVE_FIREFOX_10))
 
1526
MOZ_BOOL_TYPE=bool
 
1527
else
 
1528
MOZ_BOOL_TYPE=PRBool
 
1529
endif
 
1530
 
 
1531
ifeq (1, $(HAVE_FIREFOX_9))
1525
1532
XPIDL_DEPS = \
1526
1533
  $(topsrcdir)/xpcom/idl-parser/header.py \
1527
1534
  $(topsrcdir)/xpcom/idl-parser/typelib.py \
1530
1537
 
1531
1538
$(XPIDL_GEN_DIR)/%.h: %.idl $(XPIDL_DEPS) $(XPIDL_GEN_DIR)/.done
1532
1539
        $(REPORT_BUILD)
1533
 
        $(PYTHON_PATH) \
 
1540
        MOZ_BOOL_TYPE=$(MOZ_BOOL_TYPE) $(PYTHON_PATH) \
1534
1541
          -I$(topsrcdir)/other-licenses/ply \
1535
1542
          -I$(topsrcdir)/xpcom/idl-parser \
1536
1543
          $(topsrcdir)/xpcom/idl-parser/header.py --cachedir=$(topsrcdir)/xpcom/idl-parser $(XPIDL_FLAGS) $(_VPATH_SRCS) -d $(MDDEPDIR)/$(@F).pp -o $@
1547
1554
ifndef NO_GEN_XPT
1548
1555
# generate intermediate .xpt files into $(XPIDL_GEN_DIR), then link
1549
1556
# into $(XPIDL_MODULE).xpt and export it to $(FINAL_TARGET)/components.
1550
 
ifeq (1, $(HAVE_FIREFOX_10))
 
1557
ifeq (1, $(HAVE_FIREFOX_9))
1551
1558
$(XPIDL_GEN_DIR)/%.xpt: %.idl $(XPIDL_DEPS) $(XPIDL_GEN_DIR)/.done
1552
1559
        $(REPORT_BUILD)
1553
 
        $(PYTHON_PATH) \
 
1560
        MOZ_BOOL_TYPE=$(MOZ_BOOL_TYPE) $(PYTHON_PATH) \
1554
1561
          -I$(topsrcdir)/other-licenses/ply \
1555
1562
          -I$(topsrcdir)/xpcom/idl-parser \
1556
1563
          -I$(topsrcdir)/xpcom/typelib/xpt/tools \