-
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: reuse compliance and build improvements
more reuse info on builtins small improvements on build saved leftover experiment embedding glfw and glew ci: try vt action fix
- Loading branch information
Showing
10 changed files
with
121 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
cjit | ||
*.o | ||
src/embed* | ||
.build_done* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
MIT No Attribution | ||
|
||
Copyright <YEAR> <COPYRIGHT HOLDER> | ||
|
||
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. | ||
|
||
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,13 @@ SPDX-PackageSupplier = "Denis Roio <[email protected]>" | |
SPDX-PackageDownloadLocation = "https://github.com/dyne/cjit" | ||
|
||
[[annotations]] | ||
path = ["src/**", "**"] | ||
path = ["src/**", "build/**", "test/**", "examples/**", "REUSE.toml"] | ||
precedence = "aggregate" | ||
SPDX-FileCopyrightText = "2024 Dyne.org foundation" | ||
SPDX-License-Identifier = "GPL-3.0-or-later" | ||
|
||
[[annotations]] | ||
path = [".*", ".github/**"] | ||
precedence = "aggregate" | ||
SPDX-FileCopyrightText = "2024 Dyne.org foundation" | ||
SPDX-License-Identifier = "GPL-3.0-or-later" | ||
|
@@ -24,9 +30,39 @@ SPDX-License-Identifier = "LGPL-2.1-or-later" | |
[[annotations]] | ||
path = "lib/contrib_headers/dmon.h" | ||
precedence = "aggregate" | ||
SPDX-FileCopyrightText = " 2019-2023, Sepehr Taghdisian" | ||
SPDX-FileCopyrightText = " 2019-2023 Sepehr Taghdisian" | ||
SPDX-License-Identifier = "BSD-2-Clause" | ||
|
||
[[annotations]] | ||
path = "lib/contrib_headers/miniaudio.h" | ||
precedence = "aggregate" | ||
SPDX-FileCopyrightText = " 2023 David Reid" | ||
SPDX-License-Identifier = "MIT-0" | ||
|
||
[[annotations]] | ||
path = "lib/contrib_headers/nuklear.h" | ||
precedence = "aggregate" | ||
SPDX-FileCopyrightText = "2017 Micha Mettke" | ||
SPDX-License-Identifier = "MIT-0" | ||
|
||
[[annotations]] | ||
path = "lib/stb/**" | ||
precedence = "aggregate" | ||
SPDX-FileCopyrightText = " 2009-2021 Sean Barrett" | ||
SPDX-License-Identifier = "MIT-0" | ||
|
||
[[annotations]] | ||
path = "lib/win32ports/**" | ||
precedence = "aggregate" | ||
SPDX-FileCopyrightText = " 2019 win32ports" | ||
SPDX-License-Identifier = "MIT-0" | ||
|
||
[[annotations]] | ||
path = "lib/contrib_headers/termbox2.h" | ||
precedence = "aggregate" | ||
SPDX-FileCopyrightText = " 2010-2020 nsf, 2015-2024 Adam Saponara" | ||
SPDX-License-Identifier = "MIT-0" | ||
|
||
[[annotations]] | ||
path = ["docs/**", "**.md"] | ||
precedence = "aggregate" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#!/usr/bin/env zsh | ||
# | ||
# extract external symbols from library files on linux | ||
|
||
lib=$1 | ||
[ -r "$lib" ] || { | ||
>&2 echo "Lib not found: $lib" | ||
exit 1 | ||
} | ||
|
||
syms=`nm -WUg ${lib} | awk '$2 ~ T {if($3)print $3}' | grep -v '^_' | grep -v '.0$'` | ||
name=`basename $lib | sed 's/\./_/g' | sed 's/-/_/g' | sed 's/_a$//g'` | ||
cat <<EOF > src/${name}.c | ||
// Generated by cjit/build/export-symbols.sh | ||
// `date` | ||
#include <libtcc.h> | ||
// TODO: fill in needed includes here | ||
void tcc_add_${name}_symbols(TCCState *TCC) { | ||
EOF | ||
for sym in ${(f)syms}; do | ||
# >&2 echo "+ ($name) $sym" | ||
echo "tcc_add_symbol(TCC, \"${sym}\", &${sym});" >> src/${name}.c | ||
done | ||
echo "}" >> src/${name}.c | ||
|
||
>&2 echo "Generated symbol declaration: src/${name}.c" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters