VirtualBox

Changeset 11203 in vbox for trunk/src/VBox/Installer/linux


Ignore:
Timestamp:
Aug 7, 2008 12:19:13 PM (16 years ago)
Author:
vboxsync
Message:

Added support for separate VBOX SDK build,
controlled by VBOX_WITH_SEPARATE_SDK make variable

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Installer/linux/Makefile.kmk

    r10797 r11203  
    3333                 $(PATH_BIN)/$(PACKAGE_NAME) $(PATH_BIN)/VirtualBox-dbg.tar.bz2)
    3434PACKING       += $(PATH_BIN)/VirtualBox.tar.bz2
     35
     36ifdef VBOX_WITH_SEPARATE_SDK
     37PACKING       += $(PATH_BIN)/VirtualBox-SDK.zip
     38SDK_IN_SEPARATE=sdk
     39SDK_IN_NORMAL=
     40else
     41SDK_IN_SEPARATE=
     42SDK_IN_NORMAL=sdk
     43endif
     44
    3545OTHER_CLEAN    = $(addprefix $(PATH_TARGET)/install/,\
    3646                 install.sh deffiles routines.sh \
     
    102112        $(if $(VBOX_WITH_QT4GUI),VirtualBox.desktop,) \
    103113        src \
    104         sdk
     114        $(SDK_IN_NORMAL)
    105115
    106116# Qt4 GUI
     
    223233# .tar.bz2 for converting into .run
    224234$(PATH_TARGET)/install/VirtualBox.tar.bz2: \
     235                $(if $(VBOX_WITH_SEPARATE_SDK), $(PATH_BIN)/VirtualBox-SDK.zip) \
    225236                $(addprefix $(PATH_TARGET)/archive/, $(LINUXARCHFILES)) \
    226237                Makefile.kmk \
     
    243254                $(addprefix VirtualBox-$(VBOX_VERSION_STRING)/,$(LINUXARCHFILES))
    244255
     256
     257
     258# make separate VirtualBox SDK delivery
     259$(PATH_BIN)/VirtualBox-SDK.zip:            \
     260                $(PATH_TARGET)/archive/sdk \
     261                $(VBOX_VERSION_STAMP)      \
     262                $(PATH_TARGET)/VirtualBox-$(VBOX_VERSION_STRING)
     263        $(call MSG_L1,Making separate SDK delivery $@)
     264        $(QUIET)cd $(PATH_TARGET)/archive && \
     265          zip -r $@ sdk >/dev/null
     266        $(QUIET)rm -rf  $(PATH_TARGET)/archive/sdk
     267
    245268$(PATH_TARGET)/VirtualBox-$(VBOX_VERSION_STRING): $(PATH_TARGET)/archive
    246269        $(call MSG_INST_SYM,$<,$@)
     
    278301        $(QUIET)$(if $(VBOX_DO_STRIP),objcopy --strip-unneeded -R .comment $< $@,cp $< $@)
    279302
    280 $(foreach f,$(LINUXNOSTRIP),$(PATH_TARGET)/archive/$(f)): \
     303$(foreach f,$(LINUXNOSTRIP) $(SDK_IN_SEPARATE),$(PATH_TARGET)/archive/$(f)): \
    281304                $(PATH_TARGET)/archive/% : $(PATH_BIN)/% | $(call DIRDEP,$(PATH_TARGET)/archive)
    282305        $(call MSG_INST_SYM,$<,$@)
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