meson.build 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. # Copyright © 2017 Intel Corporation
  2. # Permission is hereby granted, free of charge, to any person obtaining a copy
  3. # of this software and associated documentation files (the "Software"), to deal
  4. # in the Software without restriction, including without limitation the rights
  5. # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  6. # copies of the Software, and to permit persons to whom the Software is
  7. # furnished to do so, subject to the following conditions:
  8. # The above copyright notice and this permission notice shall be included in
  9. # all copies or substantial portions of the Software.
  10. # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  11. # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  12. # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  13. # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  14. # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  15. # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
  16. # SOFTWARE.
  17. inc_tegra = include_directories('../../tegra')
  18. libdrm_test = static_library(
  19. 'drm-test',
  20. [files('drm-test.c', 'drm-test.h'), config_file ],
  21. include_directories : [inc_root, inc_drm, inc_tegra],
  22. link_with : libdrm,
  23. )
  24. libdrm_test_tegra = static_library(
  25. 'drm-test-tegra',
  26. [files(
  27. 'drm-test-tegra.c',
  28. 'drm-test-tegra.h',
  29. 'vic.c',
  30. 'vic.h',
  31. 'vic30.c',
  32. 'vic30.h',
  33. 'vic40.c',
  34. 'vic40.h',
  35. 'vic41.c',
  36. 'vic41.h',
  37. 'vic42.c',
  38. 'vic42.h',
  39. ), config_file ],
  40. include_directories : [inc_root, inc_drm, inc_tegra],
  41. link_with : libdrm,
  42. )
  43. openclose = executable(
  44. 'tegra-openclose',
  45. files('openclose.c'),
  46. include_directories : [inc_root, inc_drm, inc_tegra],
  47. c_args : libdrm_c_args,
  48. link_with : [libdrm, libdrm_tegra],
  49. install : with_install_tests,
  50. )
  51. gr2d_fill = executable(
  52. 'tegra-gr2d-fill',
  53. files('gr2d-fill.c'),
  54. include_directories : [inc_root, inc_drm, inc_tegra],
  55. c_args : libdrm_c_args,
  56. link_with : [libdrm, libdrm_tegra, libdrm_test, libdrm_test_tegra],
  57. install : with_install_tests,
  58. )
  59. syncpt_wait = executable(
  60. 'tegra-syncpt-wait',
  61. files('syncpt-wait.c'),
  62. include_directories : [inc_root, inc_drm, inc_tegra],
  63. c_args : libdrm_c_args,
  64. link_with : [libdrm, libdrm_tegra, libdrm_test, libdrm_test_tegra],
  65. install : with_install_tests,
  66. )
  67. syncpt_timeout = executable(
  68. 'tegra-syncpt-timeout',
  69. files('syncpt-timeout.c'),
  70. include_directories : [inc_root, inc_drm, inc_tegra],
  71. c_args : libdrm_c_args,
  72. link_with : [libdrm, libdrm_tegra, libdrm_test, libdrm_test_tegra],
  73. install : with_install_tests,
  74. )
  75. vic_clear = executable(
  76. 'tegra-vic-clear',
  77. files('vic-clear.c'),
  78. include_directories : [inc_root, inc_drm, inc_tegra],
  79. c_args : libdrm_c_args,
  80. link_with : [libdrm, libdrm_tegra, libdrm_test, libdrm_test_tegra],
  81. install : with_install_tests,
  82. )
  83. vic_blit = executable(
  84. 'tegra-vic-blit',
  85. files('vic-blit.c'),
  86. include_directories : [inc_root, inc_drm, inc_tegra],
  87. c_args : libdrm_c_args,
  88. link_with : [libdrm, libdrm_tegra, libdrm_test, libdrm_test_tegra],
  89. install : with_install_tests,
  90. )
  91. vic_flip = executable(
  92. 'tegra-vic-flip',
  93. files('vic-flip.c'),
  94. include_directories : [inc_root, inc_drm, inc_tegra],
  95. c_args : libdrm_c_args,
  96. link_with : [libdrm, libdrm_tegra, libdrm_test, libdrm_test_tegra],
  97. install : with_install_tests,
  98. )