refactor: cleanup project. ready for refactor.

- remove all old code
- build directory hierarchy, add basic cmake scripts.
This commit is contained in:
2024-07-23 21:37:56 +08:00
parent 4503b5cefc
commit ecebc42603
84 changed files with 298 additions and 6961 deletions

View File

@@ -0,0 +1,24 @@
# Check Windows platform
if (NOT WIN32)
message(FATAL_ERROR "VirtoolsSchematicWeaver::Materializer only supports Windows platform.")
endif ()
# Check MSVC toolchain
if (NOT MSVC)
message(FATAL_ERROR "VirtoolsSchematicWeaver::Materializer only supports MSVC build toolchain.")
endif ()
# Check architecture
if (NOT CMAKE_SIZEOF_VOID_P EQUAL 4)
message(FATAL_ERROR "VirtoolsSchematicWeaver::Materializer only supports 32-bit platform.")
endif ()
# Check build type
set(VSW_MATERIALIZER_BUILD_TYPES
"plugin" "standalone"
)
if (VSW_MATERIALIZER_BUILD_TYPE IN_LIST VSW_MATERIALIZER_BUILD_TYPES)
message( "VirtoolsSchematicWeaver::Materializer build type: ${VSW_MATERIALIZER_BUILD_TYPE}")
else ()
message(FATAL_ERROR
"VirtoolsSchematicWeaver::Materializer do not have correct type."
"Please assign a legal value (\"plugin\" or \"standalone\") to VSW_MATERIALIZER_BUILD_TYPE."
)
endif ()