WebClient.cmake 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. include(FetchDependencies)
  2. option(WEB_CLIENT_TV_OLD "" OFF)
  3. option(WEB_CLIENT_DISABLE_DESKTOP "" OFF)
  4. # This is the line to edit when you bump the web-client.
  5. set(WEB_CLIENT_BUILD_ID 181-9e1b1f2e50e175)
  6. get_content_of_url(
  7. URL "https://artifacts.plex.tv/web-client-pmp/${WEB_CLIENT_BUILD_ID}/buildid.cmake"
  8. CONTENT_VAR BUILDIDS
  9. FILENAME "buildid-${WEB_CLIENT_BUILD_ID}.cmake"
  10. )
  11. if(WEB_CLIENT_TV_OLD)
  12. set(TV_VERSION ${TVOLD_VERSION})
  13. endif()
  14. message(STATUS ${BUILDIDS})
  15. include("${DEPENDENCY_CACHE_DIR}/buildid-${WEB_CLIENT_BUILD_ID}.cmake")
  16. if(NOT WEB_CLIENT_DISABLE_DESKTOP)
  17. download_deps("web-client-desktop"
  18. BUILD_NUMBER ${WEB_CLIENT_BUILD_ID}
  19. VARIANT ${DESKTOP_VERSION}
  20. NO_HASH_FILE
  21. ARCHSTR "universal"
  22. BASE_URL "https://artifacts.plex.tv/web-client-pmp/${WEB_CLIENT_BUILD_ID}"
  23. DIRECTORY WEB_DESKTOP_DIR
  24. )
  25. endif()
  26. download_deps("web-client-tv"
  27. BUILD_NUMBER ${WEB_CLIENT_BUILD_ID}
  28. VARIANT ${TV_VERSION}
  29. NO_HASH_FILE
  30. ARCHSTR "universal"
  31. BASE_URL "https://artifacts.plex.tv/web-client-pmp/${WEB_CLIENT_BUILD_ID}"
  32. DIRECTORY WEB_TV_DIR
  33. )