diff --git a/BUILD.gn b/BUILD.gn index e3a6cadcfd021c746b5aea606a6bbb11acb343b4..bac426c3510ba2b80e056eba13c075f77535cff6 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 }}}