about summary refs log tree commit diff
path: root/custom_mutators/libprotobuf-mutator-example/Android.bp
blob: 4f579735e60e18a5e5a9677e9331640efc2409a1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
cc_library_shared {
  name: "libprotobuf-mutator-example-afl",
  vendor_available: true,
  host_supported: true,

  cflags: [
    "-g",
    "-O0",
    "-fPIC",
    "-Wall",
    "-Wno-unused-parameter",
  ],

  srcs: [
    "lpm_aflpp_custom_mutator_input.cc",
    "test.proto",
  ],

  shared_libs: [
    "libprotobuf-cpp-full",
    "libprotobuf-mutator",
  ],
}

cc_binary {
  name: "libprotobuf-mutator-vuln",
  vendor_available: true,
  host_supported: true,

  srcs: [
    "vuln.c",
  ],

  cflags: [
    "-Wno-unused-result",
    "-Wno-unused-parameter",
  ],
}