diff --git a/extensions/CMakeLists.txt b/extensions/CMakeLists.txt index 329bdc7c04..10d4d44e62 100644 --- a/extensions/CMakeLists.txt +++ b/extensions/CMakeLists.txt @@ -10,12 +10,7 @@ function(setup_ax_extension_config target_name) cmake_parse_arguments(opt "" "${options}" "" "" ${ARGN} ) - if(ANDROID) - target_link_libraries(${target_name} INTERFACE ${_AX_CORE_LIB}) - target_include_directories(${target_name} PRIVATE $) - else() target_link_libraries(${target_name} ${_AX_CORE_LIB}) - endif() if(BUILD_SHARED_LIBS) target_compile_definitions(${target_name} PRIVATE _USREXDLL=1) diff --git a/extensions/Inspector/Inspector.cpp b/extensions/Inspector/Inspector.cpp index bb61ac7c67..3d4b17523b 100644 --- a/extensions/Inspector/Inspector.cpp +++ b/extensions/Inspector/Inspector.cpp @@ -7,8 +7,8 @@ # include #endif -#if AX_TARGET_PLATFORM == AX_PLATFORM_ANDROID -#define FMT_HEADER_ONLY +#if !defined(FMT_HEADER_ONLY) +# define FMT_HEADER_ONLY #endif #include "fmt/format.h" @@ -76,7 +76,7 @@ std::string Inspector::demangle(const char* name) } #endif - + std::string Inspector::getNodeName(Node* node) { return Inspector::demangle(typeid(*node).name()); @@ -132,7 +132,7 @@ void Inspector::drawTreeRecusrive(Node* node, int index) { continue; } - + drawTreeRecusrive(child, i); i++; } @@ -154,7 +154,7 @@ void Inspector::drawProperties() _selected_node = nullptr; return; } - + //ImGui::SameLine(); // //if (ImGui::Button("Add Child")) @@ -317,7 +317,7 @@ void Inspector::close() { _selected_node = nullptr; _target = nullptr; - + auto presenter = ImGuiPresenter::getInstance(); presenter->removeRenderLoop("#insp"); presenter->clearFonts(); @@ -330,7 +330,7 @@ void Inspector::mainLoop() close(); return; } - + if (ImGui::Begin("Inspector")) { const auto avail = ImGui::GetContentRegionAvail();