Skip to content

Commit

Permalink
cmake
Browse files Browse the repository at this point in the history
  • Loading branch information
nyurik committed Aug 3, 2024
1 parent f8f0d58 commit 4d2a6a8
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 11 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# @generated
# Input hashes for repository rule npm_translate_lock(name = "npm", pnpm_lock = "//:pnpm-lock.yaml").
# This file should be checked into version control along with the pnpm-lock.yaml file.
.npmrc=-592547263
pnpm-lock.yaml=104874376
package-lock.json=-1109603374
package.json=752745807
pnpm-lock.yaml=322447152
package.json=1512585561
9 changes: 9 additions & 0 deletions .github/workflows/android-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,9 @@ jobs:
distribution: "temurin"
java-version: "17"

- name: Add aarch64-linux-android for Rust toolchian
run: rustup target add --toolchain stable-x86_64-unknown-linux-gnu aarch64-linux-android

- name: Cache node modules
uses: actions/cache@v4
env:
Expand Down Expand Up @@ -174,6 +177,9 @@ jobs:
distribution: "temurin"
java-version: "17"

- name: Add aarch64-linux-android for Rust toolchian
run: rustup target add --toolchain stable-x86_64-unknown-linux-gnu aarch64-linux-android

- name: Get CMake and Ninja
uses: lukka/get-cmake@latest
with:
Expand Down Expand Up @@ -223,6 +229,9 @@ jobs:
distribution: "temurin"
java-version: "17"

- name: Add aarch64-linux-android for Rust toolchian
run: rustup target add --toolchain stable-x86_64-unknown-linux-gnu aarch64-linux-android

- name: Build Render Test App
run: |
./gradlew assemble assembleAndroidTest
Expand Down
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,6 @@
[submodule "vendor/glslang"]
path = vendor/glslang
url = https://github.com/KhronosGroup/glslang.git
[submodule "vendor/corrosion"]
path = vendor/corrosion
url = https://github.com/corrosion-rs/corrosion.git
8 changes: 1 addition & 7 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1439,13 +1439,7 @@ set_target_properties(
INTERFACE_MAPBOX_LICENSE ${PROJECT_SOURCE_DIR}/vendor/unordered_dense/LICENSE
)

include(FetchContent)
FetchContent_Declare(
Corrosion
GIT_REPOSITORY https://github.com/corrosion-rs/corrosion.git
GIT_TAG v0.5
)
FetchContent_MakeAvailable(Corrosion)
add_subdirectory(${PROJECT_SOURCE_DIR}/vendor/corrosion)

corrosion_import_crate(MANIFEST_PATH rustutils/Cargo.toml)
# rustutils_headers is a set of .h headers generated from rustutils crate
Expand Down
1 change: 1 addition & 0 deletions vendor/corrosion
Submodule corrosion added at 64289b

0 comments on commit 4d2a6a8

Please sign in to comment.