heimdal_build: Set up new build groups for the Heimdal hostcc components
authorAndrew Bartlett <abartlet@samba.org>
Tue, 15 Jun 2021 01:50:48 +0000 (13:50 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 15 Jun 2021 22:41:34 +0000 (22:41 +0000)
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>
buildtools/wafsamba/wafsamba.py
lib/replace/wscript
source4/heimdal_build/wscript_build

index 9c8aa36d61cca0b30084ab51b8f9b4d736faa5b3..2dfd5e6e44b2cbfc792c6a1686743dfe4d0208f5 100644 (file)
@@ -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')
index dac3042bb6559dbe6195dbc3439beeb89f682ad9..5d6324ef619edbfe0c0704a3be886b6c43957a44 100644 (file)
@@ -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
     )
 
index b6403f33f35dac4f18410126aa649ba122e95944..8e94fc154ab66be035d945f8c5d23e7c32cba8d3 100644 (file)
@@ -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
         )