Enhancement: Fixes #201, Packaging port for FreeBSD

This commit is contained in:
Rory Fewell
2024-02-10 01:42:34 +00:00
parent fdbf6ea456
commit b4089029a5
74 changed files with 435 additions and 150 deletions

View File

@@ -1,2 +1,4 @@
# Ignore dynamically generated source
assets.h
version.c
wintc-comgtk.h

View File

@@ -27,10 +27,13 @@ include(../../packaging/cmake-inc/packaging/CMakeLists.txt)
wintc_resolve_library(glib-2.0 GLIB)
wintc_resolve_library(gtk+-3.0 GTK3)
configure_file(public/wintc-comgtk.h.in ${PROJECT_ROOT}/public/wintc-comgtk.h @ONLY)
configure_file(src/assets.h.in ${PROJECT_ROOT}/src/assets.h @ONLY)
configure_file(src/version.c.in ${PROJECT_ROOT}/src/version.c @ONLY)
add_library(
libwintc-comgtk
src/assets.h
src/debug.h
src/defprocs.c
src/defprocs.h
@@ -74,6 +77,7 @@ target_compile_options(
target_include_directories(
libwintc-comgtk
SYSTEM
BEFORE
PRIVATE ${GLIB_INCLUDE_DIRS}
PRIVATE ${GTK3_INCLUDE_DIRS}
)

View File

@@ -4,6 +4,11 @@
#include <glib.h>
#include <gtk/gtk.h>
//
// Assets-related
//
#define WINTC_ASSETS_DIR "@CMAKE_INSTALL_PREFIX@/@WINTC_ASSETS_INSTALL_DIR@"
//
// Debugging
//
@@ -235,4 +240,5 @@ void wintc_focus_window(
GtkWindow* window
);
#endif
#endif

View File

@@ -0,0 +1,6 @@
#ifndef __ASSETS_H__
#define __ASSETS_H__
#define WINTC_ASSETS_DIR "@CMAKE_INSTALL_PREFIX@/@WINTC_ASSETS_INSTALL_DIR@"
#endif

View File

@@ -14,4 +14,5 @@
#define WINTC_LOG_DEBUG(...)
#endif
#endif
#endif

View File

@@ -93,4 +93,5 @@ void wintc_cclosure_marshal_INT__VOID(
v_return = callback(data1, data2);
g_value_set_int(return_value, v_return);
}
}

View File

@@ -25,4 +25,5 @@ void wintc_cclosure_marshal_INT__VOID(
gpointer marshal_data
);
#endif
#endif