mirror of
https://github.com/rozniak/xfce-winxp-tc.git
synced 2026-05-02 12:11:24 +00:00
Enhancement: Fixes #210, Provide build tag in package
This commit is contained in:
41
base/bldtag/CMakeLists.txt
Normal file
41
base/bldtag/CMakeLists.txt
Normal file
@@ -0,0 +1,41 @@
|
||||
cmake_minimum_required(VERSION 3.0)
|
||||
|
||||
project(
|
||||
wintc-build-tag
|
||||
VERSION 1.0
|
||||
DESCRIPTION "Windows Total Conversion build tag."
|
||||
LANGUAGES C
|
||||
)
|
||||
|
||||
set(PROJECT_ANYARCH true)
|
||||
set(PROJECT_FREESTATUS true)
|
||||
set(PROJECT_MAINTAINER "Rory Fewell <roryf@oddmatics.uk>")
|
||||
|
||||
set(PROJECT_ROOT ${CMAKE_CURRENT_LIST_DIR})
|
||||
|
||||
include(../../packaging/cmake-inc/common/CMakeLists.txt)
|
||||
include(../../packaging/cmake-inc/packaging/CMakeLists.txt)
|
||||
|
||||
# Add target
|
||||
#
|
||||
set(GENTAG_TOOL ${REPO_ROOT}/tools/bldutils/gentag/gentag.sh)
|
||||
set(TAG_OUTPUT_PATH ${CMAKE_BINARY_DIR}/bldtag)
|
||||
|
||||
add_custom_command(
|
||||
OUTPUT ${TAG_OUTPUT_PATH}
|
||||
WORKING_DIRECTORY ${PROJECT_ROOT}
|
||||
COMMAND ${GENTAG_TOOL} > ${TAG_OUTPUT_PATH}
|
||||
VERBATIM
|
||||
)
|
||||
|
||||
add_custom_target(
|
||||
gen-buildtag ALL
|
||||
DEPENDS
|
||||
${TAG_OUTPUT_PATH}
|
||||
)
|
||||
|
||||
# Installation
|
||||
#
|
||||
wintc_configure_and_install_packaging()
|
||||
|
||||
install(FILES ${TAG_OUTPUT_PATH} DESTINATION ${WINTC_ASSETS_INSTALL_DIR})
|
||||
2
base/bldtag/README.MD
Normal file
2
base/bldtag/README.MD
Normal file
@@ -0,0 +1,2 @@
|
||||
# bldtag
|
||||
This directory defines the packaging for the build tag.
|
||||
Reference in New Issue
Block a user