-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tools: moved
dmake
to its own folder
- Loading branch information
Showing
8 changed files
with
43 additions
and
43 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,7 +13,6 @@ tags | |
/testrunner | ||
/testrunner.exe | ||
tools/daca2*.html | ||
tools/dmake | ||
tools/errmsg | ||
tools/extracttests | ||
|
||
|
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 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,32 +1 @@ | ||
# TODO: when using ccache and matchcompiler this will accessed before the file was generated and thus the build fails | ||
set(srcs_lib pathmatch.cpp path.cpp) | ||
foreach(file ${srcs_lib}) | ||
if (NOT USE_MATCHCOMPILER_OPT STREQUAL "Off") | ||
set(src "${CMAKE_BINARY_DIR}/lib/build/mc_${file}") | ||
set_source_files_properties(${src} PROPERTIES GENERATED TRUE) | ||
else() | ||
set(src "${CMAKE_SOURCE_DIR}/lib/${file}") | ||
endif() | ||
set(srcs_tools ${srcs_tools} ${src}) | ||
endforeach() | ||
|
||
add_executable(dmake EXCLUDE_FROM_ALL | ||
dmake.cpp | ||
${CMAKE_SOURCE_DIR}/cli/filelister.cpp | ||
${srcs_tools} | ||
${CMAKE_SOURCE_DIR}/lib/utils.cpp | ||
$<TARGET_OBJECTS:simplecpp_objs> | ||
) | ||
target_include_directories(dmake PRIVATE ${CMAKE_SOURCE_DIR}/cli ${CMAKE_SOURCE_DIR}/lib) | ||
target_externals_include_directories(dmake PRIVATE ${CMAKE_SOURCE_DIR}/externals/simplecpp) | ||
if (WIN32 AND NOT BORLAND) | ||
if(NOT MINGW) | ||
target_link_libraries(dmake Shlwapi.lib) | ||
else() | ||
target_link_libraries(dmake shlwapi) | ||
endif() | ||
endif() | ||
|
||
add_custom_target(run-dmake $<TARGET_FILE:dmake> | ||
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR} | ||
DEPENDS dmake) | ||
add_subdirectory(dmake) |
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,32 @@ | ||
# TODO: when using ccache and matchcompiler this will accessed before the file was generated and thus the build fails | ||
set(srcs_lib pathmatch.cpp path.cpp) | ||
foreach(file ${srcs_lib}) | ||
if (NOT USE_MATCHCOMPILER_OPT STREQUAL "Off") | ||
set(src "${CMAKE_BINARY_DIR}/lib/build/mc_${file}") | ||
set_source_files_properties(${src} PROPERTIES GENERATED TRUE) | ||
else() | ||
set(src "${CMAKE_SOURCE_DIR}/lib/${file}") | ||
endif() | ||
set(srcs_tools ${srcs_tools} ${src}) | ||
endforeach() | ||
|
||
add_executable(dmake EXCLUDE_FROM_ALL | ||
dmake.cpp | ||
${CMAKE_SOURCE_DIR}/cli/filelister.cpp | ||
${srcs_tools} | ||
${CMAKE_SOURCE_DIR}/lib/utils.cpp | ||
$<TARGET_OBJECTS:simplecpp_objs> | ||
) | ||
target_include_directories(dmake PRIVATE ${CMAKE_SOURCE_DIR}/cli ${CMAKE_SOURCE_DIR}/lib) | ||
target_externals_include_directories(dmake PRIVATE ${CMAKE_SOURCE_DIR}/externals/simplecpp) | ||
if (WIN32 AND NOT BORLAND) | ||
if(NOT MINGW) | ||
target_link_libraries(dmake Shlwapi.lib) | ||
else() | ||
target_link_libraries(dmake shlwapi) | ||
endif() | ||
endif() | ||
|
||
add_custom_target(run-dmake $<TARGET_FILE:dmake> | ||
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR} | ||
DEPENDS dmake) |
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.
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