6d7ca06e02
The following shell script was used: while read f do sed -Ei 's/[[:space:]]+$//g' "$f" done <<EOF $(svn ls -R | grep \ -e '.\cpp$' \ -e '\.cmake$' \ -e '\.txt$' \ -e '\.cppcheck$' \ -e '\.frag$' \ -e '\.h$' \ -e '\.hpp$' \ -e '\.vert$' \ -e '\.xml$' \ -e '\.java$' \ -e '\.c$') EOF As a side effect, this has also converted some files from CRLF line endings to LF. File extensions such as .ac or .osg were intentionally left out because those usually are very large files generated by tools. git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@9507 30fe4595-0a0c-4342-8851-515496e4dcbd Former-commit-id: 6c1e5ab34415982ec77fc92a77e1b1c149518eca Former-commit-id: c6cf9480ae7c1d2f9a999eb6c6b976eef8bae3ba
76 lines
No EOL
3.1 KiB
CMake
76 lines
No EOL
3.1 KiB
CMake
#==============================================================================
|
|
#
|
|
# file : packagemaker-dmg.cmake
|
|
# copyright : (C) 2020 Joe Thompson
|
|
# email : beaglejoe@users.sourceforge.net
|
|
# web : www.speed-dreams.org
|
|
# version : $Id:$
|
|
#
|
|
#==============================================================================
|
|
#
|
|
# This program is free software: you can redistribute it and/or modify
|
|
# it under the terms of the GNU General Public License as published by
|
|
# the Free Software Foundation, either version 2 of the License, or
|
|
# (at your option) any later version.
|
|
#
|
|
# This program is distributed in the hope that it will be useful,
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
# GNU General Public License for more details.
|
|
#
|
|
# You should have received a copy of the GNU General Public License
|
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
#
|
|
#==============================================================================
|
|
|
|
IF((APPLE) AND ("${CMAKE_INSTALL_PREFIX}" MATCHES "\\.app$"))
|
|
|
|
MESSAGE(STATUS "TODO - need to clean this up.")
|
|
#ADD_CUSTOM_TARGET(package_base DEPENDS install)
|
|
# can't depend on built-in target install, so we ADD_CUSTOM_COMMAND
|
|
# below to make sure install is done
|
|
ADD_CUSTOM_TARGET(packing_install)
|
|
|
|
MESSAGE(STATUS "TODO - fix up the dependencies. Try to not run the install multiple times.")
|
|
#[[
|
|
ADD_CUSTOM_TARGET(package_all DEPENDS package_base
|
|
package_full)
|
|
|
|
ADD_CUSTOM_TARGET(package_base DEPENDS install_base)
|
|
ADD_CUSTOM_TARGET(package_full DEPENDS packing_install)
|
|
ADD_CUSTOM_TARGET(install_base DEPENDS packing_install)
|
|
]]
|
|
|
|
ADD_CUSTOM_TARGET(package_full)
|
|
ADD_CUSTOM_TARGET(package_base)
|
|
ADD_CUSTOM_TARGET(install_base)
|
|
|
|
|
|
ADD_CUSTOM_COMMAND(TARGET packing_install
|
|
COMMAND "${CMAKE_COMMAND}" --build . --target install --config $<CONFIG>
|
|
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
|
|
COMMENT "Building install...")
|
|
|
|
ADD_CUSTOM_COMMAND(TARGET install_base
|
|
COMMAND "${CMAKE_COMMAND}" -P createbaseapp.cmake
|
|
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
|
|
COMMENT "Creating base app...")
|
|
|
|
|
|
ADD_CUSTOM_COMMAND(TARGET package_base
|
|
COMMAND "${CMAKE_COMMAND}" -P packagebasedmg.cmake
|
|
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
|
|
COMMENT "Building base package...")
|
|
|
|
|
|
# COMMAND ${CMAKE_CPACK_COMMAND} -G "DragNDrop" --config ../CPackDMGFullConfig.cmake
|
|
ADD_CUSTOM_COMMAND(TARGET package_full
|
|
COMMAND "${CMAKE_COMMAND}" -P packagefulldmg.cmake
|
|
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
|
|
COMMENT "Building full package...")
|
|
|
|
|
|
|
|
ELSE((APPLE) AND ("${CMAKE_INSTALL_PREFIX}" MATCHES "\\.app$"))
|
|
MESSAGE(WARNING "Custom DMG creation requires *.app")
|
|
ENDIF((APPLE) AND ("${CMAKE_INSTALL_PREFIX}" MATCHES "\\.app$")) |