1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/config/expandlibs_config.py Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,27 @@ 1.4 +# This Source Code Form is subject to the terms of the Mozilla Public 1.5 +# License, v. 2.0. If a copy of the MPL was not distributed with this 1.6 +# file, You can obtain one at http://mozilla.org/MPL/2.0/. 1.7 + 1.8 +from buildconfig import substs 1.9 + 1.10 +def normalize_suffix(suffix): 1.11 + '''Returns a normalized suffix, i.e. ensures it starts with a dot and 1.12 + doesn't starts or ends with whitespace characters''' 1.13 + value = suffix.strip() 1.14 + if len(value) and not value.startswith('.'): 1.15 + value = '.' + value 1.16 + return value 1.17 + 1.18 +# Variables from the build system 1.19 +AR = substs['AR'] 1.20 +AR_EXTRACT = substs['AR_EXTRACT'].replace('$(AR)', AR) 1.21 +DLL_PREFIX = substs['DLL_PREFIX'] 1.22 +LIB_PREFIX = substs['LIB_PREFIX'] 1.23 +OBJ_SUFFIX = normalize_suffix(substs['OBJ_SUFFIX']) 1.24 +LIB_SUFFIX = normalize_suffix(substs['LIB_SUFFIX']) 1.25 +DLL_SUFFIX = normalize_suffix(substs['DLL_SUFFIX']) 1.26 +IMPORT_LIB_SUFFIX = normalize_suffix(substs['IMPORT_LIB_SUFFIX']) 1.27 +LIBS_DESC_SUFFIX = normalize_suffix(substs['LIBS_DESC_SUFFIX']) 1.28 +EXPAND_LIBS_LIST_STYLE = substs['EXPAND_LIBS_LIST_STYLE'] 1.29 +EXPAND_LIBS_ORDER_STYLE = substs['EXPAND_LIBS_ORDER_STYLE'] 1.30 +LD_PRINT_ICF_SECTIONS = substs['LD_PRINT_ICF_SECTIONS']