Skip to content

Commit

Permalink
Key Access database. This plugin works on both Windows and Linux. How…
Browse files Browse the repository at this point in the history
…ever, since I haven't been able to test it on Linux yet, I've placed it within the WIN32 branch in the CMake file. If anyone is willing to test it on Linux, please feel free to move it outside the branch.
  • Loading branch information
Peter-Jacob committed Dec 19, 2024
1 parent 39548c8 commit f47f6c3
Show file tree
Hide file tree
Showing 4 changed files with 1,069 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/plugins/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ endif()
add_subdirectory(cipher)
add_subdirectory(rxuuid)
if(WIN32)
add_subdirectory(keyaccess)
add_subdirectory(rxtcp)
add_subdirectory(llist)
endif()
34 changes: 34 additions & 0 deletions lib/plugins/keyaccess/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
cmake_minimum_required(VERSION 3.24)
project(keyaccess_plugin C)

set(CMAKE_C_STANDARD 90)

# Including RXPA Build System
include(${CMAKE_SOURCE_DIR}/rxpa/RXPluginFunction.cmake)

# Create dynamic plugin module
add_dynamic_plugin_target(_keyaccess keyaccess.c)

# Build Test Rexx
add_custom_command(
COMMAND ${CMAKE_BINARY_DIR}/compiler/rxc
-i \"${CMAKE_BINARY_DIR}/lib/rxfnsb\;${CMAKE_CURRENT_BINARY_DIR}\"
-o keyaccess_test \"${CMAKE_CURRENT_SOURCE_DIR}/keyaccess_test\" &&
${CMAKE_BINARY_DIR}/assembler/rxas keyaccess_test

DEPENDS rxas rxc library _keyaccess ${CMAKE_CURRENT_SOURCE_DIR}/keyaccess_test.rexx
OUTPUT keyaccess_test.rxbin
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
)
add_custom_target(keyaccess_test ALL
DEPENDS keyaccess_test.rxbin
)

# Enable testing functionality
enable_testing()

# Basic test to run keyaccess_test.rxbin with the keyaccess plugin
add_test(NAME keyaccess_test
COMMAND ${CMAKE_BINARY_DIR}/interpreter/rxvm keyaccess_test rx_keyaccess ${CMAKE_BINARY_DIR}/lib/rxfnsb/library
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
)
Loading

0 comments on commit f47f6c3

Please sign in to comment.