mirror of
https://github.com/Relintai/sfw.git
synced 2025-01-03 05:09:36 +01:00
Split off the readme and licenses to different files in the merger script.
This commit is contained in:
parent
88d03e080a
commit
1367dee986
@ -79,6 +79,12 @@ def process_command(name, value):
|
||||
res += process_file(file.read())
|
||||
res += "#line 0"
|
||||
return res
|
||||
elif name == "FILEINLINE":
|
||||
file_path = os.path.join(input_path, value)
|
||||
print("Appending inline file: " + value)
|
||||
with open(file_path, "r") as file:
|
||||
res = process_file(file.read())
|
||||
return res
|
||||
|
||||
def process_template(template):
|
||||
regex = r"{{([A-Z]*):([\w./]*)}}"
|
||||
|
@ -1,29 +1,7 @@
|
||||
|
||||
// https://github.com/Relintai/sfw
|
||||
|
||||
/*
|
||||
Copyright (c) 2023-present Péter Magyar.
|
||||
|
||||
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.
|
||||
*/
|
||||
|
||||
// TODO gather all licenses to here
|
||||
{{FILEINLINE:tools/merger/sfw_readme.inl.h}}
|
||||
{{FILEINLINE:tools/merger/sfw_linceses.inl.h}}
|
||||
|
||||
#ifdef SFW_3RD_IMPL
|
||||
#define GLAD_GL_IMPLEMENTATION // glad
|
||||
|
@ -1,6 +1,7 @@
|
||||
|
||||
|
||||
//Add the implementation unroll macros here before including sfw.h
|
||||
{{FILEINLINE:tools/merger/sfw_readme.inl.h}}
|
||||
{{FILEINLINE:tools/merger/sfw_linceses.inl.h}}
|
||||
|
||||
#include <cstdio>
|
||||
#include <stdio.h>
|
||||
|
@ -1,31 +1,8 @@
|
||||
#ifndef SFW_H
|
||||
#define SFW_H
|
||||
|
||||
// https://github.com/Relintai/sfw
|
||||
|
||||
/*
|
||||
Copyright (c) 2023-present Péter Magyar.
|
||||
|
||||
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.
|
||||
*/
|
||||
|
||||
// TODO gather all licenses to here
|
||||
{{FILEINLINE:tools/merger/sfw_readme.inl.h}}
|
||||
{{FILEINLINE:tools/merger/sfw_linceses.inl.h}}
|
||||
|
||||
#define _REENTRANT
|
||||
|
||||
|
24
tools/merger/sfw_linceses.inl.h
Normal file
24
tools/merger/sfw_linceses.inl.h
Normal file
@ -0,0 +1,24 @@
|
||||
|
||||
/*
|
||||
Copyright (c) 2023-present Péter Magyar.
|
||||
|
||||
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.
|
||||
*/
|
||||
|
||||
// TODO gather all licenses to here
|
2
tools/merger/sfw_readme.inl.h
Normal file
2
tools/merger/sfw_readme.inl.h
Normal file
@ -0,0 +1,2 @@
|
||||
|
||||
// https://github.com/Relintai/sfw
|
Loading…
Reference in New Issue
Block a user