-
Notifications
You must be signed in to change notification settings - Fork 351
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
call MakeInitializedClassesVisiblyInitialized explicitly
- Loading branch information
Showing
10 changed files
with
204 additions
and
25 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
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 |
---|---|---|
@@ -0,0 +1,43 @@ | ||
# Sets the minimum version of CMake required to build your native library. | ||
# This ensures that a certain set of CMake features is available to | ||
# your build. | ||
|
||
cmake_minimum_required(VERSION 3.4.1) | ||
|
||
# Specifies a library name, specifies whether the library is STATIC or | ||
# SHARED, and provides relative paths to the source code. You can | ||
# define multiple libraries by adding multiple add_library() commands, | ||
# and CMake builds them for you. When you build your app, Gradle | ||
# automatically packages shared libraries with your APK. | ||
|
||
find_library( # Defines the name of the path variable that stores the | ||
# location of the NDK library. | ||
log-lib | ||
|
||
# Specifies the name of the NDK library that | ||
# CMake needs to locate. | ||
log ) | ||
|
||
|
||
add_library( # Specifies the name of the library. | ||
yahfa | ||
|
||
# Sets the library as a shared library. | ||
SHARED | ||
|
||
# Provides a relative path to your source file(s). | ||
src/main/jni/HookMain.c | ||
src/main/jni/trampoline.c | ||
) | ||
|
||
find_package(dlfunc REQUIRED CONFIG) | ||
|
||
target_link_libraries( # Specifies the target library. | ||
yahfa | ||
|
||
# Links the log library to the target library. | ||
${log-lib} | ||
dlfunc::dlfunc | ||
) | ||
|
||
|
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 was deleted.
Oops, something went wrong.
Empty file.
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