fix android build versioning
This commit is contained in:
@@ -19,11 +19,6 @@ add_library(
|
||||
# now build app's shared lib
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=gnu++14")
|
||||
|
||||
execute_process(
|
||||
COMMAND python ./scripts/pre-build.py ${CMAKE_BUILD_TYPE}
|
||||
WORKING_DIRECTORY ../
|
||||
)
|
||||
|
||||
add_library(
|
||||
native-lib SHARED
|
||||
../libs/yoga/yoga/YGNodeList.c
|
||||
|
||||
@@ -74,3 +74,9 @@ task copyFiles(type: Copy) {
|
||||
into 'src/main/assets/data'
|
||||
}
|
||||
preBuild.dependsOn(copyFiles)
|
||||
|
||||
task generateVersioning(type: Exec) {
|
||||
workingDir "$projectDir/../"
|
||||
commandLine 'python', 'scripts/pre-build.py', 'debug'
|
||||
}
|
||||
copyFiles.dependsOn(generateVersioning)
|
||||
|
||||
Reference in New Issue
Block a user