Rename nreal to xreal in readme, cmake and binaries
Signed-off-by: Jacki <jacki@thejackimonster.de>
This commit is contained in:
parent
2d7ab0d4fa
commit
1705703b73
7 changed files with 42 additions and 39 deletions
|
@ -1,19 +1,19 @@
|
|||
cmake_minimum_required(VERSION 3.16)
|
||||
project(nrealAirLinuxDriver C)
|
||||
project(xrealAirLinuxDriver C)
|
||||
|
||||
set(CMAKE_C_STANDARD 17)
|
||||
|
||||
add_subdirectory(interface_lib)
|
||||
add_subdirectory(examples)
|
||||
|
||||
add_executable(nrealAirLinuxDriver
|
||||
add_executable(xrealAirLinuxDriver
|
||||
src/driver.c
|
||||
)
|
||||
|
||||
target_include_directories(nrealAirLinuxDriver
|
||||
BEFORE PUBLIC ${NREAL_AIR_INCLUDE_DIR}
|
||||
target_include_directories(xrealAirLinuxDriver
|
||||
BEFORE PUBLIC ${XREAL_AIR_INCLUDE_DIR}
|
||||
)
|
||||
|
||||
target_link_libraries(nrealAirLinuxDriver
|
||||
${NREAL_AIR_LIBRARY}
|
||||
target_link_libraries(xrealAirLinuxDriver
|
||||
${XREAL_AIR_LIBRARY}
|
||||
)
|
|
@ -1,4 +1,4 @@
|
|||
# Custom user-space driver for the nreal Air to use it on Linux
|
||||
# Custom user-space driver for the Xreal Air, Xreal Air 2 and Xreal Air 2 Pro to use it on Linux
|
||||
|
||||
## Information before use
|
||||
|
||||
|
@ -62,11 +62,11 @@ make
|
|||
It's easiest to run the software with root privileges.
|
||||
|
||||
```
|
||||
sudo nrealAirLinuxDriver
|
||||
sudo xrealAirLinuxDriver
|
||||
```
|
||||
|
||||
Alternatively, you can copy the nreal_air.rules to /etc/udev/rules.d:
|
||||
Alternatively, you can copy the xreal_air.rules to /etc/udev/rules.d:
|
||||
|
||||
```
|
||||
sudo cp udev/nreal_air.rules /etc/udev/rules.d/xreal_air.rules
|
||||
sudo cp udev/xreal_air.rules /etc/udev/rules.d/xreal_air.rules
|
||||
```
|
||||
|
|
|
@ -1,17 +1,17 @@
|
|||
cmake_minimum_required(VERSION 3.16)
|
||||
project(nrealAirDebugD3 C)
|
||||
project(xrealAirDebugD3 C)
|
||||
|
||||
set(CMAKE_C_STANDARD 17)
|
||||
|
||||
add_executable(
|
||||
nrealAirDebugD3
|
||||
xrealAirDebugD3
|
||||
src/debug.c
|
||||
)
|
||||
|
||||
target_include_directories(nrealAirDebugD3
|
||||
BEFORE PUBLIC ${NREAL_AIR_INCLUDE_DIR}
|
||||
target_include_directories(xrealAirDebugD3
|
||||
BEFORE PUBLIC ${XREAL_AIR_INCLUDE_DIR}
|
||||
)
|
||||
|
||||
target_link_libraries(nrealAirDebugD3
|
||||
${NREAL_AIR_LIBRARY}
|
||||
target_link_libraries(xrealAirDebugD3
|
||||
${XREAL_AIR_LIBRARY}
|
||||
)
|
||||
|
|
|
@ -1,17 +1,17 @@
|
|||
cmake_minimum_required(VERSION 3.16)
|
||||
project(nrealAirDebugD4 C)
|
||||
project(xrealAirDebugD4 C)
|
||||
|
||||
set(CMAKE_C_STANDARD 17)
|
||||
|
||||
add_executable(
|
||||
nrealAirDebugD4
|
||||
xrealAirDebugD4
|
||||
src/debug.c
|
||||
)
|
||||
|
||||
target_include_directories(nrealAirDebugD4
|
||||
BEFORE PUBLIC ${NREAL_AIR_INCLUDE_DIR}
|
||||
target_include_directories(xrealAirDebugD4
|
||||
BEFORE PUBLIC ${XREAL_AIR_INCLUDE_DIR}
|
||||
)
|
||||
|
||||
target_link_libraries(nrealAirDebugD4
|
||||
${NREAL_AIR_LIBRARY}
|
||||
target_link_libraries(xrealAirDebugD4
|
||||
${XREAL_AIR_LIBRARY}
|
||||
)
|
||||
|
|
|
@ -1,17 +1,17 @@
|
|||
cmake_minimum_required(VERSION 3.16)
|
||||
project(nrealAirUpgradeMCU C)
|
||||
project(xrealAirUpgradeMCU C)
|
||||
|
||||
set(CMAKE_C_STANDARD 17)
|
||||
|
||||
add_executable(
|
||||
nrealAirUpgradeMCU
|
||||
xrealAirUpgradeMCU
|
||||
src/upgrade.c
|
||||
)
|
||||
|
||||
target_include_directories(nrealAirUpgradeMCU
|
||||
BEFORE PUBLIC ${NREAL_AIR_INCLUDE_DIR}
|
||||
target_include_directories(xrealAirUpgradeMCU
|
||||
BEFORE PUBLIC ${XREAL_AIR_INCLUDE_DIR}
|
||||
)
|
||||
|
||||
target_link_libraries(nrealAirUpgradeMCU
|
||||
${NREAL_AIR_LIBRARY}
|
||||
target_link_libraries(xrealAirUpgradeMCU
|
||||
${XREAL_AIR_LIBRARY}
|
||||
)
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
//
|
||||
// Created by thejackimonster on 03.05.23.
|
||||
//
|
||||
// Copyright (c) 2023 thejackimonster. All rights reserved.
|
||||
// Copyright (c) 2023-2024 thejackimonster. All rights reserved.
|
||||
//
|
||||
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
// of this software and associated documentation files (the "Software"), to deal
|
||||
|
@ -29,7 +29,7 @@
|
|||
|
||||
int main(int argc, const char** argv) {
|
||||
if (argc <= 1) {
|
||||
printf("HOW TO USE IT:\n$ nrealAirUpgradeMCU <PATH>\n");
|
||||
printf("HOW TO USE IT:\n$ xrealAirUpgradeMCU <PATH>\n");
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
cmake_minimum_required(VERSION 3.16)
|
||||
project(nrealAirLibrary C)
|
||||
project(xrealAirLibrary C)
|
||||
|
||||
set(CMAKE_C_STANDARD 17)
|
||||
|
||||
|
@ -9,7 +9,7 @@ add_subdirectory(modules/hidapi)
|
|||
add_subdirectory(modules/Fusion/Fusion)
|
||||
|
||||
add_library(
|
||||
nrealAirLibrary
|
||||
xrealAirLibrary
|
||||
src/crc32.c
|
||||
src/device.c
|
||||
src/device3.c
|
||||
|
@ -17,21 +17,24 @@ add_library(
|
|||
src/hid_ids.c
|
||||
)
|
||||
|
||||
target_compile_options(nrealAirLibrary PRIVATE -fPIC)
|
||||
target_compile_options(xrealAirLibrary PRIVATE -fPIC)
|
||||
|
||||
target_include_directories(nrealAirLibrary
|
||||
target_include_directories(xrealAirLibrary
|
||||
BEFORE PUBLIC include
|
||||
)
|
||||
|
||||
target_include_directories(nrealAirLibrary
|
||||
target_include_directories(xrealAirLibrary
|
||||
SYSTEM BEFORE PRIVATE
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/modules/hidapi
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/modules/Fusion
|
||||
)
|
||||
|
||||
target_link_libraries(nrealAirLibrary
|
||||
target_link_libraries(xrealAirLibrary
|
||||
PRIVATE hidapi::hidapi json-c::json-c Fusion m
|
||||
)
|
||||
|
||||
set(NREAL_AIR_INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/include PARENT_SCOPE)
|
||||
set(NREAL_AIR_LIBRARY nrealAirLibrary PARENT_SCOPE)
|
||||
set(XREAL_AIR_INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/include PARENT_SCOPE)
|
||||
set(XREAL_AIR_LIBRARY xrealAirLibrary PARENT_SCOPE)
|
||||
|
||||
set(NREAL_AIR_INCLUDE_DIR ${XREAL_AIR_INCLUDE_DIR} PARENT_SCOPE)
|
||||
set(NREAL_AIR_LIBRARY ${XREAL_AIR_LIBRARY} PARENT_SCOPE)
|
||||
|
|
Reference in a new issue