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