Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linphone-desktop
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
linphone-desktop
Commits
9836c7ba
Commit
9836c7ba
authored
Apr 14, 2017
by
Ghislain MARY
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Handle code signing on Mac OS X.
parent
f5fc2669
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
8 deletions
+24
-8
additional_steps.cmake
cmake_builder/additional_steps.cmake
+1
-1
CMakeLists.txt
cmake_builder/linphone_package/CMakeLists.txt
+22
-6
CMakeLists.txt
linphone-desktop/CMakeLists.txt
+1
-1
No files found.
cmake_builder/additional_steps.cmake
View file @
9836c7ba
...
...
@@ -59,7 +59,7 @@ if(ENABLE_PACKAGING)
SOURCE_DIR
"
${
CMAKE_CURRENT_LIST_DIR
}
/linphone_package"
DOWNLOAD_COMMAND
""
CMAKE_GENERATOR
${
CMAKE_GENERATOR
}
CMAKE_ARGS
${
LINPHONE_BUILDER_EP_ARGS
}
-DCMAKE_INSTALL_PREFIX=
${
LINPHONE_BUILDER_WORK_DIR
}
/PACKAGE -DTOOLS_DIR=
${
CMAKE_BINARY_DIR
}
/programs -DLINPHONE_OUTPUT_DIR=
${
CMAKE_INSTALL_PREFIX
}
-DLINPHONE_DESKTOP_DIR=
${
CMAKE_CURRENT_LIST_DIR
}
/../linphone-desktop -DLINPHONE_SOURCE_DIR=
${
EP_linphone_SOURCE_DIR
}
${
ENABLE_VARIABLES
}
-DOPENH264_VERSION=
${
OPENH264_VERSION
}
CMAKE_ARGS
${
LINPHONE_BUILDER_EP_ARGS
}
-DCMAKE_INSTALL_PREFIX=
${
LINPHONE_BUILDER_WORK_DIR
}
/PACKAGE -DTOOLS_DIR=
${
CMAKE_BINARY_DIR
}
/programs -DLINPHONE_OUTPUT_DIR=
${
CMAKE_INSTALL_PREFIX
}
-DLINPHONE_DESKTOP_DIR=
${
CMAKE_CURRENT_LIST_DIR
}
/../linphone-desktop -DLINPHONE_SOURCE_DIR=
${
EP_linphone_SOURCE_DIR
}
${
ENABLE_VARIABLES
}
-DOPENH264_VERSION=
${
OPENH264_VERSION
}
-DLINPHONE_BUILDER_SIGNING_IDENTITY=
${
LINPHONE_BUILDER_SIGNING_IDENTITY
}
)
endif
()
endif
()
cmake_builder/linphone_package/CMakeLists.txt
View file @
9836c7ba
...
...
@@ -225,14 +225,30 @@ elseif(APPLE)
COMMAND
"
${
DEPLOYQT_PROGRAM
}
"
"
${
CMAKE_CURRENT_BINARY_DIR
}
/Linphone.app"
"-qmldir=
${
LINPHONE_QML_DIR
}
"
"-verbose=2"
)
install
(
DIRECTORY
"
${
CMAKE_CURRENT_BINARY_DIR
}
/Linphone.app"
DESTINATION
"."
USE_SOURCE_PERMISSIONS
)
if
(
EXISTS
"
${
LINPHONE_OUTPUT_DIR
}
/lib/mediastreamer"
)
install
(
DIRECTORY
"
${
LINPHONE_OUTPUT_DIR
}
/lib/mediastreamer"
DESTINATION
"Linphone.app/Contents/Resources/lib"
USE_SOURCE_PERMISSIONS
)
file
(
COPY
"
${
LINPHONE_OUTPUT_DIR
}
/lib/mediastreamer"
DESTINATION
"Linphone.app/Contents/Resources/lib"
USE_SOURCE_PERMISSIONS
)
endif
()
file
(
COPY
"
${
LINPHONE_OUTPUT_DIR
}
/share/images"
DESTINATION
"Linphone.app/Contents/Resources/share"
USE_SOURCE_PERMISSIONS
)
file
(
COPY
"
${
LINPHONE_OUTPUT_DIR
}
/share/sounds"
DESTINATION
"Linphone.app/Contents/Resources/share"
USE_SOURCE_PERMISSIONS
)
file
(
COPY
"
${
LINPHONE_OUTPUT_DIR
}
/share/Linphone/rootca.pem"
DESTINATION
"Linphone.app/Contents/Resources/share/linphone"
)
file
(
COPY
"
${
LINPHONE_OUTPUT_DIR
}
/share/Linphone/linphonerc-factory"
DESTINATION
"Linphone.app/Contents/Resources/share/linphone"
)
if
(
LINPHONE_BUILDER_SIGNING_IDENTITY
)
file
(
GLOB FRAMEWORKS_NAMES
"
${
CMAKE_CURRENT_BINARY_DIR
}
/Linphone.app/Contents/Frameworks/*"
)
foreach
(
_framework
${
FRAMEWORKS_NAMES
}
)
execute_process
(
COMMAND
"codesign"
"--verbose"
"-s"
"
${
LINPHONE_BUILDER_SIGNING_IDENTITY
}
"
"
${
_framework
}
"
)
endforeach
()
file
(
GLOB PLUGINS_NAMES
"
${
CMAKE_CURRENT_BINARY_DIR
}
/Linphone.app/Contents/PlugIns/*"
)
foreach
(
_plugin
${
PLUGINS_NAMES
}
)
file
(
GLOB PLUGINS_FILES
"
${
_plugin
}
/*"
)
foreach
(
_pluginfile
${
PLUGINS_FILES
}
)
execute_process
(
COMMAND
"codesign"
"--verbose"
"-s"
"
${
LINPHONE_BUILDER_SIGNING_IDENTITY
}
"
"
${
_pluginfile
}
"
)
endforeach
()
endforeach
()
execute_process
(
COMMAND
"codesign"
"--verbose"
"-s"
"
${
LINPHONE_BUILDER_SIGNING_IDENTITY
}
"
"
${
CMAKE_CURRENT_BINARY_DIR
}
/Linphone.app"
)
endif
()
install
(
DIRECTORY
"
${
LINPHONE_OUTPUT_DIR
}
/share/images"
DESTINATION
"Linphone.app/Contents/Resources/share"
USE_SOURCE_PERMISSIONS
)
install
(
DIRECTORY
"
${
LINPHONE_OUTPUT_DIR
}
/share/sounds"
DESTINATION
"Linphone.app/Contents/Resources/share"
USE_SOURCE_PERMISSIONS
)
install
(
FILES
"
${
LINPHONE_OUTPUT_DIR
}
/share/Linphone/rootca.pem"
DESTINATION
"Linphone.app/Contents/Resources/share/linphone"
)
install
(
FILES
"
${
LINPHONE_OUTPUT_DIR
}
/share/Linphone/linphonerc-factory"
DESTINATION
"Linphone.app/Contents/Resources/share/linphone"
)
install
(
DIRECTORY
"
${
CMAKE_CURRENT_BINARY_DIR
}
/Linphone.app"
DESTINATION
"."
USE_SOURCE_PERMISSIONS
)
configure_file
(
"MacPackaging.cmake.in"
"MacPackaging.cmake"
@ONLY
)
install
(
SCRIPT
"
${
CMAKE_CURRENT_BINARY_DIR
}
/MacPackaging.cmake"
)
...
...
linphone-desktop/CMakeLists.txt
View file @
9836c7ba
...
...
@@ -53,7 +53,7 @@ if(NOT WIN32)
-Wuninitialized \
-Wunused \
"
)
if
(
NOT CMAKE_CXX_COMPILER_ID
STREQUAL
"Clang"
)
if
(
NOT CMAKE_CXX_COMPILER_ID
MATCHES
"Clang"
)
set
(
CUSTOM_FLAGS
"
${
CUSTOM_FLAGS
}
-Wlogical-op"
)
endif
()
if
(
SUGGEST_OVERRIDE
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment