• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1cmake_minimum_required(VERSION 3.4.1)
2
3set(slicer_sources
4    ../dexmaker-mockito-inline/external/slicer/bytecode_encoder.cc
5    ../dexmaker-mockito-inline/external/slicer/code_ir.cc
6    ../dexmaker-mockito-inline/external/slicer/common.cc
7    ../dexmaker-mockito-inline/external/slicer/control_flow_graph.cc
8    ../dexmaker-mockito-inline/external/slicer/debuginfo_encoder.cc
9    ../dexmaker-mockito-inline/external/slicer/dex_bytecode.cc
10    ../dexmaker-mockito-inline/external/slicer/dex_format.cc
11    ../dexmaker-mockito-inline/external/slicer/dex_ir_builder.cc
12    ../dexmaker-mockito-inline/external/slicer/dex_ir.cc
13    ../dexmaker-mockito-inline/external/slicer/dex_utf8.cc
14    ../dexmaker-mockito-inline/external/slicer/instrumentation.cc
15    ../dexmaker-mockito-inline/external/slicer/reader.cc
16    ../dexmaker-mockito-inline/external/slicer/tryblocks_encoder.cc
17    ../dexmaker-mockito-inline/external/slicer/writer.cc)
18
19add_library(slicer
20            STATIC
21            ${slicer_sources})
22
23include_directories(../dexmaker-mockito-inline/external/jdk ../dexmaker-mockito-inline/external/slicer/export/)
24
25target_link_libraries(slicer z)
26
27add_library(staticjvmtiagent
28            SHARED
29            src/main/jni/staticjvmtiagent/agent.cc)
30
31set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DANDROID_STL=c++_shared -frtti -Wall -Werror -Wno-unused-parameter -Wno-shift-count-overflow -Wno-error=non-virtual-dtor -Wno-sign-compare -Wno-switch -Wno-missing-braces")
32
33target_link_libraries(staticjvmtiagent slicer)
34