-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
18 changed files
with
246 additions
and
342 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,4 +25,5 @@ local.properties | |
# Misc | ||
.DS_Store | ||
/plugin/src/gen/ | ||
/plugin/src/main/libs | ||
/zippedSamples |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,32 @@ | ||
# Non functional cmake build file used to provide Android Studio editor support to the project. | ||
cmake_minimum_required(VERSION 3.22.1) | ||
|
||
## Project definition | ||
project(godotopenxrvendors LANGUAGES CXX) | ||
|
||
## Common dependencies | ||
include(${PROJECT_SOURCE_DIR}/src/main/common.cmake) | ||
set(CMAKE_CXX_STANDARD 17) | ||
set(CMAKE_CXX_STANDARD_REQUIRED ON) | ||
set(CMAKE_CXX_EXTENSIONS OFF) | ||
|
||
set(GODOT_CPP_DIR "${CMAKE_CURRENT_LIST_DIR}/../thirdparty/godot-cpp") | ||
set(OPENXR_HEADERS_DIR "${CMAKE_CURRENT_LIST_DIR}/../thirdparty/openxr/include") | ||
set(COMMON_LIB_HEADERS_DIR "${CMAKE_CURRENT_LIST_DIR}/cpp/include") | ||
|
||
## Flavor dependencies | ||
include(src/${FLAVOR}/${FLAVOR}.cmake) | ||
# Get sources | ||
file(GLOB_RECURSE SOURCES ${CMAKE_CURRENT_LIST_DIR}/*.c**) | ||
file(GLOB_RECURSE HEADERS ${CMAKE_CURRENT_LIST_DIR}/*.h**) | ||
|
||
add_library(${PROJECT_NAME} | ||
SHARED | ||
${ANDROID_SOURCES} | ||
${ANDROID_HEADERS} | ||
${COMMON_LIB_SOURCES} | ||
${COMMON_LIB_HEADERS} | ||
${SOURCES} | ||
${HEADERS} | ||
) | ||
|
||
target_include_directories(${PROJECT_NAME} | ||
SYSTEM PUBLIC | ||
${GODOT_CPP_INCLUDE_DIRECTORIES} | ||
"${GODOT_CPP_DIR}/include" | ||
"${GODOT_CPP_DIR}/gen/include" | ||
"${GODOT_CPP_DIR}/gdextension" | ||
${OPENXR_HEADERS_DIR} | ||
${VENDOR_HEADERS_DIR} | ||
${COMMON_LIB_HEADERS_DIR} | ||
) | ||
|
||
target_link_libraries(${PROJECT_NAME} | ||
android | ||
log | ||
${GODOT-CPP} | ||
${OPENXR_LOADER} | ||
) | ||
|
||
# Add the compile flags | ||
set_property(TARGET ${PROJECT_NAME} APPEND_STRING PROPERTY COMPILE_FLAGS ${GODOT_COMPILE_FLAGS}) | ||
set_property(TARGET ${PROJECT_NAME} APPEND_STRING PROPERTY LINK_FLAGS ${GODOT_LINKER_FLAGS}) | ||
add_definitions(-DUNIX_ENABLED -DVULKAN_ENABLED -DANDROID_ENABLED -DGLES3_ENABLED -DTOOLS_ENABLED -DDEBUG_ENABLED) |
Oops, something went wrong.