mirror of https://github.com/dnomd343/klotski.git
Dnomd343
2 years ago
6 changed files with 69 additions and 39 deletions
@ -1,9 +1,11 @@ |
|||
#pragma once |
|||
|
|||
/// CMake metadata template
|
|||
|
|||
#define VERSION_MAJOR (@VERSION_MAJOR@) |
|||
#define VERSION_MINOR (@VERSION_MINOR@) |
|||
#define VERSION_PATCH (@VERSION_PATCH@) |
|||
#define VERSION_STR "v@VERSION_MAJOR@.@VERSION_MINOR@.@VERSION_PATCH@" |
|||
#define VERSION_STR "@VERSION_MAJOR@.@VERSION_MINOR@.@VERSION_PATCH@" |
|||
|
|||
#define AUTHOR "dnomd343" |
|||
#define SYSTEM "@SYSTEM_INFO@" |
@ -0,0 +1,15 @@ |
|||
#pragma once |
|||
|
|||
/// XMake metadata template |
|||
|
|||
#define VERSION_MAJOR (${VERSION_MAJOR}) |
|||
#define VERSION_MINOR (${VERSION_MINOR}) |
|||
#define VERSION_PATCH (${VERSION_ALTER}) |
|||
#define VERSION_STR "${VERSION}" |
|||
|
|||
#define AUTHOR "dnomd343" |
|||
#define SYSTEM "${PLAT} ${ARCH}" |
|||
#define COMPILER "${COMPILER_INFO}" |
|||
#define BUILD_TIME "${BUILD_TIME}" |
|||
#define PROJECT_URL "https://github.com/dnomd343/klotski.git" |
|||
#define GIT_COMMIT_ID "${GIT_COMMIT_LONG}" |
@ -1,80 +1,92 @@ |
|||
set_xmakever("2.0.0") |
|||
|
|||
set_version("0.1.2") |
|||
|
|||
set_languages("cxx14") |
|||
|
|||
set_optimize("fastest") |
|||
|
|||
set_warnings("everything") |
|||
|
|||
---------------------------------------------------------------- |
|||
|
|||
add_includedirs("utils") |
|||
add_includedirs("all_cases") |
|||
|
|||
add_includedirs("raw_code") |
|||
add_includedirs("short_code") |
|||
add_includedirs("common_code") |
|||
|
|||
add_includedirs("core") |
|||
add_includedirs("fast_cal") |
|||
add_includedirs("analyse") |
|||
|
|||
add_includedirs("benchmark") |
|||
|
|||
---------------------------------------------------------------- |
|||
|
|||
target("utils") |
|||
set_kind("static") |
|||
add_files("utils/*.cc") |
|||
|
|||
target("all_cases") |
|||
set_kind("static") |
|||
add_includedirs("utils") |
|||
add_files("all_cases/*.cc") |
|||
|
|||
target("raw_code") |
|||
set_kind("static") |
|||
add_includedirs("utils") |
|||
add_includedirs("raw_code") |
|||
add_includedirs("short_code") |
|||
add_includedirs("common_code") |
|||
add_files("raw_code/*.cc") |
|||
|
|||
target("short_code") |
|||
set_kind("static") |
|||
add_includedirs("utils") |
|||
add_includedirs("all_cases") |
|||
add_includedirs("raw_code") |
|||
add_includedirs("short_code") |
|||
add_includedirs("common_code") |
|||
add_includedirs("short_code/offset") |
|||
add_files("short_code/*.cc") |
|||
|
|||
target("common_code") |
|||
set_kind("static") |
|||
add_includedirs("utils") |
|||
add_includedirs("raw_code") |
|||
add_includedirs("short_code") |
|||
add_includedirs("common_code") |
|||
add_files("common_code/*.cc") |
|||
|
|||
target("core") |
|||
set_kind("static") |
|||
add_includedirs("utils") |
|||
add_files("core/*.cc") |
|||
|
|||
target("fast_cal") |
|||
set_kind("static") |
|||
add_includedirs("core") |
|||
add_includedirs("utils") |
|||
add_includedirs("raw_code") |
|||
add_includedirs("short_code") |
|||
add_includedirs("common_code") |
|||
add_files("fast_cal/*.cc") |
|||
|
|||
target("analyse") |
|||
set_kind("static") |
|||
add_includedirs("core") |
|||
add_includedirs("utils") |
|||
add_includedirs("raw_code") |
|||
add_includedirs("short_code") |
|||
add_includedirs("common_code") |
|||
add_files("analyse/*.cc") |
|||
|
|||
target("benchmark") |
|||
set_kind("static") |
|||
add_includedirs("all_cases") |
|||
add_files("benchmark/*.cc") |
|||
|
|||
---------------------------------------------------------------- |
|||
|
|||
-- TODO: generate version.h |
|||
|
|||
target("klotski") |
|||
set_kind("static") |
|||
add_includedirs(".") |
|||
add_includedirs("utils") |
|||
add_includedirs("all_cases") |
|||
add_includedirs("benchmark") |
|||
add_includedirs("raw_code") |
|||
add_includedirs("short_code") |
|||
add_includedirs("common_code") |
|||
add_files("ffi/*.cc") |
|||
add_deps("utils", "all_cases") |
|||
add_deps("raw_code", "short_code", "common_code") |
|||
add_deps("core", "fast_cal", "analyse") |
|||
add_deps("benchmark") |
|||
add_files("ffi/*.cc") |
|||
|
|||
set_configdir("$(scriptdir)/utils") |
|||
|
|||
set_configvar("COMPILER_INFO", "GNU ...") |
|||
set_configvar("BUILD_TIME", "...time...") |
|||
|
|||
add_configfiles("utils/metadata.h.inx", {filename = "config.h"}) |
|||
|
|||
-- add_configfiles("config.h.in", {pattern = "@(.-)@"}) |
|||
|
|||
set_policy("build.merge_archive", true) |
|||
-- set_targetdir("../../bin/") |
|||
|
|||
-- os.cp("$(scriptdir)/*.h", "$(scriptdir)/../../bin/") |
|||
|
|||
---------------------------------------------------------------- |
|||
|
Loading…
Reference in new issue