mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2024-12-24 04:46:48 +01:00
Proper structural setup for the new module.
This commit is contained in:
parent
05bb8567ba
commit
98008d48c9
21
modules/wfc/.gitignore
vendored
21
modules/wfc/.gitignore
vendored
@ -1,21 +0,0 @@
|
||||
# The executable
|
||||
wfc
|
||||
example/wfc_demo
|
||||
|
||||
# The results of the algorithm
|
||||
example/results/*
|
||||
|
||||
# The library files
|
||||
lib/*
|
||||
|
||||
# CMake files
|
||||
**/CMakeLists.txt.user
|
||||
**/CMakeCache.txt
|
||||
**/CMakeFiles
|
||||
**/CMakeScripts
|
||||
**/Testing
|
||||
**/Makefile
|
||||
**/install_manifest.txt
|
||||
**/compile_commands.json
|
||||
**/*.cmake
|
||||
**/_deps
|
@ -1,47 +0,0 @@
|
||||
cmake_minimum_required(VERSION 3.9)
|
||||
project(fastwfc VERSION 1.0.0 LANGUAGES CXX)
|
||||
|
||||
set(CMAKE_CXX_STANDARD 17)
|
||||
set(DEFAULT_BUILD_TYPE "Release")
|
||||
|
||||
if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES)
|
||||
message(STATUS "Setting build type to '${DEFAULT_BUILD_TYPE}' as none was specified.")
|
||||
set(CMAKE_BUILD_TYPE "${DEFAULT_BUILD_TYPE}" CACHE STRING "Choose the type of build." FORCE)
|
||||
endif()
|
||||
|
||||
include(GNUInstallDirs)
|
||||
|
||||
set(SOURCE_FILES src/lib/wave.cpp src/lib/propagator.cpp src/lib/wfc.cpp)
|
||||
|
||||
add_library(${PROJECT_NAME}_static STATIC ${SOURCE_FILES})
|
||||
add_library(${PROJECT_NAME} SHARED ${SOURCE_FILES})
|
||||
|
||||
set(LIBRARY_OUTPUT_PATH lib CACHE PATH "Build directory" FORCE)
|
||||
|
||||
target_include_directories(${PROJECT_NAME}_static PUBLIC
|
||||
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/src/include>)
|
||||
|
||||
target_include_directories(${PROJECT_NAME} PUBLIC
|
||||
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/src/include>)
|
||||
|
||||
set_target_properties(${PROJECT_NAME} PROPERTIES
|
||||
VERSION ${PROJECT_VERSION}
|
||||
SOVERSION 1)
|
||||
|
||||
install(TARGETS ${PROJECT_NAME} EXPORT FastWFCConfig
|
||||
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
|
||||
|
||||
install(TARGETS ${PROJECT_NAME}_static EXPORT FastWFCStaticConfig
|
||||
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
|
||||
|
||||
install(DIRECTORY src/include/ DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/${PROJECT_NAME})
|
||||
|
||||
install(EXPORT FastWFCConfig DESTINATION share/fastwfc/cmake)
|
||||
install(EXPORT FastWFCStaticConfig DESTINATION share/fastwfc/cmake)
|
||||
|
||||
export(TARGETS ${PROJECT_NAME} FILE FastWFCConfig.cmake)
|
||||
export(TARGETS ${PROJECT_NAME}_static FILE FastWFCStaticConfig.cmake)
|
@ -1,9 +1,6 @@
|
||||
================================================================================
|
||||
|
||||
All files directly under src/ are under the following license:
|
||||
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2022 Péter Magyar
|
||||
Copyright (c) 2018-2019 Mathieu Fehr and Nathanaël Courant
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
@ -23,66 +20,3 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
|
||||
================================================================================
|
||||
|
||||
The file `src/lib/rapidxml.hpp` is under the following licenses:
|
||||
|
||||
Use of this software is granted under one of the following two licenses,
|
||||
to be chosen freely by the user.
|
||||
|
||||
1. Boost Software License - Version 1.0 - August 17th, 2003
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
Copyright (c) 2006, 2007 Marcin Kalicinski
|
||||
|
||||
Permission is hereby granted, free of charge, to any person or organization
|
||||
obtaining a copy of the software and accompanying documentation covered by
|
||||
this license (the "Software") to use, reproduce, display, distribute,
|
||||
execute, and transmit the Software, and to prepare derivative works of the
|
||||
Software, and to permit third-parties to whom the Software is furnished to
|
||||
do so, all subject to the following:
|
||||
|
||||
The copyright notices in the Software and this entire statement, including
|
||||
the above license grant, this restriction and the following disclaimer,
|
||||
must be included in all copies of the Software, in whole or in part, and
|
||||
all derivative works of the Software, unless such copies or derivative
|
||||
works are solely in the form of machine-executable object code generated by
|
||||
a source language processor.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT
|
||||
SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE
|
||||
FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE,
|
||||
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||
DEALINGS IN THE SOFTWARE.
|
||||
|
||||
2. The MIT License
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
Copyright (c) 2006, 2007 Marcin Kalicinski
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
|
||||
of the Software, and to permit persons to whom the Software is furnished to do so,
|
||||
subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
||||
THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
||||
IN THE SOFTWARE.
|
||||
|
||||
================================================================================
|
||||
|
||||
The files `src/lib/stb_image_write.h` and `src/lib/stb_image.h` are dual-licensed
|
||||
under the public domain and MIT license. See the end of the corresponding files
|
||||
for details.
|
||||
|
8
modules/wfc/SCsub
Normal file
8
modules/wfc/SCsub
Normal file
@ -0,0 +1,8 @@
|
||||
#!/usr/bin/env python
|
||||
|
||||
Import("env")
|
||||
Import("env_modules")
|
||||
|
||||
env_network_synchronizer = env_modules.Clone()
|
||||
|
||||
env_network_synchronizer.add_source_files(env.modules_sources, "register_types.cpp")
|
19
modules/wfc/config.py
Normal file
19
modules/wfc/config.py
Normal file
@ -0,0 +1,19 @@
|
||||
def can_build(env, platform):
|
||||
return True
|
||||
|
||||
|
||||
def configure(env):
|
||||
pass
|
||||
|
||||
|
||||
def get_doc_classes():
|
||||
return [
|
||||
]
|
||||
|
||||
|
||||
def get_doc_path():
|
||||
return "doc_classes"
|
||||
|
||||
|
||||
def is_enabled():
|
||||
return True
|
8
modules/wfc/register_types.cpp
Normal file
8
modules/wfc/register_types.cpp
Normal file
@ -0,0 +1,8 @@
|
||||
|
||||
#include "register_types.h"
|
||||
|
||||
void register_wfc_types() {
|
||||
}
|
||||
|
||||
void unregister_wfc_types() {
|
||||
}
|
3
modules/wfc/register_types.h
Normal file
3
modules/wfc/register_types.h
Normal file
@ -0,0 +1,3 @@
|
||||
|
||||
void register_wfc_types();
|
||||
void unregister_wfc_types();
|
Loading…
Reference in New Issue
Block a user