VirtualBox

Changeset 91729 in vbox


Ignore:
Timestamp:
Oct 14, 2021 2:40:32 PM (3 years ago)
Author:
vboxsync
Message:

/Config.kmk: Moved the VBOX_ONLY_BUILD determination up to before the default config section, leaving a re-checking in the original place (after LocalConfig.kmk incl). Adjusted default NLS config. bugref:1909

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Config.kmk

    r91609 r91729  
    323323# exist and which value they should have (usually 1, but anyway).
    324324#
     325
     326# Indicate VBOX_ONLY build if any of the VBOX_ONLY_* variables are set.
     327VBOX_ONLY_BUILD := $(strip $(foreach x, ADDITIONS DOCS EXTPACKS SDK VALIDATIONKIT\
     328        , $(if-expr defined(VBOX_ONLY_$(x)),VBOX_ONLY_$(x))))
     329if $(words $(VBOX_ONLY_BUILD)) > 1
     330 $(error VBox: More than one VBOX_ONLY build enabled! $(VBOX_ONLY_BUILD))
     331endif
    325332
    326333# Select new Xcode based on host OS X version.
     
    680687VBOX_WITH_MAIN_USB_ID_DATABASE = 1
    681688# Whether to enable error message translation in Main.
    682 VBOX_WITH_MAIN_NLS = 1
     689ifndef VBOX_ONLY_BUILD
     690 VBOX_WITH_MAIN_NLS = 1
     691endif
    683692# Whether to enable error message translation in Extension VM Pack.
    684 VBOX_WITH_PUEL_NLS = 1
     693if !defined(VBOX_ONLY_BUILD) || defined(VBOX_ONLY_EXTPACKS)
     694 VBOX_WITH_PUEL_NLS = 1
     695endif
    685696# Set this to prefix all C symbols in XPCOM, to avoid dynamic linking problems
    686697# caused by our XPCOM library polluting the symbol namespace for system libs.
     
    12591270
    12601271#
    1261 # VBOX_WITH_NLS controls all NLS (except the GUI at the moment).
    1262 # We disable NLS for SDK-only builds.
     1272# Bitch about old settings.
     1273#
     1274ifdef VBOX_WITHOUT_LINUX_COMPILER_H
     1275 $(warning VBOX_WITHOUT_LINUX_COMPILER_H was renamed to VBOX_WITH_LINUX_COMPILER_H, the meaning is inverted.)
     1276endif
     1277
     1278#
     1279# Indicate VBOX_ONLY build if any of the VBOX_ONLY_* variables are set.
     1280#
     1281VBOX_ONLY_BUILD_NEW := $(strip $(foreach x, ADDITIONS DOCS EXTPACKS SDK VALIDATIONKIT\
     1282        , $(if-expr defined(VBOX_ONLY_$(x)),VBOX_ONLY_$(x))))
     1283ifneq ($(VBOX_ONLY_BUILD),$(VBOX_ONLY_BUILD_NEW))
     1284 $(error VBox: LocalConfig.kmk changed the VBOX_ONLY_ build status, VBOX_ONLY_* must be on the kmk command line or in the environment: $(VBOX_ONLY_BUILD) -> $(VBOX_ONLY_BUILD_NEW))
     1285endif
     1286
     1287#
     1288# Enforce VBOX_WITH_NLS.  It controls all NLS (except the GUI at the moment).
    12631289#
    12641290if defined(VBOX_WITH_MAIN_NLS) || defined(VBOX_WITH_PUEL_NLS)
    12651291 VBOX_WITH_NLS := 1
    1266 endif
    1267 #
    1268 # Additions does not use NLS support yet
    1269 #
    1270 if defined(VBOX_ONLY_SDK) || defined(VBOX_ONLY_ADDITIONS)
    1271  override VBOX_WITH_NLS :=
    1272 endif
    1273 ifndef VBOX_WITH_NLS # (We test again to account for 'override VBOX_WITH_NLS :=')
    1274  VBOX_WITH_MAIN_NLS :=
    1275  VBOX_WITH_PUEL_NLS :=
    1276 endif
    1277 
    1278 #
    1279 # Bitch about old settings.
    1280 #
    1281 ifdef VBOX_WITHOUT_LINUX_COMPILER_H
    1282  $(warning VBOX_WITHOUT_LINUX_COMPILER_H was renamed to VBOX_WITH_LINUX_COMPILER_H, the meaning is inverted.)
    1283 endif
    1284 
    1285 #
    1286 # Indicate VBOX_ONLY build if any of the VBOX_ONLY_* variables are set.
    1287 #
    1288 VBOX_ONLY_BUILD := $(strip $(foreach x, ADDITIONS DOCS EXTPACKS SDK VALIDATIONKIT\
    1289         , $(if-expr defined(VBOX_ONLY_$(x)),VBOX_ONLY_$(x))))
    1290 if $(words $(VBOX_ONLY_BUILD)) > 1
    1291  $(error VBox: More than one VBOX_ONLY build enabled! $(VBOX_ONLY_BUILD))
     1292 ifndef VBOX_WITH_NLS # (We test again to account for 'override VBOX_WITH_NLS :=')
     1293  VBOX_WITH_MAIN_NLS :=
     1294  VBOX_WITH_PUEL_NLS :=
     1295 endif
    12921296endif
    12931297
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