Skip to content

Commit

Permalink
Merge pull request #545 from barry-ran/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
barry-ran authored Jan 9, 2022
2 parents 57ca7ce + c71942c commit fc400fa
Show file tree
Hide file tree
Showing 75 changed files with 1,801 additions and 1,139 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ on:
jobs:
build:
name: Build
runs-on: macos-latest
runs-on: macos-10.15
strategy:
matrix:
qt-ver: [5.15.1]
Expand Down Expand Up @@ -44,7 +44,7 @@ jobs:
ENV_QT_PATH: ${{ env.qt-install-path }}
run: |
python ci/generate-version.py
ci/mac/build_for_mac.sh release
ci/mac/build_for_mac.sh RelWithDebInfo
# 获取ref最后一个/后的内容
- name: Get the version
shell: bash
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
- 'QtScrcpy/**'
- '!QtScrcpy/res/**'
- '.github/workflows/ubuntu.yml'
- 'ci/linux/**'
pull_request:
paths:
- 'QtScrcpy/**'
Expand All @@ -17,7 +18,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-16.04,ubuntu-18.04]
os: [ubuntu-18.04]
qt-ver: [5.15.1]
qt-arch-install: [gcc_64]
gcc-arch: [x64]
Expand Down Expand Up @@ -47,4 +48,4 @@ jobs:
ENV_QT_PATH: ${{ env.qt-install-path }}
run: |
python ci/generate-version.py
ci/linux/build_for_ubuntu.sh release
ci/linux/build_for_ubuntu.sh RelWithDebInfo
2 changes: 1 addition & 1 deletion .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ jobs:
ENV_QT_PATH: ${{ env.qt-install-path }}
run: |
call python ci\generate-version.py
call "ci\win\build_for_win.bat" release ${{ matrix.msvc-arch }}
call "ci\win\build_for_win.bat" RelWithDebInfo ${{ matrix.msvc-arch }}
# 获取ref最后一个/后的内容
- name: Get the version
shell: bash
Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,5 @@
/build/
build-*
*.DS_Store
userdata.ini
userdata.ini
Info_Mac.plist
19 changes: 1 addition & 18 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,21 +1,4 @@
cmake_minimum_required(VERSION 3.19 FATAL_ERROR)

# Read version numbers from file
file (STRINGS ${CMAKE_CURRENT_SOURCE_DIR}/QtScrcpy/version STRING_VERSION)
message(STATUS "QtScrcpy Version ${STRING_VERSION}")
project(QtScrcpy
VERSION ${STRING_VERSION}
LANGUAGES C CXX
)

if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
enable_language(OBJCXX)
endif()

# Split version numbers
string(REPLACE "." ";" VERSION_LIST ${STRING_VERSION})
list(GET VERSION_LIST 0 VERSION_MAJOR)
list(GET VERSION_LIST 1 VERSION_MINOR)
list(GET VERSION_LIST 2 VERSION_PATCH)
project(all)

add_subdirectory(QtScrcpy)
Loading

0 comments on commit fc400fa

Please sign in to comment.