Skip to content
This project is mirrored from https://github.com/CherishOS/android_build_blueprint.git. Pull mirroring updated .
  1. Dec 11, 2020
    • Colin Cross's avatar
      Add CreateAliasVariation · 48e46e94
      Colin Cross authored
      CreateAliasVariation creates a new variation for the current mutator
      that is an alias to a variation that was created with CreateVarations
      by the same mutator.  It is similar to AliasVariation, except that
      AliasVariation creates an alias from the pre-mutated variant to one
      of the new variations, while CreateAliasVariation creates an alias
      from a new post-mutated variation to one of the new variations.
      
      Bug: 164216768
      Test: TestCreateAliasVariation
      Change-Id: I8847b8d6fc1d3248abc910b2fe2399881f9bdaee
      48e46e94
    • Colin Cross's avatar
      Combine variant fields into variant struct · ddd8175b
      Colin Cross authored
      Combine variant, variations and dependencyVariations into a single
      struct.
      
      Test: blueprint tests
      Change-Id: I76811bb2bdf76f1b4cffc6a7b9bc7362ecb5f7b9
      ddd8175b
    • Paul Duffin's avatar
      Add ReplaceDependeciesIf to allow for conditional replacement · 91768e7c
      Paul Duffin authored
      Adds support for making the replacement of one dependency with another
      conditional on the from and to module as well as the tag used.
      
      Change-Id: I66e85ba2e5eaea05fe976b7065985ff662d2dfec
      91768e7c
    • Martin Stjernholm's avatar
      Add ctx.OtherModule(Reverse)DependencyVariantExists. · 6a922fea
      Martin Stjernholm authored
      This allows guarding calls to AddVariationDependencies and
      AddReverseDependency to register dependencies on optional modules.
      
      Change-Id: Ie43b8606f226b098daf00c4276412a98617d3f15
      6a922fea
  2. May 19, 2020
  3. May 18, 2020
    • Colin Cross's avatar
      Merge remote-tracking branch 'aosp/upstream' · 709f2824
      Colin Cross authored
      * aosp/upstream:
        Support checking syntax of generated Blueprint files
        Always emit rules for tests and add phony to run them
      
      Bug: 155628860
      Bug: 156428456
      Test: treehugger
      Change-Id: Ia0e0c8d8d07489c945d4e03d039273cc3f597ac0
      709f2824
  4. May 14, 2020
  5. May 13, 2020
    • Paul Duffin's avatar
      Support checking syntax of generated Blueprint files · 2a2c58ef
      Paul Duffin authored
      Adds a CheckBlueprintSyntax(...) method to check the syntax of a
      Blueprint file.
      
      Changes processModuleDef and newModule from being method on *Context to
      being standalone functions. That ensures that CheckBlueprintSyntax(...)
      does not need to take a context and so there is no chance that it can
      change its state.
      2a2c58ef
    • colincross's avatar
      Merge pull request #298 from colincross/blueprint_tests · 30174980
      colincross authored
      Always emit rules for tests and add phony to run them
      30174980
    • Colin Cross's avatar
      Always emit rules for tests and add phony to run them · 63085f9e
      Colin Cross authored
      Emit the rules to build blueprint tests even if runGoTests is not
      set, and add a phony rule "blueprint_tests" to run them.  This will
      allow Soong to stop running the tests at the beginning of every build
      but still run them as part of checkbuild or with a manual
      `m blueprint_tests`.
      
      Bug: 156428456
      Test: m
      Test: m blueprint_tests
      Change-Id: If293a0757766d3046e78bf230a1825f15adc68fd
      63085f9e
  6. May 07, 2020
  7. May 04, 2020
    • Colin Cross's avatar
      Merge remote-tracking branch 'aosp/upstream' · 6f902c41
      Colin Cross authored
      * aosp/upstream:
        Run LoadHooks before registering module
      
      Bug: 155462403
      Test: treehugger
      Change-Id: I649f2a524f200d696b038ee6bc99d95308e1b475
      6f902c41
    • colincross's avatar
      Merge pull request #297 from paulduffin/master · b0fe51a0
      colincross authored
      Run LoadHooks before registering module
      b0fe51a0
    • Paul Duffin's avatar
      Run LoadHooks before registering module · 244033b2
      Paul Duffin authored
      Previously a LoadHook could not modify the name of a module because the
      module was registered before the LoadHooks were run. That made it very
      complicated (requiring mutators and auto generated names) to create a
      module type whose name was determined by say the directory in which it
      is defined.
      
      This change moves the LoadHook execution slightly earlier so it runs
      before registration of the module.
      
      That caused one slight side problem which was that the
      moduleInfo.Name() would fail when called in a LoadHook. That was
      because that gets the name from group.name but was group was nil
      because it is only set when the module is registered.
      
      Modifying the moduleInfo.Name() method to get the name from the module
      logicModule.Name() if group is nil fixed that. The reason for getting
      the name from the group.name rather than the logicModule.Name() is that
      the former tracks renames but the latter does not. However that is not
      an issue in this case as there has been no opportunity for the module
      to be renamed until after the LoadHook has returned.
      244033b2
  8. Apr 19, 2020
  9. Apr 13, 2020
  10. Apr 09, 2020
    • Colin Cross's avatar
      Merge remote-tracking branch 'goog/mirror-aosp-master' into rvc-dev · 681e941f
      Colin Cross authored
      Update rvc-dev build/blueprint to match current AOSP master.
      
      * goog/mirror-aosp-master:
        WalkDeps - only record module visited when it has been recursed into
        Allow missing variants when allowMissingDependencies=true
        bpmodify: fix os.Exit() shouldn't shadow panic()
        bpmodify: respect exitCode
        Set bpmodify usage function
        Fix bug in buildPropertyMap in previous commit.
        Fix missing dependencies from mutators
        Implement list of maps
        In kzip files, compilation unit paths should be relative to top.
      
      Fixes: 150689149
      Test: m checkbuild
      Change-Id: I38d4b4f5fd51f9467019b7ed8cdeaec1e0798ae3
      681e941f
  11. Apr 02, 2020
    • Colin Cross's avatar
      Merge remote-tracking branch 'aosp/upstream' · 5ef2a1ee
      Colin Cross authored
      * aosp/upstream:
        WalkDeps - only record module visited when it has been recursed into
        Allow missing variants when allowMissingDependencies=true
        bpmodify: fix os.Exit() shouldn't shadow panic()
        bpmodify: respect exitCode
        Set bpmodify usage function
      
      Test: treehugger
      Change-Id: Ida99d7412ea3c034e1ddce228b1e851c1dc40cc2
      5ef2a1ee
    • colincross's avatar
      Merge pull request #293 from paulduffin/master · 6957a46d
      colincross authored
      WalkDeps - only record module visited when it has been recursed into
      6957a46d
    • Paul Duffin's avatar
      WalkDeps - only record module visited when it has been recursed into · 72bab170
      Paul Duffin authored
      Previously, WalkDeps() would record that a module was visited after the
      first time it encountered the module irrespective of whether it recursed
      into or not. This change moves the recording so it happens only after it
      has been recursed into.
      
      Added TestWalkDepsDuplicates_IgnoreFirstPath to test the change. Without
      the change the test fails because it does not visit E.
      
      Test refactoring:
      * A depsMutator was added instead of relying on blueprintDepsMutator to
        allow different tags to be used for different dependency types.
      * Modified barModule and fooModule to support the new depsMutator and
        add support for another type of dependency that is ignored by the
        walking code.
      * Extracted walkDependencyGraph() function to reuse common code.
      72bab170
  12. Apr 01, 2020
  13. Mar 24, 2020
  14. Mar 05, 2020
  15. Mar 04, 2020
  16. Mar 03, 2020
Loading