37 Commits

Author SHA1 Message Date
kthelgason
5ec208fc98 Use bitcode by default for ios framework build.
BUG=webrtc:5085
NOTRY=true

Review-Url: https://codereview.webrtc.org/2490143002
Cr-Commit-Position: refs/heads/master@{#15011}
2016-11-10 09:13:49 +00:00
kthelgason
592baaf89a Add build flag to enable bitcode on ios
BUG=webrtc:5085
NOTRY=true

Review-Url: https://codereview.webrtc.org/2478663002
Cr-Commit-Position: refs/heads/master@{#14997}
2016-11-09 12:58:19 +00:00
VladimirTechMan
18b8774792 Setting PATH so that the 'plistbuddy' utility can be found, in a typical OS X environment
Restoring a line from the older version (GYP-days) of the
build_ios_libs.sh script: modifying PATH so that the
PlistBuddy utility can be successfully found and called,
as it normally is not available under the PATH directories
in a typical OS X environment (even on developer configs).

NOTRY=True
BUG=webrtc:6372

Review-Url: https://codereview.webrtc.org/2463623002
Cr-Commit-Position: refs/heads/master@{#14834}
2016-10-31 06:09:50 +00:00
Zeke Chin
dd0e1e0070 GN: Build iOS framework in build_ios_libs.sh
BUG=webrtc:6372
NOTRY=True
R=kjellander@webrtc.org

Review URL: https://codereview.webrtc.org/2408983002 .

Cr-Commit-Position: refs/heads/master@{#14603}
2016-10-11 20:27:34 +00:00
tkchin
5fa51e2947 Add iOS static library GN build script.
NOTRY=True

BUG=webrtc:6372

Review-Url: https://codereview.webrtc.org/2391123002
Cr-Commit-Position: refs/heads/master@{#14532}
2016-10-05 20:16:07 +00:00
kjellander
c3f549bf7a Update expected Xcode version to 8.0.
BUG=649150
NOTRY=True
TBR=ehmaldonado@webrtc.org

Review-Url: https://codereview.webrtc.org/2365863002
Cr-Commit-Position: refs/heads/master@{#14404}
2016-09-27 19:15:01 +00:00
magjed
44428a8aa6 iOS: Always build H264 HW encoder/decoder
This CL removes the use_objc_h264 flag. This means that the VideoToolbox
H264 encoder and decoder will always be built.

BUG=webrtc:4081
NOTRY=TRUE

Review-Url: https://codereview.webrtc.org/2366443003
Cr-Commit-Position: refs/heads/master@{#14372}
2016-09-23 14:01:44 +00:00
kjellander
7b11c65a17 MB: Move iOS GYP bots to use limited support config
BUG=webrtc:5949
NOTRY=True

Review-Url: https://codereview.webrtc.org/2325063002
Cr-Commit-Position: refs/heads/master@{#14185}
2016-09-12 12:34:01 +00:00
nisse
3d21e23df2 Delete talk directory, and references from build_ios_libs.sh.
BUG=webrtc:4256

Review-Url: https://codereview.webrtc.org/2296613002
Cr-Commit-Position: refs/heads/master@{#14040}
2016-09-02 10:07:13 +00:00
kjellander
6e5b0d7a5b MB: Flip iOS bots to GN by default
Change the previous GN configs to build GYP instead
(since we'll keep GYP around for a while) but exclude tests
and examples for that config, since we'll only support the production
code for GYP.

Add new configs for upcoming rename of those bots to GYP instead
of GN.

BUG=webrtc:5949
NOTRY=True
TBR=ehmaldonado@webrtc.org

Review-Url: https://codereview.webrtc.org/2291443002
Cr-Commit-Position: refs/heads/master@{#13980}
2016-08-30 21:05:49 +00:00
vopatop.skam
ff101d6171 iOS: add PlistBuddy location to path to avoid build errors
On OS X El Capitan, the system location of 'PlistBuddy' is:
"/usr/libexec/PlistBuddy"
and default system path environment variable is:
"PATH=/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"

NOTRY=True

Review-Url: https://codereview.webrtc.org/2262813002
Cr-Commit-Position: refs/heads/master@{#13841}
2016-08-22 09:27:38 +00:00
kjellander
1c814e7b72 iOS: Update MB and JSON configs + enable Goma
Turns out that if mb_type is missing in the JSON, GYP is run the
traditional way instead of having the MB configuration decide.
This turns on MB for those builders.
See https://codereview.chromium.org/2194703002 for how Chromium
switched from GYP->GN.

The JSON environment for GYP and GN is only used during runhooks
step since there are scripts that key on some of these environment variables.
The actual build that is compiled is defined by the MB config, which
is now updated to have component=static_library everywhere for iOS.
With this CL, all configs gets a full GYP+GN environment.

When flipping bots over to GN, the following line will need to be added
in addition to changing mb_type:
"additional_compile_targets": [ "all" ],

Goma was also enabled for all builders to reduce compile time.

BUG=589510
NOTRY=True

Review-Url: https://codereview.webrtc.org/2239643002
Cr-Commit-Position: refs/heads/master@{#13775}
2016-08-16 09:42:06 +00:00
tkchin
33f00e1272 Fix case-sensitive build system errors.
This is https://codereview.webrtc.org/2141093002/, just wanted to get it in.

NOTRY=True
BUG=

Review-Url: https://codereview.webrtc.org/2214113002
Cr-Commit-Position: refs/heads/master@{#13649}
2016-08-04 19:46:51 +00:00
tkchin
469df938e9 Don't build VP9 for iOS framework.
NOTRY=True
BUG=

Review-Url: https://codereview.webrtc.org/2204783002
Cr-Commit-Position: refs/heads/master@{#13611}
2016-08-02 16:38:40 +00:00
phoglund
75c88da8dd Remove nonexistant test.
I did some archaelogy here and found that the binary was (incorrectly?)
added here: https://codereview.webrtc.org/1903663002/. I can't find any
trace that a rtc_sdk_peerconnection_objc_tests has ever existed, or at
least that it doesn't exist now.

Removing it seems the right thing to do. However, I also see
rtc_sdk_peerconnection_objc target is folded into rtc_unittests in
webrtc_tests.gyp, but that target isn't listed in common_tests.json.
Should it be?

BUG=623500
TBR=tkchin@webrtc.org

Review-Url: https://codereview.webrtc.org/2121963002
Cr-Commit-Position: refs/heads/master@{#13392}
2016-07-06 08:24:22 +00:00
tkchin
2bd81a8a00 Fix building iOS SDK static libraries.
NOTRY=True

Review-Url: https://codereview.webrtc.org/2030823004
Cr-Commit-Position: refs/heads/master@{#13020}
2016-06-02 19:22:24 +00:00
kjellander@webrtc.org
3b32236f22 iOS: Move JSON bot configurations after promoting GN bots.
BUG=webrtc:5586
TBR=phoglund@webrtc.org

Review URL: https://codereview.webrtc.org/2009833003 .

Cr-Commit-Position: refs/heads/master@{#12908}
2016-05-26 09:23:33 +00:00
tkchin
3c5a294b60 Fix Info.plist path in build_ios_libs.sh
NOTRY=True
BUG=

Review-Url: https://codereview.webrtc.org/1988003002
Cr-Commit-Position: refs/heads/master@{#12784}
2016-05-18 06:08:32 +00:00
tkchin
e76db89e0b Fix BoringSSL license path.
BUG=webrtc:5737
NOTRY=True

Review-Url: https://codereview.webrtc.org/1949953002
Cr-Commit-Position: refs/heads/master@{#12645}
2016-05-06 18:19:54 +00:00
tkchin
0090b689bd Script for concatenating licenses.
BUG=webrtc:5737

Review-Url: https://codereview.webrtc.org/1922363002
Cr-Commit-Position: refs/heads/master@{#12551}
2016-04-29 01:02:32 +00:00
tkchin
9eeb6240c9 Build dynamic iOS SDK.
- Places most ObjC code into webrtc/sdk/objc instead.
- New gyp targets to build, strip and export symbols for dylib.
- Removes old script used to generate dylib.

BUG=

Review URL: https://codereview.webrtc.org/1903663002

Cr-Commit-Position: refs/heads/master@{#12524}
2016-04-27 08:54:27 +00:00
kjellander@webrtc.org
001c20dd47 Move logic of gyp_webrtc into gyp_webrtc.py
For historical reasons gyp_webrtc.py was launcher script
for gyp_webrtc and the python logic lived in the
gyp_webrtc.  This change moves python code into the
.py file makes the extension-free gyp_webrtc a launcher
for gyp_webrtc.py.

Other changes:
* Move the code into a main() function.
* Add call to disable GC to save some processing time.
* Set executable permission on gyp_webrtc.py and remove it from
  gyp_webrtc.

Similar Chromium CL: https://codereview.chromium.org/1216863010

Motivation for this change:
* Gets checked with PyLint
* Easy to add unit tests if we add our own functionality.

R=phoglund@webrtc.org
TBR=tkchin@webrtc.org

Review URL: https://codereview.webrtc.org/1895713002 .

Cr-Commit-Position: refs/heads/master@{#12410}
2016-04-18 14:33:04 +00:00
tkchin
5209d671f2 Fix WebRTC API framework build.
BUG=webrtc:5737

Review URL: https://codereview.webrtc.org/1875003004

Cr-Commit-Position: refs/heads/master@{#12391}
2016-04-16 19:06:40 +00:00
tkchin
8b9ca953a4 Minor ObjC header updates.
BUG=

Review URL: https://codereview.webrtc.org/1845133002

Cr-Commit-Position: refs/heads/master@{#12183}
2016-03-31 19:08:12 +00:00
Jon Hjelle
3a2f7e01ef Build dynamic framework with podspec for Objective-C API.
BUG=
R=tkchin@webrtc.org

Review URL: https://codereview.webrtc.org/1829783003 .

Patch from Jon Hjelle <hjon@webrtc.org>.

Cr-Commit-Position: refs/heads/master@{#12128}
2016-03-25 21:49:18 +00:00
tkchin
1bd9553d2e Add visibility flag to GYP.
BUG=

Review URL: https://codereview.webrtc.org/1826453004

Cr-Commit-Position: refs/heads/master@{#12108}
2016-03-23 20:19:23 +00:00
hjon
bc73fe1aad Move build scripts to webrtc/build/ios
BUG=
NOTRY=True

Review URL: https://codereview.webrtc.org/1801943003

Cr-Commit-Position: refs/heads/master@{#12079}
2016-03-21 18:38:35 +00:00
kjellander@webrtc.org
71d9721bdc iOS: Fix JSON for tryserver configurations.
Use boolean values instead of strings. With this landed
https://codereview.chromium.org/1723033003/ can be reverted.

BUG=498746
R=smut@google.com

Review URL: https://codereview.webrtc.org/1728743002 .

Cr-Commit-Position: refs/heads/master@{#11724}
2016-02-23 20:16:04 +00:00
kjellander@webrtc.org
eee7d9e8e8 iOS: Promote iOS simulator testing to main waterfall.
* Move JSON files from client.webrtc.fyi -> client.webrtc to match
  to-be-switched builders (requires buildbot-side changes + master restart).
* Remove Goma configs from trybots (previously done for the commitbots).

BUG=chromium:588590
TBR=smut@google.com

Review URL: https://codereview.webrtc.org/1720713003 .

Cr-Commit-Position: refs/heads/master@{#11707}
2016-02-22 11:49:08 +00:00
kjellander@webrtc.org
ada8fe5c00 iOS: Don't run modules_unittests on iOS simulator
This is the only failing test of the currently deployed
at the iOS Simulator bots. Let's disable it so we can promote
the passing tests to the main waterfall and the trybots.

BUG=4755
TBR=henrika@webrtc.org

Review URL: https://codereview.webrtc.org/1722523002 .

Cr-Commit-Position: refs/heads/master@{#11703}
2016-02-22 06:34:38 +00:00
kjellander
0206000a66 iOS: Add resource files for tests and implement OutputPath
With this change the following tests have been successfully
passing in the iOS Simulator for iPhone 5 and iOS 9:
* audio_decoder_unittests
* common_video_unittests
* modules_tests
* rtc_api_objc_tests
* rtc_pc_unittests
* system_wrappers_unittests
* voice_engine_unittests

The modules_unittests and common_audio_unittests are
handled in https://codereview.webrtc.org/1698033002/

BUG=webrtc:4755
NOTRY=True

Review URL: https://codereview.webrtc.org/1694353003

Cr-Commit-Position: refs/heads/master@{#11646}
2016-02-17 06:06:17 +00:00
kjellander
d3d8b6720a iOS: Remove MB and Goma for GYP builders.
This reverts "iOS: Add mb_type config for GYP builders."
and also removes Goma from these builders, as it will not work for WebRTC
since MB's GYP mode is hardcoded to use gyp_chromium.
MB should be working for GN since it's a stand-alone tool.

Goma doesn't work since $(goma_dir) in the JSON throws an error during
compile. So let's turn off Goma for these bots for now.

BUG=chromium:498746
NOTRY=True
TBR=smut@google.com

Review URL: https://codereview.webrtc.org/1685683007

Cr-Commit-Position: refs/heads/master@{#11578}
2016-02-11 14:48:08 +00:00
kjellander
a7584c9f75 iOS: Add mb_type config for GYP builders.
Our first build that passed the configuration reading step
failed because of the $(goma_dir) variable. I compared the JSON and
the recipes between ours and the builders in chromium.mac and this was
the only thing I could easily identify, so I'm going to try it out.

Example failing build: https://build.chromium.org/p/client.webrtc.fyi/builders/iOS64%20Simulator%20Debug/builds/97

BUG=chromium:498746
NOTRY=True
TBR=smut@google.com

Review URL: https://codereview.webrtc.org/1693503002

Cr-Commit-Position: refs/heads/master@{#11573}
2016-02-11 13:36:05 +00:00
kjellander
569cf942c0 PRESUBMIT: Add check for JSON parse errors + fix JSON
The PRESUBMIT code is basically a stripped-down copy of the code in
Chromium's src/PRESUBMIT.py.

BUG=chromium:498746
TESTED=I verified with 'git cl presubmit' that the existing
error was found. Then I ran it again after fixing it, with
presubmit passing.
NOTRY=True

Review URL: https://codereview.webrtc.org/1682393002

Cr-Commit-Position: refs/heads/master@{#11572}
2016-02-11 13:03:05 +00:00
kjellander@webrtc.org
15ba6242ad Revert of Rename iOS test specs to match buildbot names. (patchset #1 id:1 of https://codereview.webrtc.org/1665783002/ )
Reason for revert:
*sigh* that didn't work, the reading of the JSON file fails (which I was suspecting it would).
Example: https://build.chromium.org/p/client.webrtc.fyi/builders/iOS64%20Simulator%20Debug/builds/17/steps/steps/logs/stdio

I'll rename all the iOS bots instead since I think it's reasonably rare we link to their logs, so there won't be that many broken URLs.

Original issue's description:
> Rename iOS test specs to match buildbot names.
>
> I really prefer not using spaces in any filenames but
> if we were to rename all the bots all existing URLs to builds
> would stop working (or we'd loose the build history), so I'd
> like to see if this works first.
> The bots that hits the errors are the new ones I'm experimenting
> with in client.webrtc.fyi. Example failing build:
> https://build.chromium.org/p/client.webrtc.fyi/builders/iOS64%20Simulator%20Debug
>
> BUG=chromium:498746
> NOTRY=True
> TBR=phoglund@webrtc.org
>
> Committed: https://crrev.com/86512b401ecee4b5e18ee6fbec28ec9c1d0ead9b
> Cr-Commit-Position: refs/heads/master@{#11473}

TBR=phoglund@webrtc.org
NOTRY=True
NOPRESUBMIT=True
BUG=chromium:498746

Review URL: https://codereview.webrtc.org/1666163002 .

Cr-Commit-Position: refs/heads/master@{#11489}
2016-02-04 14:13:51 +00:00
kjellander
86512b401e Rename iOS test specs to match buildbot names.
I really prefer not using spaces in any filenames but
if we were to rename all the bots all existing URLs to builds
would stop working (or we'd loose the build history), so I'd
like to see if this works first.
The bots that hits the errors are the new ones I'm experimenting
with in client.webrtc.fyi. Example failing build:
https://build.chromium.org/p/client.webrtc.fyi/builders/iOS64%20Simulator%20Debug

BUG=chromium:498746
NOTRY=True
TBR=phoglund@webrtc.org

Review URL: https://codereview.webrtc.org/1665783002

Cr-Commit-Position: refs/heads/master@{#11473}
2016-02-03 12:41:10 +00:00
kjellander
8e85a3f39a iOS buildbot configurations.
This will make it possible for WebRTC to use the same buildbot
scripts as Chrome's iOS bots.
Buildbot changes are done in https://codereview.chromium.org/1659163003/

BUG=chromium:498746
NOTRY=True

Review URL: https://codereview.webrtc.org/1660053002

Cr-Commit-Position: refs/heads/master@{#11468}
2016-02-03 08:06:06 +00:00