1bb3a541cSmrg# generated files 2bb3a541cSmrgrules_compat_generated = [] 3bb3a541cSmrg 4bb3a541cSmrglayout_mappings = files('layoutsMapping.lst') 5bb3a541cSmrgvariant_mappings = files('variantsMapping.lst') 6bb3a541cSmrgmap_variants_py = find_program('map-variants.py') 7bb3a541cSmrg 8bb3a541cSmrgml_s_file = 'base.ml_s.part' 9bb3a541cSmrgml_s = custom_target(ml_s_file, 10bb3a541cSmrg build_by_default: true, 11bb3a541cSmrg command: [ 12bb3a541cSmrg map_variants_py, 13bb3a541cSmrg '--want=mls', 14bb3a541cSmrg '@OUTPUT@', 15bb3a541cSmrg layout_mappings, 16bb3a541cSmrg variant_mappings, 17bb3a541cSmrg ], 18bb3a541cSmrg output: ml_s_file, 19bb3a541cSmrg install: false) 20bb3a541cSmrgrules_compat_generated += [ml_s] 21bb3a541cSmrg 22bb3a541cSmrg# base.mlv_s.part and friends 23bb3a541cSmrgmlv_s_file = 'base.mlv_s.part' 24bb3a541cSmrgmlv_s = custom_target(mlv_s_file, 25bb3a541cSmrg build_by_default: true, 26bb3a541cSmrg command: [ 27bb3a541cSmrg map_variants_py, 28bb3a541cSmrg '--want=mlvs', 29bb3a541cSmrg '@OUTPUT@', 30bb3a541cSmrg variant_mappings, 31bb3a541cSmrg ], 32bb3a541cSmrg output: mlv_s_file, 33bb3a541cSmrg install: false) 34bb3a541cSmrgrules_compat_generated += [mlv_s] 35bb3a541cSmrg 36bb3a541cSmrgforeach lvl: [1, 2, 3, 4] 37bb3a541cSmrg # base.ml1_s.part and friends 38bb3a541cSmrg ml_s_file = 'base.ml@0@_s.part'.format(lvl) 39bb3a541cSmrg ml_s = custom_target(ml_s_file, 40bb3a541cSmrg build_by_default: true, 41bb3a541cSmrg command: [ 42bb3a541cSmrg map_variants_py, 43bb3a541cSmrg '--want=mls', 44bb3a541cSmrg '--number=@0@'.format(lvl), 45bb3a541cSmrg '@OUTPUT@', 46bb3a541cSmrg layout_mappings, 47bb3a541cSmrg variant_mappings, 48bb3a541cSmrg ], 49bb3a541cSmrg output: ml_s_file, 50bb3a541cSmrg install: false) 51bb3a541cSmrg rules_compat_generated += [ml_s] 52bb3a541cSmrg 53bb3a541cSmrg # base.ml1v1_s.part and friends 54bb3a541cSmrg mlv_s_file = 'base.ml@0@v@0@_s.part'.format(lvl) 55bb3a541cSmrg mlv_s = custom_target(mlv_s_file, 56bb3a541cSmrg build_by_default: true, 57bb3a541cSmrg command: [ 58bb3a541cSmrg map_variants_py, 59bb3a541cSmrg '--want=mlvs', 60bb3a541cSmrg '--number=@0@'.format(lvl), 61bb3a541cSmrg '@OUTPUT@', 62bb3a541cSmrg variant_mappings, 63bb3a541cSmrg ], 64bb3a541cSmrg output: mlv_s_file, 65bb3a541cSmrg install: false) 66bb3a541cSmrg rules_compat_generated += [mlv_s] 67bb3a541cSmrgendforeach 68bb3a541cSmrg 69bb3a541cSmrg# Non-generated files 70bb3a541cSmrgothers = [ 71bb3a541cSmrg 'base.lists.part', 72bb3a541cSmrg 'base.lv_c.part', 73bb3a541cSmrg 'base.l1v1_c.part', 74bb3a541cSmrg 'base.l2v2_c.part', 75bb3a541cSmrg 'base.l3v3_c.part', 76bb3a541cSmrg 'base.l4v4_c.part', 77bb3a541cSmrg 'base.o_s.part', 78bb3a541cSmrg] 79bb3a541cSmrgforeach o: others 80bb3a541cSmrg configure_file(output: o, 81bb3a541cSmrg input: o, 82bb3a541cSmrg copy: true, 83bb3a541cSmrg install: false) 84bb3a541cSmrgendforeach 85