File: list_java_sources.cmake

package info (click to toggle)
opencv 4.10.0%2Bdfsg-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 282,092 kB
  • sloc: cpp: 1,178,079; xml: 682,621; python: 49,092; lisp: 31,150; java: 25,469; ansic: 11,039; javascript: 6,085; sh: 1,214; cs: 601; perl: 494; objc: 210; makefile: 173
file content (19 lines) | stat: -rw-r--r-- 490 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
file(GLOB_RECURSE java_sources "${OPENCV_JAVA_DIR}/*.java")

set(__sources "")

foreach(dst ${java_sources})
    set(__sources "${__sources}${dst}\n")
endforeach()

function(ocv_update_file filepath content)
  if(EXISTS "${filepath}")
    file(READ "${filepath}" actual_content)
  else()
    set(actual_content "")
  endif()
  if(NOT ("${actual_content}" STREQUAL "${content}"))
    file(WRITE "${filepath}" "${content}")
  endif()
endfunction()
ocv_update_file("${OUTPUT}" "${__sources}")