Skip to content

Commit

Permalink
move env2c and debug2c into libged.
Browse files Browse the repository at this point in the history
this fixes a dependency coupling issue where misc had to come before src, but also moving because the tools are not really general.  they're highly specific to our existing repo structure and are specifically libged code generators, and only used there so looks like it should make sense to move them into place in libged.  giving it a try.
  • Loading branch information
brlcad committed Jan 12, 2025
1 parent 626d8fc commit 585e232
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 13 deletions.
12 changes: 0 additions & 12 deletions misc/tools/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,6 @@ endfunction(SetTargetFolder)
# The following are build or utility tools written by BRL-CAD developers
# specifically for use with our build and maintenance processes

# env2c - Scanner to generate a list of environment variables used by
# source code
add_subdirectory(env2c)
settargetfolder(env2c "Compilation Utilities")
distclean(${CMAKE_CURRENT_BINARY_DIR}/env2c/Makefile)

# debug2c - Scanner to generate a list of debug variables used by
# source code
add_subdirectory(debug2c)
settargetfolder(debug2c "Compilation Utilities")
distclean(${CMAKE_CURRENT_BINARY_DIR}/debug2c/Makefile)

# yedit - console editor for Windows to be used as a fallback if
# there are no other console options present in the environment
add_subdirectory(yori)
Expand Down
7 changes: 6 additions & 1 deletion src/libged/debug/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,13 @@ include_directories(
${GED_INCLUDE_DIRS}
)

set(DEBUG_CMD_CPP "${CMAKE_CURRENT_BINARY_DIR}/debug_cmd.cpp")
# debug2c - Scanner to generate a list of debug variables used by
# source code
add_subdirectory(debug2c)
settargetfolder(debug2c "Compilation Utilities")
distclean(${CMAKE_CURRENT_BINARY_DIR}/debug2c/Makefile)

set(DEBUG_CMD_CPP "${CMAKE_CURRENT_BINARY_DIR}/debug_cmd.cpp")
add_custom_command(
OUTPUT ${DEBUG_CMD_CPP}
COMMAND debug2c ${CMAKE_BINARY_DIR}/cmakefiles.cmake ${DEBUG_CMD_CPP}
Expand Down
File renamed without changes.
File renamed without changes.
6 changes: 6 additions & 0 deletions src/libged/env/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ include_directories(
${GED_INCLUDE_DIRS}
)

# env2c - Scanner to generate a list of environment variables used by
# source code
add_subdirectory(env2c)
settargetfolder(env2c "Compilation Utilities")
distclean(${CMAKE_CURRENT_BINARY_DIR}/env2c/Makefile)

set(ENV_CMD_C "${CMAKE_CURRENT_BINARY_DIR}/env_cmd.c")
add_custom_command(
OUTPUT ${ENV_CMD_C}
Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit 585e232

Please sign in to comment.