VirtualBox

Ignore:
Timestamp:
May 17, 2018 2:08:38 PM (7 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:9049: Adjusting Makefile for split hardened build.

File:
1 edited

Legend:

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

    r72233 r72246  
    3232#
    3333ifdef VBOX_WITH_HARDENING
    34  PROGRAMS += VirtualBoxHardened
    35  PROGRAMS.darwin += VirtualBoxVM
    36  DLLS += VirtualBox
     34 ifndef VBOX_GUI_WITH_SHARED_LIBRARY
     35  PROGRAMS += VirtualBoxHardened
     36  PROGRAMS.darwin += VirtualBoxVM
     37  DLLS += VirtualBox
     38 else
     39  PROGRAMS += VirtualBox
     40  PROGRAMS += VirtualBoxHardenedVM
     41  DLLS += VirtualBoxVM
     42  DLLS += VBoxGlobal
     43 endif
    3744else
    3845 PROGRAMS += VirtualBox
     
    5158
    5259
    53 #
    54 # Hardened VirtualBox.
    55 #
    56 VirtualBoxHardened_TEMPLATE = VBOXR3HARDENEDEXE
    57 VirtualBoxHardened_SOURCES = src/hardenedmain.cpp
    58 VirtualBoxHardened_SOURCES.win = src/platform/win/VirtualBoxHardened.rc
    59 VirtualBoxHardened_NAME = VirtualBox
    60 VirtualBoxHardened_LDFLAGS.win = /SUBSYSTEM:$(if-expr "$(KBUILD_TYPE)" != "release",console,windows)
    61 src/platform/win/VirtualBoxHardened.rc_INCS  = $(VirtualBox_0_OUTDIR)
    62 src/platform/win/VirtualBoxHardened.rc_DEPS  = $(VirtualBox_0_OUTDIR)/VirtualBox-icon.rc
    63 
    64 
    65 #
    66 # Hardened VirtualBoxVM.
    67 #
    6860ifndef VBOX_GUI_WITH_SHARED_LIBRARY
     61
     62 #
     63 # Hardened VirtualBox.
     64 #
     65 VirtualBoxHardened_TEMPLATE = VBOXR3HARDENEDEXE
     66 VirtualBoxHardened_SOURCES = src/hardenedmain.cpp
     67 VirtualBoxHardened_SOURCES.win = src/platform/win/VirtualBoxHardened.rc
     68 VirtualBoxHardened_NAME = VirtualBox
     69 VirtualBoxHardened_LDFLAGS.win = /SUBSYSTEM:$(if-expr "$(KBUILD_TYPE)" != "release",console,windows)
     70 src/platform/win/VirtualBoxHardened.rc_INCS  = $(VirtualBox_0_OUTDIR)
     71 src/platform/win/VirtualBoxHardened.rc_DEPS  = $(VirtualBox_0_OUTDIR)/VirtualBox-icon.rc
     72
     73 #
     74 # Hardened VirtualBoxVM.
     75 #
    6976 ifeq ($(KBUILD_TARGET),darwin)
    7077  VirtualBoxVM_EXTENDS = VirtualBoxHardened
     
    7279  VirtualBoxVM_DEFS    = $(VirtualBoxHardened_DEFS) VBOX_RUNTIME_UI
    7380 endif
     81
    7482else
    75  ifdef VBOX_WITH_HARDENING
    76   VirtualBoxVM_EXTENDS = VirtualBoxHardened
    77   VirtualBoxVM_NAME    = VirtualBoxVM
    78   VirtualBoxVM_DEFS    = $(VirtualBoxHardened_DEFS)
    79  endif
     83
     84 #
     85 # Hardened VirtualBoxVM.
     86 #
     87 VirtualBoxHardenedVM_TEMPLATE = VBOXR3HARDENEDEXE
     88 VirtualBoxHardenedVM_SOURCES = src/hardenedmain.cpp
     89 VirtualBoxHardenedVM_SOURCES.win = src/platform/win/VirtualBoxHardened.rc
     90 VirtualBoxHardenedVM_NAME = VirtualBoxVM
     91 VirtualBoxHardenedVM_LDFLAGS.win = /SUBSYSTEM:$(if-expr "$(KBUILD_TYPE)" != "release",console,windows)
     92 src/platform/win/VirtualBoxHardened.rc_INCS  = $(VirtualBox_0_OUTDIR)
     93 src/platform/win/VirtualBoxHardened.rc_DEPS  = $(VirtualBox_0_OUTDIR)/VirtualBox-icon.rc
     94
    8095endif
    8196
     
    109124# VirtualBox Manager Application
    110125#
    111 VirtualBox_TEMPLATE := $(if $(VBOX_WITH_HARDENING),VBOXQTGUI,VBOXQTGUIEXE)
     126ifndef VBOX_GUI_WITH_SHARED_LIBRARY
     127 VirtualBox_TEMPLATE := $(if $(VBOX_WITH_HARDENING),VBOXQTGUI,VBOXQTGUIEXE)
     128else
     129 VirtualBox_TEMPLATE := VBOXQTGUIEXE
     130endif
    112131VirtualBox_NAME = VirtualBox
    113132# For the launch trick we need different inode numbers.
     
    412431
    413432VirtualBox_LDFLAGS.darwin = \
    414         -framework AppKit -framework Carbon -framework IOKit \
     433        -framework AppKit -framework Carbon -framework IOKit
     434ifndef VBOX_GUI_WITH_SHARED_LIBRARY
     435 VirtualBox_LDFLAGS.darwin += \
    415436        $(if $(VBOX_WITH_HARDENING),-install_name $(VBOX_DYLD_EXECUTABLE_PATH)/VirtualBox.dylib)
     437endif
    416438ifdef VBOX_WITH_ICHAT_THEATER
    417439 VirtualBox_LDFLAGS.darwin += -framework InstantMessage -framework QuartzCore
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