Skip to content

Commit

Permalink
Renamed generateHeader as buildHeader and buildLinuxSoFile as buildLi…
Browse files Browse the repository at this point in the history
…brary for better naming
  • Loading branch information
MohitMaliFtechiz committed Apr 3, 2023
1 parent e979d14 commit c39149c
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:

- name: Compile Project
run: |
./gradlew generateHeader build
./gradlew buildHeaders build
- name: create unit coverage
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:

- name: Compile Project
run: |
./gradlew generateHeader build
./gradlew buildHeaders build
- name: Release build
run: |
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ cd java-libkiwix


```bash
./gradlew generateHeader
./gradlew buildHeaders
./gradlew build
```

Expand Down
6 changes: 3 additions & 3 deletions lib/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ task checkCurrentJavaVersion() {
}


task generateHeader(type: Exec) {
task buildHeaders(type: Exec) {
workingDir "${projectDir}/src/main/java/org/kiwix/"
commandLine 'bash', '-c', "javac -h ${buildDir}/include/javah_generated/ -d ${projectDir}/src/test/java/ ${getLibzimFiles()} ${getLibkiwixFiles()}"
}
Expand Down Expand Up @@ -347,9 +347,9 @@ String getLibzimFiles() {
"${projectDir}/src/main/java/org/kiwix/libzim/ZimFileFormatException.java"
}

task buildLinuxSoFile(type: Exec) {
task buildLibrary(type: Exec) {
workingDir "${projectDir}/src/main/cpp/"
commandLine 'bash', '-c', "cmake . -B ${buildDir} && make -C ${buildDir}"
}

build.dependsOn buildLinuxSoFile
build.dependsOn buildLibrary

0 comments on commit c39149c

Please sign in to comment.