VirtualBox

Ignore:
Timestamp:
Aug 27, 2008 10:21:47 PM (16 years ago)
Author:
vboxsync
Message:

#3076: Merged in the branch with the alternate driver authentication method. (34468:HEAD)

Location:
trunk/src/VBox/Frontends/VirtualBox
Files:
1 added
2 edited

Legend:

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

    r10637 r11725  
    3434# The targets.
    3535#
    36 PROGRAMS = VirtualBox
     36ifdef VBOX_WITH_HARDENING
     37 PROGRAMS += VirtualBox3Hardened
     38 DLLS += VirtualBox
     39else
     40 PROGRAMS += VirtualBox
     41endif
    3742ifeq ($(filter-out freebsd linux openbsd netbsd solaris,$(KBUILD_TARGET)),) # X11
    38  DLLS = VBoxKeyboard3
    39  OTHERS = $(PATH_BIN)/vboxkeyboard3.tar.gz
     43 DLLS += VBoxKeyboard3
     44 OTHERS += $(PATH_BIN)/vboxkeyboard3.tar.gz
    4045endif
    4146DLLS.os2 += VBoxHlp
    4247ifndef USE_KBUILD_QT3_UNIT
    43  INSTALLS = VirtualBox.nls
     48 INSTALLS += VirtualBox.nls
    4449endif
    4550
     
    104109        $(call MSG_TOOL,tar/gzip,,$@)
    105110        $(QUIET)cd $(PATH_TARGET) && tar -chf - $(addprefix $(SOURCE_DIRECTORY)/,$(subst $(DIRECTORY_PREFIX),,$(VBoxKeyboard3_TARSOURCES))) | gzip - > $@
     111
     112
     113#
     114# Hardened VirtualBox4.
     115#
     116VirtualBox3Hardened_TEMPLATE = VBOXR3HARDENEDEXE
     117VirtualBox3Hardened_SOURCES = src/hardenedmain.cpp
     118VirtualBox3Hardened_NAME = VirtualBox3
     119ifeq ($(KBUILD_TARGET),darwin) ## @todo use .darwin when ticket 36 has been fixed.
     120 #VirtualBox3Hardened_INST.darwin = $(INST_BIN)VirtualBox3 $(INST_BIN)VirtualBoxVM3
     121 VirtualBox3Hardened_INST = $(INST_BIN)VirtualBox3 $(INST_BIN)VirtualBoxVM3
     122endif
    106123
    107124
     
    163180# VirtualBox - The GUI program.
    164181#
    165 VirtualBox_TEMPLATE = VBOXQTGUIEXE
     182VirtualBox_TEMPLATE := $(if $(VBOX_WITH_HARDENING),VBOXQTGUI,VBOXQTGUIEXE)
    166183VirtualBox_NAME     = VirtualBox3
     184ifndef VBOX_WITH_HARDENING # For the launch trick we need different inode numbers.
     185 ifeq ($(KBUILD_TARGET),darwin) ## @todo use .darwin when ticket 36 has been fixed.
     186  #VirtualBox_INST.darwin = $(INST_BIN)VirtualBox3 $(INST_BIN)VirtualBoxVM3
     187  VirtualBox_INST = $(INST_BIN)VirtualBox3 $(INST_BIN)VirtualBoxVM3
     188 endif
     189endif
    167190ifdef USE_KBUILD_QT3_UNIT
    168191 USES += qt3
     
    177200endif
    178201
    179 ifeq ($(KBUILD_TARGET),darwin)
    180  # For the launch trick we need different inode numbers.
    181  VirtualBox_INST = $(INST_BIN)VirtualBox3 $(INST_BIN)VirtualBoxVM3
    182  # For testing iChat Theater stuff change the sdk path (HACK ALERT)
    183  ifdef VBOX_WITH_ICHAT_THEATER
    184   VBOX_PATH_MACOSX_SDK = /Developer/SDKs/MacOSX10.5.sdk
    185  endif
    186 endif # darwin
     202# For testing iChat Theater stuff change the sdk path (HACK ALERT)
     203ifdef VBOX_WITH_ICHAT_THEATER
     204 VBOX_PATH_MACOSX_SDK = /Developer/SDKs/MacOSX10.5.sdk
     205endif
    187206
    188207# Import translation sources
     
    405424endif
    406425VirtualBox_LDFLAGS.os2    = -Zlinker /PM:PM -Zno-fork
    407 VirtualBox_LDFLAGS.darwin = -framework IOKit
     426VirtualBox_LDFLAGS.darwin = \
     427        -framework IOKit -framework Carbon -framework QuickTime \
     428        $(if $(VBOX_WITH_HARDENING),-install_name $(VBOX_DYLD_EXECUTABLE_PATH)/VirtualBox3.dylib)
    408429ifdef VBOX_WITH_ICHAT_THEATER
    409430 VirtualBox_LDFLAGS.darwin += -framework Foundation -framework AppKit -framework InstantMessage -framework QuartzCore
  • trunk/src/VBox/Frontends/VirtualBox/src/main.cpp

    r8155 r11725  
    114114}
    115115
    116 int main (int argc, char **argv)
     116extern "C" DECLEXPORT(int) TrustedMain (int argc, char **argv, char **envp)
    117117{
    118     /* Initialize VBox Runtime. Initialize the Suplib+GC as well only if we
    119      * are really about to start a VM. Don't do this if we are only starting
    120      * the selector window. */
    121     bool fInitGC = false;
    122     for (int i = 0; i < argc; i++)
    123     {
    124         if (!::strcmp(argv[i], "-startvm" ))
    125         {
    126             fInitGC = true;
    127             break;
    128         }
    129     }
    130     RTR3Init (fInitGC, ~(size_t)0);
    131 
    132118    LogFlowFuncEnter();
    133119
     
    281267    return rc;
    282268}
     269
     270
     271#ifndef VBOX_WITH_HARDENING
     272int main (int argc, char **argv, char **envp)
     273{
     274    /* Initialize VBox Runtime. Initialize the Suplib+GC as well only if we
     275     * are really about to start a VM. Don't do this if we are only starting
     276     * the selector window. */
     277    bool fInitGC = false;
     278    for (int i = 0; i < argc; i++)
     279    {
     280        if (!::strcmp (argv[i], "-startvm" ))
     281        {
     282            fInitGC = true;
     283            break;
     284        }
     285    }
     286    RTR3Init (fInitGC, ~(size_t)0);
     287
     288    return TrustedMain (argc, argv, envp);
     289}
     290#endif /* !VBOX_WITH_HARDENING */
     291
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