VirtualBox

Changeset 12199 in vbox for trunk/src/libs


Ignore:
Timestamp:
Sep 8, 2008 3:04:59 AM (16 years ago)
Author:
vboxsync
Message:

Makefiles: Pushing xpcom up to root level in the sub-makefile sense. Rewrote xpt generation and some header creations to avoid putting stuff in PATH_TARGET (obj/).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/libs/xpcom18a4/Makefile.kmk

    r12151 r12199  
    2020#
    2121
    22 ifdef VBOX_SINGLE_MAKEFILE
    2322SUB_DEPTH = ../../..
    24 else
    25 SUB_DEPTH = .
    26 DEPTH     = ../../..
    27 endif
    2823include $(KBUILD_PATH)/subheader.kmk
    2924
     
    4237#
    4338VBOX_PATH_XPCOM_SRC := $(PATH_SUB_CURRENT)
     39
     40BLDDIRS += $(PATH_TARGET)/VBox-xpcom-xpt-files/
    4441
    4542
     
    110107 TEMPLATE_XPCOM_DEFS              += MOZ_PRESERVE_PIC
    111108endif
    112 TEMPLATE_XPCOM_INCS                = $(PATH_TARGET) \
    113                                      xpcom/build \
     109TEMPLATE_XPCOM_INCS                = xpcom/build \
    114110                                     xpcom/ds \
    115111                                     xpcom/io \
     
    160156TEMPLATE_XPCOMEXE_EXTENDS          = XPCOM
    161157## @todo undo -fPIC.
    162 TEMPLATE_XPCOMEXE_INCS             = $(PATH_TARGET) \
    163                                      ipc/ipcd/shared/src \
     158TEMPLATE_XPCOMEXE_INCS             = ipc/ipcd/shared/src \
    164159                                     $(VBOX_PATH_SDK)/bindings/xpcom/include \
    165160                                     $(VBOX_PATH_SDK)/bindings/xpcom/include/nsprpub \
     
    309304endif # !VBOX_ONLY_SDK
    310305
    311 
    312 OTHER_CLEAN += \
    313         $(PATH_TARGET)/VBox-xpcom-nspr/_pr_bld.h \
    314         $(PATH_TARGET)/VBox-xpcom-nspr/_pl_bld.h
    315306
    316307
     
    705696VBox-xpcom-nspr_INCS = \
    706697        nsprpub/pr/include/private \
    707         $(PATH_TARGET)/VBox-xpcom-nspr
     698        $(PATH_VBox-xpcom-nspr)
    708699
    709700VBox-xpcom-nspr_SOURCES  = \
     
    853844VBox-xpcom-nspr_SOURCES.solaris.amd64 = nsprpub/pr/src/md/unix/os_SunOS_x86_64.s
    854845
    855 
     846# generate build stamps
    856847nsprpub/pr/src/prvrsion.c_DEPS = $(PATH_VBox-xpcom-nspr)/_pr_bld.h
    857848nsprpub/lib/ds/plvrsion.c_DEPS = $(PATH_VBox-xpcom-nspr)/_pl_bld.h
     849VBox-xpcom-nspr_CLEAN += \
     850        $(PATH_VBox-xpcom-nspr)/_pr_bld.h \
     851        $(PATH_VBox-xpcom-nspr)/_pl_bld.h
     852
     853$$(PATH_VBox-xpcom-nspr)/_pr_bld.h: | $$(PATH_VBox-xpcom-nspr)/
     854        $(call MSG_GENERATE,,$@)
     855        $(QUIET)$(APPEND) -t $@ '#define _BUILD_STRING "$(date +%Y-%m-%d %T)"'
     856
     857$$(PATH_VBox-xpcom-nspr)/_pl_bld.h: | $$(PATH_VBox-xpcom-nspr)/
     858        $(call MSG_GENERATE,,$@)
     859        $(QUIET)$(APPEND) -t $@ '#define _BUILD_STRING "$(date +%Y-%m-%d %T)"'
    858860
    859861
     
    15481550        $(addprefix $(VBOX_PATH_SDK)/bindings/xpcom/include,$(notdir $(subst .idl,.xpt,$(XPCOM_IDLFILES)))) \
    15491551        $(addprefix $(VBOX_PATH_SDK)/bindings/xpcom/idl/,$(notdir $(XPCOM_IDLFILES))) \
    1550         $(addprefix $(PATH_TARGET)/,$(notdir $(subst .idl,.xpt,$(XPCOM_IDLFILES))))
     1552        $(addprefix $(PATH_TARGET)/VBox-xpcom-xpt-files/,$(notdir $(subst .idl,.xpt,$(XPCOM_IDLFILES))))
    15511553
    15521554
     
    15551557#
    15561558INSTALLS += VBoxXPCOMBase-xpt-inst
    1557 VBOX_XPTFILES = $(addprefix $(PATH_TARGET)/, \
     1559VBOX_XPTFILES = $(addprefix $(PATH_TARGET)/VBox-xpcom-xpt-files/, \
    15581560        nsIConsoleListener.xpt \
    15591561        nsIConsoleMessage.xpt \
     
    16401642VBoxXPCOMBase-xpt-inst_MODE = 0644
    16411643VBoxXPCOMBase-xpt-inst_SOURCES = \
    1642         $(PATH_TARGET)/VBoxXPCOMBase.xpt
     1644        $(PATH_TARGET)/VBox-xpcom-xpt-files/VBoxXPCOMBase.xpt
    16431645VBoxXPCOMBase-xpt-inst_CLEAN = \
    16441646        $(VBOX_XPTFILES) \
    1645         $(PATH_TARGET)/VBoxXPCOMBase.xpt
     1647        $(PATH_TARGET)/VBox-xpcom-xpt-files/VBoxXPCOMBase.xpt
    16461648
    16471649# combined typelib library
    1648 $(PATH_TARGET)/VBoxXPCOMBase.xpt: $(VBOX_XPTFILES) | $$(TARGET_xpt_link)
     1650$(PATH_TARGET)/VBox-xpcom-xpt-files/VBoxXPCOMBase.xpt: $(VBOX_XPTFILES) | $$(TARGET_xpt_link) $(PATH_TARGET)/VBox-xpcom-xpt-files/
    16491651        $(call MSG_LINK,XPCOM_TYPELIB,$@)
    16501652        $(QUIET)$(MKDIR) -p -- $(PATH_BIN)/components
     
    16571659
    16581660
    1659 
    1660 # generate build stamps
    1661 $(PATH_VBox-xpcom-nspr)/_pr_bld.h:
    1662         $(call MSG_GENERATE,,$@)
    1663         $(QUIET)echo '#define _BUILD_STRING "$(shell date "+%Y-%m-%d %T")"' > $@
    1664 
    1665 $(PATH_VBox-xpcom-nspr)/_pl_bld.h:
    1666         $(call MSG_GENERATE,,$@)
    1667         $(QUIET)echo '#define _BUILD_STRING "$(shell date "+%Y-%m-%d %T")"' > $@
    16681661
    16691662#
     
    16831676define def_IDL
    16841677$(VBOX_PATH_SDK)/bindings/xpcom/include/$(notdir $(subst .idl,.h,$(idl))) \
    1685 + $(PATH_TARGET)/$(notdir $(subst .idl,.xpt,$(idl))): \
     1678+ $(PATH_TARGET)/VBox-xpcom-xpt-files/$(notdir $(subst .idl,.xpt,$(idl))): \
    16861679                $(VBOX_PATH_XPCOM_SRC)/$(idl) \
    1687                 | $$$$(TARGET_xpidl)
     1680                | $$$$(TARGET_xpidl) \
     1681                $(PATH_TARGET)/VBox-xpcom-xpt-files/
    16881682        $$(call MSG_TOOL,xpidl,XPCOM,$$<,$$@)
    16891683        $$(QUIET)$(MKDIR) -p $(VBOX_PATH_SDK)/bindings/xpcom/include $(VBOX_PATH_SDK)/bindings/xpcom/idl
    16901684        $$(QUIET)$$(TARGET_xpidl) -m header $(XPIDL_INCS) -e $$@ $$<
    1691         $$(QUIET)$$(TARGET_xpidl) -m typelib $(XPIDL_INCS) -e $(addprefix $(PATH_TARGET)/,$(notdir $(subst .idl,.xpt,$(idl)))) $$<
     1685        $$(QUIET)$$(TARGET_xpidl) -m typelib $(XPIDL_INCS) -e $(addprefix $(PATH_TARGET)/VBox-xpcom-xpt-files/,$(notdir $(subst .idl,.xpt,$(idl)))) $$<
    16921686        $$(QUIET)$(CP) $$< $$(VBOX_PATH_SDK)/bindings/xpcom/idl
    16931687endef
     
    17041698$(VBOX_XPIDL): $$(PATH_VBox-xpcom-string)/idl_ts
    17051699
    1706 # Manual dependency...
    1707 xpcom/string/src/nsAString.cpp: $(PATH_VBox-xpcom-string)/idl_ts
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette