Skip to content

Commit

Permalink
Merge branch 'develop' of github.com:UiL-OTS-labs/psy-lib into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
maartenuni committed Dec 2, 2024
2 parents 48580ac + 6815e91 commit eea52c7
Show file tree
Hide file tree
Showing 24 changed files with 1,491 additions and 80 deletions.
12 changes: 10 additions & 2 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,9 @@ psy_deps = [
epoxy_dep,
gstreamer_dep,
gstreamer_app_dep,
cairo_dep,
pango_dep,
pangocairo_dep
]

# add optional dependencies
Expand Down Expand Up @@ -144,6 +147,12 @@ endif
# psy_deps += kernel32_dep
# endif

# to query WMI for hardware stuff on windows
wbemuuid_dep = cc.find_library('wbemuuid', static:true, required: false)
if wbemuuid_dep.found()
psy_deps += wbemuuid_dep
endif

message('the depencies are: ')
foreach dep : psy_deps
message(' - ', dep.name())
Expand All @@ -156,6 +165,7 @@ psy_deps += winmm_dep
psy_deps += kernel32_dep

gnome = import('gnome')
fs = import ('fs')

subdir('psy')
subdir('share')
Expand All @@ -181,5 +191,3 @@ endif
if get_option('documentation')
subdir('doc')
endif


5 changes: 5 additions & 0 deletions programs/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,8 @@ psy_enum_fonts = executable (
dependencies : [psy_dep]
)

psy_enum_parallel = executable (
'psy-enum-parallel',
files('psy-enum-parallel.c'),
dependencies : [psy_dep]
)
22 changes: 22 additions & 0 deletions programs/psy-enum-parallel.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@

#include "hw/psy-parallel-port.h"
#include <psylib.h>

int
main(void)
{
gint n = 0;
PsyParallelPortInfo **ports = NULL;

PsyParallelPort *port = psy_parallel_port_new();

psy_parallel_port_enumerate(port, &ports, &n);

for (int i = 0; i < n; i++) {
g_print("Port %d: %s\n",
psy_parallel_port_info_port_number(ports[i]),
psy_parallel_port_info_name(ports[i]));
}

psy_parallel_port_free(port);
}
Binary file added psy/hw/inpout32.dll
Binary file not shown.
Binary file added psy/hw/inpoutx64.dll
Binary file not shown.
6 changes: 6 additions & 0 deletions psy/hw/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,9 @@ if cdata.has('HAVE_LINUX_PARPORT_H') and cdata.has('HAVE_LINUX_PPDEV_H')
libpsyfiles += files('psy-parport.c')
libpsy_headers += files('psy-parport.h')
endif


if host_machine.system() in ['windows', 'cygwin']
libpsyfiles += files('psy-inpout-port.c')
libpsy_headers += files('psy-inpout-port.h')
endif
Loading

0 comments on commit eea52c7

Please sign in to comment.