commit 38cf5cde03519522c0b5c897bf0e0e746d7938b1 Author: NishiOwO Date: Fri Dec 19 00:58:00 2025 +0900 init diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..796b96d --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/build diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..a90b9ed --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "libfishsoup"] + path = libfishsoup + url = ../libfishsoup diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..d371ed5 --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,23 @@ +cmake_minimum_required(VERSION 3.11) +project(assaultfish) + +include(GNUInstallDirs) +set(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_FULL_LIBDIR}") +set(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE) + +add_subdirectory(libfishsoup) + +file(GLOB SERVER_SRC server/*.c) +file(GLOB CLIENT_SRC client/*.c) + +add_executable(af_server ${SERVER_SRC}) +add_executable(af_client ${CLIENT_SRC}) + +target_link_libraries(af_server PRIVATE fishsoup) + +target_link_libraries(af_client PRIVATE fishsoup) + +install( + TARGETS af_server af_client + DESTINATION ${CMAKE_INSTALL_BINDIR} +) diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..23d9ab2 --- /dev/null +++ b/LICENSE @@ -0,0 +1,24 @@ +Copyright (c) 2025, Fishsoup +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: +* Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. +* Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. +* Neither the name of the nor the names of its contributors + may be used to endorse or promote products derived from this software + without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL BE LIABLE FOR ANY +DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/libfishsoup b/libfishsoup new file mode 160000 index 0000000..a773cec --- /dev/null +++ b/libfishsoup @@ -0,0 +1 @@ +Subproject commit a773cec86038a6f294325a175f53527fb6403874