# Copyright (C) 2023 Huawei Device Co., Ltd.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

import("//build/ohos_var.gni")
group("graphic") {
  testonly = true
  if (is_standard_system) {
    deps = [
      "LandscapeWindow:LandscapeWindow_Test",
      "acts_animator:ActsAnimatorTest",
      "acts_display:ActsDisplayTest",
      "acts_graphicXTSDrawing:ActsDrawingTsTest",
      "acts_graphicXTSDrawing_static:ActsDrawingTsStaticTest",
      "acts_graphicXTSDrawingBrush_static:ActsDrawingBrushTsStaticTest",
      "acts_graphicXTSDrawingCanvas_static:ActsDrawingCanvasTsStaticTest",
      "acts_graphicXTSDrawingFont_static:ActsDrawingFontTsStaticTest",
      "acts_graphicXTSDrawingMatrix_static:ActsDrawingMatrixTsStaticTest",
      "acts_graphicXTSDrawingPath_static:ActsDrawingPathTsStaticTest",
      "acts_graphicXTSDrawingPathEffect_static:ActsDrawingPathEffectTsStaticTest",
      "acts_graphicXTSDrawingPen_static:ActsDrawingPenTsStaticTest",
      "acts_graphicXTSDrawingRegion_static:ActsDrawingRegionTsStaticTest",
      "acts_graphicXTSDrawingTextBlob_static:ActsDrawingTextBlobTsStaticTest",
      "acts_pipwindow:ActsPipWindowTest",
      "acts_windowCompatibilityTest:ActsWindowCompatibilityTest",
      "component3D:ActsComponent3DTest",
      "displayManager:ActsDisplayManagerTest",
      "displayNdk:ActsDisplayNdkTest",
      "displayNdkApi14:ActsDisplayNdkApi14Test",
      "effectKit:ActsEffectKitTest",
      "effectKitGE:ActsEffectKitGETest",
      "graphic3D:ActsGraphic3DTest",
      "graphic3DStatic:ActsGraphic3dStaticTest",
      "graphicColorSpace:ActsColorSpaceManagerTest",
      "graphicColorSpaceStatic:ActsColorSpaceManagerStaticTest",
      "graphicDisplaySync:ActsGraphicDisplaySyncTest",
      "graphicDisplaySyncStatic:ActsGraphicDisplaySyncStaticTest",
      "graphicDrawingFont:ActsGraphicDrawingFontTest",
      "graphicEGL:ActsGraphicEglTest",
      "graphicEffectKitStatic:ActsGraphicEffectKitStaticTest",
      "graphicGL4:ActsGraphicGl4Test",
      "graphicGLES3:ActsGraphicGles3Test",
      "graphicGLES3v2:ActsGraphicGles3v2Test",
      "graphicHdr:ActsGraphicHdrTest",
      "graphicHdrStatic:ActsGraphicHdrStaticTest",
      "graphicImage:ActsGraphicImageTest",
      "graphicImageStatic:ActsGraphicImageStaticTest",
      "graphicText:ActsGraphicTextTest",
      "graphicTextStatic:ActsGraphicTextStaticTest",
      "graphicUiEffect:ActsGraphicUiEffectTest",
      "graphicUiEffectStatic:ActsGraphicUiEffectStaticTest",
      "graphicnapidrawingtest:ActsGraphicNapiDrawingTest",
      "graphics2DTestApi20:ActsGraphics2DApi20Test",
      "graphicImageNdk:image_ndk_hap",
      "nativeColorSpaceNdk:ActsNativeColorSpaceTest",
      "nativeDisplaySoloistNdk:ActsNativeDisplaySoloistTest",
      "nativeEffectNdk:ActsNativeEffectTest",
      "nativeFontNdk:ActsNativeFontTest",
      "nativebuffer:ActsNativeBufferTest",
      "nativedrawing:ActsNativeDrawingTest",
      "nativefence:ActsNativeFenceTest",
      "nativeimage:ActsNativeImageTest",
      "nativevsync:ActsNativeVsyncTest",
      "nativewindow:ActsNativeWindowTest",
      "webGL:webGL_hap_test",
      "windowNdk:ActsWindowNdkTest",
      "windowPermission:ActsWindowPermissionTest",
      "windowStage:ActsWindowStageTest",
      "windowStageTwo:ActsWindowStageTwoTest",
      "windowstandard:window_hap_test",
      "ActsDrawingNativeTest:ActsNewDrawingNativeTest",
      "ActsGraphicNapiFontTest:ActsGraphicNapiFontHapTest",
      "ActsGraphicGlesExtensionTest:ActsGraphicGlesExtensionHapTest",
      "ActsGraphicVulkanNapiTest:ActsGraphicVulkanNapiNdkTest",
    ]
    if (!(product_name == "ohcore")) {
      deps += [
        "gltest:cpOpenGL",
        "vkgl:cpvkgl",
        "vktest:cpVulkan",
      ]
    }
  } else {
    deps = [
      "appaccount:appaccount_hap",
      "osaccount:osaccount_hap",
    ]
  }
}