From b6f9305a347076ff00109fe56f519c896700a5f0 Mon Sep 17 00:00:00 2001 From: wpf001 Date: Tue, 10 Aug 2021 10:22:44 +0800 Subject: [PATCH 1/2] add modetest --- BUILD.gn | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/BUILD.gn b/BUILD.gn index e3a6cad..bac426c 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -49,4 +49,45 @@ ohos_shared_library("libdrm") { part_name = "graphic_standard" subsystem_name = "graphic" } + +config("modetestconfig") { + visibility = [":*"] + + include_dirs = [ + "tests" + ] + + cflags = [ + "-Wno-sign-compare", + "-Wno-unused-variable", + "-Wno-deprecated-declarations", + "-Wno-enum-conversion", + "-DMAJOR_IN_SYSMACROS=1" + ] +} + +ohos_executable("modetest") { + install_enable = true + + sources = [ + "tests/util/pattern.c", + "tests/util/format.c", + "tests/util/kms.c", + "tests/modetest/buffers.c", + "tests/modetest/cursor.c", + "tests/modetest/modetest.c", + ] + + configs = [":modetestconfig"] + + public_configs = [":libdrm_public_config"] + + deps = [":libdrm"] + + public_deps = [] + + part_name = "graphic_standard" + + subsystem_name = "graphic" +} ## Build libdrm.so }}} -- Gitee From 3a7eb1083bfe90df32f44d5ebd55ab2b711c4495 Mon Sep 17 00:00:00 2001 From: wpf001 Date: Tue, 10 Aug 2021 10:22:44 +0800 Subject: [PATCH 2/2] add modetest Signed-off-by: wpf001 --- BUILD.gn | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/BUILD.gn b/BUILD.gn index e3a6cad..bac426c 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -49,4 +49,45 @@ ohos_shared_library("libdrm") { part_name = "graphic_standard" subsystem_name = "graphic" } + +config("modetestconfig") { + visibility = [":*"] + + include_dirs = [ + "tests" + ] + + cflags = [ + "-Wno-sign-compare", + "-Wno-unused-variable", + "-Wno-deprecated-declarations", + "-Wno-enum-conversion", + "-DMAJOR_IN_SYSMACROS=1" + ] +} + +ohos_executable("modetest") { + install_enable = true + + sources = [ + "tests/util/pattern.c", + "tests/util/format.c", + "tests/util/kms.c", + "tests/modetest/buffers.c", + "tests/modetest/cursor.c", + "tests/modetest/modetest.c", + ] + + configs = [":modetestconfig"] + + public_configs = [":libdrm_public_config"] + + deps = [":libdrm"] + + public_deps = [] + + part_name = "graphic_standard" + + subsystem_name = "graphic" +} ## Build libdrm.so }}} -- Gitee