VirtualBox

Ignore:
Timestamp:
Jan 26, 2012 4:56:44 PM (13 years ago)
Author:
vboxsync
Message:

Main/cbinding: eliminate version dependency inside header file by generating it automatically

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/cbinding/Makefile.kmk

    r39885 r39886  
    3939XpComCGlue_SOURCES = \
    4040        VBoxXPCOMCGlue.c \
    41         VBoxXPCOMCGlue.h
     41        $(XpComCHeaders_0_OUTDIR)/VBoxXPCOMCGlue.h
    4242
    4343INSTALLS += XpComCHeaders
     
    5252        VBoxCAPI_v4_1.h \
    5353        $(XpComCHeaders_0_OUTDIR)/VBoxCAPI_v$(VBOX_API_VERSION).h
     54
     55$$(XpComCHeaders_0_OUTDIR)/VBoxXPCOMCGlue.h: \
     56                $(PATH_SUB_CURRENT)/VBoxXPCOMCGlue.h.in \
     57                $(MAKEFILE_CURRENT) \
     58                | $$(dir $$@)
     59        $(call MSG_GENERATE,,$@)
     60        $(QUIET)$(SED) \
     61                -e 's/@VBOX_API_VERSION@/$(VBOX_API_VERSION)/' \
     62                <  $< >  $@
    5463
    5564$$(XpComCHeaders_0_OUTDIR)/VBoxCAPI_v$(VBOX_API_VERSION).h: \
     
    8493 VBoxXPCOMCGlue_SOURCES = \
    8594        VBoxXPCOMCGlue.c
     95 VBoxXPCOMCGlue_DEPS = \
     96        $(VBOX_PATH_SDK)/bindings/xpcom/cbinding/VBoxXPCOMCGlue.h
     97 VBoxXPCOMCGlue_INCS = \
     98        $(VBOX_PATH_SDK)/bindings/xpcom/cbinding
    8699 VBoxXPCOMCGlue_INTERMEDIATES = \
    87100        $(VBOX_PATH_SDK)/bindings/xpcom/include/VBoxCAPI_v$(VBOX_API_VERSION).h
     
    95108  tstXPCOMCGlue_TEMPLATE = VBOXR3EXE
    96109  tstXPCOMCGlue_INCS = \
    97         $(VBOX_PATH_SDK)/bindings/xpcom/include
     110        $(VBOX_PATH_SDK)/bindings/xpcom/include \
     111        $(VBOX_PATH_SDK)/bindings/xpcom/cbinding
    98112  tstXPCOMCGlue_INTERMEDIATES = \
    99113        $(VBOX_PATH_SDK)/bindings/xpcom/include/VBoxCAPI_v$(VBOX_API_VERSION).h
    100114  tstXPCOMCGlue_SOURCES = \
    101115        tstXPCOMCGlue.c
     116  tstXPCOMCGlue_DEPS = \
     117        $(VBOX_PATH_SDK)/bindings/xpcom/cbinding/VBoxXPCOMCGlue.h
    102118  tstXPCOMCGlue_LIBS = \
    103119        $(VBoxXPCOMCGlue_1_TARGET)
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