mirror of
https://github.com/barry-ran/QtScrcpy.git
synced 2025-04-22 04:24:59 +00:00
chore: add build annotation
This commit is contained in:
parent
561d8eeb54
commit
73ec65e156
2 changed files with 4 additions and 2 deletions
|
@ -55,7 +55,8 @@ if (MSVC)
|
|||
|
||||
# avoid warning C4819
|
||||
#add_compile_options(-source-charset:utf-8)
|
||||
#add_compile_options(/utf-8)
|
||||
# /utf-8 will set source charset and execution charset to utf-8, so we don't need to set source-charset:utf-8
|
||||
add_compile_options(/utf-8)
|
||||
|
||||
# ensure we use minimal "windows.h" lib without the crazy min max macros
|
||||
add_compile_definitions(NOMINMAX WIN32_LEAN_AND_MEAN)
|
||||
|
@ -264,6 +265,7 @@ endif()
|
|||
|
||||
# MacOS
|
||||
if(CMAKE_SYSTEM_NAME STREQUAL "Darwin")
|
||||
# qt6 need 10.15 or later
|
||||
set(CMAKE_OSX_DEPLOYMENT_TARGET "10.15")
|
||||
|
||||
# copy bundle file
|
||||
|
|
|
@ -58,7 +58,7 @@ fi
|
|||
mkdir $build_path
|
||||
cd $build_path
|
||||
|
||||
cmake_params="-DCMAKE_PREFIX_PATH=$qt_cmake_path -DCMAKE_BUILD_TYPE=$build_mode -DCMAKE_OSX_ARCHITECTURES=x86_64 -D CMAKE_OSX_DEPLOYMENT_TARGET=10.10"
|
||||
cmake_params="-DCMAKE_PREFIX_PATH=$qt_cmake_path -DCMAKE_BUILD_TYPE=$build_mode -DCMAKE_OSX_ARCHITECTURES=x86_64"
|
||||
cmake $cmake_params ../..
|
||||
if [ $? -ne 0 ] ;then
|
||||
echo "cmake failed"
|
||||
|
|
Loading…
Add table
Reference in a new issue