-
Notifications
You must be signed in to change notification settings - Fork 105
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
101 changed files
with
138 additions
and
14,791 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
reccmp-user.yml | ||
reccmp-build.yml | ||
Debug/ | ||
Release/ | ||
*.ncb | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes
File renamed without changes
File renamed without changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
function(reccmp_find_project RESULT) | ||
set(curdir "${CMAKE_CURRENT_SOURCE_DIR}") | ||
while(1) | ||
if(EXISTS "${curdir}/reccmp-project.yml") | ||
break() | ||
endif() | ||
get_filename_component(nextdir "${curdir}" DIRECTORY) | ||
if(nextdir STREQUAL curdir) | ||
set(curdir "${RESULT}-NOTFOUND") | ||
break() | ||
endif() | ||
set(curdir "${nextdir}") | ||
endwhile() | ||
set("${RESULT}" "${curdir}" PARENT_SCOPE) | ||
endfunction() | ||
|
||
function(reccmp_add_target TARGET) | ||
cmake_parse_arguments(ARGS "" "ID" "" ${ARGN}) | ||
if(NOT ARGS_ID) | ||
message(FATAL_ERROR "Missing ID argument") | ||
endif() | ||
set_property(TARGET ${TARGET} PROPERTY INTERFACE_RECCMP_ID "${ARGS_ID}") | ||
set_property(GLOBAL APPEND PROPERTY RECCMP_TARGETS ${TARGET}) | ||
endfunction() | ||
|
||
function(reccmp_configure) | ||
cmake_parse_arguments(ARGS "COPY_TO_SOURCE_FOLDER" "DIR" "" ${ARGN}) | ||
set(binary_dir "${CMAKE_BINARY_DIR}") | ||
if(ARGS_DIR) | ||
set(binary_dir "${ARGS_DIR}") | ||
endif() | ||
|
||
reccmp_find_project(reccmp_project_dir) | ||
if(NOT reccmp_project_dir) | ||
message(FATAL_ERROR "Cannot find reccmp-project.yml") | ||
endif() | ||
|
||
if(CMAKE_CONFIGURATION_TYPES) | ||
set(outputdir "${binary_dir}/$<CONFIG>") | ||
else() | ||
set(outputdir "${binary_dir}") | ||
endif() | ||
set(build_yml_txt "project: '${reccmp_project_dir}'\ntargets:\n") | ||
get_property(RECCMP_TARGETS GLOBAL PROPERTY RECCMP_TARGETS) | ||
foreach(target ${RECCMP_TARGETS}) | ||
get_property(id TARGET "${target}" PROPERTY INTERFACE_RECCMP_ID) | ||
string(APPEND build_yml_txt " ${id}:\n") | ||
string(APPEND build_yml_txt " path: '$<TARGET_FILE:${target}>'\n") | ||
if(WIN32 AND MSVC) | ||
string(APPEND build_yml_txt " pdb: '$<TARGET_PDB_FILE:${target}>'\n") | ||
endif() | ||
endforeach() | ||
file(GENERATE OUTPUT "${outputdir}/reccmp-build.yml" CONTENT "${build_yml_txt}") | ||
|
||
if(ARGS_COPY_TO_SOURCE_FOLDER) | ||
file(GENERATE OUTPUT "${CMAKE_SOURCE_DIR}/reccmp-build.yml" CONTENT "${build_yml_txt}" CONDITION $<CONFIG:Release>) | ||
endif() | ||
endfunction() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
targets: | ||
ISLE: | ||
filename: ISLE.EXE | ||
source-root: ISLE | ||
hash: | ||
sha256: 5cf57c284973fce9d14f5677a2e4435fd989c5e938970764d00c8932ed5128ca | ||
LEGO1: | ||
filename: LEGO1.DLL | ||
source-root: LEGO1 | ||
hash: | ||
sha256: 14645225bbe81212e9bc1919cd8a692b81b8622abb6561280d99b0fc4151ce17 | ||
CONFIG: | ||
filename: CONFIG.EXE | ||
source-root: CONFIG | ||
hash: | ||
sha256: 864766d024d78330fed5e1f6efb2faf815f1b1c3405713a9718059dc9a54e52c |
Oops, something went wrong.