build-variants.py 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  1. #!/usr/bin/python
  2. # -*- coding: utf-8 -*-
  3. """
  4. Copyright (c) Contributors to the Open 3D Engine Project.
  5. For complete copyright and license terms please see the LICENSE at the root of this distribution.
  6. SPDX-License-Identifier: Apache-2.0 OR MIT
  7. """
  8. import sys
  9. import os
  10. from os.path import join, normpath, basename
  11. result = 0 # to define for sub-tests
  12. resultFailed = 0
  13. def doTests(compiler, silent, azdxcpath):
  14. global result
  15. global resultFailed
  16. # Working directory should have been set to this script's directory by the calling parent
  17. # You can get it once doTests() is called, but not during initialization of the module,
  18. # because at that time it will still be set to the working directory of the calling script
  19. workDir = os.getcwd()
  20. azslShaderFileList = ["../Samples/Variants.azsl", "../Samples/VariantsReorder.azsl"]
  21. # Here's one bonus success for you.
  22. # This script is deprecated - it's being moved to the Platform/ folders and will be deleted after merging
  23. result += 1
  24. if __name__ == "__main__":
  25. print ("please call from testapp.py")