1 set(DumpRenderTree_SOURCES
   2     ../CyclicRedundancyCheck.cpp
   3     ../DumpRenderTreeCommon.cpp
   4     ../GCController.cpp
   5     ../TestRunner.cpp
   6     ../WorkQueue.cpp
   7     DumpRenderTree.cpp
   8     EventSender.cpp
   9     TestRunnerJava.cpp
  10     GCControllerJava.cpp
  11     JavaEnv.cpp
  12     WorkQueueItemJava.cpp
  13 )
  14 
  15 set(DumpRenderTree_LIBRARIES
  16     WebCore
  17     ${JAVA_JVM_LIBRARY}
  18     ${ICU_I18N_LIBRARIES}
  19     ${ICU_LIBRARIES}
  20 )
  21 
  22 set(DumpRenderTree_INCLUDE_DIRECTORIES
  23     ${WEBCORE_DIR}
  24     ${WEBCORE_DIR}/platform
  25     ${JAVASCRIPTCORE_DIR}
  26     ${JAVASCRIPTCORE_DIR}/API
  27     ${JAVASCRIPTCORE_DIR}/assembler
  28     ${JAVASCRIPTCORE_DIR}/bytecode
  29     ${JAVASCRIPTCORE_DIR}/dfg
  30     ${JAVASCRIPTCORE_DIR}/disassembler
  31     ${JAVASCRIPTCORE_DIR}/heap
  32     ${JAVASCRIPTCORE_DIR}/interpreter
  33     ${JAVASCRIPTCORE_DIR}/jit
  34     ${JAVASCRIPTCORE_DIR}/llint
  35     ${JAVASCRIPTCORE_DIR}/parser
  36     ${JAVASCRIPTCORE_DIR}/profiler
  37     ${JAVASCRIPTCORE_DIR}/runtime
  38     ${JAVASCRIPTCORE_DIR}/ForwardingHeaders
  39     ${DERIVED_SOURCES_DIR}/ForwardingHeaders
  40     ${DERIVED_SOURCES_JAVASCRIPTCORE_DIR}
  41     ${TOOLS_DIR}/DumpRenderTree
  42     ${WTF_DIR}
  43     ${CMAKE_SOURCE_DIR}/Source
  44     ${CMAKE_BINARY_DIR}
  45     ${DERIVED_SOURCES_DIR}
  46     ${DERIVED_SOURCES_WEBCORE_DIR}
  47     ${JAVA_INCLUDE_PATH}
  48     ${JAVA_INCLUDE_PATH2}
  49     ${ICU_INCLUDE_DIRS}
  50 )
  51 
  52 if (APPLE)
  53   list(APPEND DumpRenderTree_INCLUDE_DIRECTORIES
  54         ${WTF_DIR}/icu
  55     )
  56 endif ()
  57 
  58 WEBKIT_INCLUDE_CONFIG_FILES_IF_EXISTS()
  59 
  60 include_directories(${DumpRenderTree_INCLUDE_DIRECTORIES})
  61 
  62 add_library(DumpRenderTreeJava SHARED ${DumpRenderTree_SOURCES})
  63 if (UNIX AND NOT APPLE)
  64   set_target_properties(DumpRenderTreeJava PROPERTIES LINK_FLAGS "-Wl,--no-undefined")
  65 elseif (WIN32)
  66   # Workaround for MSBuild. It always creates Release|Debug folder
  67   # according to the build type on each target.
  68   install(PROGRAMS ${CMAKE_BINARY_DIR}/lib/${CMAKE_BUILD_TYPE}/DumpRenderTreeJava.dll DESTINATION ${CMAKE_BINARY_DIR}/lib OPTIONAL)
  69 endif ()
  70 set_target_properties(DumpRenderTreeJava PROPERTIES OUTPUT_NAME "DumpRenderTreeJava")
  71 target_link_libraries(DumpRenderTreeJava ${DumpRenderTree_LIBRARIES})