1
0

prepare dx dev

This commit is contained in:
2026-01-04 16:12:36 +08:00
parent b6d4269eeb
commit f094dda054
20 changed files with 421 additions and 20 deletions

View File

@@ -0,0 +1,27 @@
# Create shared library
add_library(DirectX11Engine SHARED "")
# Setup sources
target_sources(DirectX11Engine
PRIVATE
main.cpp
)
# Setup header infomation
target_include_directories(DirectX11Engine
PRIVATE
"${CMAKE_CURRENT_LIST_DIR}"
)
# Setup linked library infomation
target_link_libraries(DirectX11Engine
PRIVATE
BasaltShared
)
# Enable export macro
target_compile_definitions(DirectX11Engine
PRIVATE
BS_EXPORTING
)
# Install DirectX11Engine only on Release mode
install(TARGETS DirectX11Engine
RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}/plugins/engine"
)

View File

@@ -0,0 +1,9 @@
#include <basalt_export.hpp>
BS_EXPORT void* BSCreateInstance() {
return nullptr;
}
BS_EXPORT void BSDestroyInstance(void* instance) {
return;
}