mirror of
https://github.com/ZDoom/zdoom-macos-deps.git
synced 2024-12-12 13:22:01 +00:00
17 lines
654 B
CMake
17 lines
654 B
CMake
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
|
# file Copyright.txt or https://cmake.org/licensing for details.
|
|
|
|
# This script deletes compiled Java class files.
|
|
|
|
if(CMAKE_JAVA_CLASS_OUTPUT_PATH)
|
|
if(EXISTS "${CMAKE_JAVA_CLASS_OUTPUT_PATH}/java_class_filelist")
|
|
file(STRINGS "${CMAKE_JAVA_CLASS_OUTPUT_PATH}/java_class_filelist" classes)
|
|
list(TRANSFORM classes PREPEND "${CMAKE_JAVA_CLASS_OUTPUT_PATH}/")
|
|
if(classes)
|
|
file(REMOVE ${classes})
|
|
message(STATUS "Clean class files from previous build")
|
|
endif()
|
|
endif()
|
|
else()
|
|
message(FATAL_ERROR "Can't find CMAKE_JAVA_CLASS_OUTPUT_PATH")
|
|
endif()
|