-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Key Access database. This plugin works on both Windows and Linux. How…
…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
1 parent
39548c8
commit f47f6c3
Showing
4 changed files
with
1,069 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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} | ||
) |
Oops, something went wrong.