BUILD.gn 46 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949
  1. # Copyright 2015 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("//testing/test.gni")
  5. declare_args() {
  6. internal_khronos_glcts_tests = false
  7. }
  8. if (internal_khronos_glcts_tests) {
  9. glcts_gtf_runfiles =
  10. [ "//third_party/khronos_glcts/GTF_ES/glsl/GTF/mustpass_es20.run" ]
  11. copy("glcts_resources") {
  12. sources = [ "//third_party/khronos_glcts/cts/data" ]
  13. outputs = [ "$root_out_dir/khronos_glcts_data/gl_cts/{{source_file_part}}" ]
  14. }
  15. copy("glcts_gtf_resources") {
  16. sources = [
  17. "//third_party/khronos_glcts/GTF_ES/glsl/GTF/GL",
  18. "//third_party/khronos_glcts/GTF_ES/glsl/GTF/GL2ExtensionTests",
  19. "//third_party/khronos_glcts/GTF_ES/glsl/GTF/GL2FixedTests",
  20. "//third_party/khronos_glcts/GTF_ES/glsl/GTF/GL2Tests",
  21. "//third_party/khronos_glcts/GTF_ES/glsl/GTF/GLCoverage",
  22. ] + glcts_gtf_runfiles
  23. outputs =
  24. [ "$root_out_dir/khronos_glcts_data/gl_cts/GTF/{{source_file_part}}" ]
  25. }
  26. action("generate_khronos_glcts_tests") {
  27. script = "generate_khronos_glcts_tests.py"
  28. sources = [ "khronos_glcts_test.h" ] + glcts_gtf_runfiles
  29. outputs = [ "$target_gen_dir/khronos_glcts_test_autogen.cc" ]
  30. args = [ "--outdir=" + rebase_path("$target_gen_dir") ] + glcts_gtf_runfiles
  31. }
  32. config("defaults_config") {
  33. defines = [
  34. "DEQP_TARGET_NAME=\"chrome-gpu-command-buffer\"",
  35. "DEQP_SUPPORT_GLES2=1",
  36. "DEQP_SUPPORT_EGL=1",
  37. "GTF_API=GTF_GLES20",
  38. ]
  39. if (is_linux || is_chromeos) {
  40. defines += [ "_XOPEN_SOURCE=500" ]
  41. }
  42. }
  43. config("debase_config") {
  44. include_dirs = [ "//third_party/khronos_glcts/framework/delibs/debase" ]
  45. }
  46. source_set("debase") {
  47. sources = [
  48. "//third_party/khronos_glcts/framework/delibs/debase/deDefs.c",
  49. "//third_party/khronos_glcts/framework/delibs/debase/deDefs.h",
  50. "//third_party/khronos_glcts/framework/delibs/debase/deFloat16.c",
  51. "//third_party/khronos_glcts/framework/delibs/debase/deFloat16.h",
  52. "//third_party/khronos_glcts/framework/delibs/debase/deInt32.c",
  53. "//third_party/khronos_glcts/framework/delibs/debase/deInt32.h",
  54. "//third_party/khronos_glcts/framework/delibs/debase/deInt32Test.c",
  55. "//third_party/khronos_glcts/framework/delibs/debase/deMath.c",
  56. "//third_party/khronos_glcts/framework/delibs/debase/deMath.h",
  57. "//third_party/khronos_glcts/framework/delibs/debase/deMemory.c",
  58. "//third_party/khronos_glcts/framework/delibs/debase/deMemory.h",
  59. "//third_party/khronos_glcts/framework/delibs/debase/deRandom.c",
  60. "//third_party/khronos_glcts/framework/delibs/debase/deRandom.h",
  61. "//third_party/khronos_glcts/framework/delibs/debase/deString.c",
  62. "//third_party/khronos_glcts/framework/delibs/debase/deString.h",
  63. ]
  64. configs += [ ":defaults_config" ]
  65. configs -= [ "//build/config/compiler:chromium_code" ]
  66. configs += [ "//build/config/compiler:no_chromium_code" ]
  67. configs -= [ "//build/config/compiler:no_rtti" ]
  68. configs += [ "//build/config/compiler:rtti" ]
  69. public_configs = [ ":debase_config" ]
  70. if (is_linux || is_chromeos) {
  71. cflags_c = [ "-Wno-implicit-function-declaration" ]
  72. }
  73. }
  74. config("depool_config") {
  75. include_dirs = [ "//third_party/khronos_glcts/framework/delibs/depool" ]
  76. }
  77. source_set("depool") {
  78. sources = [
  79. "//third_party/khronos_glcts/framework/delibs/depool/deMemPool.c",
  80. "//third_party/khronos_glcts/framework/delibs/depool/deMemPool.h",
  81. "//third_party/khronos_glcts/framework/delibs/depool/dePoolArray.c",
  82. "//third_party/khronos_glcts/framework/delibs/depool/dePoolArray.h",
  83. "//third_party/khronos_glcts/framework/delibs/depool/dePoolHash.c",
  84. "//third_party/khronos_glcts/framework/delibs/depool/dePoolHash.h",
  85. "//third_party/khronos_glcts/framework/delibs/depool/dePoolHashArray.c",
  86. "//third_party/khronos_glcts/framework/delibs/depool/dePoolHashArray.h",
  87. "//third_party/khronos_glcts/framework/delibs/depool/dePoolHashSet.c",
  88. "//third_party/khronos_glcts/framework/delibs/depool/dePoolHashSet.h",
  89. "//third_party/khronos_glcts/framework/delibs/depool/dePoolHeap.c",
  90. "//third_party/khronos_glcts/framework/delibs/depool/dePoolHeap.h",
  91. "//third_party/khronos_glcts/framework/delibs/depool/dePoolMultiSet.c",
  92. "//third_party/khronos_glcts/framework/delibs/depool/dePoolMultiSet.h",
  93. "//third_party/khronos_glcts/framework/delibs/depool/dePoolSet.c",
  94. "//third_party/khronos_glcts/framework/delibs/depool/dePoolSet.h",
  95. "//third_party/khronos_glcts/framework/delibs/depool/dePoolStringBuilder.c",
  96. "//third_party/khronos_glcts/framework/delibs/depool/dePoolStringBuilder.h",
  97. "//third_party/khronos_glcts/framework/delibs/depool/dePoolTest.c",
  98. "//third_party/khronos_glcts/framework/delibs/depool/dePoolTest.h",
  99. ]
  100. deps = [ ":debase" ]
  101. configs += [ ":defaults_config" ]
  102. configs -= [ "//build/config/compiler:chromium_code" ]
  103. configs += [ "//build/config/compiler:no_chromium_code" ]
  104. configs -= [ "//build/config/compiler:no_rtti" ]
  105. configs += [ "//build/config/compiler:rtti" ]
  106. public_configs = [ ":depool_config" ]
  107. }
  108. config("dethread_config") {
  109. include_dirs = [ "//third_party/khronos_glcts/framework/delibs/dethread" ]
  110. }
  111. source_set("dethread") {
  112. sources = [
  113. "//third_party/khronos_glcts/framework/delibs/dethread/deAtomic.c",
  114. "//third_party/khronos_glcts/framework/delibs/dethread/deAtomic.h",
  115. "//third_party/khronos_glcts/framework/delibs/dethread/deMutex.h",
  116. "//third_party/khronos_glcts/framework/delibs/dethread/deSemaphore.h",
  117. "//third_party/khronos_glcts/framework/delibs/dethread/deThread.h",
  118. "//third_party/khronos_glcts/framework/delibs/dethread/deThreadLocal.h",
  119. "//third_party/khronos_glcts/framework/delibs/dethread/deThreadTest.c",
  120. "//third_party/khronos_glcts/framework/delibs/dethread/deThreadTest.h",
  121. ]
  122. deps = [ ":debase" ]
  123. configs += [ ":defaults_config" ]
  124. configs -= [ "//build/config/compiler:chromium_code" ]
  125. configs += [ "//build/config/compiler:no_chromium_code" ]
  126. configs -= [ "//build/config/compiler:no_rtti" ]
  127. configs += [ "//build/config/compiler:rtti" ]
  128. public_configs = [ ":dethread_config" ]
  129. if (is_linux || is_chromeos) {
  130. sources += [
  131. "//third_party/khronos_glcts/framework/delibs/dethread/unix/deMutexUnix.c",
  132. "//third_party/khronos_glcts/framework/delibs/dethread/unix/deSemaphoreUnix.c",
  133. "//third_party/khronos_glcts/framework/delibs/dethread/unix/deThreadLocalUnix.c",
  134. "//third_party/khronos_glcts/framework/delibs/dethread/unix/deThreadUnix.c",
  135. ]
  136. }
  137. }
  138. config("deutil_config") {
  139. include_dirs = [ "//third_party/khronos_glcts/framework/delibs/deutil" ]
  140. }
  141. source_set("deutil") {
  142. sources = [
  143. "//third_party/khronos_glcts/framework/delibs/deutil/deClock.c",
  144. "//third_party/khronos_glcts/framework/delibs/deutil/deClock.h",
  145. "//third_party/khronos_glcts/framework/delibs/deutil/deCommandLine.c",
  146. "//third_party/khronos_glcts/framework/delibs/deutil/deCommandLine.h",
  147. "//third_party/khronos_glcts/framework/delibs/deutil/deDynamicLibrary.c",
  148. "//third_party/khronos_glcts/framework/delibs/deutil/deDynamicLibrary.h",
  149. "//third_party/khronos_glcts/framework/delibs/deutil/deFile.c",
  150. "//third_party/khronos_glcts/framework/delibs/deutil/deFile.h",
  151. "//third_party/khronos_glcts/framework/delibs/deutil/deProcess.c",
  152. "//third_party/khronos_glcts/framework/delibs/deutil/deProcess.h",
  153. "//third_party/khronos_glcts/framework/delibs/deutil/deSocket.c",
  154. "//third_party/khronos_glcts/framework/delibs/deutil/deSocket.h",
  155. "//third_party/khronos_glcts/framework/delibs/deutil/deTimer.c",
  156. "//third_party/khronos_glcts/framework/delibs/deutil/deTimer.h",
  157. "//third_party/khronos_glcts/framework/delibs/deutil/deTimerTest.c",
  158. "//third_party/khronos_glcts/framework/delibs/deutil/deTimerTest.h",
  159. ]
  160. deps = [
  161. ":debase",
  162. ":depool",
  163. ":dethread",
  164. ]
  165. configs += [ ":defaults_config" ]
  166. configs -= [ "//build/config/compiler:chromium_code" ]
  167. configs += [ "//build/config/compiler:no_chromium_code" ]
  168. configs -= [ "//build/config/compiler:no_rtti" ]
  169. configs += [ "//build/config/compiler:rtti" ]
  170. public_configs = [ ":deutil_config" ]
  171. if (is_linux || is_chromeos) {
  172. cflags_c = [ "-Wno-string-conversion" ]
  173. }
  174. }
  175. config("decpp_config") {
  176. include_dirs = [ "//third_party/khronos_glcts/framework/delibs/decpp" ]
  177. }
  178. source_set("decpp") {
  179. sources = [
  180. "//third_party/khronos_glcts/framework/delibs/decpp/deBlockBuffer.cpp",
  181. "//third_party/khronos_glcts/framework/delibs/decpp/deBlockBuffer.hpp",
  182. "//third_party/khronos_glcts/framework/delibs/decpp/deDefs.cpp",
  183. "//third_party/khronos_glcts/framework/delibs/decpp/deDefs.hpp",
  184. "//third_party/khronos_glcts/framework/delibs/decpp/deDirectoryIterator.cpp",
  185. "//third_party/khronos_glcts/framework/delibs/decpp/deDirectoryIterator.hpp",
  186. "//third_party/khronos_glcts/framework/delibs/decpp/deDynamicLibrary.cpp",
  187. "//third_party/khronos_glcts/framework/delibs/decpp/deDynamicLibrary.hpp",
  188. "//third_party/khronos_glcts/framework/delibs/decpp/deFilePath.cpp",
  189. "//third_party/khronos_glcts/framework/delibs/decpp/deFilePath.hpp",
  190. "//third_party/khronos_glcts/framework/delibs/decpp/deMemPool.cpp",
  191. "//third_party/khronos_glcts/framework/delibs/decpp/deMemPool.hpp",
  192. "//third_party/khronos_glcts/framework/delibs/decpp/deMutex.cpp",
  193. "//third_party/khronos_glcts/framework/delibs/decpp/deMutex.hpp",
  194. "//third_party/khronos_glcts/framework/delibs/decpp/dePoolArray.cpp",
  195. "//third_party/khronos_glcts/framework/delibs/decpp/dePoolArray.hpp",
  196. "//third_party/khronos_glcts/framework/delibs/decpp/dePoolString.cpp",
  197. "//third_party/khronos_glcts/framework/delibs/decpp/dePoolString.hpp",
  198. "//third_party/khronos_glcts/framework/delibs/decpp/deRandom.cpp",
  199. "//third_party/khronos_glcts/framework/delibs/decpp/deRandom.hpp",
  200. "//third_party/khronos_glcts/framework/delibs/decpp/deRingBuffer.cpp",
  201. "//third_party/khronos_glcts/framework/delibs/decpp/deRingBuffer.hpp",
  202. "//third_party/khronos_glcts/framework/delibs/decpp/deSemaphore.cpp",
  203. "//third_party/khronos_glcts/framework/delibs/decpp/deSemaphore.hpp",
  204. "//third_party/khronos_glcts/framework/delibs/decpp/deSharedPtr.cpp",
  205. "//third_party/khronos_glcts/framework/delibs/decpp/deSharedPtr.hpp",
  206. "//third_party/khronos_glcts/framework/delibs/decpp/deSocket.cpp",
  207. "//third_party/khronos_glcts/framework/delibs/decpp/deSocket.hpp",
  208. "//third_party/khronos_glcts/framework/delibs/decpp/deStringUtil.cpp",
  209. "//third_party/khronos_glcts/framework/delibs/decpp/deStringUtil.hpp",
  210. "//third_party/khronos_glcts/framework/delibs/decpp/deThread.cpp",
  211. "//third_party/khronos_glcts/framework/delibs/decpp/deThread.hpp",
  212. "//third_party/khronos_glcts/framework/delibs/decpp/deThreadSafeRingBuffer.cpp",
  213. "//third_party/khronos_glcts/framework/delibs/decpp/deThreadSafeRingBuffer.hpp",
  214. "//third_party/khronos_glcts/framework/delibs/decpp/deUniquePtr.cpp",
  215. "//third_party/khronos_glcts/framework/delibs/decpp/deUniquePtr.hpp",
  216. ]
  217. deps = [
  218. ":debase",
  219. ":depool",
  220. ":dethread",
  221. ":deutil",
  222. ]
  223. configs += [ ":defaults_config" ]
  224. configs -= [ "//build/config/compiler:chromium_code" ]
  225. configs += [ "//build/config/compiler:no_chromium_code" ]
  226. configs -= [ "//build/config/compiler:no_rtti" ]
  227. configs += [ "//build/config/compiler:rtti" ]
  228. configs -= [ "//build/config/compiler:no_exceptions" ]
  229. configs += [ "//build/config/compiler:exceptions" ]
  230. public_configs = [ ":decpp_config" ]
  231. }
  232. group("delibs") {
  233. public_deps = [
  234. ":debase",
  235. ":decpp",
  236. ":depool",
  237. ":dethread",
  238. ":deutil",
  239. ]
  240. }
  241. config("qphelper_config") {
  242. include_dirs = [ "//third_party/khronos_glcts/framework/qphelper" ]
  243. }
  244. source_set("qphelper") {
  245. sources = [
  246. "//third_party/khronos_glcts/framework/qphelper/qpCommandLine.c",
  247. "//third_party/khronos_glcts/framework/qphelper/qpCommandLine.h",
  248. "//third_party/khronos_glcts/framework/qphelper/qpCrashHandler.c",
  249. "//third_party/khronos_glcts/framework/qphelper/qpCrashHandler.h",
  250. "//third_party/khronos_glcts/framework/qphelper/qpDebugOut.c",
  251. "//third_party/khronos_glcts/framework/qphelper/qpDebugOut.h",
  252. "//third_party/khronos_glcts/framework/qphelper/qpInfo.c",
  253. "//third_party/khronos_glcts/framework/qphelper/qpInfo.h",
  254. "//third_party/khronos_glcts/framework/qphelper/qpTestLog.c",
  255. "//third_party/khronos_glcts/framework/qphelper/qpTestLog.h",
  256. "//third_party/khronos_glcts/framework/qphelper/qpWatchDog.c",
  257. "//third_party/khronos_glcts/framework/qphelper/qpWatchDog.h",
  258. "//third_party/khronos_glcts/framework/qphelper/qpXmlWriter.c",
  259. "//third_party/khronos_glcts/framework/qphelper/qpXmlWriter.h",
  260. ]
  261. defines = [ "QP_SUPPORT_PNG" ]
  262. deps = [
  263. ":delibs",
  264. "//third_party/libpng:libpng",
  265. ]
  266. configs += [ ":defaults_config" ]
  267. configs -= [ "//build/config/compiler:chromium_code" ]
  268. configs += [ "//build/config/compiler:no_chromium_code" ]
  269. configs -= [ "//build/config/compiler:no_rtti" ]
  270. configs += [ "//build/config/compiler:rtti" ]
  271. public_configs = [ ":qphelper_config" ]
  272. if (is_linux || is_chromeos) {
  273. cflags_c = [ "-Wno-string-conversion" ]
  274. }
  275. }
  276. config("tcutil_config") {
  277. include_dirs = [ "//third_party/khronos_glcts/framework/common" ]
  278. }
  279. source_set("tcutil") {
  280. sources = [
  281. "//third_party/khronos_glcts/framework/common/tcuApp.cpp",
  282. "//third_party/khronos_glcts/framework/common/tcuApp.hpp",
  283. "//third_party/khronos_glcts/framework/common/tcuCommandLine.cpp",
  284. "//third_party/khronos_glcts/framework/common/tcuCommandLine.hpp",
  285. "//third_party/khronos_glcts/framework/common/tcuCompressedTexture.cpp",
  286. "//third_party/khronos_glcts/framework/common/tcuCompressedTexture.hpp",
  287. "//third_party/khronos_glcts/framework/common/tcuDefs.cpp",
  288. "//third_party/khronos_glcts/framework/common/tcuDefs.hpp",
  289. "//third_party/khronos_glcts/framework/common/tcuFloat.hpp",
  290. "//third_party/khronos_glcts/framework/common/tcuFormatUtil.hpp",
  291. "//third_party/khronos_glcts/framework/common/tcuFuzzyImageCompare.cpp",
  292. "//third_party/khronos_glcts/framework/common/tcuFuzzyImageCompare.hpp",
  293. "//third_party/khronos_glcts/framework/common/tcuImageCompare.cpp",
  294. "//third_party/khronos_glcts/framework/common/tcuImageCompare.hpp",
  295. "//third_party/khronos_glcts/framework/common/tcuImageIO.cpp",
  296. "//third_party/khronos_glcts/framework/common/tcuImageIO.hpp",
  297. "//third_party/khronos_glcts/framework/common/tcuMatrix.hpp",
  298. "//third_party/khronos_glcts/framework/common/tcuMatrixUtil.hpp",
  299. "//third_party/khronos_glcts/framework/common/tcuPixelFormat.hpp",
  300. "//third_party/khronos_glcts/framework/common/tcuPlatform.cpp",
  301. "//third_party/khronos_glcts/framework/common/tcuPlatform.hpp",
  302. "//third_party/khronos_glcts/framework/common/tcuRGBA.cpp",
  303. "//third_party/khronos_glcts/framework/common/tcuRGBA.hpp",
  304. "//third_party/khronos_glcts/framework/common/tcuRandomValueIterator.cpp",
  305. "//third_party/khronos_glcts/framework/common/tcuRandomValueIterator.hpp",
  306. "//third_party/khronos_glcts/framework/common/tcuRenderTarget.cpp",
  307. "//third_party/khronos_glcts/framework/common/tcuRenderTarget.hpp",
  308. "//third_party/khronos_glcts/framework/common/tcuResource.cpp",
  309. "//third_party/khronos_glcts/framework/common/tcuResource.hpp",
  310. "//third_party/khronos_glcts/framework/common/tcuStringTemplate.cpp",
  311. "//third_party/khronos_glcts/framework/common/tcuStringTemplate.hpp",
  312. "//third_party/khronos_glcts/framework/common/tcuSurface.cpp",
  313. "//third_party/khronos_glcts/framework/common/tcuSurface.hpp",
  314. "//third_party/khronos_glcts/framework/common/tcuTestCase.cpp",
  315. "//third_party/khronos_glcts/framework/common/tcuTestCase.hpp",
  316. "//third_party/khronos_glcts/framework/common/tcuTestCaseWrapper.cpp",
  317. "//third_party/khronos_glcts/framework/common/tcuTestCaseWrapper.hpp",
  318. "//third_party/khronos_glcts/framework/common/tcuTestContext.cpp",
  319. "//third_party/khronos_glcts/framework/common/tcuTestContext.hpp",
  320. "//third_party/khronos_glcts/framework/common/tcuTestExecutor.cpp",
  321. "//third_party/khronos_glcts/framework/common/tcuTestExecutor.hpp",
  322. "//third_party/khronos_glcts/framework/common/tcuTestLog.cpp",
  323. "//third_party/khronos_glcts/framework/common/tcuTestLog.hpp",
  324. "//third_party/khronos_glcts/framework/common/tcuTestPackage.cpp",
  325. "//third_party/khronos_glcts/framework/common/tcuTestPackage.hpp",
  326. "//third_party/khronos_glcts/framework/common/tcuTexture.cpp",
  327. "//third_party/khronos_glcts/framework/common/tcuTexture.hpp",
  328. "//third_party/khronos_glcts/framework/common/tcuTextureUtil.cpp",
  329. "//third_party/khronos_glcts/framework/common/tcuTextureUtil.hpp",
  330. "//third_party/khronos_glcts/framework/common/tcuVector.hpp",
  331. "//third_party/khronos_glcts/framework/common/tcuVectorType.hpp",
  332. "//third_party/khronos_glcts/framework/common/tcuVectorUtil.hpp",
  333. # Not used by anything...
  334. #"//third_party/khronos_glcts/framework/common/tcuZipResource.cpp",
  335. #"//third_party/khronos_glcts/framework/common/tcuZipResource.hpp",
  336. ]
  337. deps = [
  338. ":delibs",
  339. "//third_party/libpng:libpng",
  340. ]
  341. public_deps = [ ":qphelper" ]
  342. include_dirs =
  343. [ "//third_party/khronos_glcts/framework/delibs/libpng" ] # png.hpp
  344. configs += [ ":defaults_config" ]
  345. configs -= [ "//build/config/compiler:chromium_code" ]
  346. configs += [ "//build/config/compiler:no_chromium_code" ]
  347. configs -= [ "//build/config/compiler:no_rtti" ]
  348. configs += [ "//build/config/compiler:rtti" ]
  349. configs -= [ "//build/config/compiler:no_exceptions" ]
  350. configs += [ "//build/config/compiler:exceptions" ]
  351. public_configs = [ ":tcutil_config" ]
  352. if (is_linux || is_chromeos) {
  353. cflags_cc = [ "-Wno-int-to-pointer-cast" ]
  354. }
  355. }
  356. config("glwrapper_config") {
  357. include_dirs = [ "//third_party/khronos_glcts/framework/opengl/wrapper" ]
  358. }
  359. source_set("glwrapper") {
  360. sources = [
  361. "//third_party/khronos_glcts/framework/opengl/wrapper/glw.h",
  362. "//third_party/khronos_glcts/framework/opengl/wrapper/glwDefs.cpp",
  363. "//third_party/khronos_glcts/framework/opengl/wrapper/glwDefs.hpp",
  364. "//third_party/khronos_glcts/framework/opengl/wrapper/glwEnums.hpp",
  365. "//third_party/khronos_glcts/framework/opengl/wrapper/glwFunctionLoader.hpp",
  366. "//third_party/khronos_glcts/framework/opengl/wrapper/glwFunctions.cpp",
  367. "//third_party/khronos_glcts/framework/opengl/wrapper/glwFunctions.hpp",
  368. "//third_party/khronos_glcts/framework/opengl/wrapper/glwInitES20Direct.cpp",
  369. "//third_party/khronos_glcts/framework/opengl/wrapper/glwInitES20Direct.hpp",
  370. "//third_party/khronos_glcts/framework/opengl/wrapper/glwInitFunctions.cpp",
  371. "//third_party/khronos_glcts/framework/opengl/wrapper/glwInitFunctions.hpp",
  372. "//third_party/khronos_glcts/framework/opengl/wrapper/glwWrapper.cpp",
  373. "//third_party/khronos_glcts/framework/opengl/wrapper/glwWrapper.hpp",
  374. ]
  375. deps = [
  376. ":delibs",
  377. "//gpu/command_buffer/client:gles2_c_lib_nocheck",
  378. ]
  379. configs += [ ":defaults_config" ]
  380. configs -= [ "//build/config/compiler:chromium_code" ]
  381. configs += [ "//build/config/compiler:no_chromium_code" ]
  382. configs -= [ "//build/config/compiler:no_rtti" ]
  383. configs += [ "//build/config/compiler:rtti" ]
  384. configs -= [ "//build/config/compiler:no_exceptions" ]
  385. configs += [ "//build/config/compiler:exceptions" ]
  386. public_configs = [ ":glwrapper_config" ]
  387. }
  388. config("glutil_config") {
  389. include_dirs = [ "//third_party/khronos_glcts/framework/opengl" ]
  390. }
  391. source_set("glutil") {
  392. sources = [
  393. "//third_party/khronos_glcts/framework/opengl/gluCallLogWrapper.cpp",
  394. "//third_party/khronos_glcts/framework/opengl/gluCallLogWrapper.hpp",
  395. "//third_party/khronos_glcts/framework/opengl/gluContextInfo.cpp",
  396. "//third_party/khronos_glcts/framework/opengl/gluContextInfo.hpp",
  397. "//third_party/khronos_glcts/framework/opengl/gluDefs.cpp",
  398. "//third_party/khronos_glcts/framework/opengl/gluDefs.hpp",
  399. "//third_party/khronos_glcts/framework/opengl/gluDrawUtil.cpp",
  400. "//third_party/khronos_glcts/framework/opengl/gluDrawUtil.hpp",
  401. "//third_party/khronos_glcts/framework/opengl/gluFboRenderContext.cpp",
  402. "//third_party/khronos_glcts/framework/opengl/gluFboRenderContext.hpp",
  403. "//third_party/khronos_glcts/framework/opengl/gluPixelTransfer.cpp",
  404. "//third_party/khronos_glcts/framework/opengl/gluPixelTransfer.hpp",
  405. "//third_party/khronos_glcts/framework/opengl/gluPlatform.hpp",
  406. "//third_party/khronos_glcts/framework/opengl/gluProgram.cpp",
  407. "//third_party/khronos_glcts/framework/opengl/gluProgram.hpp",
  408. "//third_party/khronos_glcts/framework/opengl/gluRenderContext.cpp",
  409. "//third_party/khronos_glcts/framework/opengl/gluRenderContext.hpp",
  410. "//third_party/khronos_glcts/framework/opengl/gluShaderUtil.cpp",
  411. "//third_party/khronos_glcts/framework/opengl/gluShaderUtil.hpp",
  412. "//third_party/khronos_glcts/framework/opengl/gluStateReset.cpp",
  413. "//third_party/khronos_glcts/framework/opengl/gluStateReset.hpp",
  414. "//third_party/khronos_glcts/framework/opengl/gluStrUtil.cpp",
  415. "//third_party/khronos_glcts/framework/opengl/gluStrUtil.hpp",
  416. "//third_party/khronos_glcts/framework/opengl/gluTexture.cpp",
  417. "//third_party/khronos_glcts/framework/opengl/gluTexture.hpp",
  418. "//third_party/khronos_glcts/framework/opengl/gluTextureUtil.cpp",
  419. "//third_party/khronos_glcts/framework/opengl/gluTextureUtil.hpp",
  420. "//third_party/khronos_glcts/framework/opengl/gluVarType.cpp",
  421. "//third_party/khronos_glcts/framework/opengl/gluVarType.hpp",
  422. "//third_party/khronos_glcts/framework/opengl/gluVarTypeUtil.cpp",
  423. "//third_party/khronos_glcts/framework/opengl/gluVarTypeUtil.hpp",
  424. ]
  425. public_deps = [ ":glwrapper" ]
  426. deps = [
  427. ":delibs",
  428. ":tcutil",
  429. ]
  430. configs += [ ":defaults_config" ]
  431. configs -= [ "//build/config/compiler:chromium_code" ]
  432. configs += [ "//build/config/compiler:no_chromium_code" ]
  433. configs -= [ "//build/config/compiler:no_rtti" ]
  434. configs += [ "//build/config/compiler:rtti" ]
  435. configs -= [ "//build/config/compiler:no_exceptions" ]
  436. configs += [ "//build/config/compiler:exceptions" ]
  437. public_configs = [ ":glutil_config" ]
  438. }
  439. config("tcutil_egl_config") {
  440. include_dirs = [ "//third_party/khronos_glcts/framework/egl" ]
  441. }
  442. source_set("tcutil_egl") {
  443. sources = [
  444. "//third_party/khronos_glcts/framework/egl/tcuEgl.cpp",
  445. "//third_party/khronos_glcts/framework/egl/tcuEgl.hpp",
  446. "//third_party/khronos_glcts/framework/egl/tcuEglCallLogWrapper.cpp",
  447. "//third_party/khronos_glcts/framework/egl/tcuEglCallLogWrapper.hpp",
  448. "//third_party/khronos_glcts/framework/egl/tcuEglConfigFilter.cpp",
  449. "//third_party/khronos_glcts/framework/egl/tcuEglConfigFilter.hpp",
  450. "//third_party/khronos_glcts/framework/egl/tcuEglConfigInfo.cpp",
  451. "//third_party/khronos_glcts/framework/egl/tcuEglConfigInfo.hpp",
  452. "//third_party/khronos_glcts/framework/egl/tcuEglPlatform.cpp",
  453. "//third_party/khronos_glcts/framework/egl/tcuEglPlatform.hpp",
  454. "//third_party/khronos_glcts/framework/egl/tcuEglStrUtil.cpp",
  455. "//third_party/khronos_glcts/framework/egl/tcuEglStrUtil.hpp",
  456. ]
  457. deps = [
  458. ":delibs",
  459. ":glwrapper",
  460. ":tcutil",
  461. "//gpu/gles2_conform_support/egl",
  462. ]
  463. include_dirs = [ "//third_party/khronos_glcts/framework/opengl" ]
  464. configs += [ ":defaults_config" ]
  465. configs -= [ "//build/config/compiler:chromium_code" ]
  466. configs += [ "//build/config/compiler:no_chromium_code" ]
  467. configs -= [ "//build/config/compiler:no_rtti" ]
  468. configs += [ "//build/config/compiler:rtti" ]
  469. configs -= [ "//build/config/compiler:no_exceptions" ]
  470. configs += [ "//build/config/compiler:exceptions" ]
  471. public_configs = [
  472. ":tcutil_egl_config",
  473. "//third_party/khronos:khronos_headers",
  474. ]
  475. if (is_linux || is_chromeos) {
  476. cflags_cc = [ "-Wno-int-to-void-pointer-cast" ]
  477. }
  478. }
  479. group("khronos_glcts_framework") {
  480. public_deps = [
  481. ":delibs",
  482. ":glutil",
  483. ":qphelper",
  484. ":tcutil",
  485. ":tcutil_egl",
  486. ]
  487. }
  488. config("glcts_common_config") {
  489. include_dirs = [ "//third_party/khronos_glcts/cts/common" ]
  490. }
  491. source_set("glcts_common") {
  492. sources = [
  493. "//third_party/khronos_glcts/cts/common/glcConfigList.cpp",
  494. "//third_party/khronos_glcts/cts/common/glcConfigList.hpp",
  495. "//third_party/khronos_glcts/cts/common/glcConfigListCase.cpp",
  496. "//third_party/khronos_glcts/cts/common/glcConfigListCase.hpp",
  497. "//third_party/khronos_glcts/cts/common/glcConfigPackage.cpp",
  498. "//third_party/khronos_glcts/cts/common/glcConfigPackage.hpp",
  499. "//third_party/khronos_glcts/cts/common/glcContext.cpp",
  500. "//third_party/khronos_glcts/cts/common/glcContext.hpp",
  501. "//third_party/khronos_glcts/cts/common/glcFragDepthTests.cpp",
  502. "//third_party/khronos_glcts/cts/common/glcFragDepthTests.hpp",
  503. "//third_party/khronos_glcts/cts/common/glcInfoTests.cpp",
  504. "//third_party/khronos_glcts/cts/common/glcInfoTests.hpp",
  505. "//third_party/khronos_glcts/cts/common/glcShaderIndexingTests.cpp",
  506. "//third_party/khronos_glcts/cts/common/glcShaderIndexingTests.hpp",
  507. "//third_party/khronos_glcts/cts/common/glcShaderIntegerMixTests.cpp",
  508. "//third_party/khronos_glcts/cts/common/glcShaderIntegerMixTests.hpp",
  509. "//third_party/khronos_glcts/cts/common/glcShaderLibrary.cpp",
  510. "//third_party/khronos_glcts/cts/common/glcShaderLibrary.hpp",
  511. "//third_party/khronos_glcts/cts/common/glcShaderLibraryCase.cpp",
  512. "//third_party/khronos_glcts/cts/common/glcShaderLibraryCase.hpp",
  513. "//third_party/khronos_glcts/cts/common/glcShaderLoopTests.cpp",
  514. "//third_party/khronos_glcts/cts/common/glcShaderLoopTests.hpp",
  515. "//third_party/khronos_glcts/cts/common/glcShaderRenderCase.cpp",
  516. "//third_party/khronos_glcts/cts/common/glcShaderRenderCase.hpp",
  517. "//third_party/khronos_glcts/cts/common/glcShaderStructTests.cpp",
  518. "//third_party/khronos_glcts/cts/common/glcShaderStructTests.hpp",
  519. "//third_party/khronos_glcts/cts/common/glcShaderSwitchTests.cpp",
  520. "//third_party/khronos_glcts/cts/common/glcShaderSwitchTests.hpp",
  521. "//third_party/khronos_glcts/cts/common/glcTestCase.cpp",
  522. "//third_party/khronos_glcts/cts/common/glcTestCase.hpp",
  523. "//third_party/khronos_glcts/cts/common/glcTestCaseWrapper.cpp",
  524. "//third_party/khronos_glcts/cts/common/glcTestCaseWrapper.hpp",
  525. "//third_party/khronos_glcts/cts/common/glcTestPackage.cpp",
  526. "//third_party/khronos_glcts/cts/common/glcTestPackage.hpp",
  527. "//third_party/khronos_glcts/cts/common/glcTestSubcase.cpp",
  528. "//third_party/khronos_glcts/cts/common/glcTestSubcase.hpp",
  529. "//third_party/khronos_glcts/cts/common/glcUniformBlockCase.cpp",
  530. "//third_party/khronos_glcts/cts/common/glcUniformBlockCase.hpp",
  531. "//third_party/khronos_glcts/cts/common/glcUniformBlockTests.cpp",
  532. "//third_party/khronos_glcts/cts/common/glcUniformBlockTests.hpp",
  533. ]
  534. deps = [
  535. ":delibs",
  536. ":glutil",
  537. ":tcutil",
  538. ":tcutil_egl",
  539. ]
  540. configs += [ ":defaults_config" ]
  541. configs -= [ "//build/config/compiler:chromium_code" ]
  542. configs += [ "//build/config/compiler:no_chromium_code" ]
  543. configs -= [ "//build/config/compiler:no_rtti" ]
  544. configs += [ "//build/config/compiler:rtti" ]
  545. configs -= [ "//build/config/compiler:no_exceptions" ]
  546. configs += [ "//build/config/compiler:exceptions" ]
  547. public_configs = [ ":glcts_common_config" ]
  548. if (is_linux || is_chromeos) {
  549. cflags_cc = [ "-Wno-string-conversion" ]
  550. }
  551. }
  552. config("glcts_gtf_wrapper_config") {
  553. include_dirs = [ "//third_party/khronos_glcts/cts/gtf" ]
  554. }
  555. source_set("glcts_gtf_wrapper") {
  556. sources = [
  557. "//third_party/khronos_glcts/cts/gtf/gtfTestContext.cpp",
  558. "//third_party/khronos_glcts/cts/gtf/gtfTestContext.hpp",
  559. "//third_party/khronos_glcts/cts/gtf/gtfWrapper.cpp",
  560. "//third_party/khronos_glcts/cts/gtf/gtfWrapper.h",
  561. ]
  562. deps = [
  563. ":delibs",
  564. ":glcts_common",
  565. ":glutil",
  566. ":tcutil",
  567. ":tcutil_egl",
  568. ]
  569. include_dirs = [ "//third_party/khronos_glcts/GTF_ES/glsl/GTF/Source" ]
  570. configs += [ ":defaults_config" ]
  571. configs -= [ "//build/config/compiler:chromium_code" ]
  572. configs += [ "//build/config/compiler:no_chromium_code" ]
  573. configs -= [ "//build/config/compiler:no_rtti" ]
  574. configs += [ "//build/config/compiler:rtti" ]
  575. configs -= [ "//build/config/compiler:no_exceptions" ]
  576. configs += [ "//build/config/compiler:exceptions" ]
  577. public_configs = [ ":glcts_gtf_wrapper_config" ]
  578. }
  579. config("gtf_es_config") {
  580. include_dirs = [ "//third_party/khronos_glcts/GTF_ES/glsl/GTF/Source" ]
  581. }
  582. source_set("gtf_es") {
  583. sources = [
  584. "//third_party/khronos_glcts/GTF_ES/glsl/GTF/Source/GL/GTFAttDataGL.c",
  585. "//third_party/khronos_glcts/GTF_ES/glsl/GTF/Source/GL/GTFDepthRangeParamGL.c",
  586. "//third_party/khronos_glcts/GTF_ES/glsl/GTF/Source/GL/GTFModelDataGL.c",
  587. "//third_party/khronos_glcts/GTF_ES/glsl/GTF/Source/GL/GTFPointParamGL.c",
  588. "//third_party/khronos_glcts/GTF_ES/glsl/GTF/Source/GL/GTFReadPixelsGL.c",
  589. "//third_party/khronos_glcts/GTF_ES/glsl/GTF/Source/GL/GTFShaderDataGL.c",
  590. "//third_party/khronos_glcts/GTF_ES/glsl/GTF/Source/GL/GTFShaderTextGL.c",
  591. "//third_party/khronos_glcts/GTF_ES/glsl/GTF/Source/GL/GTFStateDataGL.c",
  592. "//third_party/khronos_glcts/GTF_ES/glsl/GTF/Source/GL/GTFTestTextureFloatBase.c",
  593. "//third_party/khronos_glcts/GTF_ES/glsl/GTF/Source/GL/GTFTexDataGL.c",
  594. "//third_party/khronos_glcts/GTF_ES/glsl/GTF/Source/GL/GTFTexParamGL.c",
  595. "//third_party/khronos_glcts/GTF_ES/glsl/GTF/Source/GL/GTFUniDataGL.c",
  596. "//third_party/khronos_glcts/GTF_ES/glsl/GTF/Source/GTFArguments.c",
  597. "//third_party/khronos_glcts/GTF_ES/glsl/GTF/Source/GTFFileReader.c",
  598. "//third_party/khronos_glcts/GTF_ES/glsl/GTF/Source/GTFLog.c",
  599. "//third_party/khronos_glcts/GTF_ES/glsl/GTF/Source/GTFMemFile.c",
  600. "//third_party/khronos_glcts/GTF_ES/glsl/GTF/Source/GTFModelData.c",
  601. "//third_party/khronos_glcts/GTF_ES/glsl/GTF/Source/GTFPort.c",
  602. "//third_party/khronos_glcts/GTF_ES/glsl/GTF/Source/GTFStringUtils.c",
  603. "//third_party/khronos_glcts/GTF_ES/glsl/GTF/Source/GTFTest.c",
  604. "//third_party/khronos_glcts/GTF_ES/glsl/GTF/Source/GTFTestCompareGL.c",
  605. "//third_party/khronos_glcts/GTF_ES/glsl/GTF/Source/GTFTestDriver.c",
  606. "//third_party/khronos_glcts/GTF_ES/glsl/GTF/Source/GTFTestElement.c",
  607. "//third_party/khronos_glcts/GTF_ES/glsl/GTF/Source/GTFTestUtil.c",
  608. "//third_party/khronos_glcts/GTF_ES/glsl/GTF/Source/GTFgl.c",
  609. "//third_party/khronos_glcts/GTF_ES/glsl/GTF/Source/MIMG.c",
  610. "//third_party/khronos_glcts/GTF_ES/glsl/GTF/Source/XmlUtils.c",
  611. "//third_party/khronos_glcts/GTF_ES/glsl/GTF/Source/eglu.c",
  612. "//third_party/khronos_glcts/GTF_ES/glsl/GTF/Source/eglut.c",
  613. "//third_party/khronos_glcts/GTF_ES/glsl/GTF/Source/gl2Native.c",
  614. # Base
  615. "//third_party/khronos_glcts/GTF_ES/glsl/GTF/Source/GL2Tests/GTFGL2TestAttributeGL.c",
  616. "//third_party/khronos_glcts/GTF_ES/glsl/GTF/Source/GL2Tests/GTFGL2TestBindAllAttributes.c",
  617. "//third_party/khronos_glcts/GTF_ES/glsl/GTF/Source/GL2Tests/GTFGL2TestCreateObjectGL.c",
  618. "//third_party/khronos_glcts/GTF_ES/glsl/GTF/Source/GL2Tests/GTFGL2TestDetachGL.c",
  619. "//third_party/khronos_glcts/GTF_ES/glsl/GTF/Source/GL2Tests/GTFGL2TestFixedDataType.c",
  620. "//third_party/khronos_glcts/GTF_ES/glsl/GTF/Source/GL2Tests/GTFGL2TestFramebufferObjects.c",
  621. "//third_party/khronos_glcts/GTF_ES/glsl/GTF/Source/GL2Tests/GTFGL2TestGetAttachedObjects.c",
  622. "//third_party/khronos_glcts/GTF_ES/glsl/GTF/Source/GL2Tests/GTFGL2TestGetAttributeLocation.c",
  623. "//third_party/khronos_glcts/GTF_ES/glsl/GTF/Source/GL2Tests/GTFGL2TestGetBIFD.c",
  624. "//third_party/khronos_glcts/GTF_ES/glsl/GTF/Source/GL2Tests/GTFGL2TestGetExtensions.c",
  625. "//third_party/khronos_glcts/GTF_ES/glsl/GTF/Source/GL2Tests/GTFGL2TestGetProgramInfoLog.c",
  626. "//third_party/khronos_glcts/GTF_ES/glsl/GTF/Source/GL2Tests/GTFGL2TestGetProgramiv.c",
  627. "//third_party/khronos_glcts/GTF_ES/glsl/GTF/Source/GL2Tests/GTFGL2TestGetShaderInfoLog.c",
  628. "//third_party/khronos_glcts/GTF_ES/glsl/GTF/Source/GL2Tests/GTFGL2TestGetShaderiv.c",
  629. "//third_party/khronos_glcts/GTF_ES/glsl/GTF/Source/GL2Tests/GTFGL2TestGetUniform.c",
  630. "//third_party/khronos_glcts/GTF_ES/glsl/GTF/Source/GL2Tests/GTFGL2TestGetVertexAttrib.c",
  631. "//third_party/khronos_glcts/GTF_ES/glsl/GTF/Source/GL2Tests/GTFGL2TestMaxVertexAttrib.c",
  632. "//third_party/khronos_glcts/GTF_ES/glsl/GTF/Source/GL2Tests/GTFGL2TestMultipleShaders.c",
  633. "//third_party/khronos_glcts/GTF_ES/glsl/GTF/Source/GL2Tests/GTFGL2TestRelinkProgram.c",
  634. "//third_party/khronos_glcts/GTF_ES/glsl/GTF/Source/GL2Tests/GTFGL2TestUniform.c",
  635. "//third_party/khronos_glcts/GTF_ES/glsl/GTF/Source/GL2Tests/GTFGL2TestUniformQueryGL.c",
  636. "//third_party/khronos_glcts/GTF_ES/glsl/GTF/Source/GL2Tests/GTFGL2TestVertexAttribPointer.c",
  637. "//third_party/khronos_glcts/GTF_ES/glsl/GTF/Source/GL2Tests/GTFGL2TestVertexAttributes.c",
  638. "//third_party/khronos_glcts/GTF_ES/glsl/GTF/Source/GL2Tests/GTFGL2TestVertexProgramPointSize.c",
  639. "//third_party/khronos_glcts/GTF_ES/glsl/GTF/Source/GTFTestGL2Test.c",
  640. # Build
  641. "//third_party/khronos_glcts/GTF_ES/glsl/GTF/Source/GTFTestBuildGL.c",
  642. # Shader load
  643. "//third_party/khronos_glcts/GTF_ES/glsl/GTF/Source/GTFTestShaderLoadGL.c",
  644. # Rasterization
  645. "//third_party/khronos_glcts/GTF_ES/glsl/GTF/Source/GTFTestRasterizationGL.c",
  646. # Complexity
  647. "//third_party/khronos_glcts/GTF_ES/glsl/GTF/Source/GTFTestComplexityGL.c",
  648. # Coverage
  649. "//third_party/khronos_glcts/GTF_ES/glsl/GTF/Source/GTFCoverageDict.c",
  650. "//third_party/khronos_glcts/GTF_ES/glsl/GTF/Source/GTFCoverageGL.c",
  651. "//third_party/khronos_glcts/GTF_ES/glsl/GTF/Source/GTFTestCoverageGL.c",
  652. # Fixed-function
  653. "//third_party/khronos_glcts/GTF_ES/glsl/GTF/Source/GL2FixedTests/GTFFixedTestBlend.c",
  654. "//third_party/khronos_glcts/GTF_ES/glsl/GTF/Source/GL2FixedTests/GTFFixedTestBufferClear.c",
  655. "//third_party/khronos_glcts/GTF_ES/glsl/GTF/Source/GL2FixedTests/GTFFixedTestBufferColor.c",
  656. "//third_party/khronos_glcts/GTF_ES/glsl/GTF/Source/GL2FixedTests/GTFFixedTestBufferCorners.c",
  657. "//third_party/khronos_glcts/GTF_ES/glsl/GTF/Source/GL2FixedTests/GTFFixedTestBufferObjects.c",
  658. "//third_party/khronos_glcts/GTF_ES/glsl/GTF/Source/GL2FixedTests/GTFFixedTestClip.c",
  659. "//third_party/khronos_glcts/GTF_ES/glsl/GTF/Source/GL2FixedTests/GTFFixedTestColorRamp.c",
  660. "//third_party/khronos_glcts/GTF_ES/glsl/GTF/Source/GL2FixedTests/GTFFixedTestCopyTexture.c",
  661. "//third_party/khronos_glcts/GTF_ES/glsl/GTF/Source/GL2FixedTests/GTFFixedTestDepthBufferClear.c",
  662. "//third_party/khronos_glcts/GTF_ES/glsl/GTF/Source/GL2FixedTests/GTFFixedTestDepthBufferFunctions.c",
  663. "//third_party/khronos_glcts/GTF_ES/glsl/GTF/Source/GL2FixedTests/GTFFixedTestDither.c",
  664. "//third_party/khronos_glcts/GTF_ES/glsl/GTF/Source/GL2FixedTests/GTFFixedTestDivideByZero.c",
  665. "//third_party/khronos_glcts/GTF_ES/glsl/GTF/Source/GL2FixedTests/GTFFixedTestGets.c",
  666. "//third_party/khronos_glcts/GTF_ES/glsl/GTF/Source/GL2FixedTests/GTFFixedTestMipmapsInterpolation.c",
  667. "//third_party/khronos_glcts/GTF_ES/glsl/GTF/Source/GL2FixedTests/GTFFixedTestMipmapsSelection.c",
  668. "//third_party/khronos_glcts/GTF_ES/glsl/GTF/Source/GL2FixedTests/GTFFixedTestPointRasterization.c",
  669. "//third_party/khronos_glcts/GTF_ES/glsl/GTF/Source/GL2FixedTests/GTFFixedTestPointSprites.c",
  670. "//third_party/khronos_glcts/GTF_ES/glsl/GTF/Source/GL2FixedTests/GTFFixedTestPolygonCull.c",
  671. "//third_party/khronos_glcts/GTF_ES/glsl/GTF/Source/GL2FixedTests/GTFFixedTestScissor.c",
  672. "//third_party/khronos_glcts/GTF_ES/glsl/GTF/Source/GL2FixedTests/GTFFixedTestStencilPlaneClear.c",
  673. "//third_party/khronos_glcts/GTF_ES/glsl/GTF/Source/GL2FixedTests/GTFFixedTestStencilPlaneCorners.c",
  674. "//third_party/khronos_glcts/GTF_ES/glsl/GTF/Source/GL2FixedTests/GTFFixedTestStencilPlaneFunction.c",
  675. "//third_party/khronos_glcts/GTF_ES/glsl/GTF/Source/GL2FixedTests/GTFFixedTestStencilPlaneOperation.c",
  676. "//third_party/khronos_glcts/GTF_ES/glsl/GTF/Source/GL2FixedTests/GTFFixedTestTextureEdgeClamp.c",
  677. "//third_party/khronos_glcts/GTF_ES/glsl/GTF/Source/GL2FixedTests/GTFFixedTestTransformViewport.c",
  678. "//third_party/khronos_glcts/GTF_ES/glsl/GTF/Source/GL2FixedTests/GTFFixedTestTriangleRasterization.c",
  679. "//third_party/khronos_glcts/GTF_ES/glsl/GTF/Source/GL2FixedTests/GTFFixedTestTriangleTiling.c",
  680. "//third_party/khronos_glcts/GTF_ES/glsl/GTF/Source/GL2FixedTests/GTFFixedTestUserClipPlanes.c",
  681. "//third_party/khronos_glcts/GTF_ES/glsl/GTF/Source/GL2FixedTests/GTFFixedTestVertexOrder.c",
  682. "//third_party/khronos_glcts/GTF_ES/glsl/GTF/Source/GL2FixedTests/GTFFixedTestViewportClamp.c",
  683. "//third_party/khronos_glcts/GTF_ES/glsl/GTF/Source/GL2FixedTests/GTFFixedUtilg.c",
  684. "//third_party/khronos_glcts/GTF_ES/glsl/GTF/Source/GL2FixedTests/GTFFixedUtilr.c",
  685. "//third_party/khronos_glcts/GTF_ES/glsl/GTF/Source/GTFTestFixedGL.c",
  686. # Extensions
  687. "//third_party/khronos_glcts/GTF_ES/glsl/GTF/Source/GL2ExtensionTests/GTFExtensionTestConditionalQuery.c",
  688. "//third_party/khronos_glcts/GTF_ES/glsl/GTF/Source/GL2ExtensionTests/GTFExtensionTestDataType1010102.c",
  689. "//third_party/khronos_glcts/GTF_ES/glsl/GTF/Source/GL2ExtensionTests/GTFExtensionTestDebug.c",
  690. "//third_party/khronos_glcts/GTF_ES/glsl/GTF/Source/GL2ExtensionTests/GTFExtensionTestDepth24.c",
  691. "//third_party/khronos_glcts/GTF_ES/glsl/GTF/Source/GL2ExtensionTests/GTFExtensionTestDepth32.c",
  692. "//third_party/khronos_glcts/GTF_ES/glsl/GTF/Source/GL2ExtensionTests/GTFExtensionTestDepthTexture.c",
  693. "//third_party/khronos_glcts/GTF_ES/glsl/GTF/Source/GL2ExtensionTests/GTFExtensionTestDepthTextureCubeMap.c",
  694. "//third_party/khronos_glcts/GTF_ES/glsl/GTF/Source/GL2ExtensionTests/GTFExtensionTestElementIndexUINT.c",
  695. "//third_party/khronos_glcts/GTF_ES/glsl/GTF/Source/GL2ExtensionTests/GTFExtensionTestFBORenderMipmap.c",
  696. "//third_party/khronos_glcts/GTF_ES/glsl/GTF/Source/GL2ExtensionTests/GTFExtensionTestFragmentPrecisionHigh.c",
  697. "//third_party/khronos_glcts/GTF_ES/glsl/GTF/Source/GL2ExtensionTests/GTFExtensionTestFramebufferObject.c",
  698. "//third_party/khronos_glcts/GTF_ES/glsl/GTF/Source/GL2ExtensionTests/GTFExtensionTestMapBuffer.c",
  699. "//third_party/khronos_glcts/GTF_ES/glsl/GTF/Source/GL2ExtensionTests/GTFExtensionTestOcclusionQuery.c",
  700. "//third_party/khronos_glcts/GTF_ES/glsl/GTF/Source/GL2ExtensionTests/GTFExtensionTestPackedDepthStencil.c",
  701. "//third_party/khronos_glcts/GTF_ES/glsl/GTF/Source/GL2ExtensionTests/GTFExtensionTestPointSizeArray.c",
  702. "//third_party/khronos_glcts/GTF_ES/glsl/GTF/Source/GL2ExtensionTests/GTFExtensionTestPointSprite.c",
  703. "//third_party/khronos_glcts/GTF_ES/glsl/GTF/Source/GL2ExtensionTests/GTFExtensionTestReadFormat.c",
  704. "//third_party/khronos_glcts/GTF_ES/glsl/GTF/Source/GL2ExtensionTests/GTFExtensionTestStencil1.c",
  705. "//third_party/khronos_glcts/GTF_ES/glsl/GTF/Source/GL2ExtensionTests/GTFExtensionTestStencil4.c",
  706. "//third_party/khronos_glcts/GTF_ES/glsl/GTF/Source/GL2ExtensionTests/GTFExtensionTestStencil8.c",
  707. "//third_party/khronos_glcts/GTF_ES/glsl/GTF/Source/GL2ExtensionTests/GTFExtensionTestTexture3D.c",
  708. "//third_party/khronos_glcts/GTF_ES/glsl/GTF/Source/GL2ExtensionTests/GTFExtensionTestTextureCompressionASTCLDR.c",
  709. "//third_party/khronos_glcts/GTF_ES/glsl/GTF/Source/GL2ExtensionTests/GTFExtensionTestTextureFloat.c",
  710. "//third_party/khronos_glcts/GTF_ES/glsl/GTF/Source/GL2ExtensionTests/GTFExtensionTestTextureFloatLinear.c",
  711. "//third_party/khronos_glcts/GTF_ES/glsl/GTF/Source/GL2ExtensionTests/GTFExtensionTestTextureNPOT.c",
  712. "//third_party/khronos_glcts/GTF_ES/glsl/GTF/Source/GL2ExtensionTests/GTFExtensionTestUtilp.c",
  713. "//third_party/khronos_glcts/GTF_ES/glsl/GTF/Source/GL2ExtensionTests/GTFExtensionTestVertexArrayObject.c",
  714. "//third_party/khronos_glcts/GTF_ES/glsl/GTF/Source/GL2ExtensionTests/GTFExtensionTestVertexHalfFloat.c",
  715. "//third_party/khronos_glcts/GTF_ES/glsl/GTF/Source/GTFTestExtension.c",
  716. # ES only.
  717. "//third_party/khronos_glcts/GTF_ES/glsl/GTF/Source/GL2ExtensionTests/GTFExtensionTestCompressedETC1RGB8Texture.c",
  718. "//third_party/khronos_glcts/GTF_ES/glsl/GTF/Source/GL2ExtensionTests/GTFExtensionTestCompressedPalettedTexture.c",
  719. "//third_party/khronos_glcts/GTF_ES/glsl/GTF/Source/GL2ExtensionTests/GTFExtensionTestEGLCreateContext.c",
  720. "//third_party/khronos_glcts/GTF_ES/glsl/GTF/Source/GL2ExtensionTests/GTFExtensionTestEGLImage.c",
  721. "//third_party/khronos_glcts/GTF_ES/glsl/GTF/Source/GL2ExtensionTests/GTFExtensionTestEGLImageExternal.c",
  722. "//third_party/khronos_glcts/GTF_ES/glsl/GTF/Source/GL2ExtensionTests/GTFExtensionTestRGB8RGBA8.c",
  723. "//third_party/khronos_glcts/GTF_ES/glsl/GTF/Source/GL2ExtensionTests/GTFExtensionTestRequiredInternalformat.c",
  724. "//third_party/khronos_glcts/GTF_ES/glsl/GTF/Source/GL2ExtensionTests/GTFExtensionTestSurfacelessContext.c",
  725. ]
  726. deps = [
  727. ":debase",
  728. ":glcts_gtf_wrapper",
  729. "//third_party/expat",
  730. ]
  731. configs += [ ":defaults_config" ]
  732. configs -= [ "//build/config/compiler:chromium_code" ]
  733. configs += [ "//build/config/compiler:no_chromium_code" ]
  734. configs -= [ "//build/config/compiler:no_rtti" ]
  735. configs += [ "//build/config/compiler:rtti" ]
  736. public_configs = [ ":gtf_es_config" ]
  737. if (is_linux || is_chromeos) {
  738. cflags_c = [
  739. "-Wno-pointer-sign",
  740. "-Wno-incompatible-pointer-types",
  741. "-Wno-return-type",
  742. "-Wno-parentheses-equality",
  743. "-Wno-tautological-compare",
  744. ]
  745. }
  746. }
  747. config("glcts_gtf_config") {
  748. include_dirs = [ "//third_party/khronos_glcts/cts/gtf" ]
  749. }
  750. source_set("glcts_gtf") {
  751. sources = [
  752. "//third_party/khronos_glcts/cts/gtf/gtfTestCase.cpp",
  753. "//third_party/khronos_glcts/cts/gtf/gtfTestCase.hpp",
  754. "//third_party/khronos_glcts/cts/gtf/gtfTestGroup.cpp",
  755. "//third_party/khronos_glcts/cts/gtf/gtfTestGroup.hpp",
  756. ]
  757. deps = [
  758. ":delibs",
  759. ":glcts_common",
  760. ":glcts_gtf_wrapper",
  761. ":glutil",
  762. ":gtf_es",
  763. ":tcutil",
  764. ]
  765. configs += [ ":defaults_config" ]
  766. configs -= [ "//build/config/compiler:chromium_code" ]
  767. configs += [ "//build/config/compiler:no_chromium_code" ]
  768. configs -= [ "//build/config/compiler:no_rtti" ]
  769. configs += [ "//build/config/compiler:rtti" ]
  770. configs -= [ "//build/config/compiler:no_exceptions" ]
  771. configs += [ "//build/config/compiler:exceptions" ]
  772. public_configs = [ ":glcts_gtf_config" ]
  773. }
  774. config("glcts_es2_config") {
  775. include_dirs = [ "//third_party/khronos_glcts/cts/gles2" ]
  776. }
  777. source_set("glcts_es2") {
  778. sources = [
  779. "//third_party/khronos_glcts/cts/gles2/es2cTestPackage.cpp",
  780. "//third_party/khronos_glcts/cts/gles2/es2cTestPackage.hpp",
  781. ]
  782. public_deps = [ ":glcts_common" ]
  783. deps = [
  784. ":delibs",
  785. ":glcts_gtf",
  786. ":glutil",
  787. ":tcutil",
  788. ]
  789. configs += [ ":defaults_config" ]
  790. configs -= [ "//build/config/compiler:chromium_code" ]
  791. configs += [ "//build/config/compiler:no_chromium_code" ]
  792. configs -= [ "//build/config/compiler:no_rtti" ]
  793. configs += [ "//build/config/compiler:rtti" ]
  794. configs -= [ "//build/config/compiler:no_exceptions" ]
  795. configs += [ "//build/config/compiler:exceptions" ]
  796. public_configs = [ ":glcts_es2_config" ]
  797. }
  798. source_set("tcutil_platform_windowless") {
  799. sources = [ "native/egl_native_windowless.cc" ]
  800. deps = [ ":khronos_glcts_framework" ]
  801. configs -= [ "//build/config/compiler:no_rtti" ]
  802. configs += [ "//build/config/compiler:rtti" ]
  803. }
  804. executable("khronos_glcts_test_windowless") {
  805. sources = [
  806. "//third_party/khronos_glcts/cts/glcTestPackageEntry.cpp",
  807. "//third_party/khronos_glcts/cts/glcTestPackageRegistry.cpp",
  808. "//third_party/khronos_glcts/cts/glcTestPackageRegistry.hpp",
  809. "native/main.cc",
  810. ]
  811. deps = [
  812. ":glcts_es2",
  813. ":glcts_gtf_resources",
  814. ":glcts_resources",
  815. ":khronos_glcts_framework",
  816. ":tcutil_platform_windowless",
  817. ]
  818. configs += [ ":defaults_config" ]
  819. configs -= [ "//build/config/compiler:chromium_code" ]
  820. configs += [ "//build/config/compiler:no_chromium_code" ]
  821. configs -= [ "//build/config/compiler:no_exceptions" ]
  822. configs += [ "//build/config/compiler:exceptions" ]
  823. }
  824. }
  825. if (!is_android) {
  826. test("khronos_glcts_test") {
  827. sources = [
  828. "khronos_glcts_test.cc",
  829. "khronos_glcts_test.h",
  830. ]
  831. deps = [
  832. "//base",
  833. "//gpu",
  834. "//testing/gtest",
  835. ]
  836. data = [ "khronos_glcts_test_expectations.txt" ]
  837. if (internal_khronos_glcts_tests) {
  838. sources += [ "$target_gen_dir/khronos_glcts_test_autogen.cc" ]
  839. deps += [
  840. ":generate_khronos_glcts_tests",
  841. ":khronos_glcts_test_windowless",
  842. ]
  843. }
  844. }
  845. }