1- ## For more information about using CMake with Android Studio, read the
2- ## documentation: https://d.android.com/studio/projects/add-native-code.html.
3- ## For more examples on how to use CMake, see https://github.com/android/ndk-samples.
4- #
5- ## Sets the minimum CMake version required for this project.
6- # cmake_minimum_required(VERSION 3.22.1)
7- #
8- #
9- #
10- #
11- #
12- ## Declares the project name. The project name can be accessed via ${ PROJECT_NAME},
13- ## Since this is the top level CMakeLists.txt, the project name is also accessible
14- ## with ${CMAKE_PROJECT_NAME} (both CMake variables are in-sync within the top level
15- ## build script scope).
16- # project("fixandroid14debuggablelag")
17- #
18- ## Creates and names a library, sets it as either STATIC
19- ## or SHARED, and provides the relative paths to its source code.
20- ## You can define multiple libraries, and CMake builds them for you.
21- ## Gradle automatically packages shared libraries with your APK.
22- ##
23- ## In this top level CMakeLists.txt, ${CMAKE_PROJECT_NAME} is used to define
24- ## the target library name; in the sub-module's CMakeLists.txt, ${PROJECT_NAME}
25- ## is preferred for the same purpose.
26- ##
27- ## In order to load a library into your app from Java/Kotlin, you must call
28- ## System.loadLibrary() and pass the name of the library defined here;
29- ## for GameActivity/NativeActivity derived applications, the same library name must be
30- ## used in the AndroidManifest.xml file.
31- #
32- #
33- # find_package(shadowhook REQUIRED CONFIG)
34- #
35- # add_library(${CMAKE_PROJECT_NAME} SHARED
36- # # List C/C++ source files with relative paths to this CMakeLists.txt.
37- # fixandroid14debuggablelag.cpp)
38- #
39- ## Specifies libraries CMake should link to your target library. You
40- ## can link libraries from various origins, such as libraries defined in this
41- ## build script, prebuilt third-party libraries, or Android system libraries.
42- #
43- #
44- # target_link_libraries(${CMAKE_PROJECT_NAME}
45- # # List libraries link to the target library
46- # android
47- # log
48- # shadowhook::shadowhook)
1+ # For more information about using CMake with Android Studio, read the
2+ # documentation: https://d.android.com/studio/projects/add-native-code.html.
3+ # For more examples on how to use CMake, see https://github.com/android/ndk-samples.
4+
5+ # Sets the minimum CMake version required for this project.
6+ cmake_minimum_required (VERSION 3.22.1)
7+
8+
9+
10+
11+
12+ # Declares the project name. The project name can be accessed via ${ PROJECT_NAME},
13+ # Since this is the top level CMakeLists.txt, the project name is also accessible
14+ # with ${CMAKE_PROJECT_NAME} (both CMake variables are in-sync within the top level
15+ # build script scope).
16+ project ("fixandroid14debuggablelag" )
17+
18+ # Creates and names a library, sets it as either STATIC
19+ # or SHARED, and provides the relative paths to its source code.
20+ # You can define multiple libraries, and CMake builds them for you.
21+ # Gradle automatically packages shared libraries with your APK.
22+ #
23+ # In this top level CMakeLists.txt, ${CMAKE_PROJECT_NAME} is used to define
24+ # the target library name; in the sub-module's CMakeLists.txt, ${PROJECT_NAME}
25+ # is preferred for the same purpose.
26+ #
27+ # In order to load a library into your app from Java/Kotlin, you must call
28+ # System.loadLibrary() and pass the name of the library defined here;
29+ # for GameActivity/NativeActivity derived applications, the same library name must be
30+ # used in the AndroidManifest.xml file.
31+
32+
33+ find_package (shadowhook REQUIRED CONFIG)
34+
35+ add_library (${CMAKE_PROJECT_NAME} SHARED
36+ # List C/C++ source files with relative paths to this CMakeLists.txt.
37+ fixandroid14debuggablelag.cpp)
38+
39+ # Specifies libraries CMake should link to your target library. You
40+ # can link libraries from various origins, such as libraries defined in this
41+ # build script, prebuilt third-party libraries, or Android system libraries.
42+
43+
44+ target_link_libraries (${CMAKE_PROJECT_NAME}
45+ # List libraries link to the target library
46+ android
47+ log
48+ shadowhook::shadowhook)
0 commit comments