VirtualBox

Changeset 74372 in vbox for trunk


Ignore:
Timestamp:
Sep 19, 2018 3:07:27 PM (6 years ago)
Author:
vboxsync
Message:

IPRT/VBoxRTStableChecker: Made it work for x86 Visual C++ too. bugref:9246

Location:
trunk/src/VBox/Runtime
Files:
2 edited
1 copied

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/Makefile.kmk

    r74334 r74372  
    23462346
    23472347if1of ($(KBUILD_TARGET),win darwin) # remove later
    2348 ifn1of ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),win.x86)
    2349  if1of (VBoxRT,$(DLLS))
     2348if1of (VBoxRT,$(DLLS))
    23502349 #
    23512350 # VBoxRTImpCheck - Import library check.
     
    23592358        $(LIB_RUNTIME)
    23602359 ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),win.amd64)
    2361 $$(VBoxRTStableCheck_0_OUTDIR)/VBoxRTStableCheckA.asm: $(PATH_SUB_CURRENT)/VBox/VBoxRTImp.def $(PATH_SUB_CURRENT)/VBox/VBoxRTImp-vcc64.def $(PATH_SUB_CURRENT)/r3/win/VBoxRT-win64.def | $$(dir $$@)
     2360$$(VBoxRTStableCheck_0_OUTDIR)/VBoxRTStableCheckA.asm: \
     2361       $(PATH_SUB_CURRENT)/VBox/DefToAsmExterns.sed \
     2362        $(PATH_SUB_CURRENT)/VBox/VBoxRTImp.def \
     2363        $(PATH_SUB_CURRENT)/VBox/VBoxRTImp-vcc64.def \
     2364        $(PATH_SUB_CURRENT)/r3/win/VBoxRT-win64.def \
     2365        | $$(dir $$@)
    23622366 else ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),win.x86)
    2363 $$(VBoxRTStableCheck_0_OUTDIR)/VBoxRTStableCheckA.asm: $(PATH_SUB_CURRENT)/VBox/VBoxRTImp.def $(PATH_SUB_CURRENT)/VBox/VBoxRTImp-vcc32.def $(PATH_SUB_CURRENT)/r3/win/VBoxRT-win32.def | $$(dir $$@)
     2367$$(VBoxRTStableCheck_0_OUTDIR)/VBoxRTStableCheckA.asm: \
     2368       $(PATH_SUB_CURRENT)/VBox/DefToAsmExternsVcc32.sed \
     2369        $(PATH_SUB_CURRENT)/VBox/VBoxRTImp.def \
     2370        $(PATH_SUB_CURRENT)/VBox/VBoxRTImp-vcc32.def \
     2371        $(PATH_SUB_CURRENT)/r3/win/VBoxRT-win32.def | $$(dir $$@)
    23642372 else
    2365 $$(VBoxRTStableCheck_0_OUTDIR)/VBoxRTStableCheckA.asm: $(PATH_SUB_CURRENT)/VBox/VBoxRTImp.def $(PATH_SUB_CURRENT)/VBox/VBoxRTImp-gcc.def | $$(dir $$@)
     2373$$(VBoxRTStableCheck_0_OUTDIR)/VBoxRTStableCheckA.asm: \
     2374       $(PATH_SUB_CURRENT)/VBox/DefToAsmExterns.sed \
     2375        $(PATH_SUB_CURRENT)/VBox/VBoxRTImp.def \
     2376        $(PATH_SUB_CURRENT)/VBox/VBoxRTImp-gcc.def | $$(dir $$@)
    23662377 endif
    23672378        $(APPEND) -tn "$@" '%include "iprt/asmdefs.mac"' ''
     
    23712382        $(if-expr "$(KBUILD_TARGET)" == "win"   ,, -e "/only-win/d") \
    23722383        $(if-expr "$(KBUILD_TARGET)" == "darwin",, -e "/only-darwin/d") \
    2373                 -f $(PATH_ROOT)/src/VBox/Runtime/VBox/DefToAsmExterns.sed \
    2374                 $(filter %.def, $^)
    2375  endif
     2384                -f "$<" $(filter %.def, $^)
    23762385endif
    23772386endif # remove later
  • trunk/src/VBox/Runtime/VBox/DefToAsmExterns.sed

    r74346 r74372  
    3838/^$/d
    3939
     40#
    4041# Handle text after EXPORTS
     42#
    4143/EXPORTS/,//{
    4244s/^EXPORTS$//
    4345/^$/b end
    44 
    4546
    4647/[[:space:]]DATA$/b data
     
    5253s/^\(.*\)$/EXTERN_IMP2 \1/
    5354b end
    54 
    5555
    5656#
     
    6565b end
    6666
    67 
     67#
    6868# next expression
     69#
    6970:end
    7071
  • trunk/src/VBox/Runtime/VBox/DefToAsmExternsVcc32.sed

    r74366 r74372  
    3838/^$/d
    3939
     40#
    4041# Handle text after EXPORTS
     42#
    4143/EXPORTS/,//{
    4244s/^EXPORTS$//
    4345/^$/b end
    4446
    45 
     47/^?/b cpp_export
    4648/[[:space:]]DATA$/b data
    4749
     
    5355b end
    5456
    55 
    5657#
    5758# Data export
     
    6162b end
    6263
     64#
     65# Mangled C++ .
     66#
     67:cpp_export
     68s/^\(.*\)$/extern __imp_\1/
     69b end
     70
    6371}
    6472d
    6573b end
    6674
    67 
     75#
    6876# next expression
     77#
    6978:end
    7079
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