• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1import("//build/test.gni")
2
3ohos_unittest("nativehook_test") {
4  module_out_path = "libc-test/src/nativehook"
5
6  sources = [
7    "print.c",
8    "runtest.c",
9  ]
10
11  configs = [ ":config_runtest" ]
12}
13
14config("config_runtest") {
15  include_dirs = [ "." ]
16
17  cflags_c = [
18    "-pipe",
19    "-std=c11",
20    "-D_POSIX_C_SOURCE=200809L",
21    "-Wall",
22    "-Wno-unused",
23    "-Wno-unused-function",
24    "-Wno-missing-braces",
25    "-Wno-overflow",
26    "-Wno-unknown-pragmas",
27    "-fno-builtin",
28    "-frounding-math",
29    "-Werror=implicit-function-declaration",
30    "-Werror=implicit-int",
31    "-Werror=pointer-sign",
32    "-Werror=pointer-arith",
33    "-Wno-error=unused-function",
34    "-g",
35    "-D_FILE_OFFSET_BITS=64",
36  ]
37
38  ldflags = [ "-nostdlib" ]
39}
40