mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-20 13:23:59 +00:00
[build] Add configure.sh
Signed-off-by: x7z4w <x7z4w@noreply.codeberg.org>
This commit is contained in:
committed by
Konstantin Pastbin
parent
9ff72366d5
commit
4be5b5dc45
@@ -133,6 +133,14 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
key: ${{ github.workflow }}-unity-${{ matrix.compiler.CC }}-${{ matrix.CMAKE_BUILD_TYPE }}
|
key: ${{ github.workflow }}-unity-${{ matrix.compiler.CC }}-${{ matrix.CMAKE_BUILD_TYPE }}
|
||||||
|
|
||||||
|
- name: Configure repository
|
||||||
|
shell: bash
|
||||||
|
env:
|
||||||
|
SKIP_MAP_DOWNLOAD: 1
|
||||||
|
SKIP_GENERATE_SYMBOLS: 1
|
||||||
|
SKIP_GENERATE_DRULES: 1
|
||||||
|
run: ./configure.sh
|
||||||
|
|
||||||
- name: CMake
|
- name: CMake
|
||||||
shell: bash
|
shell: bash
|
||||||
env:
|
env:
|
||||||
|
|||||||
@@ -114,6 +114,20 @@ project.afterEvaluate {
|
|||||||
nativeTask.onlyIf { false }
|
nativeTask.onlyIf { false }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
final taskName = gradle.startParameter.taskNames
|
||||||
|
|
||||||
|
if (['assemble', 'bundle', 'compile', 'install'].any{taskName.any{task->task.startsWith(it)}}) {
|
||||||
|
exec {
|
||||||
|
workingDir '../..'
|
||||||
|
|
||||||
|
if (!taskName.toString().contains('Google')) {
|
||||||
|
environment 'SKIP_MAP_DOWNLOAD', '1'
|
||||||
|
}
|
||||||
|
|
||||||
|
commandLine './configure.sh'
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks.withType(JavaCompile).configureEach {
|
tasks.withType(JavaCompile).configureEach {
|
||||||
|
|||||||
@@ -74,6 +74,12 @@ fi
|
|||||||
|
|
||||||
OMIM_PATH="$(cd "${OMIM_PATH:-$(dirname "$0")/../..}"; pwd)"
|
OMIM_PATH="$(cd "${OMIM_PATH:-$(dirname "$0")/../..}"; pwd)"
|
||||||
|
|
||||||
|
if [ "$OPT_TARGET" == "desktop" ]; then
|
||||||
|
./configure.sh
|
||||||
|
else
|
||||||
|
SKIP_MAP_DOWNLOAD=1 SKIP_GENERATE_SYMBOLS=1 SKIP_GENERATE_DRULES=1 ./configure.sh
|
||||||
|
fi
|
||||||
|
|
||||||
DEVTOOLSET_PATH=/opt/rh/devtoolset-7
|
DEVTOOLSET_PATH=/opt/rh/devtoolset-7
|
||||||
if [ -d "$DEVTOOLSET_PATH" ]; then
|
if [ -d "$DEVTOOLSET_PATH" ]; then
|
||||||
export MANPATH=
|
export MANPATH=
|
||||||
|
|||||||
Reference in New Issue
Block a user