Skip to content

Commit 2cdd993

Browse files
committed
Initial commit with extracted source from savannah oss libfam repo
0 parents  commit 2cdd993

File tree

8 files changed

+2068
-0
lines changed

8 files changed

+2068
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*~

README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# sgug-fam
2+
3+
A drop-in replacement for the IRIX libfam library that can be built with
4+
GNU C++ compilers - and so avoids a breaking dependency on MIPSPro C++
5+
libraries.
6+
7+
## Licensing
8+
9+
The sgug-fam library and source code come from the LGPL/GPL fam release made by SGI and available here:
10+
11+
https://cvs.savannah.nongnu.org/viewvc/fam/
12+
13+
## What/How to build
14+
15+
Normally you'll get this as part of the sgug-rse project, go check there.

meson.build

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
project('sgug-fam',
2+
'cpp', 'c',
3+
version : '0.1.0',
4+
default_options : ['buildtype=release'])
5+
6+
version = meson.project_version().split('.')
7+
install_major_version = version[0].to_int()
8+
install_minor_version = version[1].to_int()
9+
install_micro_version = version[2].to_int()
10+
11+
install_interface_age = 1
12+
install_binary_age = 10000 * install_major_version + 100 * install_minor_version + 10 + install_micro_version
13+
14+
#add_global_arguments('-D_SGI_SOURCE -D_SGI_MP_SOURCE -D_SGI_REENTRANT_FUNCTIONS', language : ['c','cpp'])
15+
add_global_arguments('-D_SGI_MP_SOURCE -D_SGI_REENTRANT_FUNCTIONS', language : ['c','cpp'])
16+
17+
install_prefix = get_option('prefix')
18+
install_libdir = join_paths(install_prefix, get_option('libdir'))
19+
20+
install_soversion = 0
21+
current = install_binary_age - install_interface_age
22+
install_libversion = '@0@.@1@.@2@'.format(install_soversion, current, install_interface_age)
23+
24+
pkgconfig = import('pkgconfig')
25+
26+
inc = include_directories('src')
27+
28+
cc=meson.get_compiler('c')
29+
cxx=meson.get_compiler('cpp')
30+
31+
lib_dependencies = [
32+
]
33+
34+
lib_sources = files(
35+
'src/btree.hpp',
36+
'src/client.cpp',
37+
'src/client.hpp',
38+
'src/fam.cpp',
39+
)
40+
41+
libfam = library('fam',
42+
sources: lib_sources,
43+
soversion: install_soversion,
44+
version: install_libversion,
45+
install: true,
46+
dependencies: lib_dependencies,
47+
)
48+
49+
pkgconfig.generate(libfam,
50+
name: 'SGUG Fam',
51+
description: 'SGUG File Alteration Monitoring',
52+
filebase: 'fam',
53+
)

src/COPYING

Lines changed: 504 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)