|
@@ -70,7 +70,7 @@ rule_end()
|
|
|
|
|
|
add_rules("c.def_gen", {override = true})
|
|
|
|
|
|
-target("SuiteSparse_config")
|
|
|
+target("suitesparseconfig")
|
|
|
set_kind("$(kind)")
|
|
|
add_files("SuiteSparse_config/SuiteSparse_config.c")
|
|
|
add_headerfiles("SuiteSparse_config/SuiteSparse_config.h")
|
|
@@ -80,7 +80,7 @@ target_end()
|
|
|
for _, libname in ipairs({"AMD", "BTF", "CAMD", "CCOLAMD", "COLAMD"}) do
|
|
|
target(libname)
|
|
|
set_kind("$(kind)")
|
|
|
- add_deps("SuiteSparse_config")
|
|
|
+ add_deps("suitesparseconfig")
|
|
|
add_files(libname .. "/Source/*.c", {prod_defs = {"none", "DLONG"}})
|
|
|
add_includedirs(libname .. "/Include", {public = true})
|
|
|
add_headerfiles(libname .. "/Include/*.h")
|
|
@@ -89,7 +89,7 @@ end
|
|
|
|
|
|
target("CHOLMOD")
|
|
|
set_kind("$(kind)")
|
|
|
- add_deps("SuiteSparse_config")
|
|
|
+ add_deps("suitesparseconfig")
|
|
|
add_deps("AMD", "CAMD", "COLAMD", "CCOLAMD")
|
|
|
for _, module in ipairs({"Core", "Check", "Cholesky", "MatrixOps", "Partition", "Modify", "Supernodal"}) do
|
|
|
add_files("CHOLMOD/" .. module .. "/cholmod*.c", {prod_defs = {"none", "DLONG"}})
|
|
@@ -107,7 +107,7 @@ target_end()
|
|
|
|
|
|
target("CXSparse")
|
|
|
set_kind("$(kind)")
|
|
|
- add_deps("SuiteSparse_config")
|
|
|
+ add_deps("suitesparseconfig")
|
|
|
add_files("CXSparse/Source/*.c|cs_convert.c", {prod_defs = {"none", "CS_LONG"}})
|
|
|
add_includedirs("CXSparse/Include", {public = true})
|
|
|
add_headerfiles("CXSparse/Include/*.h")
|
|
@@ -115,7 +115,7 @@ target_end()
|
|
|
|
|
|
target("KLU")
|
|
|
set_kind("$(kind)")
|
|
|
- add_deps("SuiteSparse_config")
|
|
|
+ add_deps("suitesparseconfig")
|
|
|
add_deps("AMD", "COLAMD", "BTF")
|
|
|
add_files("KLU/Source/*.c", {prod_defs = {"none", "DLONG"}})
|
|
|
add_includedirs("KLU/Include", {public = true})
|
|
@@ -124,7 +124,7 @@ target_end()
|
|
|
|
|
|
target("LDL")
|
|
|
set_kind("$(kind)")
|
|
|
- add_deps("SuiteSparse_config")
|
|
|
+ add_deps("suitesparseconfig")
|
|
|
add_files("LDL/Source/*.c", {prod_defs = {"none", "LDL_LONG"}})
|
|
|
add_includedirs("LDL/Include", {public = true})
|
|
|
add_headerfiles("LDL/Include/*.h")
|
|
@@ -132,7 +132,7 @@ target_end()
|
|
|
|
|
|
target("UMFPACK")
|
|
|
set_kind("$(kind)")
|
|
|
- add_deps("SuiteSparse_config")
|
|
|
+ add_deps("suitesparseconfig")
|
|
|
add_deps("AMD", "CHOLMOD")
|
|
|
add_files("UMFPACK/Source/umfpack_timer.c", "UMFPACK/Source/umfpack_tictoc.c")
|
|
|
local doubledefs = {"umf_analyze.c", "umf_apply_order.c", "umf_cholmod.c", "umf_colamd.c", "umf_free.c", "umf_fsize.c", "umf_is_permutation.c", "umf_malloc.c", "umf_realloc.c", "umf_report_perm.c", "umf_singletons.c"}
|
|
@@ -147,7 +147,7 @@ target_end()
|
|
|
|
|
|
target("SPQR")
|
|
|
set_kind("$(kind)")
|
|
|
- add_deps("SuiteSparse_config")
|
|
|
+ add_deps("suitesparseconfig")
|
|
|
add_deps("CHOLMOD")
|
|
|
add_files("SPQR/Source/*.cpp")
|
|
|
add_includedirs("SPQR/Include", {public = true})
|
|
@@ -172,7 +172,7 @@ end
|
|
|
if has_config("with_cuda") then
|
|
|
target("SuiteSparse_GPURuntime")
|
|
|
set_kind("$(kind)")
|
|
|
- add_deps("SuiteSparse_config")
|
|
|
+ add_deps("suitesparseconfig")
|
|
|
add_packages("cuda")
|
|
|
add_files("SuiteSparse_GPURuntime/Source/*.cpp")
|
|
|
add_includedirs("SuiteSparse_GPURuntime/Include", {public = true})
|
|
@@ -181,7 +181,7 @@ target_end()
|
|
|
|
|
|
target("GPUQREngine")
|
|
|
set_kind("$(kind)")
|
|
|
- add_deps("SuiteSparse_config", "SuiteSparse_GPURuntime")
|
|
|
+ add_deps("suitesparseconfig", "SuiteSparse_GPURuntime")
|
|
|
add_files("GPUQREngine/Source/**.cpp", "GPUQREngine/Source/*.cu")
|
|
|
add_includedirs("GPUQREngine/Include", {public = true})
|
|
|
add_headerfiles("GPUQREngine/Include/(**.hpp)", "GPUQREngine/Include/(**.cu)")
|