mirror of https://github.com/axmolengine/axmol.git
Fix linux build (#1715)
* Update CMakeLists.txt * Update CMakeLists.txt * Update build.yml [skip ci] * Delete .github/workflows/pr.yml
This commit is contained in:
parent
8b33156e65
commit
d7f5333c73
|
@ -9,6 +9,12 @@ on:
|
||||||
- 'docs/**'
|
- 'docs/**'
|
||||||
- '.github/workflows/publish.yml'
|
- '.github/workflows/publish.yml'
|
||||||
- 'tools/ci/make-pkg.ps1'
|
- 'tools/ci/make-pkg.ps1'
|
||||||
|
pull_request:
|
||||||
|
types: [opened, synchronize, reopened, ready_for_review]
|
||||||
|
paths-ignore:
|
||||||
|
- '**.md'
|
||||||
|
- '**/*.md.in'
|
||||||
|
- 'docs/**'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
win32:
|
win32:
|
||||||
|
|
|
@ -1,118 +0,0 @@
|
||||||
name: pull_request
|
|
||||||
|
|
||||||
on:
|
|
||||||
pull_request:
|
|
||||||
types: [opened, synchronize, reopened, ready_for_review]
|
|
||||||
paths-ignore:
|
|
||||||
- '**.md'
|
|
||||||
- '**/*.md.in'
|
|
||||||
- 'docs/**'
|
|
||||||
|
|
||||||
env:
|
|
||||||
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
|
|
||||||
BUILD_TYPE: Release
|
|
||||||
PULL_REQUEST: yes
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build-win32:
|
|
||||||
runs-on: windows-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
with:
|
|
||||||
submodules: 'recursive'
|
|
||||||
- uses: ilammy/msvc-dev-cmd@v1.12.1
|
|
||||||
with:
|
|
||||||
toolset: '14.37'
|
|
||||||
arch: ${{ env.BUILD_ARCH }}
|
|
||||||
- name: Build
|
|
||||||
shell: pwsh
|
|
||||||
run: .\build.ps1 -p win32 -a x64
|
|
||||||
|
|
||||||
build-winuwp:
|
|
||||||
runs-on: windows-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
with:
|
|
||||||
submodules: 'recursive'
|
|
||||||
- uses: ilammy/msvc-dev-cmd@v1.12.1
|
|
||||||
with:
|
|
||||||
toolset: '14.37'
|
|
||||||
arch: x64
|
|
||||||
uwp: true
|
|
||||||
- name: Build
|
|
||||||
shell: pwsh
|
|
||||||
run: .\build.ps1 -p winuwp -a x64 -xb '--config', 'Debug'
|
|
||||||
|
|
||||||
build-linux:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
with:
|
|
||||||
submodules: 'recursive'
|
|
||||||
- name: Install deps
|
|
||||||
# Some projects don't allow in-source building, so create a separate build directory
|
|
||||||
# We'll use this as our working directory for all subsequent commands
|
|
||||||
run: |
|
|
||||||
AX_ROOT=`pwd`
|
|
||||||
echo -e "y" | pwsh $AX_ROOT/setup.ps1
|
|
||||||
- name: Build
|
|
||||||
shell: pwsh
|
|
||||||
run: ./build.ps1 -p linux -a x64
|
|
||||||
|
|
||||||
build-android:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
with:
|
|
||||||
submodules: 'recursive'
|
|
||||||
- name: Build
|
|
||||||
shell: pwsh
|
|
||||||
run: |
|
|
||||||
$AX_ROOT = $(Get-Location).Path
|
|
||||||
./build.ps1 -p android -a arm64
|
|
||||||
- uses: actions/upload-artifact@v3
|
|
||||||
with:
|
|
||||||
name: android_artifact
|
|
||||||
path: |
|
|
||||||
templates/**/*.apk
|
|
||||||
tests/**/*.apk
|
|
||||||
|
|
||||||
build-osx:
|
|
||||||
runs-on: macos-12
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
with:
|
|
||||||
submodules: 'recursive'
|
|
||||||
- name: Build
|
|
||||||
shell: pwsh
|
|
||||||
run: ./build.ps1 -p osx -a x64
|
|
||||||
|
|
||||||
build-ios:
|
|
||||||
name: build-ios
|
|
||||||
runs-on: macos-latest
|
|
||||||
env:
|
|
||||||
GH_OS_NAME: osx
|
|
||||||
BUILD_TARGET: ios
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
with:
|
|
||||||
submodules: 'recursive'
|
|
||||||
|
|
||||||
- name: Build
|
|
||||||
shell: pwsh
|
|
||||||
run: ./build.ps1 -p ios -a x64
|
|
||||||
|
|
||||||
build-tvos:
|
|
||||||
name: build-tvos
|
|
||||||
runs-on: macos-latest
|
|
||||||
env:
|
|
||||||
GH_OS_NAME: osx
|
|
||||||
BUILD_TARGET: tvos
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
with:
|
|
||||||
submodules: 'recursive'
|
|
||||||
|
|
||||||
- name: Build
|
|
||||||
shell: pwsh
|
|
||||||
run: ./build.ps1 -p tvos -a x64
|
|
|
@ -443,10 +443,19 @@ if(WINDOWS OR LINUX OR ANDROID OR WASM)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if((WINDOWS AND NOT WINRT) OR MACOSX OR LINUX)
|
if((WINDOWS AND NOT WINRT) OR MACOSX OR LINUX)
|
||||||
ax_add_3rd(glfw OPTIONS
|
if(NOT LINUX)
|
||||||
"GLFW_BUILD_DOCS OFF"
|
ax_add_3rd(glfw OPTIONS
|
||||||
"GLFW_INSTALL OFF"
|
"GLFW_BUILD_DOCS OFF"
|
||||||
)
|
"GLFW_INSTALL OFF"
|
||||||
|
)
|
||||||
|
else()
|
||||||
|
ax_add_3rd(glfw OPTIONS
|
||||||
|
"GLFW_BUILD_X11 ON"
|
||||||
|
"GLFW_BUILD_WAYLAND OFF"
|
||||||
|
"GLFW_BUILD_DOCS OFF"
|
||||||
|
"GLFW_INSTALL OFF"
|
||||||
|
)
|
||||||
|
endif()
|
||||||
set_target_properties(glfw PROPERTIES OUTPUT_NAME glfw)
|
set_target_properties(glfw PROPERTIES OUTPUT_NAME glfw)
|
||||||
if(NOT WINDOWS)
|
if(NOT WINDOWS)
|
||||||
target_link_libraries(thirdparty INTERFACE pthread)
|
target_link_libraries(thirdparty INTERFACE pthread)
|
||||||
|
|
|
@ -177,7 +177,7 @@ if (GLFW_BUILD_WAYLAND)
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if (GLFW_BUILD_X11)
|
if (GLFW_BUILD_X11_EXPLICIT)
|
||||||
find_package(X11 REQUIRED)
|
find_package(X11 REQUIRED)
|
||||||
target_include_directories(glfw PRIVATE "${X11_X11_INCLUDE_PATH}")
|
target_include_directories(glfw PRIVATE "${X11_X11_INCLUDE_PATH}")
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue