Open mgood7123 opened 3 years ago
Currently, the plugin is only support maven dependency, because your two module is in the same project, it is easy to reference anthoer, so the plugin do noting when in this situation.
Currently, the plugin is only support maven dependency, because your two module is in the same project, it is easy to reference anthoer, so the plugin do noting when in this situation.
how would I reference my module?
https://developer.android.com/studio/projects/configure-cmake the 'Include other CMake projects' may satisfy
https://developer.android.com/studio/projects/configure-cmake the 'Include other CMake projects' may satisfy
seems ummm like this could be automated by the plugin, like a top level global header/libs direcory
or what you do already for maven aar's
Currently, the plugin is only support maven dependency, because your two module is in the same project, it is easy to reference anthoer, so the plugin do noting when in this situation.
would It be possible to support local dependancies?
Currently, the plugin is only support maven dependency, because your two module is in the same project, it is easy to reference anthoer, so the plugin do noting when in this situation.
would It be possible to support local dependancies?
Yes, it can do, i suggest you implement it by add 'cflag' and 'link flag' temporarily, i'm be busy recently and have few time to implement it.
Currently, the plugin is only support maven dependency, because your two module is in the same project, it is easy to reference anthoer, so the plugin do noting when in this situation.
would It be possible to support local dependancies?
Yes, it can do, i suggest you implement it by add 'cflag' and 'link flag' temporarily, i'm be busy recently and have few time to implement it.
in ndk-build
? or cmake
?
Currently, the plugin is only support maven dependency, because your two module is in the same project, it is easy to reference anthoer, so the plugin do noting when in this situation.
would It be possible to support local dependancies?
Yes, it can do, i suggest you implement it by add 'cflag' and 'link flag' temporarily, i'm be busy recently and have few time to implement it.
in
ndk-build
? orcmake
?
cmake, the plugin also implement it by this way
ok, so I got it working, tho slightly hacky
in applications, add
android {
packagingOptions {
pickFirst "**/*.so"
}
}
to avoid a duplicate .so error during packaging of apk
in libraries, add
android {
buildFeatures {
prefab true
}
}
for libraries, as an example
EXPORTED LIBRARY:
include_directories(include)
add_library(AndroidDAW_Plugin SHARED TempoGrid.cpp)
add_subdirectory(AndroidDAW_SDK_CMAKE_HELPER)
SET_PROJECT_ROOT_AndroidDAW_SDK(${CMAKE_CURRENT_SOURCE_DIR}/../../..) # MODULE ROOT
export_library_AndroidDAW_SDK(Plugin)
IMPORTED LIBRARY:
add_subdirectory(AndroidDAW_SDK_CMAKE_HELPER)
SET_PROJECT_ROOT_AndroidDAW_SDK(${CMAKE_CURRENT_SOURCE_DIR}/../../../..) # PROJECT ROOT
import_library__AndroidDAW_Plugin()
add_library(audio_player SHARED native-lib.cpp)
target_link_libraries(audio_player AndroidDAW_Plugin)
for details, see AndroidDAW_SDK_CMAKE_HELPER
https://www.github.com/mgood7123/AndroidDAW_SDK/tree/main/CMAKE_HELPER/CMakeLists.txt
How
How
what do you mean?
I mean how to get your code and how get the file
On Thu, Mar 25, 2021, 3:21 PM mgood7123 @.***> wrote:
How
what do you mean?
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/howardpang/androidNativeBundle/issues/10#issuecomment-806457937, or unsubscribe https://github.com/notifications/unsubscribe-auth/ATLKFUZ7KOQNKN77GJ6OUTLTFLW7JANCNFSM4ZSID4DQ .
AAudioTrack2
#include <midifile/MidiEventList.h> // not found
build.gradle
AndroidDAW_SDK__MIDI
build.gradle
structure
Cmake