BUILD.gn 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. # Copyright 2021 The Chromium Authors. All rights reserved.
  2. # Use of this source code is governed by a BSD-style license that can be
  3. # found in the LICENSE file.
  4. import("//ash/ambient/resources/resources.gni")
  5. import("//build/cipd/cipd.gni")
  6. import("//build/config/chromeos/ui_mode.gni")
  7. import("//tools/grit/grit_rule.gni")
  8. import("//ui/webui/resources/tools/generate_grd.gni")
  9. assert(is_chromeos_ash)
  10. assert(include_ash_ambient_animation_resources)
  11. lottie_resources_grd_file = "$target_gen_dir/lottie_resources.grd"
  12. generate_grd("build_lottie_grd") {
  13. out_grd = lottie_resources_grd_file
  14. grd_prefix = "ash_ambient_lottie"
  15. input_files = [
  16. "lottie/feel_the_breeze/animation.json",
  17. "lottie/feel_the_breeze/clip_bottom.png",
  18. "lottie/feel_the_breeze/clip_top.png",
  19. "lottie/feel_the_breeze/frame_image_1.png",
  20. "lottie/feel_the_breeze/frame_image_2.png",
  21. "lottie/feel_the_breeze/string.png",
  22. "lottie/feel_the_breeze/tree_shadow.png",
  23. "lottie/float_on_by/animation.json",
  24. "lottie/float_on_by/shadow_a_1.png",
  25. "lottie/float_on_by/shadow_b_1.png",
  26. "lottie/float_on_by/shadow_c_1.png",
  27. "lottie/float_on_by/shadow_d_1.png",
  28. "lottie/float_on_by/shadow_e_1.png",
  29. "lottie/float_on_by/shadow_f_1.png",
  30. "lottie/float_on_by/shadow_g_1.png",
  31. "lottie/float_on_by/shadow_h_1.png",
  32. ]
  33. input_files_base_dir = rebase_path(".", "//")
  34. }
  35. grit("lottie_resources") {
  36. # Required since the .grd file is generated at build time.
  37. enable_input_discovery_for_gn_analyze = false
  38. source = lottie_resources_grd_file
  39. deps = [ ":build_lottie_grd" ]
  40. outputs = [
  41. "grit/ash_ambient_lottie_resources.h",
  42. "grit/ash_ambient_lottie_resources_map.cc",
  43. "grit/ash_ambient_lottie_resources_map.h",
  44. "ash_ambient_lottie_resources.pak",
  45. ]
  46. }