html5_deployer.vala 465 B

1234567891011121314151617181920212223242526272829
  1. /*
  2. * Copyright (c) 2012-2026 Daniele Bartolini et al.
  3. * SPDX-License-Identifier: GPL-3.0-or-later
  4. */
  5. namespace Crown
  6. {
  7. public class HTML5Deployer
  8. {
  9. public string? _emscripten_sdk_path;
  10. public HTML5Deployer()
  11. {
  12. _emscripten_sdk_path = null;
  13. check_config();
  14. }
  15. public int check_config()
  16. {
  17. _emscripten_sdk_path = GLib.Environment.get_variable("EMSCRIPTEN");
  18. if (_emscripten_sdk_path == null)
  19. return -1;
  20. return 0;
  21. }
  22. }
  23. } /* namespace Crown */