Add build directives to most cpp files

master
Joca 2025-12-27 10:53:06 -03:00
parent 53173dd7c7
commit d9e6e808d8
Signed by: jocadbz
GPG Key ID: B1836DCE2F50BDF7
13 changed files with 40 additions and 5 deletions

View File

@ -1,3 +1,8 @@
// build-directive: unit-name(fossvg)
// build-directive: link(cli.so)
// build-directive: ldflags(-lglfw -lrt -lm -ldl)
// build-directive: out(fossvg)
// build-directive: static(false)
// Copyright 2022, FOSS-VG Developers and Contributers // Copyright 2022, FOSS-VG Developers and Contributers
// //
// Author(s): // Author(s):

View File

@ -1,3 +1,7 @@
// build-directive: unit-name(lib/cli)
// build-directive: out(lib/cli)
// build-directive: shared(true)
// build-directive: cflags(-fPIC -std=c++20)
// Copyright 2022, FOSS-VG Developers and Contributers // Copyright 2022, FOSS-VG Developers and Contributers
// //
// Author(s): // Author(s):

View File

@ -1,3 +1,7 @@
// build-directive: unit-name(lib/file)
// build-directive: out(lib/file)
// build-directive: shared(true)
// build-directive: cflags(-fPIC)
// Copyright 2022, FOSS-VG Developers and Contributers // Copyright 2022, FOSS-VG Developers and Contributers
// //
// Author(s): // Author(s):

View File

@ -0,0 +1 @@

View File

@ -0,0 +1 @@

View File

@ -18,7 +18,7 @@
#include <tinyutf8/tinyutf8.h> #include <tinyutf8/tinyutf8.h>
#include <string> #include <string>
#include "error.hpp" #include "error.hpp"
#include "../../.endianness" #include "endianness"
#ifdef FOSSVG_ENDIAN_BIG_WORD #ifdef FOSSVG_ENDIAN_BIG_WORD
#error "Honeywell-316-style endianness is not supported. If you feel like it should, feel free to participate in the project to maintain it." #error "Honeywell-316-style endianness is not supported. If you feel like it should, feel free to participate in the project to maintain it."

View File

@ -1,3 +1,7 @@
// build-directive: unit-name(lib/nbt)
// build-directive: out(lib/nbt)
// build-directive: shared(true)
// build-directive: cflags(-fPIC)
// Copyright 2022, FOSS-VG Developers and Contributers // Copyright 2022, FOSS-VG Developers and Contributers
// //
// This program is free software: you can redistribute it and/or modify it // This program is free software: you can redistribute it and/or modify it
@ -23,7 +27,7 @@
#include "javacompat.hpp" #include "javacompat.hpp"
#include "../../.endianness" #include "endianness"
#ifdef FOSSVG_ENDIAN_BIG_WORD #ifdef FOSSVG_ENDIAN_BIG_WORD
#error "Honeywell-316-style endianness is not supported. If you feel like it should, feel free to participate in the project to maintain it." #error "Honeywell-316-style endianness is not supported. If you feel like it should, feel free to participate in the project to maintain it."
#endif #endif

View File

@ -20,7 +20,7 @@
#include <string> #include <string>
#include "../error.hpp" #include "error.hpp"
namespace network { namespace network {
struct Connection { struct Connection {

View File

@ -1,3 +1,7 @@
// build-directive: unit-name(lib/net/tcp_client)
// build-directive: out(lib/net/tcp_client)
// build-directive: shared(true)
// build-directive: cflags(-fPIC)
// Copyright 2022, FOSS-VG Developers and Contributers // Copyright 2022, FOSS-VG Developers and Contributers
// //
// Author(s): // Author(s):

View File

@ -1,3 +1,7 @@
// build-directive: unit-name(lib/net/tcp_server)
// build-directive: out(lib/net/tcp_server)
// build-directive: shared(true)
// build-directive: cflags(-fPIC)
// Copyright 2022, FOSS-VG Developers and Contributers // Copyright 2022, FOSS-VG Developers and Contributers
// //
// Author(s): // Author(s):

View File

@ -1,3 +1,7 @@
// build-directive: unit-name(lib/region)
// build-directive: out(lib/region)
// build-directive: shared(true)
// build-directive: cflags(-fPIC)
// Copyright 2023, FOSS-VG Developers and Contributers // Copyright 2023, FOSS-VG Developers and Contributers
// //
// Author(s): // Author(s):

View File

@ -1,3 +1,7 @@
// build-directive: unit-name(lib/zlibutil)
// build-directive: out(lib/zlibutil)
// build-directive: shared(true)
// build-directive: cflags(-fPIC)
// Copyright 2022, FOSS-VG Developers and Contributers // Copyright 2022, FOSS-VG Developers and Contributers
// //
// Author(s): // Author(s):

View File

@ -31,8 +31,8 @@
#include <thread> #include <thread>
#include <vector> #include <vector>
#include "../lib/cli.hpp" #include "cli.hpp"
#include "../lib/error.hpp" #include "error.hpp"
#define EXIT_SUCCESS 0 #define EXIT_SUCCESS 0
#define EXIT_RUNTIME 1 #define EXIT_RUNTIME 1