The JUCE cross-platform C++ framework, with DISTRHO/KXStudio specific changes
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
887B

  1. # Run this script in an empty directory to create the contents of the
  2. # standalone SDK repository.
  3. import os
  4. import shutil
  5. script_dir = os.path.dirname(os.path.realpath(__file__))
  6. # Get the list of JUCE modules to include.
  7. juce_modules = []
  8. with open(os.path.join(script_dir, "..", "juce_modules.txt"), "r") as f:
  9. for line in f:
  10. juce_modules.append(line.strip())
  11. # Copy the required modules into the SDK dir.
  12. sdk_dir = "SDK"
  13. shutil.copytree(os.path.join(script_dir, sdk_dir), sdk_dir)
  14. for module_name in juce_modules:
  15. shutil.copytree(os.path.join(script_dir, "..", "..", "..", "modules",
  16. module_name),
  17. os.path.join(sdk_dir, module_name))
  18. # Copy the examples.
  19. shutil.copytree(os.path.join(script_dir, "examples"), "examples")
  20. # Copy the README.
  21. shutil.copyfile(os.path.join(script_dir, "README.md"), "README.md")