-
Notifications
You must be signed in to change notification settings - Fork 252
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #642 from Lgt2x/arm64-cross
Introduce cross-compiled ARM64 build
- Loading branch information
Showing
8 changed files
with
86 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
set(CMAKE_SYSTEM_NAME Linux) | ||
set(CMAKE_SYSTEM_PROCESSOR aarch64) | ||
|
||
set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) | ||
set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) | ||
set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) | ||
set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY) | ||
|
||
set(CMAKE_C_COMPILER aarch64-linux-gnu-gcc) | ||
set(CMAKE_CXX_COMPILER aarch64-linux-gnu-g++) | ||
|
||
set(CMAKE_CROSSCOMPILING ON) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,7 @@ | ||
if(CMAKE_CROSSCOMPILING) | ||
find_package(HogMaker) | ||
else() | ||
add_executable( | ||
HogMaker | ||
HogMaker/HogFormat.cpp | ||
HogMaker/HogMaker.cpp | ||
) | ||
target_include_directories(HogMaker PRIVATE ${PROJECT_BINARY_DIR}/lib) | ||
export(TARGETS HogMaker FILE "${CMAKE_BINARY_DIR}/HogMakerConfig.cmake") | ||
endif() | ||
add_executable( | ||
HogMaker | ||
HogMaker/HogFormat.cpp | ||
HogMaker/HogMaker.cpp | ||
) | ||
target_include_directories(HogMaker PRIVATE ${PROJECT_BINARY_DIR}/lib) | ||
export(TARGETS HogMaker FILE "${CMAKE_BINARY_DIR}/HogMakerConfig.cmake") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,33 @@ | ||
{ | ||
"builtin-baseline": "198d68dbcc6c907cb3d0b9b1d93c3df6ecf93c62", | ||
"builtin-baseline": "e60236ee051183f1122066bee8c54a0b47c43a60", | ||
"dependencies": [ | ||
"glm", | ||
"gtest", | ||
"plog", | ||
"zlib", | ||
{ | ||
"name": "sdl2", | ||
"version>=": "2.30.3", | ||
"version>=": "2.30.8", | ||
"features": ["x11", "wayland", "alsa"], | ||
"default-features": false, | ||
"platform": "linux & !native" | ||
}, | ||
{ | ||
"name": "sdl2", | ||
"version>=": "2.30.8", | ||
"features": ["x11","wayland", "alsa"], | ||
"platform": "linux" | ||
"platform": "linux & native" | ||
}, | ||
{ | ||
"name": "sdl2", | ||
"version>=": "2.30.3", | ||
"version>=": "2.30.8", | ||
"platform": "!linux" | ||
} | ||
], | ||
"overrides": [ | ||
{ | ||
"name": "sdl2", | ||
"version": "2.30.3" | ||
"version": "2.30.8" | ||
} | ||
] | ||
} | ||
} |