VirtualBox

Changeset 23737 in vbox for trunk/src/VBox/Frontends


Ignore:
Timestamp:
Oct 13, 2009 3:04:10 PM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
53458
Message:

FeQt/Makefile.kmk: split the COMWrappers.h into a .h and a .cpp file. No need to compiler 10000+ extra lines for every file.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/Makefile.kmk

    r23732 r23737  
    535535# Generate the COM wrappers.
    536536#
     537## @todo This needs some cleaning up perhaps...
     538## @todo kBuild: Non-existing +| targets should be tried remade or what?
    537539VirtualBox_BLDDIRS       += $(PATH_VirtualBox)/include
    538540VirtualBox_INTERMEDIATES += $(PATH_VirtualBox)/include/COMWrappers.h
    539 VirtualBox_CLEAN         += $(PATH_VirtualBox)/include/COMWrappers.h
    540 
    541 $$(PATH_VirtualBox)/include/COMWrappers.h: \
     541VirtualBox_CLEAN         += \
     542        $(PATH_VirtualBox)/include/COMWrappers \
     543        $(PATH_VirtualBox)/include/COMWrappers.tmp \
     544        $(PATH_VirtualBox)/include/COMWrappers.h \
     545        $(PATH_VirtualBox)/include/COMWrappers.cpp
     546VirtualBox_SOURCES       += $(PATH_VirtualBox)/include/COMWrappers.cpp
     547
     548$$(PATH_VirtualBox)/include/COMWrappers \
     549+| $$(PATH_VirtualBox)/include/COMWrappers.h \
     550+| $$(PATH_VirtualBox)/include/COMWrappers.cpp: \
    542551                $(VBOX_XIDL_FILE) \
    543552                $(VBOX_VIRTUALBOX4_SRC)/include/COMWrappers.xsl \
    544553                | $$(dir $$@)
    545554        $(call MSG_GENERATE,VirtualBox,$<,$@)
     555        $(RM) -f $@ [email protected] [email protected] [email protected]
    546556        $(QUIET)$(VBOX_XSLTPROC) -o $@ $(VBOX_VIRTUALBOX4_SRC)/include/COMWrappers.xsl $<
     557
     558        $(SED) -e '1,/\/\/ wrapper definitions/ !d' \
     559                --output [email protected] $@
     560        $(CP) --changed [email protected] [email protected]
     561
     562        $(APPEND) -t -n [email protected] \
     563                '/*' \
     564                ' * DO NOT EDIT! This is a generated file, see COMWrappers.h for details.' \
     565                ' */' \
     566                '' \
     567                '#include "VBoxGlobal.h"' \
     568                ''
     569        $(SED) -e '/\/\/ wrapper definitions/,9999999 !d' \
     570                -e 's/^inline //' \
     571                --append [email protected] $@
     572        $(CP) --changed [email protected] [email protected]
     573        $(RM) -f [email protected]
     574
    547575
    548576# alias for generating the COM Wrappers file.
Note: See TracChangeset for help on using the changeset viewer.

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