diff options
Diffstat (limited to 'frameworks')
| -rw-r--r-- | frameworks/libSocket.fwrk/dist/.keep | 0 | ||||
| -rw-r--r-- | frameworks/libSocket.fwrk/headers/Config.h | 18 | ||||
| -rw-r--r-- | frameworks/libSocket.fwrk/libSocket.fwrk.json | 20 | ||||
| -rw-r--r-- | frameworks/libSocket.fwrk/src/.keep | 0 | ||||
| -rw-r--r-- | frameworks/libSocket.fwrk/xml/app.xml | 4 | ||||
| -rw-r--r-- | frameworks/libThread.fwrk/headers/Config.h | 2 | ||||
| -rw-r--r-- | frameworks/libThread.fwrk/src/ThreadMgr.cpp | 2 | ||||
| -rw-r--r-- | frameworks/libX11.fwrk/headers/Config.h | 2 | ||||
| -rw-r--r-- | frameworks/libX11.fwrk/src/X11ConnMgr.cpp | 2 |
9 files changed, 46 insertions, 4 deletions
diff --git a/frameworks/libSocket.fwrk/dist/.keep b/frameworks/libSocket.fwrk/dist/.keep new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/frameworks/libSocket.fwrk/dist/.keep diff --git a/frameworks/libSocket.fwrk/headers/Config.h b/frameworks/libSocket.fwrk/headers/Config.h new file mode 100644 index 0000000..ca38da0 --- /dev/null +++ b/frameworks/libSocket.fwrk/headers/Config.h @@ -0,0 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026, Amlal El Mahrouss (amlal@nekernel.org) +// Licensed under the Apache License, Version 2.0 (see LICENSE file) +// Official repository: https://github.com/ne-foss-org/ne-system + +#ifndef SOCKET_FOUNDATION_H +#define SOCKET_FOUNDATION_H + +#include <libSystem/SystemKit/System.h> + +#define LIBSOCKET_VERSION 0x100000 + +#define _SOCKET_ARRAY_CHECK(PTR) PTR != nullptr +#define _SOCKET_ARRAY_INDEX(ARR, PTR, LEN) ARR[((SInt64) PTR) % LEN] + +#define _SOCKET_INVALID ((SizeT)-1) + +#endif diff --git a/frameworks/libSocket.fwrk/libSocket.fwrk.json b/frameworks/libSocket.fwrk/libSocket.fwrk.json new file mode 100644 index 0000000..a1b13bb --- /dev/null +++ b/frameworks/libSocket.fwrk/libSocket.fwrk.json @@ -0,0 +1,20 @@ +{ + "compiler_path": "x86_64-w64-mingw32-g++", + "compiler_std": "c++20", + "headers_path": ["../", "./", "../../src/kernel", "../../src/kernel/src"], + "sources_path": ["src/*.cpp"], + "output_name": "./dist/libSocket.fwrk.dylib", + "compiler_flags": [ + "-ffreestanding", + "-shared", + "-fno-rtti", + "-fno-exceptions", + "-Wl,--subsystem=17" + ], + "cpp_macros": [ + "kSocketVersion=0x0100", + "kSocketVersionHighest=0x0100", + "kSocketVersionLowest=0x0100" + ] + } + diff --git a/frameworks/libSocket.fwrk/src/.keep b/frameworks/libSocket.fwrk/src/.keep new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/frameworks/libSocket.fwrk/src/.keep diff --git a/frameworks/libSocket.fwrk/xml/app.xml b/frameworks/libSocket.fwrk/xml/app.xml new file mode 100644 index 0000000..bd1dbee --- /dev/null +++ b/frameworks/libSocket.fwrk/xml/app.xml @@ -0,0 +1,4 @@ +<PropertyList> +<PLEntry Type="CFString" Name="LibraryName" Len="3" Value="Socket" /> +<PLEntry Type="BOOL" Name="CacheLibs" Value="YES" /> +</PropertyList>
\ No newline at end of file diff --git a/frameworks/libThread.fwrk/headers/Config.h b/frameworks/libThread.fwrk/headers/Config.h index f69f0f5..f8f5dab 100644 --- a/frameworks/libThread.fwrk/headers/Config.h +++ b/frameworks/libThread.fwrk/headers/Config.h @@ -1,7 +1,7 @@ // SPDX-License-Identifier: Apache-2.0 // Copyright 2026, Amlal El Mahrouss (amlal@nekernel.org) // Licensed under the Apache License, Version 2.0 (see LICENSE file) -// Official repository: https://github.com/ne-foss-org/ne_system +// Official repository: https://github.com/ne-foss-org/ne-system #ifndef LIBTHREAD_FOUNDATION_H #define LIBTHREAD_FOUNDATION_H diff --git a/frameworks/libThread.fwrk/src/ThreadMgr.cpp b/frameworks/libThread.fwrk/src/ThreadMgr.cpp index 6a7843f..7d663d3 100644 --- a/frameworks/libThread.fwrk/src/ThreadMgr.cpp +++ b/frameworks/libThread.fwrk/src/ThreadMgr.cpp @@ -1,7 +1,7 @@ // SPDX-License-Identifier: Apache-2.0 // Copyright 2026, Amlal El Mahrouss (amlal@nekernel.org) // Licensed under the Apache License, Version 2.0 (see LICENSE file) -// Official repository: https://github.com/ne-foss-org/ne_system +// Official repository: https://github.com/ne-foss-org/ne-system #include <libSystem/SystemKit/Err.h> #include <libThread.fwrk/headers/Config.h> diff --git a/frameworks/libX11.fwrk/headers/Config.h b/frameworks/libX11.fwrk/headers/Config.h index 1207451..30bb449 100644 --- a/frameworks/libX11.fwrk/headers/Config.h +++ b/frameworks/libX11.fwrk/headers/Config.h @@ -1,7 +1,7 @@ // SPDX-License-Identifier: Apache-2.0 // Copyright 2026, Amlal El Mahrouss (amlal@nekernel.org) // Licensed under the Apache License, Version 2.0 (see LICENSE file) -// Official repository: https://github.com/ne-foss-org/ne_system +// Official repository: https://github.com/ne-foss-org/ne-system #ifndef X11_FOUNDATION_H #define X11_FOUNDATION_H diff --git a/frameworks/libX11.fwrk/src/X11ConnMgr.cpp b/frameworks/libX11.fwrk/src/X11ConnMgr.cpp index 61752f1..ca55c8b 100644 --- a/frameworks/libX11.fwrk/src/X11ConnMgr.cpp +++ b/frameworks/libX11.fwrk/src/X11ConnMgr.cpp @@ -1,7 +1,7 @@ // SPDX-License-Identifier: Apache-2.0 // Copyright 2026, Amlal El Mahrouss (amlal@nekernel.org) // Licensed under the Apache License, Version 2.0 (see LICENSE file) -// Official repository: https://github.com/ne-foss-org/ne_system +// Official repository: https://github.com/ne-foss-org/ne-system #include <libX11.fwrk/headers/Config.h> |
