mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
heimdal_build: Set up new build groups for the Heimdal hostcc components
This is based on various patches by Stefan Metzmacher in the patch set for the Heimdal upgrade. Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
This commit is contained in:
parent
4be71c7a05
commit
f810e9119f
@ -717,13 +717,13 @@ def SETUP_BUILD_GROUPS(bld):
|
||||
bld.p_ln = bld.srcnode # we do want to see all targets!
|
||||
bld.env['USING_BUILD_GROUPS'] = True
|
||||
bld.add_group('setup')
|
||||
bld.add_group('build_compiler_source')
|
||||
bld.add_group('generators')
|
||||
bld.add_group('hostcc_base_build_source')
|
||||
bld.add_group('hostcc_base_build_main')
|
||||
bld.add_group('hostcc_build_source')
|
||||
bld.add_group('hostcc_build_main')
|
||||
bld.add_group('vscripts')
|
||||
bld.add_group('base_libraries')
|
||||
bld.add_group('generators')
|
||||
bld.add_group('compiler_prototypes')
|
||||
bld.add_group('compiler_libraries')
|
||||
bld.add_group('build_compilers')
|
||||
bld.add_group('build_source')
|
||||
bld.add_group('prototypes')
|
||||
bld.add_group('headers')
|
||||
|
@ -870,7 +870,7 @@ def build(bld):
|
||||
REPLACE_HOSTCC_SOURCE,
|
||||
use_hostcc=True,
|
||||
use_global_deps=False,
|
||||
group='compiler_libraries',
|
||||
group='hostcc_base_build_main',
|
||||
deps = extra_libs
|
||||
)
|
||||
|
||||
|
@ -146,7 +146,7 @@ def HEIMDAL_ERRTABLE(name, source):
|
||||
if not SET_TARGET_TYPE(bld, name, 'ET'):
|
||||
return
|
||||
|
||||
bld.set_group('build_source')
|
||||
bld.set_group('hostcc_build_source')
|
||||
|
||||
out_files = []
|
||||
out_files.append('%s.c' % bname)
|
||||
@ -354,7 +354,7 @@ if not bld.CONFIG_SET('USING_SYSTEM_ROKEN'):
|
||||
|
||||
if not bld.CONFIG_SET('HAVE_ERR_H'):
|
||||
HEIMDAL_GENERATOR(
|
||||
group='build_compiler_source',
|
||||
group='hostcc_base_build_source',
|
||||
name="HEIMDAL_ERR_H",
|
||||
rule="rm -f ${TGT} && ln ${SRC} ${TGT}",
|
||||
source = '../heimdal/lib/roken/err.hin',
|
||||
@ -416,7 +416,7 @@ if not bld.CONFIG_SET('USING_SYSTEM_ROKEN'):
|
||||
use_hostcc=True,
|
||||
use_global_deps=False,
|
||||
includes='../heimdal/lib/roken ../heimdal/include ../heimdal_build/include',
|
||||
group='compiler_libraries',
|
||||
group='hostcc_base_build_main',
|
||||
deps='LIBREPLACE_HOSTCC',
|
||||
)
|
||||
|
||||
@ -680,13 +680,13 @@ if not bld.CONFIG_SET("USING_SYSTEM_ASN1"):
|
||||
|
||||
HEIMDAL_AUTOPROTO('lib/asn1/der-protos.h',
|
||||
HEIMDAL_HEIM_ASN1_DER_SOURCE,
|
||||
group = 'compiler_prototypes',
|
||||
group='hostcc_build_source',
|
||||
options="-q -P comment -o")
|
||||
|
||||
|
||||
HEIMDAL_AUTOPROTO('lib/asn1/der-private.h',
|
||||
HEIMDAL_HEIM_ASN1_DER_SOURCE,
|
||||
group = 'compiler_prototypes',
|
||||
group='hostcc_build_source',
|
||||
options="-q -P comment -p")
|
||||
|
||||
HEIMDAL_ERRTABLE('HEIMDAL_ASN1_ERR_ET', 'lib/asn1/asn1_err.et')
|
||||
@ -894,14 +894,13 @@ if not bld.CONFIG_SET('USING_SYSTEM_COM_ERR'):
|
||||
|
||||
HEIMDAL_SUBSYSTEM('HEIMDAL_VERS_HOSTCC',
|
||||
'lib/vers/print_version.c ../heimdal_build/version.c',
|
||||
group='build_compilers',
|
||||
group='hostcc_base_build_main',
|
||||
deps='LIBREPLACE_HOSTCC ROKEN_HOSTCC',
|
||||
use_global_deps=False,
|
||||
use_hostcc=True)
|
||||
|
||||
HEIMDAL_SUBSYSTEM('HEIMDAL_VERS',
|
||||
'lib/vers/print_version.c ../heimdal_build/version.c',
|
||||
group='build_compilers',
|
||||
deps='roken replace')
|
||||
|
||||
|
||||
@ -916,7 +915,7 @@ if not bld.CONFIG_SET('USING_SYSTEM_ASN1_COMPILE'):
|
||||
use_hostcc=True,
|
||||
use_global_deps=False,
|
||||
includes='../heimdal/lib/asn1',
|
||||
group='build_compilers',
|
||||
group='hostcc_build_main',
|
||||
deps='ROKEN_HOSTCC LIBREPLACE_HOSTCC HEIMDAL_VERS_HOSTCC',
|
||||
install=False
|
||||
)
|
||||
@ -929,7 +928,7 @@ if not bld.CONFIG_SET('USING_SYSTEM_COMPILE_ET'):
|
||||
use_hostcc=True,
|
||||
use_global_deps=False,
|
||||
includes='../heimdal/lib/com_err',
|
||||
group='build_compilers',
|
||||
group='hostcc_base_build_main',
|
||||
deps='ROKEN_HOSTCC LIBREPLACE_HOSTCC HEIMDAL_VERS_HOSTCC',
|
||||
install=False
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user