File tree Expand file tree Collapse file tree 5 files changed +13
-27
lines changed
Expand file tree Collapse file tree 5 files changed +13
-27
lines changed Original file line number Diff line number Diff line change 1- # Sets the minimum version of CMake required to build your native library.
2- # This ensures that a certain set of CMake features is available to
3- # your build.
4-
51cmake_minimum_required (VERSION 3.4.1)
62
7- # Specifies a library name, specifies whether the library is STATIC or
8- # SHARED, and provides relative paths to the source code. You can
9- # define multiple libraries by adding multiple add_library() commands,
10- # and CMake builds them for you. When you build your app, Gradle
11- # automatically packages shared libraries with your APK.
12-
133set (name svgdom)
4+ project (${name} )
145
15- file (GLOB_RECURSE srcs "../../src/*.cpp" )
6+ file (GLOB_RECURSE srcs "../../../ src/*.cpp" )
167
178include (${ANDROID_GRADLE_NATIVE_BUNDLE_PLUGIN_MK} )
189
1910set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++17" )
2011
2112add_library (
22- # Specifies the name of the library.
23- ${name}
24-
25- # Sets the library as a shared library.
26- STATIC
27-
28- # Provides a relative path to your source file(s).
29- ${srcs}
30- )
13+ ${name}
14+ STATIC
15+ ${srcs}
16+ )
3117
3218target_link_libraries (
33- ${name}
34- android log ${ANDROID_GRADLE_NATIVE_MODULES}
35- )
19+ ${name}
20+ android log ${ANDROID_GRADLE_NATIVE_MODULES}
21+ )
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ android {
1919 }
2020
2121 nativeBundleExport {
22- headerDir = " ${ project.projectDir} /../../src/"
22+ headerDir = " ${ project.projectDir} /../../../ src/"
2323 bundleStatic = true
2424 includeHeaderFilter. add(" **/*.hpp" )
2525 }
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ noextract=()
3939md5sums=()
4040validpgpkeys=()
4141
42- rootDir=$( pwd) /.. # project root directory
42+ rootDir=$( pwd) /../.. # project root directory
4343
4444prepare () {
4545 cd " $rootDir "
Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ noextract=()
5858md5sums=()
5959validpgpkeys=()
6060
61- rootDir=$(pwd)/.. # project root directory
61+ rootDir=$(pwd)/../.. # project root directory
6262
6363prepare() {
6464 cd "$rootDir"
You can’t perform that action at this time.
0 commit comments