Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
jami-daemon
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
savoirfairelinux
jami-daemon
Commits
ba088bf2
Commit
ba088bf2
authored
8 years ago
by
Edric Milaret
Browse files
Options
Downloads
Patches
Plain Diff
contrib: allow ios build
Change-Id: Ib5deee2d0172f92febe72d4d3a57a7c3334414c4 Tuleap:
#313
parent
f6ac9c34
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
contrib/bootstrap
+3
-2
3 additions, 2 deletions
contrib/bootstrap
contrib/src/get-arch.sh
+8
-0
8 additions, 0 deletions
contrib/src/get-arch.sh
contrib/src/main.mak
+13
-7
13 additions, 7 deletions
contrib/src/main.mak
with
24 additions
and
9 deletions
contrib/bootstrap
+
3
−
2
View file @
ba088bf2
...
...
@@ -132,11 +132,11 @@ check_ios_sdk()
{
if
test
-z
"
$SDKROOT
"
then
SDKROOT
=
`
xcode-select
-print-path
`
/Platforms/
iPhone
${
PLATFORM
}
.platform/Developer/SDKs/
iPhone
${
PLATFORM
}${
SDK_VERSION
}
.sdk
SDKROOT
=
`
xcode-select
-print-path
`
/Platforms/
${
IOS_TARGET_
PLATFORM
}
.platform/Developer/SDKs/
${
IOS_TARGET_
PLATFORM
}${
SDK_VERSION
}
.sdk
echo
"SDKROOT not specified, assuming
$SDKROOT
"
else
SDKROOT
=
"
$SDKROOT
"
fi
fi
if
[
!
-d
"
${
SDKROOT
}
"
]
then
...
...
@@ -144,6 +144,7 @@ check_ios_sdk()
exit
1
fi
add_make
"IOS_SDK=
${
SDKROOT
}
"
add_make
"IOS_TARGET_PLATFORM=
${
IOS_TARGET_PLATFORM
}
"
}
check_macosx_sdk
()
...
...
This diff is collapsed.
Click to expand it.
contrib/src/get-arch.sh
+
8
−
0
View file @
ba088bf2
...
...
@@ -19,6 +19,14 @@ case "$HOST" in
powerpc64-
*
|
ppc64-
*
)
ARCH
=
"ppc64"
;;
aarch64-
*
)
if
$HAVE_IOS
then
ARCH
=
"arm64"
else
ARCH
=
"aarch64"
fi
;;
*
-
*
)
ARCH
=
"
${
HOST
%%-*
}
"
;;
...
...
This diff is collapsed.
Click to expand it.
contrib/src/main.mak
+
13
−
7
View file @
ba088bf2
...
...
@@ -151,20 +151,26 @@ endif
CCAS
=
$(
CC
)
-c
ifdef
HAVE_IOS
MIN_IOS_VERSION
=
8.0
CC
=
xcrun clang
CXX
=
xcrun clang++
ifdef
HAVE_NEON
AS
=
perl
$(
abspath ../../extras/tools/build/bin/gas-preprocessor.pl
)
$(
CC
)
CCAS
=
gas-preprocessor.pl
$(
CC
)
-c
else
CCAS
=
$(
CC
)
-c
endif
AR
=
xcrun ar
LD
=
xcrun ld
STRIP
=
xcrun strip
RANLIB
=
xcrun ranlib
EXTRA_CFLAGS
+=
$(
CFLAGS
)
EXTRA_LDFLAGS
+=
$(
LDFLAGS
)
EXTRA_CFLAGS
=
-arch
$(
ARCH
)
-isysroot
$(
IOS_SDK
)
ifeq
($(IOS_TARGET_PLATFORM),iPhoneOS)
EXTRA_CFLAGS
+=
-miphoneos-version-min
=
$(
MIN_IOS_VERSION
)
-fembed-bitcode
else
EXTRA_CFLAGS
+=
-mios-simulator-version-min
=
$(
MIN_IOS_VERSION
)
endif
EXTRA_CXXFLAGS
=
$(
EXTRA_CFLAGS
)
-std
=
c++11
-stdlib
=
libc++
EXTRA_LDFLAGS
=
$(
EXTRA_CFLAGS
)
endif
ifdef
HAVE_WIN32
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment