Compare commits

..
342 Commits
Author SHA1 Message Date
Mamadou Babaei 21b2e3371e bump the plugin version to v1.4.3 2023-06-01 23:30:53 +02:00
Mamadou Babaei 9eb818e867 update the changelog 2023-06-01 23:30:53 +02:00
Mamadou Babaei fee9657be4 fix a critical Android crash that happens where the default development hand meshes are not found 2023-06-01 23:30:52 +02:00
Mamadou Babaei c276a6ef40 add a complementary internal method to IsUsingUserMesh, IsUsingDefaultMesh for checking various hand meshes 2023-06-01 23:30:52 +02:00
Mamadou Babaei 698653c786 fix the changelog release formatting and drop the v prefix in the release titles 2023-06-01 23:30:51 +02:00
Mamadou Babaei 4688c0690c bump the plugin version to v1.4.2 2023-06-01 21:46:06 +02:00
Mamadou Babaei ca07b6c6a9 update the changelog 2023-06-01 21:46:06 +02:00
Mamadou Babaei f1d0d77a13 fix the changelog typos and errors 2023-06-01 21:46:05 +02:00
Mamadou Babaei 3fd2421446 minor grammatical fix 2023-06-01 21:46:05 +02:00
Mamadou Babaei 738e1af1f9 update the changelog with unreleased changes 2023-06-01 21:46:04 +02:00
Mamadou Babaei d7c835ce79 fix an edit condition parsing failure that caused a bug in the settings
system where the virtual hand and the wrist tracker debug gizmos where
always drawn, regardless of chosen settings
2023-06-01 21:46:04 +02:00
Mamadou Babaei a245094c81 fix error C2440: 'initializing': cannot convert from 'void' to 'bool' when engine versio is < 5.2 2023-06-01 21:46:04 +02:00
Mamadou Babaei dc1c3c7f7f fix typos in the changelog 2023-06-01 21:46:03 +02:00
Mamadou Babaei 1e78c68f1f fix a typo in the changelog 2023-06-01 21:46:03 +02:00
Mamadou Babaei 943f8c59b3 fix the changelog 2023-06-01 21:46:02 +02:00
Mamadou Babaei 4e9c141282 fix a typo in the changelog 2023-06-01 21:46:02 +02:00
Mamadou Babaei 4b1caccd10 minor fix in the changelog 2023-06-01 21:46:01 +02:00
Mamadou Babaei 1cc4dab31f bump the plugin version v1.4.1 2023-05-29 02:09:44 +02:00
Mamadou Babaei 76e39c26b6 log unreleased changes 2023-05-29 02:09:43 +02:00
Mamadou Babaei 66b8c5e254 remove dead gradle code from the android module 2023-05-29 02:09:43 +02:00
Mamadou Babaei d1583f97fe supress a grade warning for non-arm64 archs when the build target is android 2023-05-29 02:09:42 +02:00
Mamadou Babaei 5d2abd62b9 bump the plugin version to v1.4.0 2023-05-19 19:02:10 +02:00
Mamadou Babaei a66185061f supress the build warning for ue 4.27 complaining about unknown target platform linux arm64 2023-05-19 18:44:30 +02:00
Mamadou Babaei 6fb1ccaee5 fix linux aarch64 build issues on ue 5.0 2023-05-19 18:36:15 +02:00
Mamadou Babaei c491c79e27 remove SenseGloveCoreTypes from the directory structure 2023-05-19 18:36:15 +02:00
Mamadou Babaei 55e9a67592 implement an optional feature in order to automatically stop all haptics on the end play event 2023-05-19 18:12:14 +02:00
Mamadou Babaei 9519d5e49b temporarily disable the debug gizmo for the virtual hand and the wrist tracker due to an esoteric bug in the settings system 2023-05-19 18:12:14 +02:00
Mamadou Babaei eaa5fbb1df remove commented code 2023-05-19 18:12:13 +02:00
Mamadou Babaei 50a0a81a0b increase the default finger tips collider sizes 2023-05-19 18:12:13 +02:00
Mamadou Babaei 818f926137 get root component instead of iterating over the components in order to disable/enable the actor physics 2023-05-19 18:12:12 +02:00
Mamadou Babaei 4453c2b61f fix a potential crash 2023-05-19 18:12:12 +02:00
Mamadou Babaei fc9a1fc0d7 stop all haptics on end play in order to make sure the glove won't get stuck in haptics feedbacks 2023-05-19 18:12:11 +02:00
Mamadou Babaei 955e5fee9b set the default attachment rotation rule to keep relative 2023-05-19 18:12:11 +02:00
Mamadou Babaei b33125dbbd set the default attachment scale rule to snap to target 2023-05-19 18:12:11 +02:00
Mamadou Babaei 8976e4c04d do not affect collision when grab/release 2023-05-19 18:12:10 +02:00
Mamadou Babaei fb7f42ed09 refactor and remove the need to cache the component in the grab/release workflow 2023-05-19 18:12:10 +02:00
Mamadou Babaei 93f24493d6 refactor the grab/touch logic and data structure and also cache the component ready to be grabbed in order to affect its physics state 2023-05-19 18:12:09 +02:00
Mamadou Babaei 0ac79a81a1 try an alternative approach for the grab/release functionality by disabling/enabling physics simulation 2023-05-19 18:12:09 +02:00
Mamadou Babaei 1363e292cc add grab sucess/fail checks with error messages 2023-05-19 18:12:08 +02:00
Mamadou Babaei 2fbfbd3067 add ensure checks on the grab socket name 2023-05-19 18:12:08 +02:00
Mamadou Babaei 02a88d2977 move socket name to a temp var for easier debugging 2023-05-19 18:12:08 +02:00
Mamadou Babaei 8f50017365 move attachment rules to a temp var for easier debugging 2023-05-19 18:12:07 +02:00
Mamadou Babaei b03d8970ab fix a release-detection logic error 2023-05-19 18:12:07 +02:00
Mamadou Babaei 4cc2f8a110 clean up and simplify the touch callback lambda 2023-05-19 18:12:06 +02:00
Mamadou Babaei 98db0e32a5 update the changelog 2023-05-19 18:12:06 +02:00
Mamadou Babaei 1159fc845a force off haptic commands when collision ends 2023-05-19 18:12:05 +02:00
Mamadou Babaei 3185d7a6f2 only send force-feedback and buzz commands when they are not zero 2023-05-19 18:12:05 +02:00
Mamadou Babaei de19604e19 update the platform support matrix with the distribution channels and their remarks 2023-05-19 18:12:05 +02:00
Mamadou Babaei 5fb888346f add a note about abi/api breaking changes 2023-05-19 18:12:04 +02:00
Mamadou Babaei 349b25988c bump senseglove binaries for windows to v2.7.1-965f90c 2023-05-19 18:12:03 +02:00
Mamadou Babaei dd7d9e044d removed the redundant SenseGloveCoreTypes module which causes all kinds of packaging issues with certain versions of the engine. 2023-05-19 18:12:03 +02:00
Mamadou Babaei 7c07a1e709 try to fix various build issues with the senseglove core types module 2023-05-19 18:12:02 +02:00
Mamadou Babaei b11a169b64 fix linux aarch64 build issues and for older unreal engine versions 2023-05-19 18:12:02 +02:00
Mamadou Babaei 4eb69ea798 whitelist all modules for linuxarm64 target platform 2023-05-19 18:12:01 +02:00
Mamadou Babaei 8896d77b32 fix linux aarch64 build issues and for ue 4.27 up to 5.2 2023-05-19 18:12:01 +02:00
Mamadou Babaei 8f9724b726 fix a build error where engine versions are < 5.2 2023-05-19 18:12:00 +02:00
Mamadou Babaei 56131693f0 add linux aarch64 platform support for unreal 5.2+ and bump senseglove libraries to v2.7.1-965f90c 2023-05-19 18:11:59 +02:00
Mamadou Babaei 22af36b9ad fix a circular dependency build issue 2023-05-19 18:11:58 +02:00
Mamadou Babaei 472c014a5e add a missing dependency that causes packaging issues 2023-05-19 18:11:58 +02:00
Mamadou Babaei d6b821903a capture by reference in the buzz timer callback lambda or otherwise crash 2023-05-19 18:11:57 +02:00
Mamadou Babaei 26f9305364 fix a crash due to uninitialized pimpl object 2023-05-19 18:11:57 +02:00
Mamadou Babaei b2a09ca7b8 fix lambda crashes and ensure logic bugs 2023-05-19 18:11:56 +02:00
Mamadou Babaei 77092ce04c complete the implementation for the touch functionality and its feedbacks 2023-05-19 18:11:56 +02:00
Mamadou Babaei b93ca620b5 add the initial implementation for the touch functionality and its feedbacks 2023-05-19 18:11:55 +02:00
Mamadou Babaei 732894fbe2 expose the connected glove in the virtual hand's api 2023-05-19 18:11:55 +02:00
Mamadou Babaei 2ddfaecc0d add static get component methods for quickly accessing grab/touch components 2023-05-19 18:11:55 +02:00
Mamadou Babaei 912b9e0d39 remove the variable names from the grab/touch signatures 2023-05-19 18:11:54 +02:00
Mamadou Babaei ddb368440c add the grab/touch state update events 2023-05-19 18:11:54 +02:00
Mamadou Babaei 579cf55dc4 update the changelog 2023-05-19 18:11:53 +02:00
Mamadou Babaei ccd2ac2ad9 fix a crash by removing wrong delegate binds 2023-05-19 18:11:53 +02:00
Mamadou Babaei 897394fbf2 add a buzz timeout uproperty 2023-05-19 18:11:52 +02:00
Mamadou Babaei 0849a64a55 merge all properties inside the grab component into one group 2023-05-19 18:11:52 +02:00
Mamadou Babaei aca8c4c534 simplify and merge separate buzz/force-feedback levels into one value on the touch component 2023-05-19 18:11:52 +02:00
Mamadou Babaei 90b5a886df Revert "move force-feedback properties from the touch component to the grab component"
This reverts commit 9faa9d2ca4.
2023-05-19 18:11:51 +02:00
Mamadou Babaei 1e0501966f move force-feedback properties from the touch component to the grab component 2023-05-19 18:11:51 +02:00
Mamadou Babaei 18ec23251c cache which finger can grab or touch objects 2023-05-19 18:11:50 +02:00
Mamadou Babaei c9ef501868 set up the overlap events for the grab/touch fingertip colliders 2023-05-19 18:11:50 +02:00
Mamadou Babaei 4dad555486 add the api for getting/setting touch properties 2023-05-19 18:11:49 +02:00
Mamadou Babaei 7a83ad5877 add the api for getting/setting grab properties 2023-05-19 18:11:49 +02:00
Mamadou Babaei 708d35fd59 add a grab socket uproperty, getters, and setters 2023-05-19 18:11:49 +02:00
Mamadou Babaei d6e53d45bd whitespace fix 2023-05-19 18:11:48 +02:00
Mamadou Babaei a4176fbca7 differentiate the default grab/touch socket names 2023-05-19 18:11:48 +02:00
Mamadou Babaei ea29e1020e integrate the touch component and colliders and rename the grab ones 2023-05-19 18:11:47 +02:00
Mamadou Babaei 5a697e567e add a touch component intended to be used for force-feedback 2023-05-19 18:11:47 +02:00
Mamadou Babaei 9a40ee4fcd add the api and setup the required components and uproperties in order to implement the basic grab functionality 2023-05-19 18:11:46 +02:00
Mamadou Babaei 8e945ecb2a document the unreleased changes 2023-05-19 18:11:46 +02:00
Mamadou Babaei c43efc6f59 fix blueprint signatures and make all bp exposed functions static 2023-05-19 18:11:46 +02:00
Mamadou Babaei 031abc5845 formatting fix 2023-05-19 18:11:45 +02:00
Mamadou Babaei 1980a8da54 document a missing changelog item 2023-05-19 18:11:45 +02:00
Mamadou Babaei b2cd582813 Revert "temporarily revert changes that are not part of the v1.3.1 release"
This reverts commit 116935f54b.
2023-05-19 18:11:44 +02:00
Mamadou Babaei 5e787278dd bump the plugin version to v1.3.1 2023-04-28 02:13:19 +02:00
Mamadou Babaei 66efa0b0de temporarily revert changes that are not part of the v1.3.1 release 2023-04-28 02:13:19 +02:00
Mamadou Babaei 43c41dbdcb fix runuat rocket build issues by adding the missing headers 2023-04-28 02:13:19 +02:00
Mamadou Babaei 4000682362 document the senseglove debug module 2023-04-28 02:13:18 +02:00
Mamadou Babaei 89d1288ec2 document unreleased changes 2023-04-28 02:13:18 +02:00
Mamadou Babaei 0a505e3211 Revert "temporarily revert changes that are not part of the v1.3.0 release"
This reverts commit 6a0f2a00a1.
2023-04-28 02:13:17 +02:00
Mamadou Babaei 9dd6b8c096 bump the plugin version to v1.3.0 2023-04-28 01:21:22 +02:00
Mamadou Babaei 14c026e1ff temporarily revert changes that are not part of the v1.3.0 release 2023-04-28 01:21:22 +02:00
Mamadou Babaei 3adbe0f0ee bump senseglove libraries for linux and android to v2.6.0-aac3d56 2023-04-28 01:21:21 +02:00
Mamadou Babaei fb3704f25d bump the senseglove libraries for windows/msvc to v2.6.0-aac3d56 2023-04-28 01:21:20 +02:00
Mamadou Babaei 8e63d9987e document recent changes 2023-04-28 01:21:20 +02:00
Mamadou Babaei 1edd20004c document the senseglove libraries bump in the changelog 2023-04-28 01:21:20 +02:00
Mamadou Babaei 71b0334a60 adjust senseglove/unreal coordinate system conversions according to changes in the recent sgcore release 2023-04-28 01:21:20 +02:00
Mamadou Babaei 2014f3a035 fix a gramatical error 2023-04-28 01:21:20 +02:00
Mamadou Babaei 42e210af45 add a debug virtual hand and some other fixes 2023-04-28 01:21:20 +02:00
Mamadou Babaei 7b233c6476 fix the hand right hand offset 2023-04-28 01:21:20 +02:00
Mamadou Babaei 93f4f47afe remove redundant headers 2023-04-28 01:21:20 +02:00
Mamadou Babaei 52fc61df7f fix debug gizmo default colors 2023-04-28 01:21:20 +02:00
Mamadou Babaei d027f8564b refactor the debug gizmo draw method 2023-04-28 01:21:20 +02:00
Mamadou Babaei 61e2f6a6ba update the changelog with unreleased changes 2023-04-28 01:21:20 +02:00
Mamadou Babaei 6e49d38907 refactor the wrist tracker's debug gzmo settings into a ustruct in order to be re-used 2023-04-28 01:21:20 +02:00
Mamadou Babaei 890378a0df fix gizmo drawing issue happens due to a null world object 2023-04-28 01:21:20 +02:00
Mamadou Babaei fb2503a8db add a new generic senseglove debug module 2023-04-28 01:21:20 +02:00
Mamadou Babaei 5b1dd49da2 add the base implementation for the senseglove grab component 2023-04-28 01:21:20 +02:00
Mamadou Babaei 3c49dcf658 increase the default DebugWristTrackerGizmoLength value in the plugin's settings 2023-04-28 01:21:20 +02:00
Mamadou Babaei 2d2cef372d increase the default DebugWristTrackerGizmoLength value on the wrist tracker 2023-04-28 01:21:20 +02:00
Mamadou Babaei 56afd24b4b document unreleased changes 2023-04-28 01:21:19 +02:00
Mamadou Babaei a2465e017b fix the wrong hand offset calculations 2023-04-28 01:21:19 +02:00
Mamadou Babaei cfef8fa303 fix the wrong tracker origin calculations 2023-04-28 01:21:19 +02:00
Mamadou Babaei e788117eaf fix the platform support matrix for unreal versions >= 5.0 2023-04-20 15:55:58 +02:00
Mamadou Babaei c020ee8e30 minor code improvements and clean up 2023-04-20 15:55:57 +02:00
Mamadou Babaei b5ecede76f fix the directory structure 2023-04-11 21:06:00 +02:00
Mamadou Babaei cca67f9967 remove the development virtual hand mesh from master and all the release branches 2023-04-11 20:58:58 +02:00
Mamadou Babaei 18ce1d32ac bump the plugin version to v1.2.1 2023-03-30 06:43:21 +02:00
Mamadou Babaei 8d868c4b4c add the engine settings module into the private include paths for the senseglove settings module in order to solve run uat build issues 2023-03-30 06:22:48 +02:00
Mamadou Babaei 6102133433 remove the engine settings module from the senseglove module's private dependencies list 2023-03-30 06:15:57 +02:00
Mamadou Babaei 70a674b51c remove the launch and settings from the android module's private includes 2023-03-30 06:07:49 +02:00
Mamadou Babaei b33a0c3a04 bump the plugin version to v1.2.0 2023-03-28 21:39:34 +02:00
Mamadou Babaei 16abee7e30 add the new dev/test hand model (this hand mesh is not meant to be published) 2023-03-28 18:29:06 +02:00
Mamadou Babaei e978383a7c alternative approach to constructor helpers in order to set the default hand mesh as it won't causes annoying ue pop-up cdo messages 2023-03-28 18:29:06 +02:00
Mamadou Babaei ace4d935bc remove the old virtual hand model mesh 2023-03-28 18:29:06 +02:00
Mamadou Babaei d8ce1e41cf fix the hand animation implementation and angle conversions to work with the standard ue5.1+ hand from epic 2023-03-28 18:29:05 +02:00
Mamadou Babaei 139d2ede99 add missing paths headers that causes uat build issues 2023-03-28 11:48:35 +02:00
Mamadou Babaei 1d74105bd3 add missing vershon headers and clean up unused headers 2023-03-28 11:48:34 +02:00
Mamadou Babaei badd49612e fix uat errors C4458 when building the virtual hand component 2023-03-28 11:23:10 +02:00
Mamadou Babaei ed91c07786 remove SGContentBrowserExtension_SKeleton and clean up the editor module 2023-03-28 10:37:57 +02:00
Mamadou Babaei 45dcf00bfa remove SGAssetTypeActions_Skeleton, SGSkeletonEditor, and SGSkeletonEditorCommands classes 2023-03-28 10:37:57 +02:00
Mamadou Babaei bbc737100d add a content browser extension as an alternative to modify the ref pose 2023-03-28 10:37:57 +02:00
Mamadou Babaei 8bcdbabc8b add log template specialization for ftransform 2023-03-28 10:37:57 +02:00
Mamadou Babaei ade21e02e5 add new experiments with the SGAssetTypeActions_Skeleton 2023-03-28 10:37:57 +02:00
Mamadou Babaei 6405fb2345 add custom asset type actions for skeletons 2023-03-28 10:37:57 +02:00
Mamadou Babaei 3605b5e029 add a message dialog and instruct the user to use the context menu in order to save the skeleton asset 2023-03-28 10:37:57 +02:00
Mamadou Babaei 8aeda537ab fix a deprecation warning on ue5 2023-03-28 10:37:57 +02:00
Mamadou Babaei e977af1fd5 minor changelog fix 2023-03-28 10:37:56 +02:00
Mamadou Babaei 5823c41576 document the android calibration in the changelog 2023-03-28 10:37:56 +02:00
Mamadou Babaei da09d43307 add virtual destructors 2023-03-28 10:37:56 +02:00
Mamadou Babaei 456a270bed fix the skeleton editor crash with a working button from senseglove on the toolbar 2023-03-28 10:37:56 +02:00
Mamadou Babaei 9c27b51df4 first attemp at extending the skeleton editor that also crashes the editor once opened 2023-03-28 10:37:56 +02:00
Mamadou Babaei 330a158f64 add missing header that causes build issues on ue 4.27 2023-03-28 10:37:56 +02:00
Mamadou Babaei 29fdcc51c7 update the changelog 2023-03-28 10:37:56 +02:00
Mamadou Babaei fe58b440a9 clean up editor code from the virtual hand actor in order to fix wrist tracking issues 2023-03-28 10:37:56 +02:00
Mamadou Babaei d962804a49 force the wrist tracker to track the right hand on init/begin/construct 2023-03-28 10:37:56 +02:00
Mamadou Babaei 1340bc875c add event handler lambdas for wrist tracker component of the virtual ahnd actor 2023-03-28 10:37:56 +02:00
Mamadou Babaei ef8d77043f functional wrist tracker component 2023-03-28 10:37:56 +02:00
Mamadou Babaei 9ea59a4197 add an almost complete wrist tracker component implementation 2023-03-28 10:37:56 +02:00
Mamadou Babaei 75185406da fix multiple issues with the virtual hand component and the plugin settings 2023-03-28 10:37:56 +02:00
Mamadou Babaei e85488c217 explicitly assign motion controllers to the proper hands 2023-03-28 10:37:56 +02:00
Mamadou Babaei a5c441230a bump senseglove libraries windows/msvc to v2.5.0-8069342 2023-03-28 10:37:56 +02:00
Mamadou Babaei c0dc9e4183 bump senseglove libraries and headers for linux and android to v2.5.0-8069342 2023-03-28 10:37:54 +02:00
Mamadou Babaei 56f26a3532 add new settings accessors for c++ and blueprints 2023-03-28 10:37:54 +02:00
Mamadou Babaei 2882b577e2 add wrist tracking debug settings 2023-03-28 10:37:54 +02:00
Mamadou Babaei bcb84edf59 allow setting custom hardware offset through the plugin settings 2023-03-28 10:37:53 +02:00
Mamadou Babaei 672c63b51f add missing engine module that causes build issues on android 2023-03-28 10:37:53 +02:00
Mamadou Babaei 02f27b7ac0 move the pimpl initialization to the constructor 2023-03-28 10:37:53 +02:00
Mamadou Babaei 6c2ff82176 move the defaults to the constructor 2023-03-28 10:37:53 +02:00
Mamadou Babaei 7634328e44 make the senseglove settings a singleton with engine subsystem lifetime and fix the blueprint accessors 2023-03-28 10:37:53 +02:00
Mamadou Babaei 12daff0a1b add the senseglove settings kismet module 2023-03-28 10:37:53 +02:00
Mamadou Babaei 18159ec740 some improvements for the settings module 2023-03-28 10:37:53 +02:00
Mamadou Babaei ba459504e0 minor fixes in the settings module 2023-03-28 10:37:53 +02:00
Mamadou Babaei 15b1389fad add a senseglove settings manager module 2023-03-28 10:37:53 +02:00
Mamadou Babaei bb41b195e2 fix the changelog typos and errors 2023-03-28 10:37:53 +02:00
Mamadou Babaei 528b97390b whitespace fix 2023-03-28 10:37:53 +02:00
Mamadou Babaei db38deff27 add special android directory methods and initialization args 2023-03-28 10:37:52 +02:00
Mamadou Babaei c665b65512 initial attempt at implementing android calibration 2023-03-28 10:37:52 +02:00
Mamadou Babaei 1f957a056b bump senseglove libraries and headers for linux and android to v2.4.3-2eceacb 2023-03-28 10:37:52 +02:00
Mamadou Babaei 3c34c5c493 virtual hand fixes especially for android 2023-03-28 10:37:51 +02:00
Mamadou Babaei 1266ca5feb fix virtual hand crashes and editor visibility issues 2023-03-28 10:37:51 +02:00
Mamadou Babaei 244d2d91fe fix comments 2023-03-28 10:37:51 +02:00
Mamadou Babaei f000901b35 fix android architecture detection issues on ue 5.2 2023-03-28 10:37:51 +02:00
Mamadou Babaei ad4b527847 add a temporary workaround for the android crashes and the hidden if glove not found functionality 2023-03-28 10:37:51 +02:00
Mamadou Babaei ebb0b02805 fix native-toolchain v19 build issues 2023-03-28 10:37:51 +02:00
Mamadou Babaei 8912292f59 integrate the virtual hand into the sgpawn 2023-03-28 10:37:51 +02:00
Mamadou Babaei 72f9b35a71 clarify android on 5.2 is not supported, yet 2023-03-28 10:37:51 +02:00
Mamadou Babaei 9ea132a98a minor fixes 2023-03-28 10:37:51 +02:00
Mamadou Babaei 611ea0438a update the changelog in order to reflect the latest status of unreleased changes 2023-03-28 10:37:51 +02:00
Mamadou Babaei 5f95972a05 dump some animation errors to the logs inside the editor instead of crashing 2023-03-28 10:37:51 +02:00
Mamadou Babaei 685a200577 working in-editor hand animation 2023-03-28 10:37:51 +02:00
Mamadou Babaei e0dd8d2ff0 distinguish between virtual hand actor and component and animate the component 2023-03-28 10:37:50 +02:00
Mamadou Babaei 8ad01e0be9 add a new component-based class for the virtual hand 2023-03-28 10:37:50 +02:00
Mamadou Babaei bed2280b1d add an empty sgpawn kismet library class 2023-03-28 10:37:50 +02:00
Mamadou Babaei ac5da45507 document the new senseglove core types module 2023-03-28 10:37:50 +02:00
Mamadou Babaei 769e59cd05 add the virtual hand kismet library 2023-03-28 10:37:50 +02:00
Mamadou Babaei 88211f903d minor commit fix 2023-03-28 10:37:50 +02:00
Mamadou Babaei c11f654996 drop the redundant sgconnecttypes 2023-03-28 10:37:50 +02:00
Mamadou Babaei dd4e1d8a00 move all sg array types into their corresponding *core modules 2023-03-28 10:37:50 +02:00
Mamadou Babaei 73aee75b9b minor api validation fixes 2023-03-28 10:37:50 +02:00
Mamadou Babaei 8659e75e1e minor fix 2023-03-28 10:37:50 +02:00
Mamadou Babaei ba8e67865e bump senseglove libraries windows to v2.4.2-ba98cec 2023-03-28 10:37:50 +02:00
Mamadou Babaei d1b777336c bump senseglove libraries and headers for linux and android to v2.4.2-ba98cec 2023-03-28 10:37:49 +02:00
Mamadou Babaei 3edc108c89 remove the redundant sgplatform from the sgconnectimpl module 2023-03-28 10:37:48 +02:00
Mamadou Babaei cad7acb96c purge the core impl module's dead code for the dropped engine versions: 4.22 to 4.26 and define SG_NOEXCEPT 2023-03-28 10:37:48 +02:00
Mamadou Babaei 67b7f689df document 4.22 to 4.26 purge in the changelog 2023-03-28 10:37:48 +02:00
Mamadou Babaei 95e25aca4a initial attempt to cleanup dead code from the dropped engine versions: 4.22 to 4.26 2023-03-28 10:37:48 +02:00
Mamadou Babaei 0cecc3b1cb update the remarks section in readme file to reflect the latest platform support state 2023-03-28 10:37:48 +02:00
Mamadou Babaei 1b171ae653 update the changelog for unreleased changes 2023-03-28 10:37:48 +02:00
Mamadou Babaei ed0949224c update the platform support matrix 2023-03-28 10:37:48 +02:00
Mamadou Babaei 602f81f418 whitespace fix 2023-03-28 10:37:48 +02:00
Mamadou Babaei 3d3f6a6211 update the changelog for unreleased changes 2023-03-28 10:37:48 +02:00
Mamadou Babaei aaad9d1da2 update unreal api to take care of radians/degrees conversions where possible 2023-03-28 10:37:48 +02:00
Mamadou Babaei e87f343e32 add more utility functions and templates for angles, specifically for handling floats 2023-03-28 10:37:48 +02:00
Mamadou Babaei ca0956d81b almost working hand mondel animation adjusted to the api changes 2023-03-28 10:37:48 +02:00
Mamadou Babaei 9e36e66c9b rename sguitls/sgcoordinates utility class to sgangles and convert angles from radians to degrees and vice-versa between unreal and senseglove 2023-03-28 10:37:48 +02:00
Mamadou Babaei 368f12482a minor initialization fixes 2023-03-28 10:37:47 +02:00
Mamadou Babaei 7ceb338990 minor fix: move temp a variable 2023-03-28 10:37:47 +02:00
Mamadou Babaei c47b2a9d32 mark a method as const 2023-03-28 10:37:47 +02:00
Mamadou Babaei 1039990fb1 clean up redundant hand animation code 2023-03-28 10:37:47 +02:00
Mamadou Babaei 5d45dbe9d9 remove redundant reset to ref pose call 2023-03-28 10:37:47 +02:00
Mamadou Babaei e2d154a01c use rotators instead of quats 2023-03-28 10:37:47 +02:00
Mamadou Babaei 5b0581277d improve the virtual hand model animation 2023-03-28 10:37:47 +02:00
Mamadou Babaei 656ef3c719 rely on the reference pose instead of caching poses 2023-03-28 10:37:47 +02:00
Mamadou Babaei 00d09c1fd1 improved virtual hand model animation 2023-03-28 10:37:47 +02:00
Mamadou Babaei fecf0606a4 bump senseglove libraries for windows/msvc to v2.4.1-d551398 2023-03-28 10:37:46 +02:00
Mamadou Babaei 209c7cce41 mention functional linux development support in the changelog 2023-03-28 10:37:46 +02:00
Mamadou Babaei 4c7afbc72c bump senseglove libraries and headers for linux and android to v2.4.1-d551398 2023-03-28 10:37:45 +02:00
Mamadou Babaei 09d8ea15f8 bump senseglove libraries for windows/msvc to v2.4.0-dc6c34b 2023-03-28 10:37:44 +02:00
Mamadou Babaei f7b6d4142a bump senseglove libraries and headers for linux and android to v2.4.0-dc6c34b 2023-03-28 10:37:43 +02:00
Mamadou Babaei 108cdf44f0 bump senseglove libraries for windows/msvc to v2.3.0-a9726bf 2023-03-28 10:37:43 +02:00
Mamadou Babaei 193d75f010 bump senseglove libraries for linux and android to the first fully linux-aware version: v2.3.0-a9726bf 2023-03-28 10:37:41 +02:00
Mamadou Babaei 186fd4238f apply the transform to the output pose 2023-03-28 10:37:41 +02:00
Mamadou Babaei d9df793987 try a component transform 2023-03-28 10:37:41 +02:00
Mamadou Babaei 3d6238cf94 add quat template specialization to the sglog module 2023-03-28 10:37:41 +02:00
Mamadou Babaei 685f2c4fea fix the EvaluateSkeletalControl_AnyThread crash 2023-03-28 10:37:41 +02:00
Mamadou Babaei 5357ae21cf revert back the last commit and ignore the last joint 2023-03-28 10:37:41 +02:00
Mamadou Babaei 1c9bf84d33 try an alternate implementation for copying animation data in order to remedy the virtual hand crash 2023-03-28 10:37:41 +02:00
Mamadou Babaei 5d585c27ec bump senseglove thrid-party libraries for windows to v2.2.4-1eda0d8 2023-03-28 10:37:41 +02:00
Mamadou Babaei 2d1cb0bb8f bump senseglove libraries for linux and android to v2.2.4-1eda0d8 2023-03-28 10:37:39 +02:00
Mamadou Babaei 3b8be231aa bump senseglove headers and libraries for linux and android to v2.2.3-39b3c2b 2023-03-28 10:37:39 +02:00
Mamadou Babaei f84a744110 bump senseglove thrid-party libraries for windows to v2.2.3-39b3c2b 2023-03-28 10:37:38 +02:00
Mamadou Babaei 06cb6a1f8f bump senseglove headers and libraries for linux and android to v2.2.2-1725b91 2023-03-28 10:37:38 +02:00
Mamadou Babaei 9f3054ddc0 bump senseglove thrid-party libraries for windows to v2.2.2-1725b91 2023-03-28 10:37:37 +02:00
Mamadou Babaei f75863fedc add the msvc141 third-party directory to the directory tree 2023-03-28 10:37:36 +02:00
Mamadou Babaei f72c595371 add the android module to the directory tree 2023-03-28 10:37:36 +02:00
Mamadou Babaei 9ebc24ebdd document the directory structure changes 2023-03-28 10:37:36 +02:00
Mamadou Babaei f7701cfd92 bump windows/msvc binaries to v2.2.1-ca2f23d 2023-03-28 10:37:36 +02:00
Mamadou Babaei c26f200aa5 update senseglove libraries to v2.2.1-ca2f23d with per engine segregated android ndk support 2023-03-28 10:37:35 +02:00
Mamadou Babaei 25b658657c updated documentation for the directory structure 2023-03-28 10:37:35 +02:00
Mamadou Babaei 578bbb29a5 remove redundant Source/ThirdParty/lib/oculus directories 2023-03-28 10:37:35 +02:00
Mamadou Babaei 5e7b127324 updated documentation for the directory structure 2023-03-28 10:37:35 +02:00
Mamadou Babaei f31cfc6a34 update the platform support matrix 2023-03-28 10:37:34 +02:00
Mamadou Babaei caf92df577 bump senseglove headers and libraries for windows/msvc to v2.2.0-eed9611 2023-03-28 10:37:34 +02:00
Mamadou Babaei cc6679a38c log the unreleased changes 2023-03-28 10:37:34 +02:00
Mamadou Babaei 3a8edb6190 bump senseglove headers and libraries for linux and android to v2.2.0-eed9611 2023-03-28 10:37:33 +02:00
Mamadou Babaei a5fcd2e567 remove archaic pre-public-release dead code 2023-03-28 10:37:33 +02:00
Mamadou Babaei 2f2aafea65 virtual hand implementation with a crash from calling EvaluateSkeletalControl_AnyThread 2023-03-28 10:37:33 +02:00
Mamadou Babaei e951d0c426 fix impl owners 2023-03-28 10:37:33 +02:00
Mamadou Babaei d4e0b22839 add partion implementation of the virtual hand 2023-03-28 10:37:33 +02:00
Mamadou Babaei e54287ed7e fix vr hand asset issues 2023-03-28 10:37:33 +02:00
Mamadou Babaei 46ea6266a5 add senseglove module base classes 2023-03-28 10:37:33 +02:00
Mamadou Babaei 68f853abad add the virtual hand assets 2023-03-28 10:37:33 +02:00
Mamadou Babaei 3d3fcd2881 punctuation fix 2023-03-28 10:37:33 +02:00
Mamadou Babaei 2319052306 bump the plugin version to v1.1.1 2023-02-07 12:11:35 +01:00
Mamadou Babaei b8aeea558c move launch and settings module to PrivateIncludePathModuleNames from PrivateDependencyModuleNames in order to pass runuat tests 2023-02-07 11:39:01 +01:00
Mamadou Babaei 4680aedd24 Bump SenseGlove libraries for Windows/MSVC to v2.1.2-95ec6e7 2023-02-07 10:58:09 +01:00
Mamadou Babaei fbe7236b75 fix formatting 2023-02-07 10:58:09 +01:00
Mamadou Babaei 61ce2cfc7c add support for android armeabi-v7a with neon, x86-64, and x86 builds in addition to arm64-v8a 2023-02-07 10:58:09 +01:00
Mamadou Babaei ca3594026b bump senseglove libraries for linux to v2.1.2-95ec6e7 2023-02-07 10:58:08 +01:00
Mamadou Babaei d39320e00c update the changelog with initiali support for ue5.2 2023-02-07 10:58:08 +01:00
Mamadou Babaei d792a57291 add initial ue5.2 support to the build system along with linux third-party libraries 2023-02-07 10:58:08 +01:00
Mamadou Babaei 9ed5cbbbd8 fix gitignore rules for the Source/ThirdParty directory 2023-02-07 10:58:08 +01:00
Mamadou Babaei 1545878a9d bump senseglove libraries for windows/msvc to v2.1.1-0569c74 2023-02-07 10:58:07 +01:00
Mamadou Babaei 8dbfc7ce47 bump the plugin version to v1.1.0 2023-02-03 13:44:57 +01:00
Mamadou Babaei e50f85a919 switch to sgconnect for android v1.1.0 extracted from the .arr file shipped with our unity plugin 2023-02-03 13:44:57 +01:00
Mamadou Babaei 58504effbc bump senseglove libraries to v2.1.1-0569c74 2023-02-03 13:44:57 +01:00
Mamadou Babaei cebba656fe use the correct writehaptics signature extracted from the .jar file 2023-02-03 13:44:57 +01:00
Mamadou Babaei 897fa5c5d3 mention sgconnect for android as an added dependency in the changelog 2023-02-03 13:44:56 +01:00
Mamadou Babaei 47c7e9d417 update the platform support matrix and the directory structure 2023-02-03 13:44:56 +01:00
Mamadou Babaei f52770cd9c log the unreleased changes 2023-02-03 13:44:56 +01:00
Mamadou Babaei 66a3381579 bump sgconnect and sgcore to v2.1.0-9080621 and add an almost functional android implementation 2023-02-03 13:44:56 +01:00
Mamadou Babaei 8d12529554 try to offload android to sgcore/sgconnect third-party libraries and drop linux third-party libraries for earlier versions of the engine prior to 4.27 2023-02-03 13:44:56 +01:00
Mamadou Babaei 63967b5eb7 minor documentation fixes 2023-02-03 13:44:55 +01:00
Mamadou Babaei 317092792d drop linux third-party libraries for earlier versions of the engine prior to 4.27 2023-02-03 13:44:55 +01:00
Mamadou Babaei b2b0392f9c fix a bug in the jni call write haptics 2023-02-03 13:44:55 +01:00
Mamadou Babaei fcdedeb81f replace more method calls on android with the equivalents from sgconnect for android 2023-02-03 13:44:55 +01:00
Mamadou Babaei 4be10c3e57 bump copyright years 2023-02-03 13:44:55 +01:00
Mamadou Babaei ca7f51dcfd add an android module with working jni calls to Init(), Dispose(), and GetLibraryVersion() 2023-02-03 13:44:55 +01:00
Mamadou Babaei 46ac6fd9d0 log the unreleased changes 2023-02-03 13:44:55 +01:00
Mamadou Babaei ac861b0a13 remove the enum utils class due to ANY_PACKAGE deprecation warnings in unreal engine 5.1 2023-02-03 13:44:55 +01:00
Mamadou Babaei a993d877d1 conform to the class naming standards 2023-02-03 13:44:55 +01:00
Mamadou Babaei dd7bf2686b apply const correctness 2023-02-03 13:44:55 +01:00
Mamadou Babaei 2aee68dc52 whitelist android as a target platform 2023-02-03 13:44:55 +01:00
Mamadou Babaei 533638b1ea fix android build issues caused by the log module 2023-02-03 13:44:55 +01:00
Mamadou Babaei a924c02cdb bump the plugin version to v1.0.4 2022-12-02 12:39:00 +01:00
Mamadou Babaei b1da967d41 simplify the move constructors / move assignment operators' noexcept ifdefs 2022-12-02 12:39:00 +01:00
Mamadou Babaei d11ef47931 fix ue 4.22 - 4.27 build issues on msvc 2017 2022-12-02 12:39:00 +01:00
Mamadou Babaei ab035cae2e move sgplatform headers to the public folder 2022-12-02 12:39:00 +01:00
Mamadou Babaei c07dc2561c update the platform support matrix 2022-12-02 12:39:00 +01:00
Mamadou Babaei 4af827a46a fix ue >= 5.0 ubt errors 2022-12-02 12:39:00 +01:00
Mamadou Babaei 8e9f3869b3 upgrade senseglove third-party libraries for linux and android to to v2.0.4 2022-12-02 12:38:59 +01:00
Mamadou Babaei 7a9e54de64 add macros for C++17 detection 2022-12-02 12:38:58 +01:00
Mamadou Babaei 5f0a238d7a apply const correctness to method parameters 2022-12-02 12:38:58 +01:00
Mamadou Babaei b0a328289a upgrade sglibraries binaries for windows/msvc to to v2.0.4 and add msvc 2017 binaries 2022-12-02 12:38:57 +01:00
Mamadou Babaei 74499d33e7 upgrade sglibraries third-party headers to v2.0.4 2022-12-02 12:38:57 +01:00
Mamadou Babaei 9e22912a6f add support for msvc 2017 to the build.cs files 2022-12-02 12:38:56 +01:00
Mamadou Babaei 14df135d1c bump the plugin version to v1.0.3 2022-11-30 14:33:12 +01:00
Mamadou Babaei 3247adc68c adjust Config/FilterPlugin.ini in order to conform to Epic's market place guidelines 2022-11-30 14:28:25 +01:00
Mamadou Babaei 733eab9481 bump the plugin version to v1.0.2 2022-11-27 14:44:14 +01:00
Mamadou Babaei 64f5d3306b fix the third-party license mark down file formatting 2022-11-27 14:44:14 +01:00
Mamadou Babaei 07c4fb7334 add the SenseGlove SDK license 2022-11-27 14:44:14 +01:00
Mamadou Babaei ac8f901c04 fix readme typos and errors 2022-11-27 14:14:18 +01:00
Mamadou Babaei e3ce3e6060 add missing the copyright notice and include directive 2022-11-27 14:14:18 +01:00
Mamadou Babaei 0edd0d257a list the dot files inside the FilterPlugin.ini file 2022-11-27 13:55:56 +01:00
Mamadou Babaei 9b42ffe45f add the marketplace url to the .uplugin file 2022-11-27 13:55:56 +01:00
Mamadou Babaei 55bd48ed97 bump the plugin version to v1.0.1 2022-11-25 15:21:47 +01:00
Mamadou Babaei 329aae9638 * Expose SenseGloveTypes as a public dependency in SenseGloveConnect and
SenseGloveCore modules, so that the C++ users of the API don't need to
 explicitly add it as a dependency
* Clean up the redundant headers/modules dependency from SGCore headers
* Fix RunUAT build issues for Epic Store submission
2022-11-25 15:07:50 +01:00
Mamadou Babaei ec315d6fb3 update documentation, add changelog, and prepare for v1.0.0 release 2022-11-24 17:09:08 +01:00
Mamadou Babaei 2d3f9b73d6 huge patch fixing 4.22 through 4.24 build issues on msvc and llvm/clang 2022-11-24 01:17:49 +01:00
Mamadou Babaei 82f2873cf2 fix a mangled method name in layer 4 2022-11-23 21:20:03 +01:00
Mamadou Babaei 71cdaffd51 replace IMPLEMENT_GAME_MODULE with IMPLEMENT_MODULE 2022-11-19 13:07:28 +01:00
Mamadou Babaei 3716d75eb2 fix module types and loading order 2022-11-19 06:22:16 +01:00
Mamadou Babaei 176ed9504b add the docs url 2022-11-18 15:07:47 +01:00
Mamadou Babaei 028ef2b4d5 import sg libraries v2.0.3 binaries for msvc/windows 2022-11-18 15:02:56 +01:00
Mamadou Babaei 0e386789e0 import sg libraries headers v2.0.3 and linux binaries and adjust to the latest changes 2022-11-18 15:02:55 +01:00
Mamadou Babaei b7e9126c14 add more documentation 2022-11-18 15:02:55 +01:00
Mamadou Babaei 4714b478c5 add missing sense glove wrappers in layer 1/2/3/4 of the api and also more documentation 2022-11-18 15:02:55 +01:00
Mamadou Babaei c02203d3e3 add missing nova glove info rotator conversions to layer 3/4 of the api and also more documentation 2022-11-18 15:02:55 +01:00
Mamadou Babaei f8969d79b7 add missing nova glove hand profile wrappers in layer 3/4 of the api and also more documentation 2022-11-18 15:02:55 +01:00
Mamadou Babaei 3ba496aa49 add more documentation 2022-11-18 15:02:55 +01:00
Mamadou Babaei 3ea3162b01 add missing sg device wrappers in layer 4 of the api and also more documentation 2022-11-18 15:02:55 +01:00
Mamadou Babaei a51e8578f5 add more documentation 2022-11-18 15:02:55 +01:00
Mamadou Babaei 7c1218adf3 document some parts of the layer 3 and 4 api 2022-11-18 15:02:55 +01:00
Mamadou Babaei d62d7119ed translate senseglove/unreal angles/directions 2022-11-18 15:02:55 +01:00
Mamadou Babaei fc2c607cac implement proper mm/cm conversions 2022-11-17 02:30:06 +01:00
Mamadou Babaei a10ad6b620 introduce more utility templates for metric unit conversions 2022-11-17 02:30:06 +01:00
Mamadou Babaei a83e4e89de remove unit conversions from the internal vect3d wrappers 2022-11-17 02:30:06 +01:00
Mamadou Babaei bfc0e0dd56 bump sg libraries to v2.0.2 and adjust to the latest changes 2022-11-17 02:30:05 +01:00
Mamadou Babaei eda3087b51 consider millimeters/centimeters conversion, introduce units, and minor array utils refactoring 2022-11-17 02:30:05 +01:00
Mamadou Babaei 5495444667 fix wrong readme header 2022-11-14 17:19:54 +01:00
Mamadou Babaei e4e5f4875f shorten mangled blueprint nodes in order to avoid doc generation issues 2022-11-14 17:16:04 +01:00
Mamadou Babaei 819637efa6 separate the unreal c++/bp implementation of SGConnect wrappers 2022-11-12 00:35:20 +01:00
Mamadou Babaei 280df24671 add FRotator overloads for every method that accepts or returns FQuat and some other bug fixes 2022-11-11 11:42:10 +01:00
Mamadou Babaei 9211a2465b bump engine version to 4.27 2022-11-11 11:42:09 +01:00
Mamadou Babaei 66de2950b4 fix unreal/senseglove coordinates translation calculations 2022-11-11 11:42:09 +01:00
5746 changed files with 35406 additions and 66106 deletions
-10
View File
@@ -38,13 +38,3 @@ Resources/**/* filter=lfs diff=lfs merge=lfs -text
# LFS: everything under Source/ThirdParty/
Source/ThirdParty/**/* filter=lfs diff=lfs merge=lfs -text
# LFS: everything under Handbook/dist/
Handbook/dist/**/* filter=lfs diff=lfs merge=lfs -text
# Except
.gitignore filter= diff= merge= text
.gitattributes filter= diff= merge= text
# LFS: sgum-packager Linux and Windows binaries
Packager/sgum-packager filter=lfs diff=lfs merge=lfs -text
Packager/sgum-packager.exe filter=lfs diff=lfs merge=lfs -text
-8
View File
@@ -125,11 +125,3 @@ DerivedDataCache/*
# Do not ignore anything inside the ThirdParty directory at all
!Source/ThirdParty/**/*
# The Handbook
Documentation/
Handbook/book/
# sgum-packager
# Do not ignore the sgum-packager Windows binary
!Packager/sgum-packager.exe
+225
View File
@@ -0,0 +1,225 @@
# Changelog
All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [1.4.3] - 2023-06-01
This is a hotfix release addressing a critical Android crash.
### Fixed
- Fix a critical Android crash that happens where the default development hand meshes are not found, which means almost always since we don't ship any default virtual hand mesh at the moment.
- Minor changelog release formatting fix in order to stay consistent.
## [1.4.2] - 2023-06-01
This is a hotfix release addressing a few critical issues.
### Fixed
- Fix build issues with certain compilers when the Unreal Engine version is older than 5.2.
- Reintroduced the Virtual Hand and the Wrist Tracker debug gizmos which have temporarily been disabled due to a bug in the settings system.
- Some minor changelog fixes.
## [1.4.1] - 2023-05-29
This is a bugfix release with a focus on Android build issues.
### Fixed
- Fix an Android Gradle build issue that happens when the game's package name won't start with com.senseglove.*.
- Suppress a grade warning for non-arm64 architectures when the build target is Android.
### Removed
- Remove dead Gradle code from the Android module.
## [1.4.0] - 2023-05-19
This release breaks ABI/API compatibility with the previous versions.
### Added
- Added support for the stable release of Unreal Engine 5.2 (the preview release has been supported since v1.2.0).
- Added Linux AArch64 platform support.
- Added a new Grab component that can turn any actor into a grabbable object.
- Added a new Touch component that enables haptic feedback such as Buzz and Force-Feedback commands.
- Added an optional feature in order to automatically stop all haptics on the EndPlay event, wherever the virtual hand component is used. By default, it's enabled.
### Fixed
- Fix Blueprint signatures for USGVirtualHandComponentKismetLibrary and make all the Blueprint exposed functions static.
### Changed
- SenseGlove libraries have been updated to v2.7.1-965f90c with support for Linux AArch64.
- The Virtual Hand and the Wrist Tracker debug gizmos (the intended use is only for SenseGlove developers for really low-level stuff; thus won't affect the users of the plugin at all) have been disabled and will be ignored due to an esoteric bug in the settings systems which has been scheduled to be fixed in the future releases.
### Removed
- Removed the redundant SenseGloveCoreTypes module which causes all kinds of packaging issues with certain versions of the engine.
### Deprecated
- This is the last release to support Unreal Engine 4.27 and please keep in mind that the current release is not obtainable through the Unreal Engine Marketplace. The latest published version on the Marketplace for 4.27 is v1.3.1. Per Epic's Marketplace policy regarding Code Plugins, we are only able to distribute or update the SenseGlove plugin for the last 3 stable versions of Unreal Engine. As a result, we won't be able to publish updates or bug fixes for the older versions of the Engine except on rare occasions and only through our official repository on Microsoft Azure DevOps.
## [1.3.1] - 2023-04-28
### Fixed
- Fix RunUAT build issues caused by missing headers.
- Minor documentation fixes.
## [1.3.0] - 2023-04-28
This release breaks ABI/API compatibility with the previous versions in addition to breaking coordinates systems conversions between Unreal Engine and the SenseGlove libraries.
### Added
- A new generic SenseGlove Debug module.
- A debug virtual hand.
### Fixed
- Fix the wrist tracker miscalculations for the Quest 2 controllers (other headsets might need fixing as well, in that case, future releases will address that).
- Minor code improvement and fixes.
- Minor documentation fixes.
### Changed
- Breaking API/ABI changes in the Settings and the main SenseGlove module due to some settings refactoring.
- Breaking changes in the SenseGlove/Unreal coordinates systems conversions due to underlying changes in the SenseGlove Core Libraries.
- SenseGlove libraries have been updated to v2.6.0-aac3d56.
## [1.2.1] - 2023-03-30
### Fixed
- Fix RunUAT build issues with Android.
## [1.2.0] - 2023-03-28
This release breaks ABI/API compatibility with the previous versions.
### Added
- Android / Oculus on-device glove calibration.
- Introduced the animated Virtual Hand Model (as a set of virtual hand and wrist tracker components and an actor) with in-editor animation availability.
- Introduced SGPawn, SGPlayerController, SGGameModeBase, etc classes.
- Added an internal SenseGloveCoreTypes module in order to share common SenseGloveCore types between various modules.
- Segregated Android binaries for NDK r21e (UE 4.27 and 5.0) and r25b (UE 5.1, 5.2).
- Fully functional and stable Linux development support.
- Fully functional and stable Unreal Engine 5.2 preview support has been added.
- Added a Plugin's settings manager and two new modules SenseGloveSettings and SenseGloveSettingsKismet.
### Changed
- SenseGlove libraries have been updated to the Linux-aware version: v2.5.0-8069342.
- API has changed to use degrees instead of radians.
- SGCoordinates utility class name has been changed to SGAngles and now the plugin API uses degrees in contrast of SenseGlove libraries by default.
- Migrate common nested array types into the SenseGloveTypes module from the SenseGloveCore module.
### Removed
- Removed a few thousand lines of archaic pre-public-release dead code.
- Dropped Android NDK r21b binaries used by the older engine versions.
- Purged the dead code for dropped engine versions by v1.1.1 (4.22, 4.23, 4.24, 4.25, and 4.26) that carried over to the current version.
- Removed redundant SGConnectImpl/SGPlatform.
- Removed redundant SGTypes/SGConnectTypes.
### Known Issues
- Wrist Tracker's offsets are a bit off (e.g. on Quest 2), scheduled to be fixed in the next patch release.
## [1.1.1] - 2023-02-07
### Added
- Initial support for the upcoming Unreal Engine 5.2.
- Add support for Android armeabi-v7a with neon, x86-64, and x86 builds in addition to arm64-v8a.
### Fixed
- Fix various Android build issues.
- Some minor fixes and improvements.
### Changed
- Bump SenseGlove libraries to v2.1.2-95ec6e7.
## [1.1.0] - 2023-02-03
### Added
- Whitelist Android as a target platform.
- Introduce Android support.
- Add third-party library SGConnect for Android v1.1.0.
### Fixed
- Fix Android build issues caused by the log module.
### Changed
- SGConnect and SGCore libraries have been updated to v2.1.1-0569c74.
### Removed
- Removed the enum utils class due to ANY_PACKAGE deprecation warnings in Unreal Engine 5.1.
- Support for older versions of the Engine (namely, 4.22, 4.23, 4.24, 4.25, and 4.26) has been dropped.
## [1.0.4] - 2022-12-02
This is a minor release focusing mostly on adherence to the Unreal Engine Marketplace Guidelines based on the feedback from Epic Games.
### Added
- Added support for MSVC 2017
### Changed
- Updated SenseGlove libraries (SGCore/SGConnect) to v2.0.4.
## [1.0.3] - 2022-11-29
This is a minor release focusing on adherence to the Unreal Engine Marketplace Guidelines based on the feedback from Epic Games.
### Changed
- Adjust Config/FilterPlugin.ini in order to conform to Epic's Market Place Guidelines.
## [1.0.2] - 2022-11-27
This is a minor release focusing on adherence to the Unreal Engine Marketplace Guidelines based on the feedback from Epic Games.
### Added
- Added the newly acquired Unreal Engine Market Place Offer ID to the .uplugin file.
- List the dotfiles inside the FilterPlugin.ini file as well.
- Add the copyright notice to the source files missing it.
- Add the SenseGlove SDK license to the third-party license file.
### Fixed
- Fix the readme typos and errors.
- Minor fixes in the changelog for previous releases.
## [1.0.1] - 2022-11-25
### Changed
- Exposed SenseGloveTypes as a public dependency in SenseGloveConnect and SenseGloveCore modules, so that the C++ users of the API don't need to explicitly add it as a dependency.
- Cleaned up the redundant headers/modules dependencies from SGCore headers.
### Fixed
- Fix RunUAT build issues prior to Epic Store submission.
## [1.0.0] - 2022-11-24
### Added
- Initial public release of the SenseGlove haptic API for Unreal Engine with support for Microsoft Windows and GNU/Linux.
+1 -3
View File
@@ -1,5 +1,3 @@
[FilterPlugin]
/CHANGELOG.md
/Config/FilterPlugin.ini
/Documentation/the-senseglove-unreal-engine-handbook.epub
/Documentation/the-senseglove-unreal-engine-handbook.pdf
/Documentation/the-senseglove-unreal-engine-handbook.zip
Binary file not shown.
-34
View File
@@ -1,34 +0,0 @@
#
# author: Mamadou Babaei <mamadou@senseglove.com>
#
# (The MIT License)
#
# Copyright (c) 2020 - 2025 SenseGlove
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in all
# copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
#
# pmake might add -J (private)
FLAGS=${.MAKEFLAGS:C/\-J ([0-9]+,?)+//W}
all: .DEFAULT
.DEFAULT:
@which gmake > /dev/null 2>&1 || \
(echo "BSD Make is not supported; The build requires GNU Make." && exit 1)
@gmake ${.FLAGS} ${.TARGETS}
-695
View File
@@ -1,695 +0,0 @@
#
# author: Mamadou Babaei <mamadou@senseglove.com>
#
# (The MIT License)
#
# Copyright (c) 2020 - 2025 SenseGlove
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in all
# copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
#
################################################################################
# Generic Settings
################################################################################
SG_PROJECT_NAME := The SenseGlove Unreal Engine Handbook
SG_PROJECT_GIT_REPOSITORY := https://dev.azure.com/SenseGlove/SenseGlove-Unreal/_git/SenseGlove-Unreal
SG_HANDBOOK_ESCAPED_NAME := $(shell echo $(SG_PROJECT_NAME) | tr '[:upper:]' '[:lower:]' | sed 's/ /-/g')
SG_HANDBOOK_DIR := $(CURDIR)
SG_HANDBOOK_SRC_DIR := $(SG_HANDBOOK_DIR)/src
SG_HANDBOOK_TOML_FILE := $(realpath $(SG_HANDBOOK_DIR)/book.toml)
SG_HANDBOOK_CONFIG_HOME_DIR := SenseGlove/ue-handbook
SG_HANDBOOK_DEPLOY_CONFIG_FILENAME := deploy.conf
SG_HANDBOOK_DEPLOY_TEMP_DIR_NAME := unreal-docs-senseglove-com-deploy-XXXXXXXXXX
SG_HANDBOOK_FAVICON_FILE := $(SG_HANDBOOK_SRC_DIR)/favicon.svg
SG_DOT_GIT_DIR := $(realpath $(SG_HANDBOOK_DIR)/../.git)
SG_DOT_GIT_SHALLOW_FILE := $(SG_DOT_GIT_DIR)/shallow
SG_PLUGIN_DIR := $(realpath $(SG_HANDBOOK_DIR)/..)
SG_PLUGIN_RESOURCES_DIR := $(SG_PLUGIN_DIR)/Resources
SG_PLUGIN_FILE := $(SG_PLUGIN_DIR)/SenseGlove.uplugin
SG_DOCUMENTATION_URL := https://unreal.docs.senseglove.com
SG_DOCUMENTATION_DIR := $(SG_PLUGIN_DIR)/Documentation
SG_DOCUMENTATION_HTML_DIR_NAME := html
SG_DOCUMENTATION_HTML_DIR := $(SG_DOCUMENTATION_DIR)/$(SG_DOCUMENTATION_HTML_DIR_NAME)
SG_DOCUMENTATION_PDF_DIR := $(SG_DOCUMENTATION_DIR)/pdf-outline
SG_DOCUMENTATION_PDF_FILE := $(SG_DOCUMENTATION_PDF_DIR)/output.pdf
SG_DOCUMENTATION_EPUB_DIR := $(SG_DOCUMENTATION_DIR)/epub
SG_DOCUMENTATION_EPUB_FILE := $(SG_DOCUMENTATION_EPUB_DIR)/$(SG_PROJECT_NAME).epub
SG_DOCUMENTATION_PACK_DIR_NAME := pack
SG_DOCUMENTATION_PACK_DIR := $(SG_DOCUMENTATION_DIR)/$(SG_DOCUMENTATION_PACK_DIR_NAME)
SG_HANDBOOK_PACKED_HTML_DIR := $(SG_DOCUMENTATION_PACK_DIR)/$(SG_HANDBOOK_ESCAPED_NAME)
SG_HANDBOOK_PACKED_HTML_FILE := $(SG_DOCUMENTATION_PACK_DIR)/$(SG_HANDBOOK_ESCAPED_NAME).zip
SG_HANDBOOK_PACKED_PDF_FILE := $(SG_DOCUMENTATION_PACK_DIR)/$(SG_HANDBOOK_ESCAPED_NAME).pdf
SG_HANDBOOK_PACKED_EPUB_FILE := $(SG_DOCUMENTATION_PACK_DIR)/$(SG_HANDBOOK_ESCAPED_NAME).epub
SG_BROWSER_BINARY_PATH_LINUX := /opt/brave.com/brave/brave
SG_BROWSER_BINARY_PATH_WINDOWS := C:\Program Files\BraveSoftware\Brave-Browser\Application\brave.exe
SG_RSYNC_BIN_PATH_WINDOWS := C:\Program Files\cwrsync\bin
SG_RSYNC_BINARY_PATH_WINDOWS := $(SG_RSYNC_BIN_PATH_WINDOWS)\rsync.exe
SG_RSYNC_SSH_BINARY_PATH_WINDOWS := $(SG_RSYNC_BIN_PATH_WINDOWS)\ssh.exe
################################################################################
# Platform Detection
################################################################################
SG_BUILD_ARCH_AMD64 := amd64
SG_BUILD_PLATFORM_LINUX := linux
SG_BUILD_PLATFORM_WINDOWS := windows
ifeq ($(OS),Windows_NT)
SG_BUILD_PLATFORM := $(SG_BUILD_PLATFORM_WINDOWS)
# Running a 32-bit (x86) Command Prompt sets PROCESSOR_ARCHITECTURE to x86,
# and instead defines PROCESSOR_ARCHITEW6432 for 64-bit Windows detection.
ifeq ($(PROCESSOR_ARCHITEW6432),AMD64)
SG_BUILD_ARCH := $(SG_BUILD_ARCH_AMD64)
else # ($(PROCESSOR_ARCHITEW6432),AMD64)
ifeq ($(PROCESSOR_ARCHITECTURE),AMD64)
SG_BUILD_ARCH := $(SG_BUILD_ARCH_AMD64)
endif # ($(PROCESSOR_ARCHITECTURE),AMD64)
endif # ($(PROCESSOR_ARCHITEW6432),AMD64)
else # ($(OS),Windows_NT)
SG_PLATFORM_UNAME := $(shell uname -s)
ifeq ($(SG_PLATFORM_UNAME),Linux)
SG_BUILD_PLATFORM := $(SG_BUILD_PLATFORM_LINUX)
SG_PLATFORM_UNAME_ARCH := $(shell uname -m)
endif # ($(SG_PLATFORM_UNAME),Linux)
ifeq ($(SG_PLATFORM_UNAME_ARCH),x86_64)
SG_BUILD_ARCH := $(SG_BUILD_ARCH_AMD64)
endif # ($(SG_PLATFORM_UNAME_ARCH),x86_64)
endif # ($(OS),Windows_NT)
################################################################################
# Target Settings - mdbook
################################################################################
SG_MDBOOK_HOST := "localhost"
SG_MDBOOK_PORT := "8000"
SG_MDBOOK_SRC_DIR := "${SG_HANDBOOK_DIR}/src"
SG_MDBOOK_DEST_DIR := "${SG_DOCUMENTATION_DIR}"
SG_MDBOOK_WATCHER := "poll"
SG_PLUGIN_CHANGELOG_FILE := $(SG_PLUGIN_DIR)/CHANGELOG.md
SG_PLUGIN_DIRECTORY_STRUCTURE_FILE := $(SG_PLUGIN_DIR)/DIRECTORY_STRUCTURE.md
SG_PLUGIN_LICENSE_FILE := $(SG_PLUGIN_DIR)/LICENSE.md
SG_PLUGIN_LICENSE_THIRD_PARTY_FILE := $(SG_PLUGIN_DIR)/LICENSE_THIRD_PARTY.md
SG_PLUGIN_PLANNED_FEATURES_COMPLETION_STATUS_FILE := $(SG_PLUGIN_DIR)/PLANNED_FEATURES_COMPLETION_STATUS.md
SG_PLUGIN_PLATFORM_SUPPORT_MATRIX_FILE := $(SG_PLUGIN_DIR)/PLATFORM_SUPPORT_MATRIX.md
################################################################################
# Version and Build Information
################################################################################
SG_GIT_TREE_STATE_CLEAN := clean
SG_GIT_TREE_STATE_DIRTY := dirty
SG_GIT_NO := no
SG_GIT_YES := yes
SG_RELEASE_BRANCH_PATTERN := ^[0-9]+\.[0-9]+$$
SG_GIT_BRANCH := $(shell git rev-parse --abbrev-ref HEAD 2>/dev/null)
SG_GIT_TAG := $(shell git describe --tags --abbrev=0 2>/dev/null)
SG_GIT_COMMIT := $(shell git rev-parse --short HEAD 2>/dev/null)
SG_GIT_COMMIT_NUMS_SINCE_TAG := $(shell git rev-list --count HEAD ^`git describe --tags --abbrev=0 2>/dev/null` 2>/dev/null)
SG_GIT_TREE_STATE := $(shell test -n "`git status --porcelain 2>/dev/null`" && echo "$(SG_GIT_TREE_STATE_DIRTY)" || echo "$(SG_GIT_TREE_STATE_CLEAN)")
SG_GIT_IS_SHALLOW_CLONE := $(shell [ -d $(SG_DOT_GIT_DIR) ] && [ -f $(SG_DOT_GIT_SHALLOW_FILE) ] && echo "$(SG_GIT_YES)" || echo "$(SG_GIT_NO)")
SG_GIT_LATEST_REMOTE_TAG := $(shell git -c versionsort.suffix=- ls-remote --exit-code --refs --sort=version:refname --tags $(SG_PROJECT_GIT_REPOSITORY) '*.*.*' | tail -n 1 | sed 's/.*refs\/tags\///' 2>/dev/null)
SG_PLUGIN_VERSION := $(shell grep -o '"VersionName": "[^"]*"' ${SG_PLUGIN_FILE} | awk -F'"' '{print "v" $$4}')
ifeq ($(strip $(SG_GIT_COMMIT_NUMS_SINCE_TAG)),)
SG_GIT_COMMIT_NUMS_SINCE_TAG := 0
endif # ($(strip $(SG_GIT_COMMIT_NUMS_SINCE_TAG)),)
ifneq ($(strip $(SG_GIT_TAG)),)
SG_GIT_VERSION := $(SG_GIT_TAG)
endif # ($(strip $(SG_GIT_TAG)),)
ifeq ($(strip $(SG_GIT_VERSION)),)
ifeq ($(strip $(SG_GIT_IS_SHALLOW_CLONE)),$(SG_GIT_YES))
ifneq ($(strip $(SG_GIT_LATEST_REMOTE_TAG)),)
SG_GIT_VERSION := $(SG_GIT_LATEST_REMOTE_TAG)
endif # ($(strip $(SG_GIT_LATEST_REMOTE_TAG)),)
endif # ($(strip $(SG_GIT_IS_SHALLOW_CLONE)),$(SG_GIT_YES))
endif # ($(strip $(SG_GIT_VERSION)),)
SG_GIT_VERSION_MAJOR := $(shell echo $(SG_GIT_VERSION) | cut -d '.' -f 1 | tr -d -c 0-9)
ifeq ($(SG_GIT_VERSION_MAJOR),)
SG_GIT_VERSION_MAJOR := 0
endif # ($(SG_GIT_VERSION_MAJOR),)
SG_GIT_VERSION_MINOR := $(shell echo $(SG_GIT_VERSION) | cut -d '.' -f 2 | tr -d -c 0-9)
ifeq ($(SG_GIT_VERSION_MINOR),)
SG_GIT_VERSION_MINOR := 0
endif # ($(SG_GIT_VERSION_MINOR),)
SG_GIT_VERSION_PATCH := $(shell echo $(SG_GIT_VERSION) | cut -d '.' -f 3 | tr -d -c 0-9)
ifeq ($(SG_GIT_VERSION_PATCH),)
SG_GIT_VERSION_PATCH := 0
endif # ($(SG_GIT_VERSION_PATCH),)
SG_PLUGIN_VERSION_MAJOR := $(shell echo $(SG_PLUGIN_VERSION) | cut -d '.' -f 1 | tr -d -c 0-9)
ifeq ($(SG_PLUGIN_VERSION_MAJOR),)
SG_PLUGIN_VERSION_MAJOR := 0
endif
SG_PLUGIN_VERSION_MINOR := $(shell echo $(SG_PLUGIN_VERSION) | cut -d '.' -f 2 | tr -d -c 0-9)
ifeq ($(SG_PLUGIN_VERSION_MINOR),)
SG_PLUGIN_VERSION_MINOR := 0
endif # ($(SG_PLUGIN_VERSION_MINOR),)
SG_PLUGIN_VERSION_PATCH := $(shell echo $(SG_PLUGIN_VERSION) | cut -d '.' -f 3 | tr -d -c 0-9)
ifeq ($(SG_PLUGIN_VERSION_PATCH),)
SG_PLUGIN_VERSION_PATCH := 0
endif # ($(SG_PLUGIN_VERSION_PATCH),)
SG_BUILD_HOST := $(shell hostname)
SG_BUILD_TIME := $(shell date '+%a %b %d, %Y %H:%M %Z %z')
ifeq ($(strip $(SG_GIT_BRANCH)),dev)
ifeq ($(strip $(SG_GIT_TAG)),)
SG_HANDBOOK_REVISION := next
endif # ($(strip $(SG_GIT_TAG)),)
endif # ($(strip $(SG_GIT_BRANCH)),dev)
SG_IS_GIT_BRANCH_HEAD_OR_MASTER := $(or $(filter HEAD,$(strip $(SG_GIT_BRANCH))),$(filter master,$(strip $(SG_GIT_BRANCH))))
ifneq ($(SG_IS_GIT_BRANCH_HEAD_OR_MASTER),)
ifeq ($(strip $(SG_GIT_COMMIT_NUMS_SINCE_TAG)),0)
ifeq ($(strip $(SG_GIT_TREE_STATE)),$(SG_GIT_TREE_STATE_CLEAN))
ifeq ($(strip $(SG_GIT_VERSION)),$(strip $(SG_PLUGIN_VERSION)))
SG_HANDBOOK_REVISION := $(SG_PLUGIN_VERSION_MAJOR).$(SG_PLUGIN_VERSION_MINOR)
endif # ($(strip $(SG_GIT_VERSION)),$(strip $(SG_PLUGIN_VERSION)))
endif # ($(strip $(SG_GIT_TREE_STATE)),$(SG_GIT_TREE_STATE_CLEAN))
endif # ($(strip $(SG_GIT_COMMIT_NUMS_SINCE_TAG)),0)
endif # ($(SG_IS_GIT_BRANCH_HEAD_OR_MASTER),)
ifeq ($(strip $(SG_GIT_IS_SHALLOW_CLONE)),$(SG_GIT_YES))
SG_IS_GIT_BRANCH_RELEASE := $(shell echo $(SG_GIT_BRANCH) | grep -E '$(SG_RELEASE_BRANCH_PATTERN)' || echo "")
ifneq ($(SG_IS_GIT_BRANCH_RELEASE),)
ifeq ($(strip $(SG_GIT_VERSION)),$(strip $(SG_PLUGIN_VERSION)))
SG_HANDBOOK_REVISION := $(SG_PLUGIN_VERSION_MAJOR).$(SG_PLUGIN_VERSION_MINOR)
endif # ($(strip $(SG_GIT_VERSION)),$(strip $(SG_PLUGIN_VERSION)))
endif # ($(SG_IS_GIT_BRANCH_RELEASE),)
endif # ($(strip $(SG_GIT_IS_SHALLOW_CLONE)),$(SG_GIT_YES))
ifeq ($(strip $(SG_HANDBOOK_REVISION)),)
SG_HANDBOOK_REVISION := mismatched
endif # ($(strip $(SG_HANDBOOK_REVISION)),)
ifneq ($(strip $(SG_HANDBOOK_REVISION)),mismatched)
SG_MDBOOK_HTML_SITE_URL := $(SG_HANDBOOK_REVISION)
SG_HANDBOOK_REVISION_URL := $(SG_DOCUMENTATION_URL)/$(SG_HANDBOOK_REVISION)
SG_HANDBOOK_RELEASE_NAME := $(shell echo $(SG_PROJECT_NAME)-$(SG_HANDBOOK_REVISION) | tr '[:upper:]' '[:lower:]' | sed 's/ /-/g')
SG_HANDBOOK_PDF_URL := $(SG_HANDBOOK_REVISION_URL)/$(SG_HANDBOOK_RELEASE_NAME).pdf
SG_HANDBOOK_EPUB_URL := $(SG_HANDBOOK_REVISION_URL)/$(SG_HANDBOOK_RELEASE_NAME).epub
endif # ($(strip $(SG_HANDBOOK_REVISION)),mismatched)
################################################################################
# mdbook-pdf Configuration
################################################################################
ifneq ($(strip $(SG_HANDBOOK_REVISION)),mismatched)
SG_MDBOOK_HTML_SITE_URL := /$(SG_HANDBOOK_REVISION)/
endif # ($(strip $(SG_HANDBOOK_REVISION)),mismatched)
ifeq ($(SG_BUILD_PLATFORM),$(SG_BUILD_PLATFORM_LINUX))
SG_MDBOOK_PDF_BROWSER_BINARY_PATH := $(SG_BROWSER_BINARY_PATH_LINUX)
else ifeq ($(SG_BUILD_PLATFORM),$(SG_BUILD_PLATFORM_WINDOWS))
SG_MDBOOK_PDF_BROWSER_BINARY_PATH := $(SG_BROWSER_BINARY_PATH_WINDOWS)
else # ($(SG_BUILD_PLATFORM),$(SG_BUILD_PLATFORM_LINUX))
$(error The target operating system is not supported!)
endif # ($(SG_BUILD_PLATFORM),$(SG_BUILD_PLATFORM_LINUX))
ifeq ($(SG_BUILD_PLATFORM),$(SG_BUILD_PLATFORM_LINUX))
SG_LINUX_PYTHON_VENV_DIR := $(shell mktemp -d)/sg-ue-handbook-venv
SG_LINUX_PYTHON_VENV_BIN_DIR := $(SG_LINUX_PYTHON_VENV_DIR)/bin
export PATH := $(SG_LINUX_PYTHON_VENV_BIN_DIR):$(PATH)
export PWD := $(SG_LINUX_PYTHON_VENV_BIN_DIR)
export VIRTUAL_ENV := $(SG_LINUX_PYTHON_VENV_DIR)
else ifeq ($(SG_BUILD_PLATFORM),$(SG_BUILD_PLATFORM_WINDOWS))
SG_DIST_DIR := $(SG_HANDBOOK_DIR)/dist
SG_WINPYTHON_DIR := $(SG_DIST_DIR)/winpython
SG_WINPYTHON_BIN_DIR := $(SG_WINPYTHON_DIR)//python-3.12.4.amd64
SG_WINPYTHON_BIN_SCRIPTS_DIR := $(SG_WINPYTHON_BIN_DIR)/Scripts
SG_WINPYTHON_SCRIPTS_DIR := $(SG_WINPYTHON_DIR)/scripts
export PATH := $(SG_WINPYTHON_SCRIPTS_DIR);$(PATH)
export PATH := $(SG_WINPYTHON_BIN_SCRIPTS_DIR);$(PATH)
export PATH := $(SG_WINPYTHON_BIN_DIR);$(PATH)
export PATH := $(SG_RSYNC_BIN_PATH_WINDOWS);$(PATH)
else # ($(SG_BUILD_PLATFORM),$(SG_BUILD_PLATFORM_LINUX))
$(error The target operating system is not supported!)
endif # ($(SG_BUILD_PLATFORM),$(SG_BUILD_PLATFORM_LINUX))
################################################################################
# Deployment Configuration
################################################################################
ifeq ($(SG_BUILD_PLATFORM),$(SG_BUILD_PLATFORM_LINUX))
SG_HANDBOOK_DEPLOY_CONFIG_FILE := $(shell echo ~/.config/$(SG_HANDBOOK_CONFIG_HOME_DIR)/$(SG_HANDBOOK_DEPLOY_CONFIG_FILENAME))
else ifeq ($(SG_BUILD_PLATFORM),$(SG_BUILD_PLATFORM_WINDOWS))
SG_HANDBOOK_DEPLOY_CONFIG_FILE := $(shell cygpath -u $(LOCALAPPDATA)/$(SG_HANDBOOK_CONFIG_HOME_DIR)/$(SG_HANDBOOK_DEPLOY_CONFIG_FILENAME))
else # ($(SG_BUILD_PLATFORM),$(SG_BUILD_PLATFORM_LINUX))
$(error The target operating system is not supported!)
endif # ($(SG_BUILD_PLATFORM),$(SG_BUILD_PLATFORM_LINUX))
################################################################################
# Deployment Temporary Directory Setup
################################################################################
$(info Setting up a deployment temporary directory '$(SG_HANDBOOK_DEPLOY_TEMP_DIR_NAME)')
SG_HANDBOOK_DEPLOY_TEMP_DIR := $(shell mktemp -d -t $(SG_HANDBOOK_DEPLOY_TEMP_DIR_NAME))
$(info Temporary directory has been set up at '$(SG_HANDBOOK_DEPLOY_TEMP_DIR)')
SG_HANDBOOK_DEPLOY_GENERATED_PDF_FILE := $(SG_HANDBOOK_DEPLOY_TEMP_DIR)/$(SG_HANDBOOK_RELEASE_NAME).pdf
SG_HANDBOOK_DEPLOY_GENERATED_EPUB_FILE := $(SG_HANDBOOK_DEPLOY_TEMP_DIR)/$(SG_HANDBOOK_RELEASE_NAME).epub
SG_HANDBOOK_DEPLOY_REVISION_LIST_FILE := $(SG_HANDBOOK_DEPLOY_TEMP_DIR)/revisions.txt
SG_HANDBOOK_DEPLOY_GENERATED_HOME_INDEX_FILE := $(SG_HANDBOOK_DEPLOY_TEMP_DIR)/index.html
################################################################################
# Env Configuration Functions
################################################################################
define load_env
$(eval ENV_FILE := $(1))
@echo "Loading configuration file '$(ENV_FILE)'..."
$(eval include $(ENV_FILE))
$(eval export)
endef
################################################################################
# Make Targets - All
################################################################################
.PHONY: all
all: help
################################################################################
# Make Targets - Misc
################################################################################
.PHONY: help
help:
@echo ""
@echo "Available make targets:"
@echo ""
@echo " - make build"
@echo " - make clean"
@echo " - make deploy"
@echo " - make help"
@echo " - make info"
@echo " - make pack"
@echo " - make serve"
@echo ""
.PHONY: info
info:
@echo ""
@echo "$(SG_PROJECT_NAME) build information:"
@echo ""
@echo " - Handbook Revision : $(SG_HANDBOOK_REVISION)"
@echo " - Handbook Revision URL : $(SG_HANDBOOK_REVISION_URL)"
@echo " - Handbook PDF URL : $(SG_HANDBOOK_PDF_URL)"
@echo " - Handbook ePub URL : $(SG_HANDBOOK_EPUB_URL)"
@echo " - Git Branch : $(SG_GIT_BRANCH)"
@echo " - Git Tag : $(SG_GIT_TAG)"
@echo " - Git Commit : $(SG_GIT_COMMIT)"
@echo " - Git Commits Since Tag : $(SG_GIT_COMMIT_NUMS_SINCE_TAG)"
@echo " - Git Tree State : $(SG_GIT_TREE_STATE)"
@echo " - Git Is Shallow Clone : $(SG_GIT_IS_SHALLOW_CLONE)"
@echo " - Git Latest Remote Tag : $(SG_GIT_LATEST_REMOTE_TAG)"
@echo " - Git Version : $(SG_GIT_VERSION)"
@echo " - Git Version Major : $(SG_GIT_VERSION_MAJOR)"
@echo " - Git Version Minor : $(SG_GIT_VERSION_MINOR)"
@echo " - Git Version Patch : $(SG_GIT_VERSION_PATCH)"
@echo " - Plugin Version : $(SG_PLUGIN_VERSION)"
@echo " - Plugin Version Major : $(SG_PLUGIN_VERSION_MAJOR)"
@echo " - Plugin Version Minor : $(SG_PLUGIN_VERSION_MINOR)"
@echo " - Plugin Version Patch : $(SG_PLUGIN_VERSION_PATCH)"
@echo " - Build Host : $(SG_BUILD_HOST)"
@echo " - Build Time : $(SG_BUILD_TIME)"
@echo ""
.PHONY: clean
clean:
@echo "Cleaning up $(SG_PROJECT_NAME)..."
@rm -rf "$(SG_MDBOOK_DEST_DIR)"
@echo "$(SG_PROJECT_NAME) has been cleaned up successfully!"
.PHONY: install-build-deps
install-build-deps:
@echo "Installing build dependencies if they have not already been installed..."
@cargo install mdbook --version "0.4.49" --locked
@cargo install xq --vers "^0.4" --locked
@cargo install mdbook-alerts --vers "^0.7" --locked
@cargo install mdbook-pdf --vers "^0.1" --locked
ifeq ($(SG_BUILD_PLATFORM),$(SG_BUILD_PLATFORM_LINUX))
@echo "Installing mdbook-pdf-outline..."
@python -m venv $(VIRTUAL_ENV) \
&& . $(SG_LINUX_PYTHON_VENV_BIN_DIR)/activate \
&& pip install mdbook-pdf-outline 2>/dev/null
endif # ($(SG_BUILD_PLATFORM),$(SG_BUILD_PLATFORM_LINUX))
@cargo install --git https://github.com/Michael-F-Bryan/mdbook-epub --rev cac03b7f4b151f106f7f05b13da4c33fc098dd2c --locked
################################################################################
# Make Targets - mdBook
################################################################################
.PHONY: prepare
prepare:
@echo "Preparing the handbook $(SG_HANDBOOK_DIR)..."
prepare: prepare-src
prepare: prepare-dest
.PHONY: prepare-dest
prepare-dest:
@echo "Preparing the handbook target dir $(SG_MDBOOK_DEST_DIR)..."
.PHONY: prepare-src
prepare-src:
@echo "Preparing the handbook source dir $(SG_MDBOOK_SRC_DIR)..."
.PHONY: verify-handbook-revision
verify-handbook-revision:
ifeq ($(SG_HANDBOOK_REVISION), next)
@echo "Building an unstable handbook for the next release..."
else # ($(SG_HANDBOOK_REVISION), next)
ifeq ($(SG_HANDBOOK_REVISION), mismatched)
@echo ""
@echo "Failed to verify the handbook build due to some discrepancies. Please verify the following:"
@echo ""
@echo "If you're building a release handbook:"
@echo " - You are either on a release tag, e.g. v2.1.0, or on the master branch."
@echo " - No commit has been made since the targeted tag."
@echo " - The Git tree state is clean."
@echo " - The Git version and plugin version match each other."
@echo ""
@echo "If you're building an unstable handbook for the next release:"
@echo " - You're building from the dev branch."
@echo " - The Git version value evaluates to empty."
@echo ""
@echo "If you're packaging the handbook:"
@echo " - You're on a release branch."
@echo " - You're shallow cloning."
@echo " - The remorte Git repository contains releae tags."
@echo ""
@exit 1
else # ($(SG_HANDBOOK_REVISION), mismatched)
@echo "Building a release handbook: $(SG_HANDBOOK_REVISION)..."
endif # ($(SG_HANDBOOK_REVISION), mismatched)
endif # ($(SG_HANDBOOK_REVISION), next)
.PHONY: serve
serve: info
serve: install-build-deps
serve: prepare
serve: _mdbook_serve
.PHONY: build
build: info
build: install-build-deps
build: prepare
build: verify-handbook-revision
build: _mdbook_build
.PHONY: pack
pack: info
pack: install-build-deps
pack: prepare
pack: verify-handbook-revision
pack: _mdbook_build
pack: _pack
.PHONY: deploy
deploy: info
deploy: install-build-deps
deploy: clean
deploy: prepare
deploy: verify-handbook-revision
deploy: _mdbook_build
deploy: _deploy
.PHONY: _mdbook_serve
_mdbook_serve:
@echo "Serving $(SG_HANDBOOK_DIR)..."
@env SG_PROJECT_NAME='$(SG_PROJECT_NAME)' \
SG_HANDBOOK_REVISION='$(SG_HANDBOOK_REVISION)' \
SG_HANDBOOK_REVISION_URL='$(SG_HANDBOOK_REVISION_URL)' \
SG_HANDBOOK_PDF_URL='$(SG_HANDBOOK_PDF_URL)' \
SG_HANDBOOK_EPUB_URL='$(SG_HANDBOOK_EPUB_URL)' \
SG_GIT_BRANCH='$(SG_GIT_BRANCH)' \
SG_GIT_TAG='$(SG_GIT_TAG)' \
SG_GIT_COMMIT='$(SG_GIT_COMMIT)' \
SG_GIT_COMMIT_NUMS_SINCE_TAG='$(SG_GIT_COMMIT_NUMS_SINCE_TAG)' \
SG_GIT_TREE_STATE='$(SG_GIT_TREE_STATE)' \
SG_GIT_IS_SHALLOW_CLONE='$(SG_GIT_IS_SHALLOW_CLONE)' \
SG_GIT_LATEST_REMOTE_TAG='$(SG_GIT_LATEST_REMOTE_TAG)' \
SG_GIT_VERSION='$(SG_GIT_VERSION)' \
SG_GIT_VERSION_MAJOR='$(SG_GIT_VERSION_MAJOR)' \
SG_GIT_VERSION_MINOR='$(SG_GIT_VERSION_MINOR)' \
SG_GIT_VERSION_PATCH='$(SG_GIT_VERSION_PATCH)' \
SG_PLUGIN_VERSION='$(SG_PLUGIN_VERSION)' \
SG_PLUGIN_VERSION_MAJOR='$(SG_PLUGIN_VERSION_MAJOR)' \
SG_PLUGIN_VERSION_MINOR='$(SG_PLUGIN_VERSION_MINOR)' \
SG_PLUGIN_VERSION_PATCH='$(SG_PLUGIN_VERSION_PATCH)' \
SG_BUILD_HOST='$(SG_BUILD_HOST)' \
SG_BUILD_TIME='$(SG_BUILD_TIME)' \
MDBOOK_output__html__site_url='$(SG_MDBOOK_HTML_SITE_URL)' \
MDBOOK_output__pdf__browser_binary_path='$(SG_MDBOOK_PDF_BROWSER_BINARY_PATH)' \
mdbook serve \
-n $(SG_MDBOOK_HOST) \
-p $(SG_MDBOOK_PORT) \
--watcher $(SG_MDBOOK_WATCHER) \
--dest-dir $(SG_MDBOOK_DEST_DIR)
.PHONY: _mdbook_build
_mdbook_build:
@echo "Building $(SG_HANDBOOK_DIR)..."
@env SG_PROJECT_NAME='$(SG_PROJECT_NAME)' \
SG_HANDBOOK_REVISION='$(SG_HANDBOOK_REVISION)' \
SG_HANDBOOK_REVISION_URL='$(SG_HANDBOOK_REVISION_URL)' \
SG_HANDBOOK_PDF_URL='$(SG_HANDBOOK_PDF_URL)' \
SG_HANDBOOK_EPUB_URL='$(SG_HANDBOOK_EPUB_URL)' \
SG_GIT_BRANCH='$(SG_GIT_BRANCH)' \
SG_GIT_TAG='$(SG_GIT_TAG)' \
SG_GIT_COMMIT='$(SG_GIT_COMMIT)' \
SG_GIT_COMMIT_NUMS_SINCE_TAG='$(SG_GIT_COMMIT_NUMS_SINCE_TAG)' \
SG_GIT_TREE_STATE='$(SG_GIT_TREE_STATE)' \
SG_GIT_IS_SHALLOW_CLONE='$(SG_GIT_IS_SHALLOW_CLONE)' \
SG_GIT_LATEST_REMOTE_TAG='$(SG_GIT_LATEST_REMOTE_TAG)' \
SG_GIT_VERSION='$(SG_GIT_VERSION)' \
SG_GIT_VERSION_MAJOR='$(SG_GIT_VERSION_MAJOR)' \
SG_GIT_VERSION_MINOR='$(SG_GIT_VERSION_MINOR)' \
SG_GIT_VERSION_PATCH='$(SG_GIT_VERSION_PATCH)' \
SG_PLUGIN_VERSION='$(SG_PLUGIN_VERSION)' \
SG_PLUGIN_VERSION_MAJOR='$(SG_PLUGIN_VERSION_MAJOR)' \
SG_PLUGIN_VERSION_MINOR='$(SG_PLUGIN_VERSION_MINOR)' \
SG_PLUGIN_VERSION_PATCH='$(SG_PLUGIN_VERSION_PATCH)' \
SG_BUILD_HOST='$(SG_BUILD_HOST)' \
SG_BUILD_TIME='$(SG_BUILD_TIME)' \
MDBOOK_output__html__site_url='$(SG_MDBOOK_HTML_SITE_URL)' \
MDBOOK_output__pdf__browser_binary_path='$(SG_MDBOOK_PDF_BROWSER_BINARY_PATH)' \
mdbook build \
--dest-dir $(SG_MDBOOK_DEST_DIR)
.PHONY: _pack
_pack:
@echo "Packing '$(SG_HANDBOOK_DIR)'..."
@echo "Cleaning up the pack directory '$(SG_DOCUMENTATION_PACK_DIR)'..."
@rm -rf "$(SG_DOCUMENTATION_PACK_DIR)"
@echo "Creating the pack directory '$(SG_DOCUMENTATION_PACK_DIR)'..."
@mkdir -p "$(SG_DOCUMENTATION_PACK_DIR)"
@echo "Moving '$(SG_DOCUMENTATION_HTML_DIR)' to '$(SG_HANDBOOK_PACKED_HTML_DIR)'..."
ifeq ($(SG_BUILD_PLATFORM),$(SG_BUILD_PLATFORM_LINUX))
@mv "$(SG_DOCUMENTATION_HTML_DIR)" "$(SG_HANDBOOK_PACKED_HTML_DIR)"
else # ($(SG_BUILD_PLATFORM),$(SG_BUILD_PLATFORM_LINUX))
@powershell -Command "Move-Item '$(SG_DOCUMENTATION_HTML_DIR)' '$(SG_HANDBOOK_PACKED_HTML_DIR)'"
endif # ($(SG_BUILD_PLATFORM),$(SG_BUILD_PLATFORM_LINUX))
@echo "Compressing '$(SG_HANDBOOK_PACKED_HTML_DIR)' to '$(SG_HANDBOOK_PACKED_HTML_FILE)'..."
ifeq ($(SG_BUILD_PLATFORM),$(SG_BUILD_PLATFORM_LINUX))
@cd "$(SG_DOCUMENTATION_PACK_DIR)" \
&& zip $(SG_HANDBOOK_PACKED_HTML_FILE) -r $(SG_HANDBOOK_ESCAPED_NAME)
else # ($(SG_BUILD_PLATFORM),$(SG_BUILD_PLATFORM_LINUX))
@cd "$(SG_DOCUMENTATION_PACK_DIR)" \
&& powershell Compress-Archive $(SG_HANDBOOK_ESCAPED_NAME) $(SG_HANDBOOK_PACKED_HTML_FILE)
endif # ($(SG_BUILD_PLATFORM),$(SG_BUILD_PLATFORM_LINUX))
@echo "Moving '$(SG_DOCUMENTATION_PDF_FILE)' to '$(SG_HANDBOOK_PACKED_PDF_FILE)'..."
ifeq ($(SG_BUILD_PLATFORM),$(SG_BUILD_PLATFORM_LINUX))
@mv "$(SG_DOCUMENTATION_PDF_FILE)" "$(SG_HANDBOOK_PACKED_PDF_FILE)"
else # ($(SG_BUILD_PLATFORM),$(SG_BUILD_PLATFORM_LINUX))
@powershell -Command "Move-Item '$(SG_DOCUMENTATION_PDF_FILE)' '$(SG_HANDBOOK_PACKED_PDF_FILE)'"
endif # ($(SG_BUILD_PLATFORM),$(SG_BUILD_PLATFORM_LINUX))
@echo "Moving '$(SG_DOCUMENTATION_EPUB_FILE)' to '$(SG_HANDBOOK_PACKED_EPUB_FILE)'..."
ifeq ($(SG_BUILD_PLATFORM),$(SG_BUILD_PLATFORM_LINUX))
@mv "$(SG_DOCUMENTATION_EPUB_FILE)" "$(SG_HANDBOOK_PACKED_EPUB_FILE)"
else # ($(SG_BUILD_PLATFORM),$(SG_BUILD_PLATFORM_LINUX))
@powershell -Command "Move-Item '$(SG_DOCUMENTATION_EPUB_FILE)' '$(SG_HANDBOOK_PACKED_EPUB_FILE)'"
endif # ($(SG_BUILD_PLATFORM),$(SG_BUILD_PLATFORM_LINUX))
.PHONY: _deploy
_deploy:
@echo "Deploying '$(SG_HANDBOOK_DIR)'..."
@echo "Loading the Handbook deployment configuration file..."
@$(call load_env, $(SG_HANDBOOK_DEPLOY_CONFIG_FILE))
@echo "Deploying '$(SG_HANDBOOK_DIR)' to '$(SG_HANDBOOK_SSH_USER)@$(SG_HANDBOOK_SSH_HOST):$(SG_HANDBOOK_SSH_REMOTE_DIR)/$(SG_HANDBOOK_REVISION)'..."
ifeq ($(SG_BUILD_PLATFORM),$(SG_BUILD_PLATFORM_LINUX))
@rsync \
-avze "ssh -p $(SG_HANDBOOK_SSH_PORT)" \
--perms \
--chmod=u+rwx,g+rx,o+rx,g-w,o-wx \
--delete $(SG_DOCUMENTATION_HTML_DIR)/ \
$(SG_HANDBOOK_SSH_USER)@$(SG_HANDBOOK_SSH_HOST):$(SG_HANDBOOK_SSH_REMOTE_DIR)/$(SG_HANDBOOK_REVISION)
else # ($(SG_BUILD_PLATFORM),$(SG_BUILD_PLATFORM_LINUX))
@cd "$(SG_DOCUMENTATION_DIR)" \
&& "$(SG_RSYNC_BINARY_PATH_WINDOWS)" \
-avze "\"$(SG_RSYNC_SSH_BINARY_PATH_WINDOWS)\" -p $(SG_HANDBOOK_SSH_PORT)" \
--perms \
--chmod=u+rwx,g+rx,o+rx,g-w,o-wx \
--delete $(SG_DOCUMENTATION_HTML_DIR_NAME)/ \
$(SG_HANDBOOK_SSH_USER)@$(SG_HANDBOOK_SSH_HOST):$(SG_HANDBOOK_SSH_REMOTE_DIR)/$(SG_HANDBOOK_REVISION)
endif # ($(SG_BUILD_PLATFORM),$(SG_BUILD_PLATFORM_LINUX))
@echo "Copying '$(SG_DOCUMENTATION_PDF_FILE)' to '$(SG_HANDBOOK_DEPLOY_GENERATED_PDF_FILE)'..."
@cp -v "$(SG_DOCUMENTATION_PDF_FILE)" "$(SG_HANDBOOK_DEPLOY_GENERATED_PDF_FILE)"
@echo "Uploading '$(SG_HANDBOOK_DEPLOY_GENERATED_PDF_FILE)' to '$(SG_HANDBOOK_SSH_USER)@$(SG_HANDBOOK_SSH_HOST):$(SG_HANDBOOK_SSH_REMOTE_DIR)/$(SG_HANDBOOK_REVISION)'..."
@scp \
-P $(SG_HANDBOOK_SSH_PORT) \
"$(SG_HANDBOOK_DEPLOY_GENERATED_PDF_FILE)" \
$(SG_HANDBOOK_SSH_USER)@$(SG_HANDBOOK_SSH_HOST):$(SG_HANDBOOK_SSH_REMOTE_DIR)/$(SG_HANDBOOK_REVISION)
@echo "Copying '$(SG_DOCUMENTATION_EPUB_FILE)' to '$(SG_HANDBOOK_DEPLOY_GENERATED_EPUB_FILE)'..."
@cp -v "$(SG_DOCUMENTATION_EPUB_FILE)" "$(SG_HANDBOOK_DEPLOY_GENERATED_EPUB_FILE)"
@echo "Uploading '$(SG_HANDBOOK_DEPLOY_GENERATED_EPUB_FILE)' to '$(SG_HANDBOOK_SSH_USER)@$(SG_HANDBOOK_SSH_HOST):$(SG_HANDBOOK_SSH_REMOTE_DIR)/$(SG_HANDBOOK_REVISION)'..."
@scp \
-P $(SG_HANDBOOK_SSH_PORT) \
"$(SG_HANDBOOK_DEPLOY_GENERATED_EPUB_FILE)" \
$(SG_HANDBOOK_SSH_USER)@$(SG_HANDBOOK_SSH_HOST):$(SG_HANDBOOK_SSH_REMOTE_DIR)/$(SG_HANDBOOK_REVISION)
@echo "Retrieving the list of deployed handbook revisions from '$(SG_HANDBOOK_SSH_USER)@$(SG_HANDBOOK_SSH_HOST):$(SG_HANDBOOK_SSH_PORT)/$(SG_HANDBOOK_SSH_REMOTE_DIR)'..."
@ssh \
-p $(SG_HANDBOOK_SSH_PORT) $(SG_HANDBOOK_SSH_USER)@$(SG_HANDBOOK_SSH_HOST) \
"mkdir -p $(SG_HANDBOOK_SSH_REMOTE_DIR)"
@ssh \
-p $(SG_HANDBOOK_SSH_PORT) $(SG_HANDBOOK_SSH_USER)@$(SG_HANDBOOK_SSH_HOST) \
"find $(SG_HANDBOOK_SSH_REMOTE_DIR) -maxdepth 1 -type d ! -path $(SG_HANDBOOK_SSH_REMOTE_DIR) -exec basename {} \; | sort -r" \
> $(SG_HANDBOOK_DEPLOY_REVISION_LIST_FILE)
@{ \
grep -i 'next' $(SG_HANDBOOK_DEPLOY_REVISION_LIST_FILE); \
grep -vi 'next' $(SG_HANDBOOK_DEPLOY_REVISION_LIST_FILE) \
| sort -r; \
} > "$(SG_HANDBOOK_DEPLOY_REVISION_LIST_FILE).tmp"
@mv "$(SG_HANDBOOK_DEPLOY_REVISION_LIST_FILE).tmp" "$(SG_HANDBOOK_DEPLOY_REVISION_LIST_FILE)"
@echo "Revisions list saved to '$(SG_HANDBOOK_DEPLOY_REVISION_LIST_FILE)'!"
@echo "Current revisions:"
@sed 's/^/ - /' "$(SG_HANDBOOK_DEPLOY_REVISION_LIST_FILE)"
@echo "Generating '$(SG_HANDBOOK_DEPLOY_GENERATED_HOME_INDEX_FILE)'..."
@echo "<html>" > "$(SG_HANDBOOK_DEPLOY_GENERATED_HOME_INDEX_FILE)"
@echo "<head>" >> "$(SG_HANDBOOK_DEPLOY_GENERATED_HOME_INDEX_FILE)"
@echo "<title>Welcome to $(SG_PROJECT_NAME)</title>" >> "$(SG_HANDBOOK_DEPLOY_GENERATED_HOME_INDEX_FILE)"
@echo "<link rel='icon' href='favicon.svg'>" >> "$(SG_HANDBOOK_DEPLOY_GENERATED_HOME_INDEX_FILE)"
@echo "<link rel='shortcut icon' href='favicon.svg'>" >> "$(SG_HANDBOOK_DEPLOY_GENERATED_HOME_INDEX_FILE)"
@echo "<style>" >> "$(SG_HANDBOOK_DEPLOY_GENERATED_HOME_INDEX_FILE)"
@echo "body {" >> "$(SG_HANDBOOK_DEPLOY_GENERATED_HOME_INDEX_FILE)"
@echo "font-family: Arial, sans-serif;" >> "$(SG_HANDBOOK_DEPLOY_GENERATED_HOME_INDEX_FILE)"
@echo "background-color: #003070;" >> "$(SG_HANDBOOK_DEPLOY_GENERATED_HOME_INDEX_FILE)"
@echo "color: #fff;" >> "$(SG_HANDBOOK_DEPLOY_GENERATED_HOME_INDEX_FILE)"
@echo "margin: 0;" >> "$(SG_HANDBOOK_DEPLOY_GENERATED_HOME_INDEX_FILE)"
@echo "padding: 0;" >> "$(SG_HANDBOOK_DEPLOY_GENERATED_HOME_INDEX_FILE)"
@echo "}" >> "$(SG_HANDBOOK_DEPLOY_GENERATED_HOME_INDEX_FILE)"
@echo ".container {" >> "$(SG_HANDBOOK_DEPLOY_GENERATED_HOME_INDEX_FILE)"
@echo "padding: 2.0em;" >> "$(SG_HANDBOOK_DEPLOY_GENERATED_HOME_INDEX_FILE)"
@echo "}" >> "$(SG_HANDBOOK_DEPLOY_GENERATED_HOME_INDEX_FILE)"
@echo ".logo-container {" >> "$(SG_HANDBOOK_DEPLOY_GENERATED_HOME_INDEX_FILE)"
@echo "text-align: center;" >> "$(SG_HANDBOOK_DEPLOY_GENERATED_HOME_INDEX_FILE)"
@echo "}" >> "$(SG_HANDBOOK_DEPLOY_GENERATED_HOME_INDEX_FILE)"
@echo ".logo-container img {" >> "$(SG_HANDBOOK_DEPLOY_GENERATED_HOME_INDEX_FILE)"
@echo "max-width: 100%;" >> "$(SG_HANDBOOK_DEPLOY_GENERATED_HOME_INDEX_FILE)"
@echo "height: auto;" >> "$(SG_HANDBOOK_DEPLOY_GENERATED_HOME_INDEX_FILE)"
@echo "}" >> "$(SG_HANDBOOK_DEPLOY_GENERATED_HOME_INDEX_FILE)"
@echo ".title-container {" >> "$(SG_HANDBOOK_DEPLOY_GENERATED_HOME_INDEX_FILE)"
@echo "text-align: center;" >> "$(SG_HANDBOOK_DEPLOY_GENERATED_HOME_INDEX_FILE)"
@echo "}" >> "$(SG_HANDBOOK_DEPLOY_GENERATED_HOME_INDEX_FILE)"
@echo ".revisions-container {" >> "$(SG_HANDBOOK_DEPLOY_GENERATED_HOME_INDEX_FILE)"
@echo "display: table;" >> "$(SG_HANDBOOK_DEPLOY_GENERATED_HOME_INDEX_FILE)"
@echo "width: 300px;" >> "$(SG_HANDBOOK_DEPLOY_GENERATED_HOME_INDEX_FILE)"
@echo "margin: 0 auto;" >> "$(SG_HANDBOOK_DEPLOY_GENERATED_HOME_INDEX_FILE)"
@echo "padding: 20px;" >> "$(SG_HANDBOOK_DEPLOY_GENERATED_HOME_INDEX_FILE)"
@echo "}" >> "$(SG_HANDBOOK_DEPLOY_GENERATED_HOME_INDEX_FILE)"
@echo ".row {" >> "$(SG_HANDBOOK_DEPLOY_GENERATED_HOME_INDEX_FILE)"
@echo "display: table-row;" >> "$(SG_HANDBOOK_DEPLOY_GENERATED_HOME_INDEX_FILE)"
@echo "}" >> "$(SG_HANDBOOK_DEPLOY_GENERATED_HOME_INDEX_FILE)"
@echo ".cell {" >> "$(SG_HANDBOOK_DEPLOY_GENERATED_HOME_INDEX_FILE)"
@echo "display: table-cell;" >> "$(SG_HANDBOOK_DEPLOY_GENERATED_HOME_INDEX_FILE)"
@echo "background-color: #004890;" >> "$(SG_HANDBOOK_DEPLOY_GENERATED_HOME_INDEX_FILE)"
@echo "border-radius: 5px;" >> "$(SG_HANDBOOK_DEPLOY_GENERATED_HOME_INDEX_FILE)"
@echo "box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);" >> "$(SG_HANDBOOK_DEPLOY_GENERATED_HOME_INDEX_FILE)"
@echo "margin: 10px;" >> "$(SG_HANDBOOK_DEPLOY_GENERATED_HOME_INDEX_FILE)"
@echo "padding: 20px;" >> "$(SG_HANDBOOK_DEPLOY_GENERATED_HOME_INDEX_FILE)"
@echo "text-align: center;" >> "$(SG_HANDBOOK_DEPLOY_GENERATED_HOME_INDEX_FILE)"
@echo "transition: transform 0.2s;" >> "$(SG_HANDBOOK_DEPLOY_GENERATED_HOME_INDEX_FILE)"
@echo "}" >> "$(SG_HANDBOOK_DEPLOY_GENERATED_HOME_INDEX_FILE)"
@echo ".cell:hover {" >> "$(SG_HANDBOOK_DEPLOY_GENERATED_HOME_INDEX_FILE)"
@echo "transform: scale(1.05);" >> "$(SG_HANDBOOK_DEPLOY_GENERATED_HOME_INDEX_FILE)"
@echo "}" >> "$(SG_HANDBOOK_DEPLOY_GENERATED_HOME_INDEX_FILE)"
@echo ".cell a {" >> "$(SG_HANDBOOK_DEPLOY_GENERATED_HOME_INDEX_FILE)"
@echo "display: block;" >> "$(SG_HANDBOOK_DEPLOY_GENERATED_HOME_INDEX_FILE)"
@echo "height: 100%;" >> "$(SG_HANDBOOK_DEPLOY_GENERATED_HOME_INDEX_FILE)"
@echo "width: 100%;" >> "$(SG_HANDBOOK_DEPLOY_GENERATED_HOME_INDEX_FILE)"
@echo "text-decoration: none;" >> "$(SG_HANDBOOK_DEPLOY_GENERATED_HOME_INDEX_FILE)"
@echo "color: #fff;" >> "$(SG_HANDBOOK_DEPLOY_GENERATED_HOME_INDEX_FILE)"
@echo "font-weight: bold;" >> "$(SG_HANDBOOK_DEPLOY_GENERATED_HOME_INDEX_FILE)"
@echo "}" >> "$(SG_HANDBOOK_DEPLOY_GENERATED_HOME_INDEX_FILE)"
@echo "</style>" >> "$(SG_HANDBOOK_DEPLOY_GENERATED_HOME_INDEX_FILE)"
@echo "</head>" >> "$(SG_HANDBOOK_DEPLOY_GENERATED_HOME_INDEX_FILE)"
@echo "<body>" >> "$(SG_HANDBOOK_DEPLOY_GENERATED_HOME_INDEX_FILE)"
@echo "<div class='container'>" >> "$(SG_HANDBOOK_DEPLOY_GENERATED_HOME_INDEX_FILE)"
@echo "<div class='logo-container'>" >> $(SG_HANDBOOK_DEPLOY_GENERATED_HOME_INDEX_FILE)
@echo "<img src="favicon.svg" alt='SenseGlove' />" >> "$(SG_HANDBOOK_DEPLOY_GENERATED_HOME_INDEX_FILE)"
@echo "</div>" >> "$(SG_HANDBOOK_DEPLOY_GENERATED_HOME_INDEX_FILE)"
@echo "<div class='title-container'>" >> "$(SG_HANDBOOK_DEPLOY_GENERATED_HOME_INDEX_FILE)"
@echo "<h1>Welcome to the SenseGlove Unreal Engine Handbook</h1>" >> "$(SG_HANDBOOK_DEPLOY_GENERATED_HOME_INDEX_FILE)"
@echo "<h3>Please choose a revision to continue!</h3>" >> "$(SG_HANDBOOK_DEPLOY_GENERATED_HOME_INDEX_FILE)"
@echo "<h5>* Please note that the next revision is the documentation for the unstable next release of the plugin and subject to change!</h5>" >> "$(SG_HANDBOOK_DEPLOY_GENERATED_HOME_INDEX_FILE)"
@echo "</div>" >> "$(SG_HANDBOOK_DEPLOY_GENERATED_HOME_INDEX_FILE)"
@echo "<div class='revisions-container'>" >> "$(SG_HANDBOOK_DEPLOY_GENERATED_HOME_INDEX_FILE)"
@while read dir; \
do \
echo "<div class='row'><div class='cell'><a href=\"$$dir\">$$dir</a></div></div>"; \
done < $(SG_HANDBOOK_DEPLOY_REVISION_LIST_FILE) >> "$(SG_HANDBOOK_DEPLOY_GENERATED_HOME_INDEX_FILE)"
@echo "</div>" >> "$(SG_HANDBOOK_DEPLOY_GENERATED_HOME_INDEX_FILE)"
@echo "</div>" >> "$(SG_HANDBOOK_DEPLOY_GENERATED_HOME_INDEX_FILE)"
@echo "</body>" >> "$(SG_HANDBOOK_DEPLOY_GENERATED_HOME_INDEX_FILE)"
@echo "</html>" >> "$(SG_HANDBOOK_DEPLOY_GENERATED_HOME_INDEX_FILE)"
@echo "Uploading '$(SG_HANDBOOK_FAVICON_FILE)' to '$(SG_HANDBOOK_SSH_USER)@$(SG_HANDBOOK_SSH_HOST):$(SG_HANDBOOK_SSH_REMOTE_DIR)'"
@scp \
-P $(SG_HANDBOOK_SSH_PORT) \
"$(SG_HANDBOOK_FAVICON_FILE)" \
$(SG_HANDBOOK_SSH_USER)@$(SG_HANDBOOK_SSH_HOST):$(SG_HANDBOOK_SSH_REMOTE_DIR)
@echo "Uploading '$(SG_HANDBOOK_DEPLOY_GENERATED_HOME_INDEX_FILE)' to '$(SG_HANDBOOK_SSH_USER)@$(SG_HANDBOOK_SSH_HOST):$(SG_HANDBOOK_SSH_REMOTE_DIR)'"
@scp \
-P $(SG_HANDBOOK_SSH_PORT) \
"$(SG_HANDBOOK_DEPLOY_GENERATED_HOME_INDEX_FILE)" \
$(SG_HANDBOOK_SSH_USER)@$(SG_HANDBOOK_SSH_HOST):$(SG_HANDBOOK_SSH_REMOTE_DIR)
-91
View File
@@ -1,91 +0,0 @@
# The SenseGlove Unreal Engine Handbook
## Prerequisites
- Brave Browser (for PDF generation; in case you have Brave installed in a non-conventional path, or you'd like to use a different Chromium-based browser you need to adjust the path inside the GNUmakefile).
- cygpath (Windows only) provided by [Git for Windows](https://gitforwindows.org/).
- GNU Make.
- Git.
- PowerShell (Windows only) required only by the `pack` make target.
- Python3 along with venv and pip. For Windows, a version of [WinPython](https://winpython.github.io/) is already shipped with this repo, so it's not an external requirement.
- Rsync and OpenSSH ([cwRsync](https://itefix.net/cwrsync) provides these for Windows) required only by the `deploy` make target.
- The Rust Toolchain and the Cargo package manager.
- Other common Unix utilities such as `awk`, `cp`, `cut`, `date`, `find`, `grep`, `hostname`, `mkdir`, `mktemp`, `mv`, `scp`, `sed`, `ssh`, `sort`, `tr`, and `uname` provided by most distors. On Windows these are mostly provided by [Git for Windows](https://gitforwindows.org/).
- `zip` command (Linux only) required only by the `pack` make target.
### Microsoft Windows Prerequisites Installation Notes
- Download and install [Git for Windows](https://gitforwindows.org/).
- Download and install [the Rust Toolchain](https://rustup.rs/).
- Download [a without-guile binary build of GNU Make for Windows from ezwinports](https://sourceforge.net/projects/ezwinports/files/), e.g. <code>make-4.4.1-without-guile-w32-bin.zip</code>.
- <code>make-\*-without-guile-w32-bin.zip/*</code> contents should be extracted and copied to your <code>Git\\mingw64\\</code>, e.g. <code>C:\\Program Files\\Git\\mingw64\\</code>, merging the folders, WITHOUT overwriting/replacing any existing files.
- After Git Bash installation, the changes to environment variables require a reboot. In order for these changes to take effect reboot the system, then proceed to the build section.
- Download and install [cwRsync](https://itefix.net/cwrsync) which is only required for the `deploy` make target. In case you won't intend to use that, this could be skipped.
## How to preview, build, and deploy?
In order to generate the handbook, on either GNU/Linux and Microsoft Windows everything is done through running the <code>make</code> command. Simply entering the <code>make</code> or <code>make help</code> inside your desired terminal will show you all the available make targets:
```sh
$ make help
Available make targets:
- make build
- make clean
- make deploy
- make help
- make info
- make pack
- make serve
```
### make info
This target prints the build and version information.
### make clean
This target cleans up the output directory for the generated handbook, which is the <code>/Documentation</code> folder.
### make serve
This tatget could be used for viewing or live-previwing the handbook while editing simultaneously editing it. Simply run this tatget and leave your terminal open and inside your web browser of choice head to <code>http://localhost:8000/</code>. You can modify the handbook source code inside any text editor and upon saving your web browser will refresh in realtime once a change is detected.
### make build
This tatget builds the final handbook and outputs it to the <code>/Documentation</code> folder.
If you're building a release handbook, please make sure:
- You are either on a release tag, e.g. v2.1.0, or on the master branch.
- No commit has been made since the targeted tag.
- The Git tree state is clean.
- The Git version and plugin version match each other.
If you're building an unstable handbook for the next release, please make sure:
- You're building from the dev branch.
- The Git version value evaluates to empty.
### make deploy
This tatget is used to build and upload the final draft of the handbook. This tatget first runs the <code>clean</code> target and then the <code>build</code> target; and only then attempts to upload the content. Thus, any rule that applies to the <code>build</code> target, will apply to this target as well.
_Noete_: Building on Windows requires sourcing the deployment configuration file, otherwise the deployment will fail; e.g.:
```sh
$ source /c/Users/mamadou/AppData/Local/SenseGlove/ue-handbook/deploy.conf && make deploy
```
Also, on Windows you probably need to adjust the follwoing variables at the top of the `GNUmakefile`:
```make
SG_RSYNC_BIN_PATH_WINDOWS := C:\Program Files\cwrsync\bin
SG_RSYNC_BINARY_PATH_WINDOWS := $(SG_RSYNC_BIN_PATH_WINDOWS)\rsync.exe
SG_RSYNC_SSH_BINARY_PATH_WINDOWS := $(SG_RSYNC_BIN_PATH_WINDOWS)\ssh.exe
```
### make pack
This target is meant to be used by the `sgum-packager` utility located in the [Packager](../Packager) folder in order to deploy the documentation in various formats along with the plugin to [Fab](https://www.fab.com/).
-106
View File
@@ -1,106 +0,0 @@
#!/usr/bin/env sh
#
# author: Mamadou Babaei <mamadou@senseglove.com>
#
# (The MIT License)
#
# Copyright (c) 2020 - 2025 SenseGlove
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in all
# copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
#
if [ "$1" = "supports" ]
then
exit 0
fi
readonly JSON_INPUT=$(cat)
readonly CONTEXT=$(echo "${JSON_INPUT}" | xq '.[0]')
readonly BOOK=$(echo "${JSON_INPUT}" | xq '.[1]')
escape_string() {
printf '%s' "$1" | sed -e 's/\\/\\\\/g' -e 's/"/\\"/g'
}
SG_PROJECT_NAME_ESCAPED=$(escape_string "${SG_PROJECT_NAME}")
SG_HANDBOOK_REVISION_ESCAPED=$(escape_string "${SG_HANDBOOK_REVISION}")
SG_HANDBOOK_REVISION_URL_ESCAPED=$(escape_string "${SG_HANDBOOK_REVISION_URL}")
SG_HANDBOOK_EPUB_URL_ESCAPED=$(escape_string "${SG_HANDBOOK_EPUB_URL}")
SG_HANDBOOK_PDF_URL_ESCAPED=$(escape_string "${SG_HANDBOOK_PDF_URL}")
SG_GIT_BRANCH_ESCAPED=$(escape_string "${SG_GIT_BRANCH}")
SG_GIT_TAG_ESCAPED=$(escape_string "${SG_GIT_TAG}")
SG_GIT_COMMIT_ESCAPED=$(escape_string "${SG_GIT_COMMIT}")
SG_GIT_COMMIT_NUMS_SINCE_TAG_ESCAPED=$(escape_string "${SG_GIT_COMMIT_NUMS_SINCE_TAG}")
SG_GIT_TREE_STATE_ESCAPED=$(escape_string "${SG_GIT_TREE_STATE}")
SG_GIT_IS_SHALLOW_CLONE_ESCAPED=$(escape_string "${SG_GIT_IS_SHALLOW_CLONE}")
SG_GIT_LATEST_REMOTE_TAG_ESCAPED=$(escape_string "${SG_GIT_LATEST_REMOTE_TAG}")
SG_GIT_VERSION_ESCAPED=$(escape_string "${SG_GIT_VERSION}")
SG_GIT_VERSION_MAJOR_ESCAPED=$(escape_string "${SG_GIT_VERSION_MAJOR}")
SG_GIT_VERSION_MINOR_ESCAPED=$(escape_string "${SG_GIT_VERSION_MINOR}")
SG_GIT_VERSION_PATCH_ESCAPED=$(escape_string "${SG_GIT_VERSION_PATCH}")
SG_PLUGIN_VERSION_ESCAPED=$(escape_string "${SG_PLUGIN_VERSION}")
SG_PLUGIN_VERSION_MAJOR_ESCAPED=$(escape_string "${SG_PLUGIN_VERSION_MAJOR}")
SG_PLUGIN_VERSION_MINOR_ESCAPED=$(escape_string "${SG_PLUGIN_VERSION_MINOR}")
SG_PLUGIN_VERSION_PATCH_ESCAPED=$(escape_string "${SG_PLUGIN_VERSION_PATCH}")
SG_BUILD_HOST_ESCAPED=$(escape_string "${SG_BUILD_HOST}")
SG_BUILD_TIME_ESCAPED=$(escape_string "${SG_BUILD_TIME}")
PARSED_BOOK=$(echo "${BOOK}" | xq "
.sections[] |= (
if has(\"Chapter\") then
.Chapter.content |=
walk(if type == \"string\" then
. | gsub(\"{{ #sg-project-name }}\"; \"${SG_PROJECT_NAME_ESCAPED}\") |
gsub(\"{{ #sg-handbook-revision }}\"; \"${SG_HANDBOOK_REVISION_ESCAPED}\") |
gsub(\"{{ #sg-handbook-revision-url }}\"; \"${SG_HANDBOOK_REVISION_URL_ESCAPED}\") |
gsub(\"{{ #sg-handbook-epub-url }}\"; \"${SG_HANDBOOK_EPUB_URL_ESCAPED}\") |
gsub(\"{{ #sg-handbook-pdf-url }}\"; \"${SG_HANDBOOK_PDF_URL_ESCAPED}\") |
gsub(\"{{ #sg-git-branch }}\"; \"${SG_GIT_BRANCH_ESCAPED}\") |
gsub(\"{{ #sg-git-tag }}\"; \"${SG_GIT_TAG_ESCAPED}\") |
gsub(\"{{ #sg-git-commit }}\"; \"${SG_GIT_COMMIT_ESCAPED}\") |
gsub(\"{{ #sg-git-commit-nums-since-tag }}\"; \"${SG_GIT_COMMIT_NUMS_SINCE_TAG_ESCAPED}\") |
gsub(\"{{ #sg-git-tree-state }}\"; \"${SG_GIT_TREE_STATE_ESCAPED}\") |
gsub(\"{{ #sg-git-is-shallow-clone }}\"; \"${SG_GIT_IS_SHALLOW_CLONE_ESCAPED}\") |
gsub(\"{{ #sg-git-latest-remote-tag }}\"; \"${SG_GIT_LATEST_REMOTE_TAG_ESCAPED}\") |
gsub(\"{{ #sg-git-version }}\"; \"${SG_GIT_VERSION_ESCAPED}\") |
gsub(\"{{ #sg-git-version-major }}\"; \"${SG_GIT_VERSION_MAJOR_ESCAPED}\") |
gsub(\"{{ #sg-git-version-minor }}\"; \"${SG_GIT_VERSION_MINOR_ESCAPED}\") |
gsub(\"{{ #sg-git-version-patch }}\"; \"${SG_GIT_VERSION_PATCH_ESCAPED}\") |
gsub(\"{{ #sg-plugin-version }}\"; \"${SG_PLUGIN_VERSION_ESCAPED}\") |
gsub(\"{{ #sg-plugin-version-major }}\"; \"${SG_PLUGIN_VERSION_MAJOR_ESCAPED}\") |
gsub(\"{{ #sg-plugin-version-minor }}\"; \"${SG_PLUGIN_VERSION_MINOR_ESCAPED}\") |
gsub(\"{{ #sg-plugin-version-patch }}\"; \"${SG_PLUGIN_VERSION_PATCH_ESCAPED}\") |
gsub(\"{{ #sg-build-host }}\"; \"${SG_BUILD_HOST_ESCAPED}\") |
gsub(\"{{ #sg-build-time }}\"; \"${SG_BUILD_TIME_ESCAPED}\")
else
.
end)
else
.
end
)")
# For debugging purpose only!
#echo "CONTEXT: ${CONTEXT}" >&2
#echo "BOOK: ${BOOK}" >&2
#echo "PARSED_BOOK: ${PARSED_BOOK}" >&2
echo "${PARSED_BOOK}" | xq '.'
-115
View File
@@ -1,115 +0,0 @@
#
# author: Mamadou Babaei <mamadou@senseglove.com>
#
# (The MIT License)
#
# Copyright (c) 2020 - 2025 SenseGlove
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in all
# copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
#
[book]
authors = ["Mamadou Babaei"]
description = "Welcome to the SenseGlove Unreal Engine documentation!"
language = "en"
multilingual = false
src = "src"
text-direction = "ltr"
title = "The SenseGlove Unreal Engine Handbook"
[build]
build-dir = "book"
create-missing = false
extra-watch-dirs = ["assets"]
use-default-preprocessors = true
[preprocessor.index]
[preprocessor.links]
[preprocessor.alerts]
[preprocessor.senseglove]
after = [ "index", "links" ]
command = "sh ./bin/sg-preprocessor.sh"
[output.epub]
no-section-label = false
curly-quotes = true
epub-version = 3
footnote-backrefs = true
[output.html]
additional-css = ["styles/custom.css"]
additional-js = []
cname = "unreal.docs.senseglove.com"
copy-fonts = true
default-theme = "navy"
git-repository-url = "https://dev.azure.com/SenseGlove/_git/SenseGlove-Unreal"
git-repository-icon = "fa-git"
input-404 = "404.md"
mathjax-support = false
no-section-label = false
preferred-dark-theme = "navy"
smart-punctuation = false
theme = ""
[output.html.fold]
enable = false
level = 0
[output.html.print]
enable = true
page-break = true
[output.html.search]
boost-hierarchy = 1
boost-paragraph = 1
boost-title = 2
copy-js = true
enable = true
expand = true
heading-split-level = 3
limit-results = 128
teaser-word-count = 64
use-boolean-and = true
[output.pdf]
trying-times = 1
timeout = 300
# https://chromedevtools.github.io/devtools-protocol/tot/Page/#method-printToPDF
landscape = false
display-header-footer = true
print-background = false
scale = 1.0
paper-width = 8
paper-height = 10
margin-top = 0.5
margin-bottom = 0.5
margin-left = 0.5
margin-right = 0.5
page-ranges = ""
ignore-invalid-page-ranges = false
header-template = "<h3 style='font-size:8px; margin-left: 48%' class='title'></h3>"
footer-template = "<p style='font-size:10px; margin-left: 48%'><span class='pageNumber'></span> / <span class='totalPages'></span></p>"
prefer-css-page-size = true
[output.pdf-outline]
optional = true
like-wkhtmltopdf = true
-6
View File
@@ -1,6 +0,0 @@
# Reset all rules from parent .gitignore files!
!*/
!**/*
# Recursively ignore all __pycache__ folders!
__pycache__/
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
View File
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

Some files were not shown because too many files have changed in this diff Show More